Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#228)
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] authored Sep 24, 2021
1 parent bb1e17a commit 6224b04
Show file tree
Hide file tree
Showing 26 changed files with 312 additions and 302 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,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
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,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
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,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
Original file line number Diff line number Diff line change
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 @@ -382,7 +382,7 @@ def __init__(

def create_taxonomy(
self,
request: policytagmanager.CreateTaxonomyRequest = None,
request: Union[policytagmanager.CreateTaxonomyRequest, dict] = None,
*,
parent: str = None,
taxonomy: policytagmanager.Taxonomy = None,
Expand All @@ -395,7 +395,7 @@ def create_taxonomy(
contain policy tags.
Args:
request (google.cloud.datacatalog_v1.types.CreateTaxonomyRequest):
request (Union[google.cloud.datacatalog_v1.types.CreateTaxonomyRequest, dict]):
The request object. Request message for
[CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy].
parent (str):
Expand Down Expand Up @@ -474,7 +474,7 @@ def create_taxonomy(

def delete_taxonomy(
self,
request: policytagmanager.DeleteTaxonomyRequest = None,
request: Union[policytagmanager.DeleteTaxonomyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -486,7 +486,7 @@ def delete_taxonomy(
references from BigQuery columns.
Args:
request (google.cloud.datacatalog_v1.types.DeleteTaxonomyRequest):
request (Union[google.cloud.datacatalog_v1.types.DeleteTaxonomyRequest, dict]):
The request object. Request message for
[DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy].
name (str):
Expand Down Expand Up @@ -542,7 +542,7 @@ def delete_taxonomy(

def update_taxonomy(
self,
request: policytagmanager.UpdateTaxonomyRequest = None,
request: Union[policytagmanager.UpdateTaxonomyRequest, dict] = None,
*,
taxonomy: policytagmanager.Taxonomy = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -553,7 +553,7 @@ def update_taxonomy(
description, and activated policy types.
Args:
request (google.cloud.datacatalog_v1.types.UpdateTaxonomyRequest):
request (Union[google.cloud.datacatalog_v1.types.UpdateTaxonomyRequest, dict]):
The request object. Request message for
[UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy].
taxonomy (google.cloud.datacatalog_v1.types.Taxonomy):
Expand Down Expand Up @@ -627,7 +627,7 @@ def update_taxonomy(

def list_taxonomies(
self,
request: policytagmanager.ListTaxonomiesRequest = None,
request: Union[policytagmanager.ListTaxonomiesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -638,7 +638,7 @@ def list_taxonomies(
location that you have a permission to view.
Args:
request (google.cloud.datacatalog_v1.types.ListTaxonomiesRequest):
request (Union[google.cloud.datacatalog_v1.types.ListTaxonomiesRequest, dict]):
The request object. Request message for
[ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
parent (str):
Expand Down Expand Up @@ -708,7 +708,7 @@ def list_taxonomies(

def get_taxonomy(
self,
request: policytagmanager.GetTaxonomyRequest = None,
request: Union[policytagmanager.GetTaxonomyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -718,7 +718,7 @@ def get_taxonomy(
r"""Gets a taxonomy.
Args:
request (google.cloud.datacatalog_v1.types.GetTaxonomyRequest):
request (Union[google.cloud.datacatalog_v1.types.GetTaxonomyRequest, dict]):
The request object. Request message for
[GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy].
name (str):
Expand Down Expand Up @@ -789,7 +789,7 @@ def get_taxonomy(

def create_policy_tag(
self,
request: policytagmanager.CreatePolicyTagRequest = None,
request: Union[policytagmanager.CreatePolicyTagRequest, dict] = None,
*,
parent: str = None,
policy_tag: policytagmanager.PolicyTag = None,
Expand All @@ -800,7 +800,7 @@ def create_policy_tag(
r"""Creates a policy tag in a taxonomy.
Args:
request (google.cloud.datacatalog_v1.types.CreatePolicyTagRequest):
request (Union[google.cloud.datacatalog_v1.types.CreatePolicyTagRequest, dict]):
The request object. Request message for
[CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag].
parent (str):
Expand Down Expand Up @@ -876,7 +876,7 @@ def create_policy_tag(

def delete_policy_tag(
self,
request: policytagmanager.DeletePolicyTagRequest = None,
request: Union[policytagmanager.DeletePolicyTagRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -891,7 +891,7 @@ def delete_policy_tag(
its descendants
Args:
request (google.cloud.datacatalog_v1.types.DeletePolicyTagRequest):
request (Union[google.cloud.datacatalog_v1.types.DeletePolicyTagRequest, dict]):
The request object. Request message for
[DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag].
name (str):
Expand Down Expand Up @@ -947,7 +947,7 @@ def delete_policy_tag(

def update_policy_tag(
self,
request: policytagmanager.UpdatePolicyTagRequest = None,
request: Union[policytagmanager.UpdatePolicyTagRequest, dict] = None,
*,
policy_tag: policytagmanager.PolicyTag = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -958,7 +958,7 @@ def update_policy_tag(
name, description, and parent policy tag.
Args:
request (google.cloud.datacatalog_v1.types.UpdatePolicyTagRequest):
request (Union[google.cloud.datacatalog_v1.types.UpdatePolicyTagRequest, dict]):
The request object. Request message for
[UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag].
policy_tag (google.cloud.datacatalog_v1.types.PolicyTag):
Expand Down Expand Up @@ -1029,7 +1029,7 @@ def update_policy_tag(

def list_policy_tags(
self,
request: policytagmanager.ListPolicyTagsRequest = None,
request: Union[policytagmanager.ListPolicyTagsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1039,7 +1039,7 @@ def list_policy_tags(
r"""Lists all policy tags in a taxonomy.
Args:
request (google.cloud.datacatalog_v1.types.ListPolicyTagsRequest):
request (Union[google.cloud.datacatalog_v1.types.ListPolicyTagsRequest, dict]):
The request object. Request message for
[ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
parent (str):
Expand Down Expand Up @@ -1109,7 +1109,7 @@ def list_policy_tags(

def get_policy_tag(
self,
request: policytagmanager.GetPolicyTagRequest = None,
request: Union[policytagmanager.GetPolicyTagRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1119,7 +1119,7 @@ def get_policy_tag(
r"""Gets a policy tag.
Args:
request (google.cloud.datacatalog_v1.types.GetPolicyTagRequest):
request (Union[google.cloud.datacatalog_v1.types.GetPolicyTagRequest, dict]):
The request object. Request message for
[GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag].
name (str):
Expand Down Expand Up @@ -1187,7 +1187,7 @@ def get_policy_tag(

def get_iam_policy(
self,
request: iam_policy_pb2.GetIamPolicyRequest = None,
request: Union[iam_policy_pb2.GetIamPolicyRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1196,7 +1196,7 @@ def get_iam_policy(
r"""Gets the IAM policy for a policy tag or a taxonomy.
Args:
request (google.iam.v1.iam_policy_pb2.GetIamPolicyRequest):
request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]):
The request object. Request message for `GetIamPolicy`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1291,7 +1291,7 @@ def get_iam_policy(

def set_iam_policy(
self,
request: iam_policy_pb2.SetIamPolicyRequest = None,
request: Union[iam_policy_pb2.SetIamPolicyRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1300,7 +1300,7 @@ def set_iam_policy(
r"""Sets the IAM policy for a policy tag or a taxonomy.
Args:
request (google.iam.v1.iam_policy_pb2.SetIamPolicyRequest):
request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]):
The request object. Request message for `SetIamPolicy`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1395,7 +1395,7 @@ def set_iam_policy(

def test_iam_permissions(
self,
request: iam_policy_pb2.TestIamPermissionsRequest = None,
request: Union[iam_policy_pb2.TestIamPermissionsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1405,7 +1405,7 @@ def test_iam_permissions(
taxonomy.
Args:
request (google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest):
request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]):
The request object. Request message for
`TestIamPermissions` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,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
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,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
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,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
Loading

0 comments on commit 6224b04

Please sign in to comment.