Skip to content

Commit 4182805

Browse files
yoshi-automationtseaver
authored andcommitted
Update client config (via sync). (googleapis#9265)
1 parent 5f0bc11 commit 4182805

13 files changed

Lines changed: 1164 additions & 950 deletions

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

Lines changed: 180 additions & 182 deletions
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@
1717
}
1818
},
1919
"methods": {
20-
"ListInstances": {
20+
"CreateInstance": {
2121
"timeout_millis": 60000,
2222
"retry_codes_name": "non_idempotent",
2323
"retry_params_name": "default",
2424
},
25-
"GetInstance": {
25+
"UpdateInstance": {
2626
"timeout_millis": 60000,
2727
"retry_codes_name": "non_idempotent",
2828
"retry_params_name": "default",
2929
},
30-
"CreateInstance": {
30+
"ListInstances": {
3131
"timeout_millis": 60000,
32-
"retry_codes_name": "non_idempotent",
32+
"retry_codes_name": "idempotent",
3333
"retry_params_name": "default",
3434
},
35-
"UpdateInstance": {
35+
"GetInstance": {
3636
"timeout_millis": 60000,
37-
"retry_codes_name": "non_idempotent",
37+
"retry_codes_name": "idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"ImportInstance": {

redis/google/cloud/redis_v1/gapic/transports/cloud_redis_grpc_transport.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -113,40 +113,6 @@ def channel(self):
113113
"""
114114
return self._channel
115115

116-
@property
117-
def list_instances(self):
118-
"""Return the gRPC stub for :meth:`CloudRedisClient.list_instances`.
119-
120-
Lists all Redis instances owned by a project in either the specified
121-
location (region) or all locations.
122-
123-
The location should have the following format:
124-
125-
- ``projects/{project_id}/locations/{location_id}``
126-
127-
If ``location_id`` is specified as ``-`` (wildcard), then all regions
128-
available to the project are queried, and the results are aggregated.
129-
130-
Returns:
131-
Callable: A callable which accepts the appropriate
132-
deserialized request object and returns a
133-
deserialized response object.
134-
"""
135-
return self._stubs["cloud_redis_stub"].ListInstances
136-
137-
@property
138-
def get_instance(self):
139-
"""Return the gRPC stub for :meth:`CloudRedisClient.get_instance`.
140-
141-
Gets the details of a specific Redis instance.
142-
143-
Returns:
144-
Callable: A callable which accepts the appropriate
145-
deserialized request object and returns a
146-
deserialized response object.
147-
"""
148-
return self._stubs["cloud_redis_stub"].GetInstance
149-
150116
@property
151117
def create_instance(self):
152118
"""Return the gRPC stub for :meth:`CloudRedisClient.create_instance`.
@@ -189,6 +155,40 @@ def update_instance(self):
189155
"""
190156
return self._stubs["cloud_redis_stub"].UpdateInstance
191157

158+
@property
159+
def list_instances(self):
160+
"""Return the gRPC stub for :meth:`CloudRedisClient.list_instances`.
161+
162+
Lists all Redis instances owned by a project in either the specified
163+
location (region) or all locations.
164+
165+
The location should have the following format:
166+
167+
- ``projects/{project_id}/locations/{location_id}``
168+
169+
If ``location_id`` is specified as ``-`` (wildcard), then all regions
170+
available to the project are queried, and the results are aggregated.
171+
172+
Returns:
173+
Callable: A callable which accepts the appropriate
174+
deserialized request object and returns a
175+
deserialized response object.
176+
"""
177+
return self._stubs["cloud_redis_stub"].ListInstances
178+
179+
@property
180+
def get_instance(self):
181+
"""Return the gRPC stub for :meth:`CloudRedisClient.get_instance`.
182+
183+
Gets the details of a specific Redis instance.
184+
185+
Returns:
186+
Callable: A callable which accepts the appropriate
187+
deserialized request object and returns a
188+
deserialized response object.
189+
"""
190+
return self._stubs["cloud_redis_stub"].GetInstance
191+
192192
@property
193193
def import_instance(self):
194194
"""Return the gRPC stub for :meth:`CloudRedisClient.import_instance`.

0 commit comments

Comments
 (0)