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()

Init gcloud storage client to send petitions.

upload_to_bucket(client, src_path, ...)

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