From a9accfd6e61ff2d0c18fdfaea1cf8d4a12671770 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:12:19 +0000 Subject: [PATCH] chore: use gapic-generator-python 0.51.2 (#139) - [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: https://github.com/googleapis/googleapis/commit/b224dfa52642a733ea64849d4e06d15c274bc08f Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9 --- .../services/alpha_analytics_data/client.py | 26 ++++++++-------- .../alpha_analytics_data/transports/base.py | 2 +- .../alpha_analytics_data/transports/grpc.py | 6 ++-- .../transports/grpc_asyncio.py | 6 ++-- .../services/beta_analytics_data/client.py | 30 +++++++++---------- .../beta_analytics_data/transports/base.py | 2 +- .../beta_analytics_data/transports/grpc.py | 6 ++-- .../transports/grpc_asyncio.py | 6 ++-- 8 files changed, 42 insertions(+), 42 deletions(-) diff --git a/google/analytics/data_v1alpha/services/alpha_analytics_data/client.py b/google/analytics/data_v1alpha/services/alpha_analytics_data/client.py index a9999ec..7f1cafb 100644 --- a/google/analytics/data_v1alpha/services/alpha_analytics_data/client.py +++ b/google/analytics/data_v1alpha/services/alpha_analytics_data/client.py @@ -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 @@ -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, @@ -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. @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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): @@ -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, @@ -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, diff --git a/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/base.py b/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/base.py index 179c040..515fc61 100644 --- a/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/base.py +++ b/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/base.py @@ -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) diff --git a/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc.py b/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc.py index e044c95..38d4e9e 100644 --- a/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc.py +++ b/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc.py @@ -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. diff --git a/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc_asyncio.py b/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc_asyncio.py index 9fa3e67..56912ac 100644 --- a/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc_asyncio.py +++ b/google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc_asyncio.py @@ -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. diff --git a/google/analytics/data_v1beta/services/beta_analytics_data/client.py b/google/analytics/data_v1beta/services/beta_analytics_data/client.py index e5818a0..1053b4c 100644 --- a/google/analytics/data_v1beta/services/beta_analytics_data/client.py +++ b/google/analytics/data_v1beta/services/beta_analytics_data/client.py @@ -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 @@ -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, @@ -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. @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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): @@ -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, @@ -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, @@ -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, @@ -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 diff --git a/google/analytics/data_v1beta/services/beta_analytics_data/transports/base.py b/google/analytics/data_v1beta/services/beta_analytics_data/transports/base.py index 30f8902..7f4eb54 100644 --- a/google/analytics/data_v1beta/services/beta_analytics_data/transports/base.py +++ b/google/analytics/data_v1beta/services/beta_analytics_data/transports/base.py @@ -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) diff --git a/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc.py b/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc.py index 3592f8d..85b78fc 100644 --- a/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc.py +++ b/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc.py @@ -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. diff --git a/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc_asyncio.py b/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc_asyncio.py index 0b0e661..2a9682a 100644 --- a/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc_asyncio.py +++ b/google/analytics/data_v1beta/services/beta_analytics_data/transports/grpc_asyncio.py @@ -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.