From 2b06bb06aa0bb57461f184bbc726874356582824 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 20 Nov 2019 05:38:24 -0800 Subject: [PATCH] [CHANGE ME] Re-generated vision to pick up changes in the API or client library generator. --- vision/docs/_static/custom.css | 2 +- vision/docs/_templates/layout.html | 1 + .../vision_v1/gapic/product_search_client.py | 28 ++++++++++++++++--- .../gapic/product_search_client.py | 28 ++++++++++++++++--- .../gapic/product_search_client.py | 28 ++++++++++++++++--- vision/synth.metadata | 10 +++---- 6 files changed, 79 insertions(+), 18 deletions(-) diff --git a/vision/docs/_static/custom.css b/vision/docs/_static/custom.css index 9a6f9f8ddc3a..0abaf229fce3 100644 --- a/vision/docs/_static/custom.css +++ b/vision/docs/_static/custom.css @@ -1,4 +1,4 @@ div#python2-eol { border-color: red; border-width: medium; -} \ No newline at end of file +} \ No newline at end of file diff --git a/vision/docs/_templates/layout.html b/vision/docs/_templates/layout.html index de457b2c2767..228529efe2d2 100644 --- a/vision/docs/_templates/layout.html +++ b/vision/docs/_templates/layout.html @@ -1,3 +1,4 @@ + {% extends "!layout.html" %} {%- block content %} {%- if theme_fixed_sidebar|lower == 'true' %} diff --git a/vision/google/cloud/vision_v1/gapic/product_search_client.py b/vision/google/cloud/vision_v1/gapic/product_search_client.py index 6cb156400e18..904c6922ca74 100644 --- a/vision/google/cloud/vision_v1/gapic/product_search_client.py +++ b/vision/google/cloud/vision_v1/gapic/product_search_client.py @@ -96,7 +96,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @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, @@ -105,7 +110,12 @@ def location_path(cls, project, location): @classmethod def product_path(cls, project, location, product): - """Return a fully-qualified product string.""" + """DEPRECATED. Return a fully-qualified product string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/products/{product}", project=project, @@ -115,7 +125,12 @@ def product_path(cls, project, location, product): @classmethod def product_set_path(cls, project, location, product_set): - """Return a fully-qualified product_set string.""" + """DEPRECATED. Return a fully-qualified product_set string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/productSets/{product_set}", project=project, @@ -125,7 +140,12 @@ def product_set_path(cls, project, location, product_set): @classmethod def reference_image_path(cls, project, location, product, reference_image): - """Return a fully-qualified reference_image string.""" + """DEPRECATED. Return a fully-qualified reference_image string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}", project=project, diff --git a/vision/google/cloud/vision_v1p3beta1/gapic/product_search_client.py b/vision/google/cloud/vision_v1p3beta1/gapic/product_search_client.py index 7970722ee257..d7f99dce095c 100644 --- a/vision/google/cloud/vision_v1p3beta1/gapic/product_search_client.py +++ b/vision/google/cloud/vision_v1p3beta1/gapic/product_search_client.py @@ -93,7 +93,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @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, @@ -102,7 +107,12 @@ def location_path(cls, project, location): @classmethod def product_path(cls, project, location, product): - """Return a fully-qualified product string.""" + """DEPRECATED. Return a fully-qualified product string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/products/{product}", project=project, @@ -112,7 +122,12 @@ def product_path(cls, project, location, product): @classmethod def product_set_path(cls, project, location, product_set): - """Return a fully-qualified product_set string.""" + """DEPRECATED. Return a fully-qualified product_set string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/productSets/{product_set}", project=project, @@ -122,7 +137,12 @@ def product_set_path(cls, project, location, product_set): @classmethod def reference_image_path(cls, project, location, product, reference_image): - """Return a fully-qualified reference_image string.""" + """DEPRECATED. Return a fully-qualified reference_image string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}", project=project, diff --git a/vision/google/cloud/vision_v1p4beta1/gapic/product_search_client.py b/vision/google/cloud/vision_v1p4beta1/gapic/product_search_client.py index 4d2197c8a0eb..78132f4b21c0 100644 --- a/vision/google/cloud/vision_v1p4beta1/gapic/product_search_client.py +++ b/vision/google/cloud/vision_v1p4beta1/gapic/product_search_client.py @@ -94,7 +94,12 @@ def from_service_account_file(cls, filename, *args, **kwargs): @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, @@ -103,7 +108,12 @@ def location_path(cls, project, location): @classmethod def product_path(cls, project, location, product): - """Return a fully-qualified product string.""" + """DEPRECATED. Return a fully-qualified product string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/products/{product}", project=project, @@ -113,7 +123,12 @@ def product_path(cls, project, location, product): @classmethod def product_set_path(cls, project, location, product_set): - """Return a fully-qualified product_set string.""" + """DEPRECATED. Return a fully-qualified product_set string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/productSets/{product_set}", project=project, @@ -123,7 +138,12 @@ def product_set_path(cls, project, location, product_set): @classmethod def reference_image_path(cls, project, location, product, reference_image): - """Return a fully-qualified reference_image string.""" + """DEPRECATED. Return a fully-qualified reference_image string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}", project=project, diff --git a/vision/synth.metadata b/vision/synth.metadata index 3e9809cfe9f0..c155b910f4d3 100644 --- a/vision/synth.metadata +++ b/vision/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-06T13:44:16.072107Z", + "updateTime": "2019-11-20T13:38:24.545550Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.0", - "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" + "version": "0.42.1", + "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5691fcb7c1a926b52577aa1834f31d9c50efda54", - "internalRef": "278731899" + "sha": "16543773103e2619d2b5f52456264de5bb9be104", + "internalRef": "281423227" } }, {