From 9d91bff6715b2c5137952ce540c136b2c21571e7 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 19 Nov 2019 05:13:53 -0800 Subject: [PATCH] [CHANGE ME] Re-generated automl to pick up changes in the API or client library generator. --- automl/docs/conf.py | 2 +- .../cloud/automl_v1/gapic/auto_ml_client.py | 35 +++++++++++-- .../gapic/prediction_service_client.py | 7 ++- .../automl_v1beta1/gapic/auto_ml_client.py | 49 ++++++++++++++++--- .../gapic/prediction_service_client.py | 7 ++- automl/synth.metadata | 10 ++-- 6 files changed, 90 insertions(+), 20 deletions(-) diff --git a/automl/docs/conf.py b/automl/docs/conf.py index 9ac18387deed..dab151417fa9 100644 --- a/automl/docs/conf.py +++ b/automl/docs/conf.py @@ -164,7 +164,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -# html_static_path = [] +html_static_path = ["_static"] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied diff --git a/automl/google/cloud/automl_v1/gapic/auto_ml_client.py b/automl/google/cloud/automl_v1/gapic/auto_ml_client.py index 5fd2978d12fe..f51d03bd297c 100644 --- a/automl/google/cloud/automl_v1/gapic/auto_ml_client.py +++ b/automl/google/cloud/automl_v1/gapic/auto_ml_client.py @@ -101,7 +101,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def annotation_spec_path(cls, project, location, dataset, annotation_spec): - """Return a fully-qualified annotation_spec string.""" + """DEPRECATED. Return a fully-qualified annotation_spec string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}", project=project, @@ -112,7 +117,12 @@ def annotation_spec_path(cls, project, location, dataset, annotation_spec): @classmethod def dataset_path(cls, project, location, dataset): - """Return a fully-qualified dataset string.""" + """DEPRECATED. Return a fully-qualified dataset string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/datasets/{dataset}", project=project, @@ -122,7 +132,12 @@ def dataset_path(cls, project, location, dataset): @classmethod def location_path(cls, project, location): - """Return a fully-qualified location string.""" + """DEPRECATED. Return a fully-qualified location string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}", project=project, @@ -131,7 +146,12 @@ def location_path(cls, project, location): @classmethod def model_path(cls, project, location, model): - """Return a fully-qualified model string.""" + """DEPRECATED. Return a fully-qualified model string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/models/{model}", project=project, @@ -141,7 +161,12 @@ def model_path(cls, project, location, model): @classmethod def model_evaluation_path(cls, project, location, model, model_evaluation): - """Return a fully-qualified model_evaluation string.""" + """DEPRECATED. Return a fully-qualified model_evaluation string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}", project=project, diff --git a/automl/google/cloud/automl_v1/gapic/prediction_service_client.py b/automl/google/cloud/automl_v1/gapic/prediction_service_client.py index e8a6040edd5a..3ada1b6a51e1 100644 --- a/automl/google/cloud/automl_v1/gapic/prediction_service_client.py +++ b/automl/google/cloud/automl_v1/gapic/prediction_service_client.py @@ -91,7 +91,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def model_path(cls, project, location, model): - """Return a fully-qualified model string.""" + """DEPRECATED. Return a fully-qualified model string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/models/{model}", project=project, diff --git a/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py b/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py index b2cb38c342e9..f97a0d43ad54 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py +++ b/automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py @@ -103,7 +103,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def annotation_spec_path(cls, project, location, dataset, annotation_spec): - """Return a fully-qualified annotation_spec string.""" + """DEPRECATED. Return a fully-qualified annotation_spec string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}", project=project, @@ -114,7 +119,12 @@ def annotation_spec_path(cls, project, location, dataset, annotation_spec): @classmethod def column_spec_path(cls, project, location, dataset, table_spec, column_spec): - """Return a fully-qualified column_spec string.""" + """DEPRECATED. Return a fully-qualified column_spec string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}", project=project, @@ -126,7 +136,12 @@ def column_spec_path(cls, project, location, dataset, table_spec, column_spec): @classmethod def dataset_path(cls, project, location, dataset): - """Return a fully-qualified dataset string.""" + """DEPRECATED. Return a fully-qualified dataset string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/datasets/{dataset}", project=project, @@ -136,7 +151,12 @@ def dataset_path(cls, project, location, dataset): @classmethod def location_path(cls, project, location): - """Return a fully-qualified location string.""" + """DEPRECATED. Return a fully-qualified location string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}", project=project, @@ -145,7 +165,12 @@ def location_path(cls, project, location): @classmethod def model_path(cls, project, location, model): - """Return a fully-qualified model string.""" + """DEPRECATED. Return a fully-qualified model string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/models/{model}", project=project, @@ -155,7 +180,12 @@ def model_path(cls, project, location, model): @classmethod def model_evaluation_path(cls, project, location, model, model_evaluation): - """Return a fully-qualified model_evaluation string.""" + """DEPRECATED. Return a fully-qualified model_evaluation string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}", project=project, @@ -166,7 +196,12 @@ def model_evaluation_path(cls, project, location, model, model_evaluation): @classmethod def table_spec_path(cls, project, location, dataset, table_spec): - """Return a fully-qualified table_spec string.""" + """DEPRECATED. Return a fully-qualified table_spec string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}", project=project, diff --git a/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py b/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py index 3342fecd621f..6803c47c11d8 100644 --- a/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py +++ b/automl/google/cloud/automl_v1beta1/gapic/prediction_service_client.py @@ -95,7 +95,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def model_path(cls, project, location, model): - """Return a fully-qualified model string.""" + """DEPRECATED. Return a fully-qualified model string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/models/{model}", project=project, diff --git a/automl/synth.metadata b/automl/synth.metadata index 885dba2004f6..d2f77dee1087 100644 --- a/automl/synth.metadata +++ b/automl/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-16T13:13:10.249431Z", + "updateTime": "2019-11-19T13:13:53.848416Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.1", - "dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e" + "version": "0.42.1", + "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "c89394342a9ef70acaf73a6959e04b943fbc817b", - "internalRef": "280761373" + "sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a", + "internalRef": "281088257" } }, {