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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#104)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 24, 2021
1 parent fb72cd1 commit c56fbee
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 63 deletions.
30 changes: 15 additions & 15 deletions google/cloud/memcache_v1/services/cloud_memcache/client.py
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
Expand Down Expand Up @@ -374,7 +374,7 @@ def __init__(

def list_instances(
self,
request: cloud_memcache.ListInstancesRequest = None,
request: Union[cloud_memcache.ListInstancesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -384,7 +384,7 @@ def list_instances(
r"""Lists Instances in a given location.
Args:
request (google.cloud.memcache_v1.types.ListInstancesRequest):
request (Union[google.cloud.memcache_v1.types.ListInstancesRequest, dict]):
The request object. Request for
[ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
parent (str):
Expand Down Expand Up @@ -456,7 +456,7 @@ def list_instances(

def get_instance(
self,
request: cloud_memcache.GetInstanceRequest = None,
request: Union[cloud_memcache.GetInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -466,7 +466,7 @@ def get_instance(
r"""Gets details of a single Instance.
Args:
request (google.cloud.memcache_v1.types.GetInstanceRequest):
request (Union[google.cloud.memcache_v1.types.GetInstanceRequest, dict]):
The request object. Request for
[GetInstance][google.cloud.memcache.v1.CloudMemcache.GetInstance].
name (str):
Expand Down Expand Up @@ -527,7 +527,7 @@ def get_instance(

def create_instance(
self,
request: cloud_memcache.CreateInstanceRequest = None,
request: Union[cloud_memcache.CreateInstanceRequest, dict] = None,
*,
parent: str = None,
instance: cloud_memcache.Instance = None,
Expand All @@ -539,7 +539,7 @@ def create_instance(
r"""Creates a new Instance in a given location.
Args:
request (google.cloud.memcache_v1.types.CreateInstanceRequest):
request (Union[google.cloud.memcache_v1.types.CreateInstanceRequest, dict]):
The request object. Request for
[CreateInstance][google.cloud.memcache.v1.CloudMemcache.CreateInstance].
parent (str):
Expand Down Expand Up @@ -638,7 +638,7 @@ def create_instance(

def update_instance(
self,
request: cloud_memcache.UpdateInstanceRequest = None,
request: Union[cloud_memcache.UpdateInstanceRequest, dict] = None,
*,
instance: cloud_memcache.Instance = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -650,7 +650,7 @@ def update_instance(
location.
Args:
request (google.cloud.memcache_v1.types.UpdateInstanceRequest):
request (Union[google.cloud.memcache_v1.types.UpdateInstanceRequest, dict]):
The request object. Request for
[UpdateInstance][google.cloud.memcache.v1.CloudMemcache.UpdateInstance].
instance (google.cloud.memcache_v1.types.Instance):
Expand Down Expand Up @@ -733,7 +733,7 @@ def update_instance(

def update_parameters(
self,
request: cloud_memcache.UpdateParametersRequest = None,
request: Union[cloud_memcache.UpdateParametersRequest, dict] = None,
*,
name: str = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -748,7 +748,7 @@ def update_parameters(
apply the parameters to nodes of the Memcached Instance.
Args:
request (google.cloud.memcache_v1.types.UpdateParametersRequest):
request (Union[google.cloud.memcache_v1.types.UpdateParametersRequest, dict]):
The request object. Request for
[UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].
name (str):
Expand Down Expand Up @@ -836,7 +836,7 @@ def update_parameters(

def delete_instance(
self,
request: cloud_memcache.DeleteInstanceRequest = None,
request: Union[cloud_memcache.DeleteInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -846,7 +846,7 @@ def delete_instance(
r"""Deletes a single Instance.
Args:
request (google.cloud.memcache_v1.types.DeleteInstanceRequest):
request (Union[google.cloud.memcache_v1.types.DeleteInstanceRequest, dict]):
The request object. Request for
[DeleteInstance][google.cloud.memcache.v1.CloudMemcache.DeleteInstance].
name (str):
Expand Down Expand Up @@ -930,7 +930,7 @@ def delete_instance(

def apply_parameters(
self,
request: cloud_memcache.ApplyParametersRequest = None,
request: Union[cloud_memcache.ApplyParametersRequest, dict] = None,
*,
name: str = None,
node_ids: Sequence[str] = None,
Expand All @@ -944,7 +944,7 @@ def apply_parameters(
parameters for the Memcached Instance.
Args:
request (google.cloud.memcache_v1.types.ApplyParametersRequest):
request (Union[google.cloud.memcache_v1.types.ApplyParametersRequest, dict]):
The request object. Request for
[ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
name (str):
Expand Down
Expand Up @@ -117,7 +117,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Expand Up @@ -100,16 +100,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Expand Up @@ -147,16 +147,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
34 changes: 17 additions & 17 deletions google/cloud/memcache_v1beta2/services/cloud_memcache/client.py
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
Expand Down Expand Up @@ -374,7 +374,7 @@ def __init__(

def list_instances(
self,
request: cloud_memcache.ListInstancesRequest = None,
request: Union[cloud_memcache.ListInstancesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -384,7 +384,7 @@ def list_instances(
r"""Lists Instances in a given location.
Args:
request (google.cloud.memcache_v1beta2.types.ListInstancesRequest):
request (Union[google.cloud.memcache_v1beta2.types.ListInstancesRequest, dict]):
The request object. Request for
[ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
parent (str):
Expand Down Expand Up @@ -456,7 +456,7 @@ def list_instances(

def get_instance(
self,
request: cloud_memcache.GetInstanceRequest = None,
request: Union[cloud_memcache.GetInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -466,7 +466,7 @@ def get_instance(
r"""Gets details of a single Instance.
Args:
request (google.cloud.memcache_v1beta2.types.GetInstanceRequest):
request (Union[google.cloud.memcache_v1beta2.types.GetInstanceRequest, dict]):
The request object. Request for
[GetInstance][google.cloud.memcache.v1beta2.CloudMemcache.GetInstance].
name (str):
Expand Down Expand Up @@ -527,7 +527,7 @@ def get_instance(

def create_instance(
self,
request: cloud_memcache.CreateInstanceRequest = None,
request: Union[cloud_memcache.CreateInstanceRequest, dict] = None,
*,
parent: str = None,
instance_id: str = None,
Expand All @@ -539,7 +539,7 @@ def create_instance(
r"""Creates a new Instance in a given location.
Args:
request (google.cloud.memcache_v1beta2.types.CreateInstanceRequest):
request (Union[google.cloud.memcache_v1beta2.types.CreateInstanceRequest, dict]):
The request object. Request for
[CreateInstance][google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance].
parent (str):
Expand Down Expand Up @@ -639,7 +639,7 @@ def create_instance(

def update_instance(
self,
request: cloud_memcache.UpdateInstanceRequest = None,
request: Union[cloud_memcache.UpdateInstanceRequest, dict] = None,
*,
update_mask: field_mask_pb2.FieldMask = None,
resource: cloud_memcache.Instance = None,
Expand All @@ -651,7 +651,7 @@ def update_instance(
location.
Args:
request (google.cloud.memcache_v1beta2.types.UpdateInstanceRequest):
request (Union[google.cloud.memcache_v1beta2.types.UpdateInstanceRequest, dict]):
The request object. Request for
[UpdateInstance][google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance].
update_mask (google.protobuf.field_mask_pb2.FieldMask):
Expand Down Expand Up @@ -735,7 +735,7 @@ def update_instance(

def update_parameters(
self,
request: cloud_memcache.UpdateParametersRequest = None,
request: Union[cloud_memcache.UpdateParametersRequest, dict] = None,
*,
name: str = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -750,7 +750,7 @@ def update_parameters(
of the Memcached instance.
Args:
request (google.cloud.memcache_v1beta2.types.UpdateParametersRequest):
request (Union[google.cloud.memcache_v1beta2.types.UpdateParametersRequest, dict]):
The request object. Request for
[UpdateParameters][google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters].
name (str):
Expand Down Expand Up @@ -839,7 +839,7 @@ def update_parameters(

def delete_instance(
self,
request: cloud_memcache.DeleteInstanceRequest = None,
request: Union[cloud_memcache.DeleteInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -849,7 +849,7 @@ def delete_instance(
r"""Deletes a single Instance.
Args:
request (google.cloud.memcache_v1beta2.types.DeleteInstanceRequest):
request (Union[google.cloud.memcache_v1beta2.types.DeleteInstanceRequest, dict]):
The request object. Request for
[DeleteInstance][google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance].
name (str):
Expand Down Expand Up @@ -933,7 +933,7 @@ def delete_instance(

def apply_parameters(
self,
request: cloud_memcache.ApplyParametersRequest = None,
request: Union[cloud_memcache.ApplyParametersRequest, dict] = None,
*,
name: str = None,
node_ids: Sequence[str] = None,
Expand All @@ -947,7 +947,7 @@ def apply_parameters(
Memcached Instance.
Args:
request (google.cloud.memcache_v1beta2.types.ApplyParametersRequest):
request (Union[google.cloud.memcache_v1beta2.types.ApplyParametersRequest, dict]):
The request object. Request for
[ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters].
name (str):
Expand Down Expand Up @@ -1040,7 +1040,7 @@ def apply_parameters(

def apply_software_update(
self,
request: cloud_memcache.ApplySoftwareUpdateRequest = None,
request: Union[cloud_memcache.ApplySoftwareUpdateRequest, dict] = None,
*,
instance: str = None,
node_ids: Sequence[str] = None,
Expand All @@ -1053,7 +1053,7 @@ def apply_software_update(
Instance.
Args:
request (google.cloud.memcache_v1beta2.types.ApplySoftwareUpdateRequest):
request (Union[google.cloud.memcache_v1beta2.types.ApplySoftwareUpdateRequest, dict]):
The request object. Request for
[ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
instance (str):
Expand Down
Expand Up @@ -117,7 +117,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Expand Up @@ -100,16 +100,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Expand Up @@ -147,16 +147,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down

0 comments on commit c56fbee

Please sign in to comment.