Skip to content

Commit bf79cb5

Browse files
[CHANGE ME] Re-generated redis to pick up changes in the API or client library generator.
1 parent 15d4bb6 commit bf79cb5

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

redis/google/cloud/redis_v1/gapic/cloud_redis_client.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
100100

101101
@classmethod
102102
def instance_path(cls, project, location, instance):
103-
"""Return a fully-qualified instance string."""
103+
"""DEPRECATED. Return a fully-qualified instance string."""
104+
warnings.warn(
105+
"Resource name helper functions are deprecated.",
106+
PendingDeprecationWarning,
107+
stacklevel=1,
108+
)
104109
return google.api_core.path_template.expand(
105110
"projects/{project}/locations/{location}/instances/{instance}",
106111
project=project,
@@ -110,7 +115,12 @@ def instance_path(cls, project, location, instance):
110115

111116
@classmethod
112117
def location_path(cls, project, location):
113-
"""Return a fully-qualified location string."""
118+
"""DEPRECATED. Return a fully-qualified location string."""
119+
warnings.warn(
120+
"Resource name helper functions are deprecated.",
121+
PendingDeprecationWarning,
122+
stacklevel=1,
123+
)
114124
return google.api_core.path_template.expand(
115125
"projects/{project}/locations/{location}",
116126
project=project,

redis/google/cloud/redis_v1beta1/gapic/cloud_redis_client.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
101101

102102
@classmethod
103103
def instance_path(cls, project, location, instance):
104-
"""Return a fully-qualified instance string."""
104+
"""DEPRECATED. Return a fully-qualified instance string."""
105+
warnings.warn(
106+
"Resource name helper functions are deprecated.",
107+
PendingDeprecationWarning,
108+
stacklevel=1,
109+
)
105110
return google.api_core.path_template.expand(
106111
"projects/{project}/locations/{location}/instances/{instance}",
107112
project=project,
@@ -111,7 +116,12 @@ def instance_path(cls, project, location, instance):
111116

112117
@classmethod
113118
def location_path(cls, project, location):
114-
"""Return a fully-qualified location string."""
119+
"""DEPRECATED. Return a fully-qualified location string."""
120+
warnings.warn(
121+
"Resource name helper functions are deprecated.",
122+
PendingDeprecationWarning,
123+
stacklevel=1,
124+
)
115125
return google.api_core.path_template.expand(
116126
"projects/{project}/locations/{location}",
117127
project=project,

redis/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-11-12T13:36:07.423028Z",
2+
"updateTime": "2019-11-19T13:30:31.987393Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.41.1",
8-
"dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e"
7+
"version": "0.42.1",
8+
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8",
16-
"internalRef": "279774957"
15+
"sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a",
16+
"internalRef": "281088257"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)