Skip to content

Commit

Permalink
Update client config (via sync). (#9265)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and tseaver committed Sep 24, 2019
1 parent dc85bd8 commit 4fb3b6a
Show file tree
Hide file tree
Showing 13 changed files with 1,164 additions and 950 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@
}
},
"methods": {
"ListInstances": {
"CreateInstance": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetInstance": {
"UpdateInstance": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"CreateInstance": {
"ListInstances": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateInstance": {
"GetInstance": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ImportInstance": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,40 +113,6 @@ def channel(self):
"""
return self._channel

@property
def list_instances(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.list_instances`.
Lists all Redis instances owned by a project in either the specified
location (region) or all locations.
The location should have the following format:
- ``projects/{project_id}/locations/{location_id}``
If ``location_id`` is specified as ``-`` (wildcard), then all regions
available to the project are queried, and the results are aggregated.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["cloud_redis_stub"].ListInstances

@property
def get_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.get_instance`.
Gets the details of a specific Redis instance.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["cloud_redis_stub"].GetInstance

@property
def create_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.create_instance`.
Expand Down Expand Up @@ -189,6 +155,40 @@ def update_instance(self):
"""
return self._stubs["cloud_redis_stub"].UpdateInstance

@property
def list_instances(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.list_instances`.
Lists all Redis instances owned by a project in either the specified
location (region) or all locations.
The location should have the following format:
- ``projects/{project_id}/locations/{location_id}``
If ``location_id`` is specified as ``-`` (wildcard), then all regions
available to the project are queried, and the results are aggregated.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["cloud_redis_stub"].ListInstances

@property
def get_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.get_instance`.
Gets the details of a specific Redis instance.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["cloud_redis_stub"].GetInstance

@property
def import_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.import_instance`.
Expand Down
Loading

0 comments on commit 4fb3b6a

Please sign in to comment.