Skip to content

Commit fc75f00

Browse files
chore: use gapic-generator-python 0.51.2 (#32)
- [ ] 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
1 parent 430569d commit fc75f00

5 files changed

Lines changed: 27 additions & 27 deletions

File tree

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/client.py

Lines changed: 13 additions & 13 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
@@ -370,7 +370,7 @@ def __init__(
370370

371371
def list_connectivity_tests(
372372
self,
373-
request: reachability.ListConnectivityTestsRequest = None,
373+
request: Union[reachability.ListConnectivityTestsRequest, dict] = None,
374374
*,
375375
parent: str = None,
376376
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -380,7 +380,7 @@ def list_connectivity_tests(
380380
r"""Lists all Connectivity Tests owned by a project.
381381
382382
Args:
383-
request (google.cloud.network_management_v1.types.ListConnectivityTestsRequest):
383+
request (Union[google.cloud.network_management_v1.types.ListConnectivityTestsRequest, dict]):
384384
The request object. Request for the
385385
`ListConnectivityTests` method.
386386
parent (str):
@@ -449,7 +449,7 @@ def list_connectivity_tests(
449449

450450
def get_connectivity_test(
451451
self,
452-
request: reachability.GetConnectivityTestRequest = None,
452+
request: Union[reachability.GetConnectivityTestRequest, dict] = None,
453453
*,
454454
name: str = None,
455455
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -459,7 +459,7 @@ def get_connectivity_test(
459459
r"""Gets the details of a specific Connectivity Test.
460460
461461
Args:
462-
request (google.cloud.network_management_v1.types.GetConnectivityTestRequest):
462+
request (Union[google.cloud.network_management_v1.types.GetConnectivityTestRequest, dict]):
463463
The request object. Request for the
464464
`GetConnectivityTest` method.
465465
name (str):
@@ -521,7 +521,7 @@ def get_connectivity_test(
521521

522522
def create_connectivity_test(
523523
self,
524-
request: reachability.CreateConnectivityTestRequest = None,
524+
request: Union[reachability.CreateConnectivityTestRequest, dict] = None,
525525
*,
526526
parent: str = None,
527527
test_id: str = None,
@@ -546,7 +546,7 @@ def create_connectivity_test(
546546
documentation.
547547
548548
Args:
549-
request (google.cloud.network_management_v1.types.CreateConnectivityTestRequest):
549+
request (Union[google.cloud.network_management_v1.types.CreateConnectivityTestRequest, dict]):
550550
The request object. Request for the
551551
`CreateConnectivityTest` method.
552552
parent (str):
@@ -641,7 +641,7 @@ def create_connectivity_test(
641641

642642
def update_connectivity_test(
643643
self,
644-
request: reachability.UpdateConnectivityTestRequest = None,
644+
request: Union[reachability.UpdateConnectivityTestRequest, dict] = None,
645645
*,
646646
update_mask: field_mask_pb2.FieldMask = None,
647647
resource: connectivity_test.ConnectivityTest = None,
@@ -667,7 +667,7 @@ def update_connectivity_test(
667667
for more details.
668668
669669
Args:
670-
request (google.cloud.network_management_v1.types.UpdateConnectivityTestRequest):
670+
request (Union[google.cloud.network_management_v1.types.UpdateConnectivityTestRequest, dict]):
671671
The request object. Request for the
672672
`UpdateConnectivityTest` method.
673673
update_mask (google.protobuf.field_mask_pb2.FieldMask):
@@ -751,7 +751,7 @@ def update_connectivity_test(
751751

752752
def rerun_connectivity_test(
753753
self,
754-
request: reachability.RerunConnectivityTestRequest = None,
754+
request: Union[reachability.RerunConnectivityTestRequest, dict] = None,
755755
*,
756756
retry: retries.Retry = gapic_v1.method.DEFAULT,
757757
timeout: float = None,
@@ -773,7 +773,7 @@ def rerun_connectivity_test(
773773
returns a value of ``UNKNOWN``.
774774
775775
Args:
776-
request (google.cloud.network_management_v1.types.RerunConnectivityTestRequest):
776+
request (Union[google.cloud.network_management_v1.types.RerunConnectivityTestRequest, dict]):
777777
The request object. Request for the
778778
`RerunConnectivityTest` method.
779779
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -825,7 +825,7 @@ def rerun_connectivity_test(
825825

826826
def delete_connectivity_test(
827827
self,
828-
request: reachability.DeleteConnectivityTestRequest = None,
828+
request: Union[reachability.DeleteConnectivityTestRequest, dict] = None,
829829
*,
830830
name: str = None,
831831
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -835,7 +835,7 @@ def delete_connectivity_test(
835835
r"""Deletes a specific ``ConnectivityTest``.
836836
837837
Args:
838-
request (google.cloud.network_management_v1.types.DeleteConnectivityTestRequest):
838+
request (Union[google.cloud.network_management_v1.types.DeleteConnectivityTestRequest, dict]):
839839
The request object. Request for the
840840
`DeleteConnectivityTest` method.
841841
name (str):

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/transports/base.py

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

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

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/transports/grpc.py

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

packages/google-cloud-network-management/google/cloud/network_management_v1/services/reachability_service/transports/grpc_asyncio.py

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

packages/google-cloud-network-management/scripts/fixup_network_management_v1_keywords.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ def partition(
3939
class network_managementCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'create_connectivity_test': ('parent', 'test_id', 'resource', ),
43-
'delete_connectivity_test': ('name', ),
44-
'get_connectivity_test': ('name', ),
45-
'list_connectivity_tests': ('parent', 'page_size', 'page_token', 'filter', 'order_by', ),
46-
'rerun_connectivity_test': ('name', ),
47-
'update_connectivity_test': ('update_mask', 'resource', ),
42+
'create_connectivity_test': ('parent', 'test_id', 'resource', ),
43+
'delete_connectivity_test': ('name', ),
44+
'get_connectivity_test': ('name', ),
45+
'list_connectivity_tests': ('parent', 'page_size', 'page_token', 'filter', 'order_by', ),
46+
'rerun_connectivity_test': ('name', ),
47+
'update_connectivity_test': ('update_mask', 'resource', ),
4848
}
4949

5050
def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
@@ -63,7 +63,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
6363
return updated
6464

6565
kwargs, ctrl_kwargs = partition(
66-
lambda a: not a.keyword.value in self.CTRL_PARAMS,
66+
lambda a: a.keyword.value not in self.CTRL_PARAMS,
6767
kwargs
6868
)
6969

0 commit comments

Comments
 (0)