FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: use gapic-generator-python 0.51.2 (#139) · engti/python-analytics-data@a9accfd · GitHub

Commit a9accfd

Browse files
chore: use gapic-generator-python 0.51.2 (googleapis#139)
- [ ] 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 0d1bd87 commit a9accfd

8 files changed

Lines changed: 42 additions & 42 deletions

File tree

‎google/analytics/data_v1alpha/services/alpha_analytics_data/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
@@ -349,7 +349,7 @@ def __init__(
349349

350350
def run_report(
351351
self,
352-
request: analytics_data_api.RunReportRequest = None,
352+
request: Union[analytics_data_api.RunReportRequest, dict] = None,
353353
*,
354354
retry: retries.Retry = gapic_v1.method.DEFAULT,
355355
timeout: float = None,
@@ -366,7 +366,7 @@ def run_report(
366366
criteria, such as country or event name.
367367
368368
Args:
369-
request (google.analytics.data_v1alpha.types.RunReportRequest):
369+
request (Union[google.analytics.data_v1alpha.types.RunReportRequest, dict]):
370370
The request object. The request to generate a report.
371371
retry (google.api_core.retry.Retry): Designation of what errors, if any,
372372
should be retried.
@@ -400,7 +400,7 @@ def run_report(
400400

401401
def run_pivot_report(
402402
self,
403-
request: analytics_data_api.RunPivotReportRequest = None,
403+
request: Union[analytics_data_api.RunPivotReportRequest, dict] = None,
404404
*,
405405
retry: retries.Retry = gapic_v1.method.DEFAULT,
406406
timeout: float = None,
@@ -414,7 +414,7 @@ def run_pivot_report(
414414
dissect your data.
415415
416416
Args:
417-
request (google.analytics.data_v1alpha.types.RunPivotReportRequest):
417+
request (Union[google.analytics.data_v1alpha.types.RunPivotReportRequest, dict]):
418418
The request object. The request to generate a pivot
419419
report.
420420
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -449,7 +449,7 @@ def run_pivot_report(
449449

450450
def batch_run_reports(
451451
self,
452-
request: analytics_data_api.BatchRunReportsRequest = None,
452+
request: Union[analytics_data_api.BatchRunReportsRequest, dict] = None,
453453
*,
454454
retry: retries.Retry = gapic_v1.method.DEFAULT,
455455
timeout: float = None,
@@ -459,7 +459,7 @@ def batch_run_reports(
459459
be for the same Entity.
460460
461461
Args:
462-
request (google.analytics.data_v1alpha.types.BatchRunReportsRequest):
462+
request (Union[google.analytics.data_v1alpha.types.BatchRunReportsRequest, dict]):
463463
The request object. The batch request containing
464464
multiple report requests.
465465
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -494,7 +494,7 @@ def batch_run_reports(
494494

495495
def batch_run_pivot_reports(
496496
self,
497-
request: analytics_data_api.BatchRunPivotReportsRequest = None,
497+
request: Union[analytics_data_api.BatchRunPivotReportsRequest, dict] = None,
498498
*,
499499
retry: retries.Retry = gapic_v1.method.DEFAULT,
500500
timeout: float = None,
@@ -504,7 +504,7 @@ def batch_run_pivot_reports(
504504
reports must be for the same Entity.
505505
506506
Args:
507-
request (google.analytics.data_v1alpha.types.BatchRunPivotReportsRequest):
507+
request (Union[google.analytics.data_v1alpha.types.BatchRunPivotReportsRequest, dict]):
508508
The request object. The batch request containing
509509
multiple pivot report requests.
510510
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -539,7 +539,7 @@ def batch_run_pivot_reports(
539539

540540
def get_metadata(
541541
self,
542-
request: analytics_data_api.GetMetadataRequest = None,
542+
request: Union[analytics_data_api.GetMetadataRequest, dict] = None,
543543
*,
544544
name: str = None,
545545
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -559,7 +559,7 @@ def get_metadata(
559559
such as ``country`` and ``totalUsers``.
560560
561561
Args:
562-
request (google.analytics.data_v1alpha.types.GetMetadataRequest):
562+
request (Union[google.analytics.data_v1alpha.types.GetMetadataRequest, dict]):
563563
The request object. Request for a property's dimension
564564
and metric metadata.
565565
name (str):
@@ -630,7 +630,7 @@ def get_metadata(
630630

631631
def run_realtime_report(
632632
self,
633-
request: analytics_data_api.RunRealtimeReportRequest = None,
633+
request: Union[analytics_data_api.RunRealtimeReportRequest, dict] = None,
634634
*,
635635
retry: retries.Retry = gapic_v1.method.DEFAULT,
636636
timeout: float = None,
@@ -642,7 +642,7 @@ def run_realtime_report(
642642
last 30 minutes.
643643
644644
Args:
645-
request (google.analytics.data_v1alpha.types.RunRealtimeReportRequest):
645+
request (Union[google.analytics.data_v1alpha.types.RunRealtimeReportRequest, dict]):
646646
The request object. The request to generate a realtime
647647
report.
648648
retry (google.api_core.retry.Retry): Designation of what errors, if any,

‎google/analytics/data_v1alpha/services/alpha_analytics_data/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/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc.py‎

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

‎google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc_asyncio.py‎

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

‎google/analytics/data_v1beta/services/beta_analytics_data/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
@@ -349,7 +349,7 @@ def __init__(
349349

350350
def run_report(
351351
self,
352-
request: analytics_data_api.RunReportRequest = None,
352+
request: Union[analytics_data_api.RunReportRequest, dict] = None,
353353
*,
354354
retry: retries.Retry = gapic_v1.method.DEFAULT,
355355
timeout: float = None,
@@ -366,7 +366,7 @@ def run_report(
366366
criteria, such as country or event name.
367367
368368
Args:
369-
request (google.analytics.data_v1beta.types.RunReportRequest):
369+
request (Union[google.analytics.data_v1beta.types.RunReportRequest, dict]):
370370
The request object. The request to generate a report.
371371
retry (google.api_core.retry.Retry): Designation of what errors, if any,
372372
should be retried.
@@ -406,7 +406,7 @@ def run_report(
406406

407407
def run_pivot_report(
408408
self,
409-
request: analytics_data_api.RunPivotReportRequest = None,
409+
request: Union[analytics_data_api.RunPivotReportRequest, dict] = None,
410410
*,
411411
retry: retries.Retry = gapic_v1.method.DEFAULT,
412412
timeout: float = None,
@@ -420,7 +420,7 @@ def run_pivot_report(
420420
dissect your data.
421421
422422
Args:
423-
request (google.analytics.data_v1beta.types.RunPivotReportRequest):
423+
request (Union[google.analytics.data_v1beta.types.RunPivotReportRequest, dict]):
424424
The request object. The request to generate a pivot
425425
report.
426426
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -461,7 +461,7 @@ def run_pivot_report(
461461

462462
def batch_run_reports(
463463
self,
464-
request: analytics_data_api.BatchRunReportsRequest = None,
464+
request: Union[analytics_data_api.BatchRunReportsRequest, dict] = None,
465465
*,
466466
retry: retries.Retry = gapic_v1.method.DEFAULT,
467467
timeout: float = None,
@@ -471,7 +471,7 @@ def batch_run_reports(
471471
be for the same GA4 Property.
472472
473473
Args:
474-
request (google.analytics.data_v1beta.types.BatchRunReportsRequest):
474+
request (Union[google.analytics.data_v1beta.types.BatchRunReportsRequest, dict]):
475475
The request object. The batch request containing
476476
multiple report requests.
477477
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -512,7 +512,7 @@ def batch_run_reports(
512512

513513
def batch_run_pivot_reports(
514514
self,
515-
request: analytics_data_api.BatchRunPivotReportsRequest = None,
515+
request: Union[analytics_data_api.BatchRunPivotReportsRequest, dict] = None,
516516
*,
517517
retry: retries.Retry = gapic_v1.method.DEFAULT,
518518
timeout: float = None,
@@ -522,7 +522,7 @@ def batch_run_pivot_reports(
522522
reports must be for the same GA4 Property.
523523
524524
Args:
525-
request (google.analytics.data_v1beta.types.BatchRunPivotReportsRequest):
525+
request (Union[google.analytics.data_v1beta.types.BatchRunPivotReportsRequest, dict]):
526526
The request object. The batch request containing
527527
multiple pivot report requests.
528528
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -563,7 +563,7 @@ def batch_run_pivot_reports(
563563

564564
def get_metadata(
565565
self,
566-
request: analytics_data_api.GetMetadataRequest = None,
566+
request: Union[analytics_data_api.GetMetadataRequest, dict] = None,
567567
*,
568568
name: str = None,
569569
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -583,7 +583,7 @@ def get_metadata(
583583
such as ``country`` and ``totalUsers``.
584584
585585
Args:
586-
request (google.analytics.data_v1beta.types.GetMetadataRequest):
586+
request (Union[google.analytics.data_v1beta.types.GetMetadataRequest, dict]):
587587
The request object. Request for a property's dimension
588588
and metric metadata.
589589
name (str):
@@ -654,7 +654,7 @@ def get_metadata(
654654

655655
def run_realtime_report(
656656
self,
657-
request: analytics_data_api.RunRealtimeReportRequest = None,
657+
request: Union[analytics_data_api.RunRealtimeReportRequest, dict] = None,
658658
*,
659659
retry: retries.Retry = gapic_v1.method.DEFAULT,
660660
timeout: float = None,
@@ -666,7 +666,7 @@ def run_realtime_report(
666666
last 30 minutes.
667667
668668
Args:
669-
request (google.analytics.data_v1beta.types.RunRealtimeReportRequest):
669+
request (Union[google.analytics.data_v1beta.types.RunRealtimeReportRequest, dict]):
670670
The request object. The request to generate a realtime
671671
report.
672672
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -707,7 +707,7 @@ def run_realtime_report(
707707

708708
def check_compatibility(
709709
self,
710-
request: analytics_data_api.CheckCompatibilityRequest = None,
710+
request: Union[analytics_data_api.CheckCompatibilityRequest, dict] = None,
711711
*,
712712
retry: retries.Retry = gapic_v1.method.DEFAULT,
713713
timeout: float = None,
@@ -726,7 +726,7 @@ def check_compatibility(
726726
for Core reports.
727727
728728
Args:
729-
request (google.analytics.data_v1beta.types.CheckCompatibilityRequest):
729+
request (Union[google.analytics.data_v1beta.types.CheckCompatibilityRequest, dict]):
730730
The request object. The request for compatibility
731731
information for a report's dimensions and metrics. Check
732732
compatibility provides a preview of the compatibility of

‎google/analytics/data_v1beta/services/beta_analytics_data/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/analytics/data_v1beta/services/beta_analytics_data/transports/grpc.py‎

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

‎google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc_asyncio.py‎

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

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL