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

Commit 7045df0

Browse files
chore: use gapic-generator-python 0.51.2 (#78)
- [ ] 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 cd828ec commit 7045df0

File tree

18 files changed

+82
-82
lines changed

18 files changed

+82
-82
lines changed

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/client.py

Lines changed: 15 additions & 15 deletions
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
@@ -377,7 +377,7 @@ def __init__(
377377

378378
def get_policy(
379379
self,
380-
request: service.GetPolicyRequest = None,
380+
request: Union[service.GetPolicyRequest, dict] = None,
381381
*,
382382
name: str = None,
383383
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -397,7 +397,7 @@ def get_policy(
397397
project does not have one.
398398
399399
Args:
400-
request (google.cloud.binaryauthorization_v1.types.GetPolicyRequest):
400+
request (Union[google.cloud.binaryauthorization_v1.types.GetPolicyRequest, dict]):
401401
The request object. Request message for
402402
[BinauthzManagementService.GetPolicy][].
403403
name (str):
@@ -459,7 +459,7 @@ def get_policy(
459459

460460
def update_policy(
461461
self,
462-
request: service.UpdatePolicyRequest = None,
462+
request: Union[service.UpdatePolicyRequest, dict] = None,
463463
*,
464464
policy: resources.Policy = None,
465465
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -476,7 +476,7 @@ def update_policy(
476476
request is malformed.
477477
478478
Args:
479-
request (google.cloud.binaryauthorization_v1.types.UpdatePolicyRequest):
479+
request (Union[google.cloud.binaryauthorization_v1.types.UpdatePolicyRequest, dict]):
480480
The request object. Request message for
481481
[BinauthzManagementService.UpdatePolicy][].
482482
policy (google.cloud.binaryauthorization_v1.types.Policy):
@@ -543,7 +543,7 @@ def update_policy(
543543

544544
def create_attestor(
545545
self,
546-
request: service.CreateAttestorRequest = None,
546+
request: Union[service.CreateAttestorRequest, dict] = None,
547547
*,
548548
parent: str = None,
549549
attestor_id: str = None,
@@ -562,7 +562,7 @@ def create_attestor(
562562
already exists.
563563
564564
Args:
565-
request (google.cloud.binaryauthorization_v1.types.CreateAttestorRequest):
565+
request (Union[google.cloud.binaryauthorization_v1.types.CreateAttestorRequest, dict]):
566566
The request object. Request message for
567567
[BinauthzManagementService.CreateAttestor][].
568568
parent (str):
@@ -647,7 +647,7 @@ def create_attestor(
647647

648648
def get_attestor(
649649
self,
650-
request: service.GetAttestorRequest = None,
650+
request: Union[service.GetAttestorRequest, dict] = None,
651651
*,
652652
name: str = None,
653653
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -661,7 +661,7 @@ def get_attestor(
661661
not exist.
662662
663663
Args:
664-
request (google.cloud.binaryauthorization_v1.types.GetAttestorRequest):
664+
request (Union[google.cloud.binaryauthorization_v1.types.GetAttestorRequest, dict]):
665665
The request object. Request message for
666666
[BinauthzManagementService.GetAttestor][].
667667
name (str):
@@ -724,7 +724,7 @@ def get_attestor(
724724

725725
def update_attestor(
726726
self,
727-
request: service.UpdateAttestorRequest = None,
727+
request: Union[service.UpdateAttestorRequest, dict] = None,
728728
*,
729729
attestor: resources.Attestor = None,
730730
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -738,7 +738,7 @@ def update_attestor(
738738
not exist.
739739
740740
Args:
741-
request (google.cloud.binaryauthorization_v1.types.UpdateAttestorRequest):
741+
request (Union[google.cloud.binaryauthorization_v1.types.UpdateAttestorRequest, dict]):
742742
The request object. Request message for
743743
[BinauthzManagementService.UpdateAttestor][].
744744
attestor (google.cloud.binaryauthorization_v1.types.Attestor):
@@ -806,7 +806,7 @@ def update_attestor(
806806

807807
def list_attestors(
808808
self,
809-
request: service.ListAttestorsRequest = None,
809+
request: Union[service.ListAttestorsRequest, dict] = None,
810810
*,
811811
parent: str = None,
812812
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -817,7 +817,7 @@ def list_attestors(
817817
Returns INVALID_ARGUMENT if the project does not exist.
818818
819819
Args:
820-
request (google.cloud.binaryauthorization_v1.types.ListAttestorsRequest):
820+
request (Union[google.cloud.binaryauthorization_v1.types.ListAttestorsRequest, dict]):
821821
The request object. Request message for
822822
[BinauthzManagementService.ListAttestors][].
823823
parent (str):
@@ -889,7 +889,7 @@ def list_attestors(
889889

890890
def delete_attestor(
891891
self,
892-
request: service.DeleteAttestorRequest = None,
892+
request: Union[service.DeleteAttestorRequest, dict] = None,
893893
*,
894894
name: str = None,
895895
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -903,7 +903,7 @@ def delete_attestor(
903903
not exist.
904904
905905
Args:
906-
request (google.cloud.binaryauthorization_v1.types.DeleteAttestorRequest):
906+
request (Union[google.cloud.binaryauthorization_v1.types.DeleteAttestorRequest, dict]):
907907
The request object. Request message for
908908
[BinauthzManagementService.DeleteAttestor][].
909909
name (str):

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(
119119
**scopes_kwargs, quota_project_id=quota_project_id
120120
)
121121

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

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ def __init__(
8888
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8989
If provided, it overrides the ``host`` argument and tries to create
9090
a mutual TLS channel with client SSL credentials from
91-
``client_cert_source`` or applicatin default SSL credentials.
91+
``client_cert_source`` or application default SSL credentials.
9292
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
9393
Deprecated. A callback to provide client SSL certificate bytes and
9494
private key bytes, both in PEM format. It is ignored if
9595
``api_mtls_endpoint`` is None.
9696
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
97-
for grpc channel. It is ignored if ``channel`` is provided.
97+
for the grpc channel. It is ignored if ``channel`` is provided.
9898
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9999
A callback to provide client certificate bytes and private key bytes,
100-
both in PEM format. It is used to configure mutual TLS channel. It is
100+
both in PEM format. It is used to configure a mutual TLS channel. It is
101101
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
102102
quota_project_id (Optional[str]): An optional project to use for billing
103103
and quota.

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,16 @@ def __init__(
137137
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
138138
If provided, it overrides the ``host`` argument and tries to create
139139
a mutual TLS channel with client SSL credentials from
140-
``client_cert_source`` or applicatin default SSL credentials.
140+
``client_cert_source`` or application default SSL credentials.
141141
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
142142
Deprecated. A callback to provide client SSL certificate bytes and
143143
private key bytes, both in PEM format. It is ignored if
144144
``api_mtls_endpoint`` is None.
145145
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
146-
for grpc channel. It is ignored if ``channel`` is provided.
146+
for the grpc channel. It is ignored if ``channel`` is provided.
147147
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
148148
A callback to provide client certificate bytes and private key bytes,
149-
both in PEM format. It is used to configure mutual TLS channel. It is
149+
both in PEM format. It is used to configure a mutual TLS channel. It is
150150
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
151151
quota_project_id (Optional[str]): An optional project to use for billing
152152
and quota.

google/cloud/binaryauthorization_v1/services/system_policy_v1/client.py

Lines changed: 3 additions & 3 deletions
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
@@ -348,7 +348,7 @@ def __init__(
348348

349349
def get_system_policy(
350350
self,
351-
request: service.GetSystemPolicyRequest = None,
351+
request: Union[service.GetSystemPolicyRequest, dict] = None,
352352
*,
353353
name: str = None,
354354
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -359,7 +359,7 @@ def get_system_policy(
359359
location.
360360
361361
Args:
362-
request (google.cloud.binaryauthorization_v1.types.GetSystemPolicyRequest):
362+
request (Union[google.cloud.binaryauthorization_v1.types.GetSystemPolicyRequest, dict]):
363363
The request object. Request to read the current system
364364
policy.
365365
name (str):

google/cloud/binaryauthorization_v1/services/system_policy_v1/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(
118118
**scopes_kwargs, quota_project_id=quota_project_id
119119
)
120120

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

google/cloud/binaryauthorization_v1/services/system_policy_v1/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,16 @@ def __init__(
8181
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8282
If provided, it overrides the ``host`` argument and tries to create
8383
a mutual TLS channel with client SSL credentials from
84-
``client_cert_source`` or applicatin default SSL credentials.
84+
``client_cert_source`` or application default SSL credentials.
8585
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8686
Deprecated. A callback to provide client SSL certificate bytes and
8787
private key bytes, both in PEM format. It is ignored if
8888
``api_mtls_endpoint`` is None.
8989
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
90-
for grpc channel. It is ignored if ``channel`` is provided.
90+
for the grpc channel. It is ignored if ``channel`` is provided.
9191
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9292
A callback to provide client certificate bytes and private key bytes,
93-
both in PEM format. It is used to configure mutual TLS channel. It is
93+
both in PEM format. It is used to configure a mutual TLS channel. It is
9494
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9595
quota_project_id (Optional[str]): An optional project to use for billing
9696
and quota.

google/cloud/binaryauthorization_v1/services/system_policy_v1/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ def __init__(
128128
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
129129
If provided, it overrides the ``host`` argument and tries to create
130130
a mutual TLS channel with client SSL credentials from
131-
``client_cert_source`` or applicatin default SSL credentials.
131+
``client_cert_source`` or application default SSL credentials.
132132
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
133133
Deprecated. A callback to provide client SSL certificate bytes and
134134
private key bytes, both in PEM format. It is ignored if
135135
``api_mtls_endpoint`` is None.
136136
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
137-
for grpc channel. It is ignored if ``channel`` is provided.
137+
for the grpc channel. It is ignored if ``channel`` is provided.
138138
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
139139
A callback to provide client certificate bytes and private key bytes,
140-
both in PEM format. It is used to configure mutual TLS channel. It is
140+
both in PEM format. It is used to configure a mutual TLS channel. It is
141141
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
142142
quota_project_id (Optional[str]): An optional project to use for billing
143143
and quota.

google/cloud/binaryauthorization_v1/services/validation_helper_v1/client.py

Lines changed: 3 additions & 3 deletions
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
@@ -337,7 +337,7 @@ def __init__(
337337

338338
def validate_attestation_occurrence(
339339
self,
340-
request: service.ValidateAttestationOccurrenceRequest = None,
340+
request: Union[service.ValidateAttestationOccurrenceRequest, dict] = None,
341341
*,
342342
retry: retries.Retry = gapic_v1.method.DEFAULT,
343343
timeout: float = None,
@@ -347,7 +347,7 @@ def validate_attestation_occurrence(
347347
image URI was signed by the given Attestor
348348
349349
Args:
350-
request (google.cloud.binaryauthorization_v1.types.ValidateAttestationOccurrenceRequest):
350+
request (Union[google.cloud.binaryauthorization_v1.types.ValidateAttestationOccurrenceRequest, dict]):
351351
The request object. Request message for
352352
[ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
353353
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/binaryauthorization_v1/services/validation_helper_v1/transports/base.py

Lines changed: 1 addition & 1 deletion
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)

0 commit comments

Comments
 (0)