Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit cf0a714

Browse files
chore: use gapic-generator-python 0.51.2 (#117)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 5b9d697 commit cf0a714

File tree

12 files changed

+80
-80
lines changed

12 files changed

+80
-80
lines changed

google/cloud/redis_v1/services/cloud_redis/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ async def failover_instance(
872872
timeout: float = None,
873873
metadata: Sequence[Tuple[str, str]] = (),
874874
) -> operation_async.AsyncOperation:
875-
r"""Initiates a failover of the main node to current
875+
r"""Initiates a failover of the master node to current
876876
replica node for a specific STANDARD tier Cloud
877877
Memorystore for Redis instance.
878878

google/cloud/redis_v1/services/cloud_redis/client.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from google.api_core import client_options as client_options_lib # type: ignore
@@ -376,7 +376,7 @@ def __init__(
376376

377377
def list_instances(
378378
self,
379-
request: cloud_redis.ListInstancesRequest = None,
379+
request: Union[cloud_redis.ListInstancesRequest, dict] = None,
380380
*,
381381
parent: str = None,
382382
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -395,7 +395,7 @@ def list_instances(
395395
are aggregated.
396396
397397
Args:
398-
request (google.cloud.redis_v1.types.ListInstancesRequest):
398+
request (Union[google.cloud.redis_v1.types.ListInstancesRequest, dict]):
399399
The request object. Request for
400400
[ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
401401
parent (str):
@@ -467,7 +467,7 @@ def list_instances(
467467

468468
def get_instance(
469469
self,
470-
request: cloud_redis.GetInstanceRequest = None,
470+
request: Union[cloud_redis.GetInstanceRequest, dict] = None,
471471
*,
472472
name: str = None,
473473
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -477,7 +477,7 @@ def get_instance(
477477
r"""Gets the details of a specific Redis instance.
478478
479479
Args:
480-
request (google.cloud.redis_v1.types.GetInstanceRequest):
480+
request (Union[google.cloud.redis_v1.types.GetInstanceRequest, dict]):
481481
The request object. Request for
482482
[GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
483483
name (str):
@@ -537,7 +537,7 @@ def get_instance(
537537

538538
def create_instance(
539539
self,
540-
request: cloud_redis.CreateInstanceRequest = None,
540+
request: Union[cloud_redis.CreateInstanceRequest, dict] = None,
541541
*,
542542
parent: str = None,
543543
instance_id: str = None,
@@ -562,7 +562,7 @@ def create_instance(
562562
hours, so there is no need to call DeleteOperation.
563563
564564
Args:
565-
request (google.cloud.redis_v1.types.CreateInstanceRequest):
565+
request (Union[google.cloud.redis_v1.types.CreateInstanceRequest, dict]):
566566
The request object. Request for
567567
[CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
568568
parent (str):
@@ -659,7 +659,7 @@ def create_instance(
659659

660660
def update_instance(
661661
self,
662-
request: cloud_redis.UpdateInstanceRequest = None,
662+
request: Union[cloud_redis.UpdateInstanceRequest, dict] = None,
663663
*,
664664
update_mask: field_mask_pb2.FieldMask = None,
665665
instance: cloud_redis.Instance = None,
@@ -675,7 +675,7 @@ def update_instance(
675675
there is no need to call DeleteOperation.
676676
677677
Args:
678-
request (google.cloud.redis_v1.types.UpdateInstanceRequest):
678+
request (Union[google.cloud.redis_v1.types.UpdateInstanceRequest, dict]):
679679
The request object. Request for
680680
[UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
681681
update_mask (google.protobuf.field_mask_pb2.FieldMask):
@@ -765,7 +765,7 @@ def update_instance(
765765

766766
def upgrade_instance(
767767
self,
768-
request: cloud_redis.UpgradeInstanceRequest = None,
768+
request: Union[cloud_redis.UpgradeInstanceRequest, dict] = None,
769769
*,
770770
name: str = None,
771771
redis_version: str = None,
@@ -777,7 +777,7 @@ def upgrade_instance(
777777
specified in the request.
778778
779779
Args:
780-
request (google.cloud.redis_v1.types.UpgradeInstanceRequest):
780+
request (Union[google.cloud.redis_v1.types.UpgradeInstanceRequest, dict]):
781781
The request object. Request for
782782
[UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].
783783
name (str):
@@ -859,7 +859,7 @@ def upgrade_instance(
859859

860860
def import_instance(
861861
self,
862-
request: cloud_redis.ImportInstanceRequest = None,
862+
request: Union[cloud_redis.ImportInstanceRequest, dict] = None,
863863
*,
864864
name: str = None,
865865
input_config: cloud_redis.InputConfig = None,
@@ -878,7 +878,7 @@ def import_instance(
878878
few hours, so there is no need to call DeleteOperation.
879879
880880
Args:
881-
request (google.cloud.redis_v1.types.ImportInstanceRequest):
881+
request (Union[google.cloud.redis_v1.types.ImportInstanceRequest, dict]):
882882
The request object. Request for
883883
[Import][google.cloud.redis.v1.CloudRedis.ImportInstance].
884884
name (str):
@@ -960,7 +960,7 @@ def import_instance(
960960

961961
def export_instance(
962962
self,
963-
request: cloud_redis.ExportInstanceRequest = None,
963+
request: Union[cloud_redis.ExportInstanceRequest, dict] = None,
964964
*,
965965
name: str = None,
966966
output_config: cloud_redis.OutputConfig = None,
@@ -975,7 +975,7 @@ def export_instance(
975975
few hours, so there is no need to call DeleteOperation.
976976
977977
Args:
978-
request (google.cloud.redis_v1.types.ExportInstanceRequest):
978+
request (Union[google.cloud.redis_v1.types.ExportInstanceRequest, dict]):
979979
The request object. Request for
980980
[Export][google.cloud.redis.v1.CloudRedis.ExportInstance].
981981
name (str):
@@ -1057,20 +1057,20 @@ def export_instance(
10571057

10581058
def failover_instance(
10591059
self,
1060-
request: cloud_redis.FailoverInstanceRequest = None,
1060+
request: Union[cloud_redis.FailoverInstanceRequest, dict] = None,
10611061
*,
10621062
name: str = None,
10631063
data_protection_mode: cloud_redis.FailoverInstanceRequest.DataProtectionMode = None,
10641064
retry: retries.Retry = gapic_v1.method.DEFAULT,
10651065
timeout: float = None,
10661066
metadata: Sequence[Tuple[str, str]] = (),
10671067
) -> operation.Operation:
1068-
r"""Initiates a failover of the main node to current
1068+
r"""Initiates a failover of the master node to current
10691069
replica node for a specific STANDARD tier Cloud
10701070
Memorystore for Redis instance.
10711071
10721072
Args:
1073-
request (google.cloud.redis_v1.types.FailoverInstanceRequest):
1073+
request (Union[google.cloud.redis_v1.types.FailoverInstanceRequest, dict]):
10741074
The request object. Request for
10751075
[Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].
10761076
name (str):
@@ -1153,7 +1153,7 @@ def failover_instance(
11531153

11541154
def delete_instance(
11551155
self,
1156-
request: cloud_redis.DeleteInstanceRequest = None,
1156+
request: Union[cloud_redis.DeleteInstanceRequest, dict] = None,
11571157
*,
11581158
name: str = None,
11591159
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1164,7 +1164,7 @@ def delete_instance(
11641164
serving and data is deleted.
11651165
11661166
Args:
1167-
request (google.cloud.redis_v1.types.DeleteInstanceRequest):
1167+
request (Union[google.cloud.redis_v1.types.DeleteInstanceRequest, dict]):
11681168
The request object. Request for
11691169
[DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
11701170
name (str):

google/cloud/redis_v1/services/cloud_redis/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(
117117
**scopes_kwargs, quota_project_id=quota_project_id
118118
)
119119

120-
# If the credentials is service account credentials, then always try to use self signed JWT.
120+
# If the credentials are service account credentials, then always try to use self signed JWT.
121121
if (
122122
always_use_jwt_access
123123
and isinstance(credentials, service_account.Credentials)

google/cloud/redis_v1/services/cloud_redis/transports/grpc.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ def __init__(
102102
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
103103
If provided, it overrides the ``host`` argument and tries to create
104104
a mutual TLS channel with client SSL credentials from
105-
``client_cert_source`` or applicatin default SSL credentials.
105+
``client_cert_source`` or application default SSL credentials.
106106
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
107107
Deprecated. A callback to provide client SSL certificate bytes and
108108
private key bytes, both in PEM format. It is ignored if
109109
``api_mtls_endpoint`` is None.
110110
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
111-
for grpc channel. It is ignored if ``channel`` is provided.
111+
for the grpc channel. It is ignored if ``channel`` is provided.
112112
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
113113
A callback to provide client certificate bytes and private key bytes,
114-
both in PEM format. It is used to configure mutual TLS channel. It is
114+
both in PEM format. It is used to configure a mutual TLS channel. It is
115115
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
116116
quota_project_id (Optional[str]): An optional project to use for billing
117117
and quota.
@@ -492,7 +492,7 @@ def failover_instance(
492492
) -> Callable[[cloud_redis.FailoverInstanceRequest], operations_pb2.Operation]:
493493
r"""Return a callable for the failover instance method over gRPC.
494494
495-
Initiates a failover of the main node to current
495+
Initiates a failover of the master node to current
496496
replica node for a specific STANDARD tier Cloud
497497
Memorystore for Redis instance.
498498

google/cloud/redis_v1/services/cloud_redis/transports/grpc_asyncio.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,16 @@ def __init__(
149149
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
150150
If provided, it overrides the ``host`` argument and tries to create
151151
a mutual TLS channel with client SSL credentials from
152-
``client_cert_source`` or applicatin default SSL credentials.
152+
``client_cert_source`` or application default SSL credentials.
153153
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
154154
Deprecated. A callback to provide client SSL certificate bytes and
155155
private key bytes, both in PEM format. It is ignored if
156156
``api_mtls_endpoint`` is None.
157157
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
158-
for grpc channel. It is ignored if ``channel`` is provided.
158+
for the grpc channel. It is ignored if ``channel`` is provided.
159159
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
160160
A callback to provide client certificate bytes and private key bytes,
161-
both in PEM format. It is used to configure mutual TLS channel. It is
161+
both in PEM format. It is used to configure a mutual TLS channel. It is
162162
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
163163
quota_project_id (Optional[str]): An optional project to use for billing
164164
and quota.
@@ -509,7 +509,7 @@ def failover_instance(
509509
]:
510510
r"""Return a callable for the failover instance method over gRPC.
511511
512-
Initiates a failover of the main node to current
512+
Initiates a failover of the master node to current
513513
replica node for a specific STANDARD tier Cloud
514514
Memorystore for Redis instance.
515515

google/cloud/redis_v1beta1/services/cloud_redis/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ async def failover_instance(
873873
timeout: float = None,
874874
metadata: Sequence[Tuple[str, str]] = (),
875875
) -> operation_async.AsyncOperation:
876-
r"""Initiates a failover of the main node to current
876+
r"""Initiates a failover of the master node to current
877877
replica node for a specific STANDARD tier Cloud
878878
Memorystore for Redis instance.
879879

0 commit comments

Comments
 (0)