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

chore: use gapic-generator-python 0.51.2 #78

Merged
merged 2 commits into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -377,7 +377,7 @@ def __init__(

def get_policy(
self,
request: service.GetPolicyRequest = None,
request: Union[service.GetPolicyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -397,7 +397,7 @@ def get_policy(
project does not have one.

Args:
request (google.cloud.binaryauthorization_v1.types.GetPolicyRequest):
request (Union[google.cloud.binaryauthorization_v1.types.GetPolicyRequest, dict]):
The request object. Request message for
[BinauthzManagementService.GetPolicy][].
name (str):
Expand Down Expand Up @@ -459,7 +459,7 @@ def get_policy(

def update_policy(
self,
request: service.UpdatePolicyRequest = None,
request: Union[service.UpdatePolicyRequest, dict] = None,
*,
policy: resources.Policy = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -476,7 +476,7 @@ def update_policy(
request is malformed.

Args:
request (google.cloud.binaryauthorization_v1.types.UpdatePolicyRequest):
request (Union[google.cloud.binaryauthorization_v1.types.UpdatePolicyRequest, dict]):
The request object. Request message for
[BinauthzManagementService.UpdatePolicy][].
policy (google.cloud.binaryauthorization_v1.types.Policy):
Expand Down Expand Up @@ -543,7 +543,7 @@ def update_policy(

def create_attestor(
self,
request: service.CreateAttestorRequest = None,
request: Union[service.CreateAttestorRequest, dict] = None,
*,
parent: str = None,
attestor_id: str = None,
Expand All @@ -562,7 +562,7 @@ def create_attestor(
already exists.

Args:
request (google.cloud.binaryauthorization_v1.types.CreateAttestorRequest):
request (Union[google.cloud.binaryauthorization_v1.types.CreateAttestorRequest, dict]):
The request object. Request message for
[BinauthzManagementService.CreateAttestor][].
parent (str):
Expand Down Expand Up @@ -647,7 +647,7 @@ def create_attestor(

def get_attestor(
self,
request: service.GetAttestorRequest = None,
request: Union[service.GetAttestorRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -661,7 +661,7 @@ def get_attestor(
not exist.

Args:
request (google.cloud.binaryauthorization_v1.types.GetAttestorRequest):
request (Union[google.cloud.binaryauthorization_v1.types.GetAttestorRequest, dict]):
The request object. Request message for
[BinauthzManagementService.GetAttestor][].
name (str):
Expand Down Expand Up @@ -724,7 +724,7 @@ def get_attestor(

def update_attestor(
self,
request: service.UpdateAttestorRequest = None,
request: Union[service.UpdateAttestorRequest, dict] = None,
*,
attestor: resources.Attestor = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -738,7 +738,7 @@ def update_attestor(
not exist.

Args:
request (google.cloud.binaryauthorization_v1.types.UpdateAttestorRequest):
request (Union[google.cloud.binaryauthorization_v1.types.UpdateAttestorRequest, dict]):
The request object. Request message for
[BinauthzManagementService.UpdateAttestor][].
attestor (google.cloud.binaryauthorization_v1.types.Attestor):
Expand Down Expand Up @@ -806,7 +806,7 @@ def update_attestor(

def list_attestors(
self,
request: service.ListAttestorsRequest = None,
request: Union[service.ListAttestorsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -817,7 +817,7 @@ def list_attestors(
Returns INVALID_ARGUMENT if the project does not exist.

Args:
request (google.cloud.binaryauthorization_v1.types.ListAttestorsRequest):
request (Union[google.cloud.binaryauthorization_v1.types.ListAttestorsRequest, dict]):
The request object. Request message for
[BinauthzManagementService.ListAttestors][].
parent (str):
Expand Down Expand Up @@ -889,7 +889,7 @@ def list_attestors(

def delete_attestor(
self,
request: service.DeleteAttestorRequest = None,
request: Union[service.DeleteAttestorRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -903,7 +903,7 @@ def delete_attestor(
not exist.

Args:
request (google.cloud.binaryauthorization_v1.types.DeleteAttestorRequest):
request (Union[google.cloud.binaryauthorization_v1.types.DeleteAttestorRequest, dict]):
The request object. Request message for
[BinauthzManagementService.DeleteAttestor][].
name (str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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 @@ -137,16 +137,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 @@ -348,7 +348,7 @@ def __init__(

def get_system_policy(
self,
request: service.GetSystemPolicyRequest = None,
request: Union[service.GetSystemPolicyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -359,7 +359,7 @@ def get_system_policy(
location.

Args:
request (google.cloud.binaryauthorization_v1.types.GetSystemPolicyRequest):
request (Union[google.cloud.binaryauthorization_v1.types.GetSystemPolicyRequest, dict]):
The request object. Request to read the current system
policy.
name (str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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 @@ -81,16 +81,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 @@ -128,16 +128,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 @@ -337,7 +337,7 @@ def __init__(

def validate_attestation_occurrence(
self,
request: service.ValidateAttestationOccurrenceRequest = None,
request: Union[service.ValidateAttestationOccurrenceRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -347,7 +347,7 @@ def validate_attestation_occurrence(
image URI was signed by the given Attestor

Args:
request (google.cloud.binaryauthorization_v1.types.ValidateAttestationOccurrenceRequest):
request (Union[google.cloud.binaryauthorization_v1.types.ValidateAttestationOccurrenceRequest, dict]):
The request object. Request message for
[ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
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 @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,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 @@ -127,16 +127,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