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

Commit ffae24c

Browse files
chore: use gapic-generator-python 0.51.2 (#221)
- [ ] 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 ff95e8c commit ffae24c

File tree

29 files changed

+217
-195
lines changed

29 files changed

+217
-195
lines changed

google/cloud/monitoring_v3/services/alert_policy_service/client.py

Lines changed: 11 additions & 11 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
@@ -385,7 +385,7 @@ def __init__(
385385

386386
def list_alert_policies(
387387
self,
388-
request: alert_service.ListAlertPoliciesRequest = None,
388+
request: Union[alert_service.ListAlertPoliciesRequest, dict] = None,
389389
*,
390390
name: str = None,
391391
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -396,7 +396,7 @@ def list_alert_policies(
396396
workspace.
397397
398398
Args:
399-
request (google.cloud.monitoring_v3.types.ListAlertPoliciesRequest):
399+
request (Union[google.cloud.monitoring_v3.types.ListAlertPoliciesRequest, dict]):
400400
The request object. The protocol for the
401401
`ListAlertPolicies` request.
402402
name (str):
@@ -476,7 +476,7 @@ def list_alert_policies(
476476

477477
def get_alert_policy(
478478
self,
479-
request: alert_service.GetAlertPolicyRequest = None,
479+
request: Union[alert_service.GetAlertPolicyRequest, dict] = None,
480480
*,
481481
name: str = None,
482482
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -486,7 +486,7 @@ def get_alert_policy(
486486
r"""Gets a single alerting policy.
487487
488488
Args:
489-
request (google.cloud.monitoring_v3.types.GetAlertPolicyRequest):
489+
request (Union[google.cloud.monitoring_v3.types.GetAlertPolicyRequest, dict]):
490490
The request object. The protocol for the
491491
`GetAlertPolicy` request.
492492
name (str):
@@ -554,7 +554,7 @@ def get_alert_policy(
554554

555555
def create_alert_policy(
556556
self,
557-
request: alert_service.CreateAlertPolicyRequest = None,
557+
request: Union[alert_service.CreateAlertPolicyRequest, dict] = None,
558558
*,
559559
name: str = None,
560560
alert_policy: alert.AlertPolicy = None,
@@ -565,7 +565,7 @@ def create_alert_policy(
565565
r"""Creates a new alerting policy.
566566
567567
Args:
568-
request (google.cloud.monitoring_v3.types.CreateAlertPolicyRequest):
568+
request (Union[google.cloud.monitoring_v3.types.CreateAlertPolicyRequest, dict]):
569569
The request object. The protocol for the
570570
`CreateAlertPolicy` request.
571571
name (str):
@@ -655,7 +655,7 @@ def create_alert_policy(
655655

656656
def delete_alert_policy(
657657
self,
658-
request: alert_service.DeleteAlertPolicyRequest = None,
658+
request: Union[alert_service.DeleteAlertPolicyRequest, dict] = None,
659659
*,
660660
name: str = None,
661661
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -665,7 +665,7 @@ def delete_alert_policy(
665665
r"""Deletes an alerting policy.
666666
667667
Args:
668-
request (google.cloud.monitoring_v3.types.DeleteAlertPolicyRequest):
668+
request (Union[google.cloud.monitoring_v3.types.DeleteAlertPolicyRequest, dict]):
669669
The request object. The protocol for the
670670
`DeleteAlertPolicy` request.
671671
name (str):
@@ -725,7 +725,7 @@ def delete_alert_policy(
725725

726726
def update_alert_policy(
727727
self,
728-
request: alert_service.UpdateAlertPolicyRequest = None,
728+
request: Union[alert_service.UpdateAlertPolicyRequest, dict] = None,
729729
*,
730730
update_mask: field_mask_pb2.FieldMask = None,
731731
alert_policy: alert.AlertPolicy = None,
@@ -739,7 +739,7 @@ def update_alert_policy(
739739
via ``updateMask``. Returns the updated alerting policy.
740740
741741
Args:
742-
request (google.cloud.monitoring_v3.types.UpdateAlertPolicyRequest):
742+
request (Union[google.cloud.monitoring_v3.types.UpdateAlertPolicyRequest, dict]):
743743
The request object. The protocol for the
744744
`UpdateAlertPolicy` request.
745745
update_mask (google.protobuf.field_mask_pb2.FieldMask):

google/cloud/monitoring_v3/services/alert_policy_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(
123123
**scopes_kwargs, quota_project_id=quota_project_id
124124
)
125125

126-
# If the credentials is service account credentials, then always try to use self signed JWT.
126+
# If the credentials are service account credentials, then always try to use self signed JWT.
127127
if (
128128
always_use_jwt_access
129129
and isinstance(credentials, service_account.Credentials)

google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc.py

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

google/cloud/monitoring_v3/services/alert_policy_service/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/monitoring_v3/services/group_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
@@ -360,7 +360,7 @@ def __init__(
360360

361361
def list_groups(
362362
self,
363-
request: group_service.ListGroupsRequest = None,
363+
request: Union[group_service.ListGroupsRequest, dict] = None,
364364
*,
365365
name: str = None,
366366
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -370,7 +370,7 @@ def list_groups(
370370
r"""Lists the existing groups.
371371
372372
Args:
373-
request (google.cloud.monitoring_v3.types.ListGroupsRequest):
373+
request (Union[google.cloud.monitoring_v3.types.ListGroupsRequest, dict]):
374374
The request object. The `ListGroup` request.
375375
name (str):
376376
Required. The
@@ -443,7 +443,7 @@ def list_groups(
443443

444444
def get_group(
445445
self,
446-
request: group_service.GetGroupRequest = None,
446+
request: Union[group_service.GetGroupRequest, dict] = None,
447447
*,
448448
name: str = None,
449449
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -453,7 +453,7 @@ def get_group(
453453
r"""Gets a single group.
454454
455455
Args:
456-
request (google.cloud.monitoring_v3.types.GetGroupRequest):
456+
request (Union[google.cloud.monitoring_v3.types.GetGroupRequest, dict]):
457457
The request object. The `GetGroup` request.
458458
name (str):
459459
Required. The group to retrieve. The format is:
@@ -547,7 +547,7 @@ def get_group(
547547

548548
def create_group(
549549
self,
550-
request: group_service.CreateGroupRequest = None,
550+
request: Union[group_service.CreateGroupRequest, dict] = None,
551551
*,
552552
name: str = None,
553553
group: gm_group.Group = None,
@@ -558,7 +558,7 @@ def create_group(
558558
r"""Creates a new group.
559559
560560
Args:
561-
request (google.cloud.monitoring_v3.types.CreateGroupRequest):
561+
request (Union[google.cloud.monitoring_v3.types.CreateGroupRequest, dict]):
562562
The request object. The `CreateGroup` request.
563563
name (str):
564564
Required. The
@@ -663,7 +663,7 @@ def create_group(
663663

664664
def update_group(
665665
self,
666-
request: group_service.UpdateGroupRequest = None,
666+
request: Union[group_service.UpdateGroupRequest, dict] = None,
667667
*,
668668
group: gm_group.Group = None,
669669
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -674,7 +674,7 @@ def update_group(
674674
except ``name``.
675675
676676
Args:
677-
request (google.cloud.monitoring_v3.types.UpdateGroupRequest):
677+
request (Union[google.cloud.monitoring_v3.types.UpdateGroupRequest, dict]):
678678
The request object. The `UpdateGroup` request.
679679
group (google.cloud.monitoring_v3.types.Group):
680680
Required. The new definition of the group. All fields of
@@ -768,7 +768,7 @@ def update_group(
768768

769769
def delete_group(
770770
self,
771-
request: group_service.DeleteGroupRequest = None,
771+
request: Union[group_service.DeleteGroupRequest, dict] = None,
772772
*,
773773
name: str = None,
774774
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -778,7 +778,7 @@ def delete_group(
778778
r"""Deletes an existing group.
779779
780780
Args:
781-
request (google.cloud.monitoring_v3.types.DeleteGroupRequest):
781+
request (Union[google.cloud.monitoring_v3.types.DeleteGroupRequest, dict]):
782782
The request object. The `DeleteGroup` request. The
783783
default behavior is to be able to delete a single group
784784
without any descendants.
@@ -836,7 +836,7 @@ def delete_group(
836836

837837
def list_group_members(
838838
self,
839-
request: group_service.ListGroupMembersRequest = None,
839+
request: Union[group_service.ListGroupMembersRequest, dict] = None,
840840
*,
841841
name: str = None,
842842
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -847,7 +847,7 @@ def list_group_members(
847847
group.
848848
849849
Args:
850-
request (google.cloud.monitoring_v3.types.ListGroupMembersRequest):
850+
request (Union[google.cloud.monitoring_v3.types.ListGroupMembersRequest, dict]):
851851
The request object. The `ListGroupMembers` request.
852852
name (str):
853853
Required. The group whose members are listed. The format

google/cloud/monitoring_v3/services/group_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __init__(
124124
**scopes_kwargs, quota_project_id=quota_project_id
125125
)
126126

127-
# If the credentials is service account credentials, then always try to use self signed JWT.
127+
# If the credentials are service account credentials, then always try to use self signed JWT.
128128
if (
129129
always_use_jwt_access
130130
and isinstance(credentials, service_account.Credentials)

google/cloud/monitoring_v3/services/group_service/transports/grpc.py

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

google/cloud/monitoring_v3/services/group_service/transports/grpc_asyncio.py

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

0 commit comments

Comments
 (0)