8000 chore: Update to gapic-generator-python 1.6.0 by gcf-owl-bot[bot] · Pull Request #315 · googleapis/python-analytics-data · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.
8000

chore: Update to gapic-generator-python 1.6.0 #315

Merged
merged 5 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
10000
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/data_v1alpha/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Analytics Data v1alpha API

.. automodule:: google.analytics.data_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/data_v1beta/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Analytics Data v1beta API

.. automodule:: google.analytics.data_v1beta.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)

from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
Expand Down Expand Up @@ -157,9 +167,9 @@ def transport(self) -> AlphaAnalyticsDataTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, AlphaAnalyticsDataTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the alpha analytics data client.
Expand Down Expand Up @@ -203,10 +213,12 @@ def __init__(

async def run_funnel_report(
self,
request: Union[analytics_data_api.RunFunnelReportRequest, dict] = None,
request: Optional[
Union[analytics_data_api.RunFunnelReportRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> analytics_data_api.RunFunnelReportResponse:
r"""Returns a customized funnel report of your Google Analytics
Expand Down Expand Up @@ -248,7 +260,7 @@ async def sample_run_funnel_report():
print(response)

Args:
request (Union[google.analytics.data_v1alpha.types.RunFunnelReportRequest, dict]):
request (Optional[Union[google.analytics.data_v1alpha.types.RunFunnelReportRequest, dict]]):
The request object. The request for a funnel report.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union, cast
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
cast,
)

from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
Expand Down Expand Up @@ -59,7 +70,7 @@ class AlphaAnalyticsDataClientMeta(type):

def get_transport_class(
cls,
label: str = None,
label: Optional[str] = None,
) -> Type[AlphaAnalyticsDataTransport]:
"""Returns an appropriate transport class.

Expand Down Expand Up @@ -312,7 +323,7 @@ def __init__(
self,
*,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, AlphaAnalyticsDataTransport, None] = None,
transport: Optional[Union[str, AlphaAnalyticsDataTransport]] = None,
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
Expand Down Expand Up @@ -413,10 +424,12 @@ def __init__(

def run_funnel_report(
self,
request: Union[analytics_data_api.RunFunnelReportRequest, dict] = None,
request: Optional[
Union[analytics_data_api.RunFunnelReportRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> analytics_data_api.RunFunnelReportResponse:
r"""Returns a customized funnel report of your Google Analytics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(
self,
*,
host: str = DEFAULT_HOST,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ def __init__(
self,
*,
host: str = "analyticsdata.googleapis.com",
credentials: ga_credentials.Credentials = None,
credentials_file: str = None,
scopes: Sequence[str] = None,
channel: grpc.Channel = None,
api_mtls_endpoint: str = None,
client_cert_source: Callable[[], Tuple[bytes, bytes]] = None,
ssl_channel_credentials: grpc.ChannelCredentials = None,
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
channel: Optional[grpc.Channel] = None,
api_mtls_endpoint: Optional[str] = None,
client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
Expand Down Expand Up @@ -180,8 +180,8 @@ def __init__(
def create_channel(
cls,
host: str = "analyticsdata.googleapis.com",
credentials: ga_credentials.Credentials = None,
credentials_file: str = None,
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
**kwargs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AlphaAnalyticsDataGrpcAsyncIOTransport(AlphaAnalyticsDataTransport):
def create_channel(
cls,
host: str = "analyticsdata.googleapis.com",
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
quota_project_id: Optional[str] = None,
Expand Down Expand Up @@ -91,15 +91,15 @@ def __init__(
self,
*,
host: str = "analyticsdata.googleapis.com",
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
channel: aio.Channel = None,
api_mtls_endpoint: str = None,
client_cert_source: Callable[[], Tuple[bytes, bytes]] = None,
ssl_channel_credentials: grpc.ChannelCredentials = None,
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
quota_project_id=None,
channel: Optional[aio.Channel] = None,
api_mtls_endpoint: Optional[str] = None,
client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
api_audience: Optional[str] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ def __init__(
self,
*,
host: str = "analyticsdata.googleapis.com",
credentials: ga_credentials.Credentials = None,
credentials_file: str = None,
scopes: Sequence[str] = None,
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
credentials: Optional[ga_credentials.Credentials] = None,
credentials_file: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
Expand Down Expand Up @@ -212,7 +212,7 @@ def __call__(
request: analytics_data_api.RunFunnelReportRequest,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> analytics_data_api.RunFunnelReportResponse:
r"""Call the run funnel report method over HTTP.
Expand Down
34 changes: 18 additions & 16 deletions google/analytics/data_v1alpha/types/analytics_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from typing import MutableMapping, MutableSequence

import proto # type: ignore

from google.analytics.data_v1alpha.types import data
Expand All @@ -39,7 +41,7 @@ class RunFunnelReportRequest(proto.Message):
unspecified or consistent with the batch-level property.

Example: properties/1234
date_ranges (Sequence[google.analytics.data_v1alpha.types.DateRange]):
date_ranges (MutableSequence[google.analytics.data_v1alpha.types.DateRange]):
Date ranges of data to read. If multiple date
ranges are requested, each response row will
contain a zero based date range index. If two
Expand Down Expand Up @@ -70,7 +72,7 @@ class RunFunnelReportRequest(proto.Message):
The funnel visualization type controls the dimensions
present in the funnel visualization sub report response. If
not specified, ``STANDARD_FUNNEL`` is used.
segments (Sequence[google.analytics.data_v1alpha.types.Segment]):
segments (MutableSequence[google.analytics.data_v1alpha.types.Segment]):
The configurations of segments. Segments are
subsets of a property's data. In a funnel report
with segments, the funnel is evaluated in each
Expand Down Expand Up @@ -110,50 +112,50 @@ class FunnelVisualizationType(proto.Enum):
STANDARD_FUNNEL = 1
TRENDED_FUNNEL = 2

property = proto.Field(
property: str = proto.Field(
proto.STRING,
number=1,
)
date_ranges = proto.RepeatedField(
date_ranges: MutableSequence[data.DateRange] = proto.RepeatedField(
proto.MESSAGE,
number=2,
message=data.DateRange,
)
funnel = proto.Field(
funnel: data.Funnel = proto.Field(
proto.MESSAGE,
number=3,
message=data.Funnel,
)
funnel_breakdown = proto.Field(
funnel_breakdown: data.FunnelBreakdown = proto.Field(
proto.MESSAGE,
number=4,
message=data.FunnelBreakdown,
)
funnel_next_action = proto.Field(
funnel_next_action: data.FunnelNextAction = proto.Field(
proto.MESSAGE,
number=5,
message=data.FunnelNextAction,
)
fun 57AE nel_visualization_type = proto.Field(
funnel_visualization_type: FunnelVisualizationType = proto.Field(
proto.ENUM,
number=6,
enum=FunnelVisualizationType,
)
segments = proto.RepeatedField(
segments: MutableSequence[data.Segment] = proto.RepeatedField(
proto.MESSAGE,
number=7,
message=data.Segment,
)
limit = proto.Field(
limit: int = proto.Field(
proto.INT64,
number=9,
)
dimension_filter = proto.Field(
dimension_filter: data.FilterExpression = proto.Field(
proto.MESSAGE,
number=10,
message=data.FilterExpression,
)
return_property_quota = proto.Field(
return_property_quota: bool = proto.Field(
proto.BOOL,
number=12,
)
Expand Down Expand Up @@ -194,22 +196,22 @@ class RunFunnelReportResponse(proto.Message):
between response types in JSON.
"""

funnel_table = proto.Field(
funnel_table: data.FunnelSubReport = proto.Field(
proto.MESSAGE,
number=1,
message=data.FunnelSubReport,
)
funnel_visualization = proto.Field(
funnel_visualization: data.FunnelSubReport = proto.Field(
proto.MESSAGE,
number=2,
message=data.FunnelSubReport,
)
property_quota = proto.Field(
property_quota: data.PropertyQuota = proto.Field(
proto.MESSAGE,
number=3,
message=data.PropertyQuota,
)
kind = proto.Field(
kind: str = proto.Field(
proto.STRING,
number=4,
)
Expand Down
Loading
0