diff --git a/language/automl/automl_natural_language_model.py b/language/automl/automl_natural_language_model.py index 509ff635163a..5204ed39804c 100755 --- a/language/automl/automl_natural_language_model.py +++ b/language/automl/automl_natural_language_model.py @@ -91,7 +91,9 @@ def get_operation_status(operation_full_id): client = automl.AutoMlClient() # Get the latest state of a long-running operation. - response = client._operations_client.get_operation(operation_full_id) + response = client.transport._operations_client.get_operation( + operation_full_id + ) print("Operation status: {}".format(response)) diff --git a/language/automl/requirements.txt b/language/automl/requirements.txt new file mode 100644 index 000000000000..d1bff72ae9ad --- /dev/null +++ b/language/automl/requirements.txt @@ -0,0 +1 @@ +google-cloud-automl==0.1.0 diff --git a/translate/automl/automl_translation_model.py b/translate/automl/automl_translation_model.py index 1bf550ed74c9..369513116347 100755 --- a/translate/automl/automl_translation_model.py +++ b/translate/automl/automl_translation_model.py @@ -216,7 +216,9 @@ def get_operation_status(operation_full_id): client = automl.AutoMlClient() # Get the latest state of a long-running operation. - response = client._operations_client.get_operation(operation_full_id) + response = client.transport._operations_client.get_operation( + operation_full_id + ) print("Operation status: {}".format(response)) diff --git a/translate/automl/requirements.txt b/translate/automl/requirements.txt new file mode 100644 index 000000000000..d1bff72ae9ad --- /dev/null +++ b/translate/automl/requirements.txt @@ -0,0 +1 @@ +google-cloud-automl==0.1.0 diff --git a/vision/automl/automl_vision_model.py b/vision/automl/automl_vision_model.py index 54caae476ba5..0e4c100e94cd 100755 --- a/vision/automl/automl_vision_model.py +++ b/vision/automl/automl_vision_model.py @@ -116,7 +116,9 @@ def get_operation_status(operation_full_id): client = automl.AutoMlClient() # Get the latest state of a long-running operation. - response = client._operations_client.get_operation(operation_full_id) + response = client.transport._operations_client.get_operation( + operation_full_id + ) print("Operation status: {}".format(response)) diff --git a/vision/automl/requirements.txt b/vision/automl/requirements.txt new file mode 100644 index 000000000000..d1bff72ae9ad --- /dev/null +++ b/vision/automl/requirements.txt @@ -0,0 +1 @@ +google-cloud-automl==0.1.0