You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
To use the operations client that you have to go through client._transport. It feels weird to recommend using a variable that looks like it's intended for internal use only.
defget_operation_status(operation_full_id):
"""Get operation status."""# [START automl_get_operation_status]fromgoogle.cloudimportautoml# TODO(developer): Uncomment and set the following variables# operation_full_id = \# "projects/[projectId]/locations/us-central1/operations/[operationId]"client=automl.AutoMlClient()
# Get the latest state of a long-running operation.response=client._transport.operations_client.get_operation(
operation_full_id
)
print("Name: {}".format(response.name))
print("Operation details:")
print(response)
# [END automl_get_operation_status]