Skip to content

Commit 253a66f

Browse files
chore: use gapic-generator-python 0.51.2 (#177)
- [ ] 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 4a76f8f commit 253a66f

File tree

13 files changed

+43
-43
lines changed

13 files changed

+43
-43
lines changed

google/cloud/errorreporting_v1beta1/services/error_group_service/client.py

Lines changed: 5 additions & 5 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
@@ -349,7 +349,7 @@ def __init__(
349349

350350
def get_group(
351351
self,
352-
request: error_group_service.GetGroupRequest = None,
352+
request: Union[error_group_service.GetGroupRequest, dict] = None,
353353
*,
354354
group_name: str = None,
355355
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -359,7 +359,7 @@ def get_group(
359359
r"""Get the specified group.
360360
361361
Args:
362-
request (google.cloud.errorreporting_v1beta1.types.GetGroupRequest):
362+
request (Union[google.cloud.errorreporting_v1beta1.types.GetGroupRequest, dict]):
363363
The request object. A request to return an individual
364364
group.
365365
group_name (str):
@@ -426,7 +426,7 @@ def get_group(
426426

427427
def update_group(
428428
self,
429-
request: error_group_service.UpdateGroupRequest = None,
429+
request: Union[error_group_service.UpdateGroupRequest, dict] = None,
430430
*,
431431
group: common.ErrorGroup = None,
432432
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -437,7 +437,7 @@ def update_group(
437437
Fails if the group does not exist.
438438
439439
Args:
440-
request (google.cloud.errorreporting_v1beta1.types.UpdateGroupRequest):
440+
request (Union[google.cloud.errorreporting_v1beta1.types.UpdateGroupRequest, dict]):
441441
The request object. A request to replace the existing
442442
data for the given group.
443443
group (google.cloud.errorreporting_v1beta1.types.ErrorGroup):

google/cloud/errorreporting_v1beta1/services/error_group_service/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/errorreporting_v1beta1/services/error_group_service/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/errorreporting_v1beta1/services/error_group_service/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/errorreporting_v1beta1/services/error_stats_service/client.py

Lines changed: 7 additions & 7 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
@@ -352,7 +352,7 @@ def __init__(
352352

353353
def list_group_stats(
354354
self,
355-
request: error_stats_service.ListGroupStatsRequest = None,
355+
request: Union[error_stats_service.ListGroupStatsRequest, dict] = None,
356356
*,
357357
project_name: str = None,
358358
time_range: error_stats_service.QueryTimeRange = None,
@@ -363,7 +363,7 @@ def list_group_stats(
363363
r"""Lists the specified groups.
364364
365365
Args:
366-
request (google.cloud.errorreporting_v1beta1.types.ListGroupStatsRequest):
366+
request (Union[google.cloud.errorreporting_v1beta1.types.ListGroupStatsRequest, dict]):
367367
The request object. Specifies a set of `ErrorGroupStats`
368368
to return.
369369
project_name (str):
@@ -456,7 +456,7 @@ def list_group_stats(
456456

457457
def list_events(
458458
self,
459-
request: error_stats_service.ListEventsRequest = None,
459+
request: Union[error_stats_service.ListEventsRequest, dict] = None,
460460
*,
461461
project_name: str = None,
462462
group_id: str = None,
@@ -467,7 +467,7 @@ def list_events(
467467
r"""Lists the specified events.
468468
469469
Args:
470-
request (google.cloud.errorreporting_v1beta1.types.ListEventsRequest):
470+
request (Union[google.cloud.errorreporting_v1beta1.types.ListEventsRequest, dict]):
471471
The request object. Specifies a set of error events to
472472
return.
473473
project_name (str):
@@ -552,7 +552,7 @@ def list_events(
552552

553553
def delete_events(
554554
self,
555-
request: error_stats_service.DeleteEventsRequest = None,
555+
request: Union[error_stats_service.DeleteEventsRequest, dict] = None,
556556
*,
557557
project_name: str = None,
558558
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -562,7 +562,7 @@ def delete_events(
562562
r"""Deletes all error events of a given project.
563563
564564
Args:
565-
request (google.cloud.errorreporting_v1beta1.types.DeleteEventsRequest):
565+
request (Union[google.cloud.errorreporting_v1beta1.types.DeleteEventsRequest, dict]):
566566
The request object. Deletes all events in the project.
567567
project_name (str):
568568
Required. The resource name of the Google Cloud Platform

google/cloud/errorreporting_v1beta1/services/error_stats_service/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)

google/cloud/errorreporting_v1beta1/services/error_stats_service/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/errorreporting_v1beta1/services/error_stats_service/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/errorreporting_v1beta1/services/report_errors_service/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 report_error_event(
339339
self,
340-
request: report_errors_service.ReportErrorEventRequest = None,
340+
request: Union[report_errors_service.ReportErrorEventRequest, dict] = None,
341341
*,
342342
project_name: str = None,
343343
event: report_errors_service.ReportedErrorEvent = None,
@@ -363,7 +363,7 @@ def report_error_event(
363363
regionalized logs </error-reporting/docs/regionalization>`__.
364364
365365
Args:
366-
request (google.cloud.errorreporting_v1beta1.types.ReportErrorEventRequest):
366+
request (Union[google.cloud.errorreporting_v1beta1.types.ReportErrorEventRequest, dict]):
367367
The request object. A request for reporting an
368368
individual error event.
369369
project_name (str):

google/cloud/errorreporting_v1beta1/services/report_errors_service/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)