@@ -56,6 +56,7 @@ class CloudRedisClient(object):
5656 * Each project has a collection of available locations, named: ``/locations/*``
5757 * Each location has a collection of Redis instances, named: ``/instances/*``
5858 * As such, Redis instances are resources of the form:
59+
5960 ``/projects/{project_id}/locations/{location_id}/instances/{instance_id}``
6061
6162 Note that location_id must be refering to a GCP ``region``; for example:
@@ -235,10 +236,7 @@ def list_instances(self,
235236 ... pass
236237
237238 Args:
238- parent (str): Required. The resource name of the instance location using the form:
239- ::
240-
241- `projects/{project_id}/locations/{location_id}`
239+ parent (str): Required. The resource name of the instance location using the form ``projects/{project_id}/locations/{location_id}``
242240 where ``location_id`` refers to a GCP region
243241 page_size (int): The maximum number of resources contained in the
244242 underlying API response. If page streaming is performed per-
@@ -314,10 +312,7 @@ def get_instance(self,
314312 >>> response = client.get_instance(name)
315313
316314 Args:
317- name (str): Required. Redis instance resource name using the form:
318- ::
319-
320- `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
315+ name (str): Required. Redis instance resource name using the form ``projects/{project_id}/locations/{location_id}/instances/{instance_id}```
321316 where ``location_id`` refers to a GCP region
322317 retry (Optional[google.api_core.retry.Retry]): A retry object used
323318 to retry requests. If ``None`` is specified, requests will not
@@ -398,14 +393,10 @@ def create_instance(self,
398393 >>> metadata = response.metadata()
399394
400395 Args:
401- parent (str): Required. The resource name of the instance location using the form:
402- ::
403-
404- `projects/{project_id}/locations/{location_id}`
396+ parent (str): Required. The resource name of the instance location using the form ``projects/{project_id}/locations/{location_id}``
405397 where ``location_id`` refers to a GCP region
406398 instance_id (str): Required. The logical name of the Redis instance in the customer project
407399 with the following restrictions:
408-
409400 * Must contain only lowercase letters, numbers, and hyphens.
410401 * Must start with a letter.
411402 * Must be between 1-40 characters.
@@ -498,12 +489,7 @@ def update_instance(self,
498489 Args:
499490 update_mask (Union[dict, ~google.cloud.redis_v1.types.FieldMask]): Required. Mask of fields to update. At least one path must be supplied in
500491 this field. The elements of the repeated paths field may only include these
501- fields from ``Instance``:
502-
503- * ``displayName``
504- * ``labels``
505- * ``memorySizeGb``
506- * ``redisConfig``
492+ fields from ``Instance``: ``displayName``, ``labels``, ``memorySizeGb``, and ``redisConfig``.
507493 If a dict is provided, it must be of the same form as the protobuf
508494 message :class:`~google.cloud.redis_v1.types.FieldMask`
509495 instance (Union[dict, ~google.cloud.redis_v1.types.Instance]): Required. Update description.
@@ -581,10 +567,7 @@ def delete_instance(self,
581567 >>> metadata = response.metadata()
582568
583569 Args:
584- name (str): Required. Redis instance resource name using the form:
585- ::
586-
587- `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
570+ name (str): Required. Redis instance resource name using the form ``projects/{project_id}/locations/{location_id}/instances/{instance_id}```
588571 where ``location_id`` refers to a GCP region
589572 retry (Optional[google.api_core.retry.Retry]): A retry object used
590573 to retry requests. If ``None`` is specified, requests will not
0 commit comments