From 8153edf8a6fe0db563fec62c85da16edabb8dc95 Mon Sep 17 00:00:00 2001 From: sirtorry Date: Thu, 19 Jul 2018 07:57:38 -0700 Subject: [PATCH] add requirements.txt --- language/automl/automl_natural_language_model.py | 4 +++- language/automl/requirements.txt | 1 + translate/automl/automl_translation_model.py | 4 +++- translate/automl/requirements.txt | 1 + vision/automl/automl_vision_model.py | 4 +++- vision/automl/requirements.txt | 1 + 6 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 language/automl/requirements.txt create mode 100644 translate/automl/requirements.txt create mode 100644 vision/automl/requirements.txt 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