sinergym.utils.gcloud.wait_for_operation

sinergym.utils.gcloud.wait_for_operation(service, project, zone, operation, operation_type='')

Sleep script execution until response status is DONE.

Parameters:
  • service – gcloud API service built previously

  • project – Project id from Google Cloud Platform

  • zone – Google Cloud Zone where instances are

  • operation – Response id

  • operation_type – (Optional), operation type for prints feedback to user.

Returns:

Response state after status DONE.

Return type:

Dict