sinergym.utils.gcloud

Functions

create_bucket(client[, bucket_name, location])

Create bucket in Google Cloud.

create_instance_group(service, project, ...)

Create an instance group (MIG) in Google Cloud.

delete_instance(service, project, zone, name)

Delete an instance inner Google Cloud.

delete_instance_MIG_from_container(...)

Delete the instance group inner Managed Instance Groups where container is executing.

delete_instance_from_container(token)

Delete an individual instance group (this functionality doesn't work in Managed Instance Groups) where container is executing.

delete_instance_group(service, project, ...)

Delete a whole instance group inner Google Cloud.

execute_remote_command_instance(...)

Execute a specified command in an instance previously created inner Google Cloud (Terminal is free after sending command).

get_bucket(client, bucket_name)

Get bucket object into Google Account using client.

get_container_id(instance_name[, base])

Get container id inner an instance.

get_service_account_token()

Get token authorization if container has a valid service account.

init_gcloud_service()

Init gcloud service to do operations.

init_storage_client()

Init gcloud storage client to send petitions.

list_instance_groups(service, project, zone)

List instances groups names created in Google Cloud currently.

list_instances(service, project, zone[, ...])

List instances names created in Google Cloud currently.

read_from_bucket(client, src_path, ...)

Read a file or a directory (recursively) from specified bucket to local file system.

upload_to_bucket(client, src_path, ...)

Upload a file or a directory (recursively) from local file system to specified bucket.

wait_for_operation(service, project, zone, ...)

Sleep script execution until response status is DONE.