Skip to content

Commit

Permalink
fix(redis): update client config (via synth) (#9424)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and tseaver committed Oct 9, 2019
1 parent c79ebe2 commit b372202
Show file tree
Hide file tree
Showing 9 changed files with 648 additions and 648 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": {
"CreateInstance": {
"ListInstances": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateInstance": {
"GetInstance": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"ListInstances": {
"CreateInstance": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetInstance": {
"UpdateInstance": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"ImportInstance": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,80 +114,80 @@ def channel(self):
return self._channel

@property
def create_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.create_instance`.
def list_instances(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.list_instances`.
Creates a Redis instance based on the specified tier and memory size.
Lists all Redis instances owned by a project in either the specified
location (region) or all locations.
By default, the instance is accessible from the project's `default
network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__.
The location should have the following format:
The creation is executed asynchronously and callers may check the
returned operation to track its progress. Once the operation is
completed the Redis instance will be fully functional. Completed
longrunning.Operation will contain the new instance object in the
response field.
- ``projects/{project_id}/locations/{location_id}``
The returned operation is automatically deleted after a few hours, so
there is no need to call DeleteOperation.
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"].CreateInstance
return self._stubs["cloud_redis_stub"].ListInstances

@property
def update_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.update_instance`.
Updates the metadata and configuration of a specific Redis instance.
def get_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.get_instance`.
Completed longrunning.Operation will contain the new instance object
in the response field. The returned operation is automatically deleted
after a few hours, so there is no need to call DeleteOperation.
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"].UpdateInstance
return self._stubs["cloud_redis_stub"].GetInstance

@property
def list_instances(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.list_instances`.
def create_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.create_instance`.
Lists all Redis instances owned by a project in either the specified
location (region) or all locations.
Creates a Redis instance based on the specified tier and memory size.
The location should have the following format:
By default, the instance is accessible from the project's `default
network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__.
- ``projects/{project_id}/locations/{location_id}``
The creation is executed asynchronously and callers may check the
returned operation to track its progress. Once the operation is
completed the Redis instance will be fully functional. Completed
longrunning.Operation will contain the new instance object in the
response field.
If ``location_id`` is specified as ``-`` (wildcard), then all regions
available to the project are queried, and the results are aggregated.
The returned operation is automatically deleted after a few hours, so
there is no need to call DeleteOperation.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["cloud_redis_stub"].ListInstances
return self._stubs["cloud_redis_stub"].CreateInstance

@property
def get_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.get_instance`.
def update_instance(self):
"""Return the gRPC stub for :meth:`CloudRedisClient.update_instance`.
Gets the details of a specific Redis instance.
Updates the metadata and configuration of a specific Redis instance.
Completed longrunning.Operation will contain the new instance object
in the response field. The returned operation is automatically deleted
after a few hours, so there is no need to call DeleteOperation.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["cloud_redis_stub"].GetInstance
return self._stubs["cloud_redis_stub"].UpdateInstance

@property
def import_instance(self):
Expand Down
Loading

0 comments on commit b372202

Please sign in to comment.