Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#139)
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] authored Sep 24, 2021
1 parent 179ac01 commit 25b4698
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 42 deletions.
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 @@ -349,7 +349,7 @@ def __init__(

def run_report(
self,
request: analytics_data_api.RunReportRequest = None,
request: Union[analytics_data_api.RunReportRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -366,7 +366,7 @@ def run_report(
criteria, such as country or event name.
Args:
request (google.analytics.data_v1alpha.types.RunReportRequest):
request (Union[google.analytics.data_v1alpha.types.RunReportRequest, dict]):
The request object. The request to generate a report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -400,7 +400,7 @@ def run_report(

def run_pivot_report(
self,
request: analytics_data_api.RunPivotReportRequest = None,
request: Union[analytics_data_api.RunPivotReportRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -414,7 +414,7 @@ def run_pivot_report(
dissect your data.
Args:
request (google.analytics.data_v1alpha.types.RunPivotReportRequest):
request (Union[google.analytics.data_v1alpha.types.RunPivotReportRequest, dict]):
The request object. The request to generate a pivot
report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -449,7 +449,7 @@ def run_pivot_report(

def batch_run_reports(
self,
request: analytics_data_api.BatchRunReportsRequest = None,
request: Union[analytics_data_api.BatchRunReportsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -459,7 +459,7 @@ def batch_run_reports(
be for the same Entity.
Args:
request (google.analytics.data_v1alpha.types.BatchRunReportsRequest):
request (Union[google.analytics.data_v1alpha.types.BatchRunReportsRequest, dict]):
The request object. The batch request containing
multiple report requests.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -494,7 +494,7 @@ def batch_run_reports(

def batch_run_pivot_reports(
self,
request: analytics_data_api.BatchRunPivotReportsRequest = None,
request: Union[analytics_data_api.BatchRunPivotReportsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -504,7 +504,7 @@ def batch_run_pivot_reports(
reports must be for the same Entity.
Args:
request (google.analytics.data_v1alpha.types.BatchRunPivotReportsRequest):
request (Union[google.analytics.data_v1alpha.types.BatchRunPivotReportsRequest, dict]):
The request object. The batch request containing
multiple pivot report requests.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -539,7 +539,7 @@ def batch_run_pivot_reports(

def get_metadata(
self,
request: analytics_data_api.GetMetadataRequest = None,
request: Union[analytics_data_api.GetMetadataRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -559,7 +559,7 @@ def get_metadata(
such as ``country`` and ``totalUsers``.
Args:
request (google.analytics.data_v1alpha.types.GetMetadataRequest):
request (Union[google.analytics.data_v1alpha.types.GetMetadataRequest, dict]):
The request object. Request for a property's dimension
and metric metadata.
name (str):
Expand Down Expand Up @@ -630,7 +630,7 @@ def get_metadata(

def run_realtime_report(
self,
request: analytics_data_api.RunRealtimeReportRequest = None,
request: Union[analytics_data_api.RunRealtimeReportRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -642,7 +642,7 @@ def run_realtime_report(
last 30 minutes.
Args:
request (google.analytics.data_v1alpha.types.RunRealtimeReportRequest):
request (Union[google.analytics.data_v1alpha.types.RunRealtimeReportRequest, dict]):
The request object. The request to generate a realtime
report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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 @@ -80,16 +80,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 @@ -127,16 +127,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 @@ -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 @@ -349,7 +349,7 @@ def __init__(

def run_report(
self,
request: analytics_data_api.RunReportRequest = None,
request: Union[analytics_data_api.RunReportRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -366,7 +366,7 @@ def run_report(
criteria, such as country or event name.
Args:
request (google.analytics.data_v1beta.types.RunReportRequest):
request (Union[google.analytics.data_v1beta.types.RunReportRequest, dict]):
The request object. The request to generate a report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -406,7 +406,7 @@ def run_report(

def run_pivot_report(
self,
request: analytics_data_api.RunPivotReportRequest = None,
request: Union[analytics_data_api.RunPivotReportRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -420,7 +420,7 @@ def run_pivot_report(
dissect your data.
Args:
request (google.analytics.data_v1beta.types.RunPivotReportRequest):
request (Union[google.analytics.data_v1beta.types.RunPivotReportRequest, dict]):
The request object. The request to generate a pivot
report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -461,7 +461,7 @@ def run_pivot_report(

def batch_run_reports(
self,
request: analytics_data_api.BatchRunReportsRequest = None,
request: Union[analytics_data_api.BatchRunReportsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -471,7 +471,7 @@ def batch_run_reports(
be for the same GA4 Property.
Args:
request (google.analytics.data_v1beta.types.BatchRunReportsRequest):
request (Union[google.analytics.data_v1beta.types.BatchRunReportsRequest, dict]):
The request object. The batch request containing
multiple report requests.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -512,7 +512,7 @@ def batch_run_reports(

def batch_run_pivot_reports(
self,
request: analytics_data_api.BatchRunPivotReportsRequest = None,
request: Union[analytics_data_api.BatchRunPivotReportsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -522,7 +522,7 @@ def batch_run_pivot_reports(
reports must be for the same GA4 Property.
Args:
request (google.analytics.data_v1beta.types.BatchRunPivotReportsRequest):
request (Union[google.analytics.data_v1beta.types.BatchRunPivotReportsRequest, dict]):
The request object. The batch request containing
multiple pivot report requests.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -563,7 +563,7 @@ def batch_run_pivot_reports(

def get_metadata(
self,
request: analytics_data_api.GetMetadataRequest = None,
request: Union[analytics_data_api.GetMetadataRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -583,7 +583,7 @@ def get_metadata(
such as ``country`` and ``totalUsers``.
Args:
request (google.analytics.data_v1beta.types.GetMetadataRequest):
request (Union[google.analytics.data_v1beta.types.GetMetadataRequest, dict]):
The request object. Request for a property's dimension
and metric metadata.
name (str):
Expand Down Expand Up @@ -654,7 +654,7 @@ def get_metadata(

def run_realtime_report(
self,
request: analytics_data_api.RunRealtimeReportRequest = None,
request: Union[analytics_data_api.RunRealtimeReportRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -666,7 +666,7 @@ def run_realtime_report(
last 30 minutes.
Args:
request (google.analytics.data_v1beta.types.RunRealtimeReportRequest):
request (Union[google.analytics.data_v1beta.types.RunRealtimeReportRequest, dict]):
The request object. The request to generate a realtime
report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -707,7 +707,7 @@ def run_realtime_report(

def check_compatibility(
self,
request: analytics_data_api.CheckCompatibilityRequest = None,
request: Union[analytics_data_api.CheckCompatibilityRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -726,7 +726,7 @@ def check_compatibility(
for Core reports.
Args:
request (google.analytics.data_v1beta.types.CheckCompatibilityRequest):
request (Union[google.analytics.data_v1beta.types.CheckCompatibilityRequest, dict]):
The request object. The request for compatibility
information for a report's dimensions and metrics. Check
compatibility provides a preview of the compatibility of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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 @@ -80,16 +80,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 @@ -127,16 +127,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

0 comments on commit 25b4698

Please sign in to comment.