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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#221)
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] committed Sep 24, 2021
1 parent ff95e8c commit ffae24c
Show file tree
Hide file tree
Showing 29 changed files with 217 additions and 195 deletions.
22 changes: 11 additions & 11 deletions google/cloud/monitoring_v3/services/alert_policy_service/client.py
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 @@ -385,7 +385,7 @@ def __init__(

def list_alert_policies(
self,
request: alert_service.ListAlertPoliciesRequest = None,
request: Union[alert_service.ListAlertPoliciesRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -396,7 +396,7 @@ def list_alert_policies(
workspace.
Args:
request (google.cloud.monitoring_v3.types.ListAlertPoliciesRequest):
request (Union[google.cloud.monitoring_v3.types.ListAlertPoliciesRequest, dict]):
The request object. The protocol for the
`ListAlertPolicies` request.
name (str):
Expand Down Expand Up @@ -476,7 +476,7 @@ def list_alert_policies(

def get_alert_policy(
self,
request: alert_service.GetAlertPolicyRequest = None,
request: Union[alert_service.GetAlertPolicyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -486,7 +486,7 @@ def get_alert_policy(
r"""Gets a single alerting policy.
Args:
request (google.cloud.monitoring_v3.types.GetAlertPolicyRequest):
request (Union[google.cloud.monitoring_v3.types.GetAlertPolicyRequest, dict]):
The request object. The protocol for the
`GetAlertPolicy` request.
name (str):
Expand Down Expand Up @@ -554,7 +554,7 @@ def get_alert_policy(

def create_alert_policy(
self,
request: alert_service.CreateAlertPolicyRequest = None,
request: Union[alert_service.CreateAlertPolicyRequest, dict] = None,
*,
name: str = None,
alert_policy: alert.AlertPolicy = None,
Expand All @@ -565,7 +565,7 @@ def create_alert_policy(
r"""Creates a new alerting policy.
Args:
request (google.cloud.monitoring_v3.types.CreateAlertPolicyRequest):
request (Union[google.cloud.monitoring_v3.types.CreateAlertPolicyRequest, dict]):
The request object. The protocol for the
`CreateAlertPolicy` request.
name (str):
Expand Down Expand Up @@ -655,7 +655,7 @@ def create_alert_policy(

def delete_alert_policy(
self,
request: alert_service.DeleteAlertPolicyRequest = None,
request: Union[alert_service.DeleteAlertPolicyRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -665,7 +665,7 @@ def delete_alert_policy(
r"""Deletes an alerting policy.
Args:
request (google.cloud.monitoring_v3.types.DeleteAlertPolicyRequest):
request (Union[google.cloud.monitoring_v3.types.DeleteAlertPolicyRequest, dict]):
The request object. The protocol for the
`DeleteAlertPolicy` request.
name (str):
Expand Down Expand Up @@ -725,7 +725,7 @@ def delete_alert_policy(

def update_alert_policy(
self,
request: alert_service.UpdateAlertPolicyRequest = None,
request: Union[alert_service.UpdateAlertPolicyRequest, dict] = None,
*,
update_mask: field_mask_pb2.FieldMask = None,
alert_policy: alert.AlertPolicy = None,
Expand All @@ -739,7 +739,7 @@ def update_alert_policy(
via ``updateMask``. Returns the updated alerting policy.
Args:
request (google.cloud.monitoring_v3.types.UpdateAlertPolicyRequest):
request (Union[google.cloud.monitoring_v3.types.UpdateAlertPolicyRequest, dict]):
The request object. The protocol for the
`UpdateAlertPolicy` request.
update_mask (google.protobuf.field_mask_pb2.FieldMask):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,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 @@ -90,16 +90,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
26 changes: 13 additions & 13 deletions google/cloud/monitoring_v3/services/group_service/client.py
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 @@ -360,7 +360,7 @@ def __init__(

def list_groups(
self,
request: group_service.ListGroupsRequest = None,
request: Union[group_service.ListGroupsRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -370,7 +370,7 @@ def list_groups(
r"""Lists the existing groups.
Args:
request (google.cloud.monitoring_v3.types.ListGroupsRequest):
request (Union[google.cloud.monitoring_v3.types.ListGroupsRequest, dict]):
The request object. The `ListGroup` request.
name (str):
Required. The
Expand Down Expand Up @@ -443,7 +443,7 @@ def list_groups(

def get_group(
self,
request: group_service.GetGroupRequest = None,
request: Union[group_service.GetGroupRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -453,7 +453,7 @@ def get_group(
r"""Gets a single group.
Args:
request (google.cloud.monitoring_v3.types.GetGroupRequest):
request (Union[google.cloud.monitoring_v3.types.GetGroupRequest, dict]):
The request object. The `GetGroup` request.
name (str):
Required. The group to retrieve. The format is:
Expand Down Expand Up @@ -547,7 +547,7 @@ def get_group(

def create_group(
self,
request: group_service.CreateGroupRequest = None,
request: Union[group_service.CreateGroupRequest, dict] = None,
*,
name: str = None,
group: gm_group.Group = None,
Expand All @@ -558,7 +558,7 @@ def create_group(
r"""Creates a new group.
Args:
request (google.cloud.monitoring_v3.types.CreateGroupRequest):
request (Union[google.cloud.monitoring_v3.types.CreateGroupRequest, dict]):
The request object. The `CreateGroup` request.
name (str):
Required. The
Expand Down Expand Up @@ -663,7 +663,7 @@ def create_group(

def update_group(
self,
request: group_service.UpdateGroupRequest = None,
request: Union[group_service.UpdateGroupRequest, dict] = None,
*,
group: gm_group.Group = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -674,7 +674,7 @@ def update_group(
except ``name``.
Args:
request (google.cloud.monitoring_v3.types.UpdateGroupRequest):
request (Union[google.cloud.monitoring_v3.types.UpdateGroupRequest, dict]):
The request object. The `UpdateGroup` request.
group (google.cloud.monitoring_v3.types.Group):
Required. The new definition of the group. All fields of
Expand Down Expand Up @@ -768,7 +768,7 @@ def update_group(

def delete_group(
self,
request: group_service.DeleteGroupRequest = None,
request: Union[group_service.DeleteGroupRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -778,7 +778,7 @@ def delete_group(
r"""Deletes an existing group.
Args:
request (google.cloud.monitoring_v3.types.DeleteGroupRequest):
request (Union[google.cloud.monitoring_v3.types.DeleteGroupRequest, dict]):
The request object. The `DeleteGroup` request. The
default behavior is to be able to delete a single group
without any descendants.
Expand Down Expand Up @@ -836,7 +836,7 @@ def delete_group(

def list_group_members(
self,
request: group_service.ListGroupMembersRequest = None,
request: Union[group_service.ListGroupMembersRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -847,7 +847,7 @@ def list_group_members(
group.
Args:
request (google.cloud.monitoring_v3.types.ListGroupMembersRequest):
request (Union[google.cloud.monitoring_v3.types.ListGroupMembersRequest, dict]):
The request object. The `ListGroupMembers` request.
name (str):
Required. The group whose members are listed. The format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,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 @@ -94,16 +94,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 @@ -141,16 +141,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 ffae24c

Please sign in to comment.