sinergym.utils.gcloud

Utilities to use Google Cloud Python API and Google Cloud API REST easier.

Functions

delete_instance_MIG_from_container(...)

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

get_service_account_token()

Get token authorization if container has a valid service account.

init_storage_client()

Initiate gcloud storage client to send petitions.

read_from_bucket(client, bucket_name, ...)

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.