google-analytics-admin 0.30.0__tar.gz → 0.30.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_analytics_admin-0.30.0/google_analytics_admin.egg-info → google_analytics_admin-0.30.1}/PKG-INFO +4 -5
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin/__init__.py +2 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin/gapic_version.py +1 -1
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/__init__.py +6 -4
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/gapic_metadata.json +15 -0
- {google_analytics_admin-0.30.0/google/analytics/admin_v1beta → google_analytics_admin-0.30.1/google/analytics/admin_v1alpha}/gapic_version.py +1 -1
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +115 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +114 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +17 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +33 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +38 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +235 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +59 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/__init__.py +2 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/analytics_admin.py +29 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/resources.py +7 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/__init__.py +4 -4
- {google_analytics_admin-0.30.0/google/analytics/admin_v1alpha → google_analytics_admin-0.30.1/google/analytics/admin_v1beta}/gapic_version.py +1 -1
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/analytics_admin.py +58 -58
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/resources.py +56 -24
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1/google_analytics_admin.egg-info}/PKG-INFO +4 -5
- google_analytics_admin-0.30.1/google_analytics_admin.egg-info/requires.txt +8 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/setup.py +7 -5
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +870 -0
- google_analytics_admin-0.30.0/google_analytics_admin.egg-info/requires.txt +0 -11
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/LICENSE +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/MANIFEST.in +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/README.rst +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin/py.typed +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/py.typed +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/access_report.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/audience.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/channel_group.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/expanded_data_set.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/py.typed +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/access_report.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/not-zip-safe +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/top_level.txt +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/setup.cfg +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/unit/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/admin_v1alpha/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/admin_v1beta/__init__.py +0 -0
- {google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/admin_v1beta/test_analytics_admin_service.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-analytics-admin
|
|
3
|
-
Version: 0.30.
|
|
3
|
+
Version: 0.30.1
|
|
4
4
|
Summary: Google Analytics Admin API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-analytics-admin
|
|
6
6
|
Author: Google LLC
|
|
@@ -21,13 +21,12 @@ Classifier: Operating System :: OS Independent
|
|
|
21
21
|
Classifier: Topic :: Internet
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.
|
|
24
|
+
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.24.2
|
|
25
25
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
26
26
|
Requires-Dist: grpcio<2.0.0,>=1.59.0
|
|
27
27
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
28
|
-
Requires-Dist: proto-plus<2.0.0,>=1.
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist: protobuf<8.0.0,>=4.25.8
|
|
28
|
+
Requires-Dist: proto-plus<2.0.0,>=1.26.1
|
|
29
|
+
Requires-Dist: protobuf<8.0.0,>=6.33.5
|
|
31
30
|
Dynamic: author
|
|
32
31
|
Dynamic: author-email
|
|
33
32
|
Dynamic: classifier
|
{google_analytics_admin-0.30.0 → google_analytics_admin-0.30.1}/google/analytics/admin/__init__.py
RENAMED
|
@@ -236,6 +236,7 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
|
|
|
236
236
|
UpdateMeasurementProtocolSecretRequest,
|
|
237
237
|
UpdatePropertyRequest,
|
|
238
238
|
UpdateReportingDataAnnotationRequest,
|
|
239
|
+
UpdateReportingIdentitySettingsRequest,
|
|
239
240
|
UpdateSearchAds360LinkRequest,
|
|
240
241
|
UpdateSKAdNetworkConversionValueSchemaRequest,
|
|
241
242
|
UpdateSubpropertyEventFilterRequest,
|
|
@@ -543,6 +544,7 @@ __all__ = (
|
|
|
543
544
|
"UpdateMeasurementProtocolSecretRequest",
|
|
544
545
|
"UpdatePropertyRequest",
|
|
545
546
|
"UpdateReportingDataAnnotationRequest",
|
|
547
|
+
"UpdateReportingIdentitySettingsRequest",
|
|
546
548
|
"UpdateSearchAds360LinkRequest",
|
|
547
549
|
"UpdateSKAdNetworkConversionValueSchemaRequest",
|
|
548
550
|
"UpdateSubpropertyEventFilterRequest",
|
|
@@ -239,6 +239,7 @@ from .types.analytics_admin import (
|
|
|
239
239
|
UpdateMeasurementProtocolSecretRequest,
|
|
240
240
|
UpdatePropertyRequest,
|
|
241
241
|
UpdateReportingDataAnnotationRequest,
|
|
242
|
+
UpdateReportingIdentitySettingsRequest,
|
|
242
243
|
UpdateSearchAds360LinkRequest,
|
|
243
244
|
UpdateSKAdNetworkConversionValueSchemaRequest,
|
|
244
245
|
UpdateSubpropertyEventFilterRequest,
|
|
@@ -359,7 +360,7 @@ else: # pragma: NO COVER
|
|
|
359
360
|
|
|
360
361
|
def parse_version_to_tuple(version_string: str):
|
|
361
362
|
"""Safely converts a semantic version string to a comparable tuple of integers.
|
|
362
|
-
Example: "
|
|
363
|
+
Example: "6.33.5" -> (6, 33, 5)
|
|
363
364
|
Ignores non-numeric parts and handles common version formats.
|
|
364
365
|
Args:
|
|
365
366
|
version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
|
|
@@ -388,9 +389,9 @@ else: # pragma: NO COVER
|
|
|
388
389
|
return (None, "--")
|
|
389
390
|
|
|
390
391
|
_dependency_package = "google.protobuf"
|
|
391
|
-
_next_supported_version = "
|
|
392
|
-
_next_supported_version_tuple = (
|
|
393
|
-
_recommendation = " (we recommend
|
|
392
|
+
_next_supported_version = "6.33.5"
|
|
393
|
+
_next_supported_version_tuple = (6, 33, 5)
|
|
394
|
+
_recommendation = " (we recommend 7.x)"
|
|
394
395
|
(_version_used, _version_used_string) = _get_version(_dependency_package)
|
|
395
396
|
if _version_used and _version_used < _next_supported_version_tuple:
|
|
396
397
|
warnings.warn(
|
|
@@ -705,6 +706,7 @@ __all__ = (
|
|
|
705
706
|
"UpdateMeasurementProtocolSecretRequest",
|
|
706
707
|
"UpdatePropertyRequest",
|
|
707
708
|
"UpdateReportingDataAnnotationRequest",
|
|
709
|
+
"UpdateReportingIdentitySettingsRequest",
|
|
708
710
|
"UpdateSKAdNetworkConversionValueSchemaRequest",
|
|
709
711
|
"UpdateSearchAds360LinkRequest",
|
|
710
712
|
"UpdateSubpropertyEventFilterRequest",
|
|
@@ -765,6 +765,11 @@
|
|
|
765
765
|
"update_reporting_data_annotation"
|
|
766
766
|
]
|
|
767
767
|
},
|
|
768
|
+
"UpdateReportingIdentitySettings": {
|
|
769
|
+
"methods": [
|
|
770
|
+
"update_reporting_identity_settings"
|
|
771
|
+
]
|
|
772
|
+
},
|
|
768
773
|
"UpdateSKAdNetworkConversionValueSchema": {
|
|
769
774
|
"methods": [
|
|
770
775
|
"update_sk_ad_network_conversion_value_schema"
|
|
@@ -1545,6 +1550,11 @@
|
|
|
1545
1550
|
"update_reporting_data_annotation"
|
|
1546
1551
|
]
|
|
1547
1552
|
},
|
|
1553
|
+
"UpdateReportingIdentitySettings": {
|
|
1554
|
+
"methods": [
|
|
1555
|
+
"update_reporting_identity_settings"
|
|
1556
|
+
]
|
|
1557
|
+
},
|
|
1548
1558
|
"UpdateSKAdNetworkConversionValueSchema": {
|
|
1549
1559
|
"methods": [
|
|
1550
1560
|
"update_sk_ad_network_conversion_value_schema"
|
|
@@ -2325,6 +2335,11 @@
|
|
|
2325
2335
|
"update_reporting_data_annotation"
|
|
2326
2336
|
]
|
|
2327
2337
|
},
|
|
2338
|
+
"UpdateReportingIdentitySettings": {
|
|
2339
|
+
"methods": [
|
|
2340
|
+
"update_reporting_identity_settings"
|
|
2341
|
+
]
|
|
2342
|
+
},
|
|
2328
2343
|
"UpdateSKAdNetworkConversionValueSchema": {
|
|
2329
2344
|
"methods": [
|
|
2330
2345
|
"update_sk_ad_network_conversion_value_schema"
|
|
@@ -14759,6 +14759,121 @@ class AnalyticsAdminServiceAsyncClient:
|
|
|
14759
14759
|
# Done; return the response.
|
|
14760
14760
|
return response
|
|
14761
14761
|
|
|
14762
|
+
async def update_reporting_identity_settings(
|
|
14763
|
+
self,
|
|
14764
|
+
request: Optional[
|
|
14765
|
+
Union[analytics_admin.UpdateReportingIdentitySettingsRequest, dict]
|
|
14766
|
+
] = None,
|
|
14767
|
+
*,
|
|
14768
|
+
reporting_identity_settings: Optional[
|
|
14769
|
+
resources.ReportingIdentitySettings
|
|
14770
|
+
] = None,
|
|
14771
|
+
update_mask: Optional[field_mask_pb2.FieldMask] = None,
|
|
14772
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
14773
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
14774
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
14775
|
+
) -> resources.ReportingIdentitySettings:
|
|
14776
|
+
r"""Updates the reporting identity settings for this
|
|
14777
|
+
property.
|
|
14778
|
+
|
|
14779
|
+
Args:
|
|
14780
|
+
request (Optional[Union[google.analytics.admin_v1alpha.types.UpdateReportingIdentitySettingsRequest, dict]]):
|
|
14781
|
+
The request object. Request message for
|
|
14782
|
+
UpdateReportingIdentitySettings RPC.
|
|
14783
|
+
reporting_identity_settings (:class:`google.analytics.admin_v1alpha.types.ReportingIdentitySettings`):
|
|
14784
|
+
Required. The reporting identity settings to update. The
|
|
14785
|
+
settings' ``name`` field is used to identify the
|
|
14786
|
+
settings.
|
|
14787
|
+
|
|
14788
|
+
This corresponds to the ``reporting_identity_settings`` field
|
|
14789
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
14790
|
+
should not be set.
|
|
14791
|
+
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
|
|
14792
|
+
Optional. The list of fields to be updated. Field names
|
|
14793
|
+
must be in snake case (for example, "field_to_update").
|
|
14794
|
+
Omitted fields will not be updated. To replace the
|
|
14795
|
+
entire entity, use one path with the string "\*" to
|
|
14796
|
+
match all fields. If omitted, the service will treat it
|
|
14797
|
+
as an implied field mask equivalent to all fields that
|
|
14798
|
+
are populated.
|
|
14799
|
+
|
|
14800
|
+
This corresponds to the ``update_mask`` field
|
|
14801
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
14802
|
+
should not be set.
|
|
14803
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
14804
|
+
should be retried.
|
|
14805
|
+
timeout (float): The timeout for this request.
|
|
14806
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
14807
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
14808
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
14809
|
+
be of type `bytes`.
|
|
14810
|
+
|
|
14811
|
+
Returns:
|
|
14812
|
+
google.analytics.admin_v1alpha.types.ReportingIdentitySettings:
|
|
14813
|
+
A resource containing settings
|
|
14814
|
+
related to reporting identity.
|
|
14815
|
+
|
|
14816
|
+
"""
|
|
14817
|
+
# Create or coerce a protobuf request object.
|
|
14818
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
14819
|
+
# gotten any keyword arguments that map to the request.
|
|
14820
|
+
flattened_params = [reporting_identity_settings, update_mask]
|
|
14821
|
+
has_flattened_params = (
|
|
14822
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
14823
|
+
)
|
|
14824
|
+
if request is not None and has_flattened_params:
|
|
14825
|
+
raise ValueError(
|
|
14826
|
+
"If the `request` argument is set, then none of "
|
|
14827
|
+
"the individual field arguments should be set."
|
|
14828
|
+
)
|
|
14829
|
+
|
|
14830
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
14831
|
+
# there are no flattened fields), or create one.
|
|
14832
|
+
if not isinstance(
|
|
14833
|
+
request, analytics_admin.UpdateReportingIdentitySettingsRequest
|
|
14834
|
+
):
|
|
14835
|
+
request = analytics_admin.UpdateReportingIdentitySettingsRequest(request)
|
|
14836
|
+
|
|
14837
|
+
# If we have keyword arguments corresponding to fields on the
|
|
14838
|
+
# request, apply these.
|
|
14839
|
+
if reporting_identity_settings is not None:
|
|
14840
|
+
request.reporting_identity_settings = reporting_identity_settings
|
|
14841
|
+
if update_mask is not None:
|
|
14842
|
+
request.update_mask = update_mask
|
|
14843
|
+
|
|
14844
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
14845
|
+
# and friendly error handling.
|
|
14846
|
+
rpc = self._client._transport._wrapped_methods[
|
|
14847
|
+
self._client._transport.update_reporting_identity_settings
|
|
14848
|
+
]
|
|
14849
|
+
|
|
14850
|
+
# Certain fields should be provided within the metadata header;
|
|
14851
|
+
# add these here.
|
|
14852
|
+
metadata = tuple(metadata) + (
|
|
14853
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
14854
|
+
(
|
|
14855
|
+
(
|
|
14856
|
+
"reporting_identity_settings.name",
|
|
14857
|
+
request.reporting_identity_settings.name,
|
|
14858
|
+
),
|
|
14859
|
+
)
|
|
14860
|
+
),
|
|
14861
|
+
)
|
|
14862
|
+
|
|
14863
|
+
# Validate the universe domain.
|
|
14864
|
+
self._client._validate_universe_domain()
|
|
14865
|
+
|
|
14866
|
+
# Send the request.
|
|
14867
|
+
response = await rpc(
|
|
14868
|
+
request,
|
|
14869
|
+
retry=retry,
|
|
14870
|
+
timeout=timeout,
|
|
14871
|
+
metadata=metadata,
|
|
14872
|
+
)
|
|
14873
|
+
|
|
14874
|
+
# Done; return the response.
|
|
14875
|
+
return response
|
|
14876
|
+
|
|
14762
14877
|
async def get_user_provided_data_settings(
|
|
14763
14878
|
self,
|
|
14764
14879
|
request: Optional[
|
|
@@ -15355,6 +15355,120 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
|
|
|
15355
15355
|
# Done; return the response.
|
|
15356
15356
|
return response
|
|
15357
15357
|
|
|
15358
|
+
def update_reporting_identity_settings(
|
|
15359
|
+
self,
|
|
15360
|
+
request: Optional[
|
|
15361
|
+
Union[analytics_admin.UpdateReportingIdentitySettingsRequest, dict]
|
|
15362
|
+
] = None,
|
|
15363
|
+
*,
|
|
15364
|
+
reporting_identity_settings: Optional[
|
|
15365
|
+
resources.ReportingIdentitySettings
|
|
15366
|
+
] = None,
|
|
15367
|
+
update_mask: Optional[field_mask_pb2.FieldMask] = None,
|
|
15368
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
15369
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
15370
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
15371
|
+
) -> resources.ReportingIdentitySettings:
|
|
15372
|
+
r"""Updates the reporting identity settings for this
|
|
15373
|
+
property.
|
|
15374
|
+
|
|
15375
|
+
Args:
|
|
15376
|
+
request (Union[google.analytics.admin_v1alpha.types.UpdateReportingIdentitySettingsRequest, dict]):
|
|
15377
|
+
The request object. Request message for
|
|
15378
|
+
UpdateReportingIdentitySettings RPC.
|
|
15379
|
+
reporting_identity_settings (google.analytics.admin_v1alpha.types.ReportingIdentitySettings):
|
|
15380
|
+
Required. The reporting identity settings to update. The
|
|
15381
|
+
settings' ``name`` field is used to identify the
|
|
15382
|
+
settings.
|
|
15383
|
+
|
|
15384
|
+
This corresponds to the ``reporting_identity_settings`` field
|
|
15385
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
15386
|
+
should not be set.
|
|
15387
|
+
update_mask (google.protobuf.field_mask_pb2.FieldMask):
|
|
15388
|
+
Optional. The list of fields to be updated. Field names
|
|
15389
|
+
must be in snake case (for example, "field_to_update").
|
|
15390
|
+
Omitted fields will not be updated. To replace the
|
|
15391
|
+
entire entity, use one path with the string "\*" to
|
|
15392
|
+
match all fields. If omitted, the service will treat it
|
|
15393
|
+
as an implied field mask equivalent to all fields that
|
|
15394
|
+
are populated.
|
|
15395
|
+
|
|
15396
|
+
This corresponds to the ``update_mask`` field
|
|
15397
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
15398
|
+
should not be set.
|
|
15399
|
+
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
15400
|
+
should be retried.
|
|
15401
|
+
timeout (float): The timeout for this request.
|
|
15402
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
15403
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
15404
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
15405
|
+
be of type `bytes`.
|
|
15406
|
+
|
|
15407
|
+
Returns:
|
|
15408
|
+
google.analytics.admin_v1alpha.types.ReportingIdentitySettings:
|
|
15409
|
+
A resource containing settings
|
|
15410
|
+
related to reporting identity.
|
|
15411
|
+
|
|
15412
|
+
"""
|
|
15413
|
+
# Create or coerce a protobuf request object.
|
|
15414
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
15415
|
+
# gotten any keyword arguments that map to the request.
|
|
15416
|
+
flattened_params = [reporting_identity_settings, update_mask]
|
|
15417
|
+
has_flattened_params = (
|
|
15418
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
15419
|
+
)
|
|
15420
|
+
if request is not None and has_flattened_params:
|
|
15421
|
+
raise ValueError(
|
|
15422
|
+
"If the `request` argument is set, then none of "
|
|
15423
|
+
"the individual field arguments should be set."
|
|
15424
|
+
)
|
|
15425
|
+
|
|
15426
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
15427
|
+
# there are no flattened fields), or create one.
|
|
15428
|
+
if not isinstance(
|
|
15429
|
+
request, analytics_admin.UpdateReportingIdentitySettingsRequest
|
|
15430
|
+
):
|
|
15431
|
+
request = analytics_admin.UpdateReportingIdentitySettingsRequest(request)
|
|
15432
|
+
# If we have keyword arguments corresponding to fields on the
|
|
15433
|
+
# request, apply these.
|
|
15434
|
+
if reporting_identity_settings is not None:
|
|
15435
|
+
request.reporting_identity_settings = reporting_identity_settings
|
|
15436
|
+
if update_mask is not None:
|
|
15437
|
+
request.update_mask = update_mask
|
|
15438
|
+
|
|
15439
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
15440
|
+
# and friendly error handling.
|
|
15441
|
+
rpc = self._transport._wrapped_methods[
|
|
15442
|
+
self._transport.update_reporting_identity_settings
|
|
15443
|
+
]
|
|
15444
|
+
|
|
15445
|
+
# Certain fields should be provided within the metadata header;
|
|
15446
|
+
# add these here.
|
|
15447
|
+
metadata = tuple(metadata) + (
|
|
15448
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
15449
|
+
(
|
|
15450
|
+
(
|
|
15451
|
+
"reporting_identity_settings.name",
|
|
15452
|
+
request.reporting_identity_settings.name,
|
|
15453
|
+
),
|
|
15454
|
+
)
|
|
15455
|
+
),
|
|
15456
|
+
)
|
|
15457
|
+
|
|
15458
|
+
# Validate the universe domain.
|
|
15459
|
+
self._validate_universe_domain()
|
|
15460
|
+
|
|
15461
|
+
# Send the request.
|
|
15462
|
+
response = rpc(
|
|
15463
|
+
request,
|
|
15464
|
+
retry=retry,
|
|
15465
|
+
timeout=timeout,
|
|
15466
|
+
metadata=metadata,
|
|
15467
|
+
)
|
|
15468
|
+
|
|
15469
|
+
# Done; return the response.
|
|
15470
|
+
return response
|
|
15471
|
+
|
|
15358
15472
|
def get_user_provided_data_settings(
|
|
15359
15473
|
self,
|
|
15360
15474
|
request: Optional[
|
|
@@ -934,6 +934,11 @@ class AnalyticsAdminServiceTransport(abc.ABC):
|
|
|
934
934
|
default_timeout=None,
|
|
935
935
|
client_info=client_info,
|
|
936
936
|
),
|
|
937
|
+
self.update_reporting_identity_settings: gapic_v1.method.wrap_method(
|
|
938
|
+
self.update_reporting_identity_settings,
|
|
939
|
+
default_timeout=None,
|
|
940
|
+
client_info=client_info,
|
|
941
|
+
),
|
|
937
942
|
self.get_user_provided_data_settings: gapic_v1.method.wrap_method(
|
|
938
943
|
self.get_user_provided_data_settings,
|
|
939
944
|
default_timeout=None,
|
|
@@ -2573,6 +2578,18 @@ class AnalyticsAdminServiceTransport(abc.ABC):
|
|
|
2573
2578
|
]:
|
|
2574
2579
|
raise NotImplementedError()
|
|
2575
2580
|
|
|
2581
|
+
@property
|
|
2582
|
+
def update_reporting_identity_settings(
|
|
2583
|
+
self,
|
|
2584
|
+
) -> Callable[
|
|
2585
|
+
[analytics_admin.UpdateReportingIdentitySettingsRequest],
|
|
2586
|
+
Union[
|
|
2587
|
+
resources.ReportingIdentitySettings,
|
|
2588
|
+
Awaitable[resources.ReportingIdentitySettings],
|
|
2589
|
+
],
|
|
2590
|
+
]:
|
|
2591
|
+
raise NotImplementedError()
|
|
2592
|
+
|
|
2576
2593
|
@property
|
|
2577
2594
|
def get_user_provided_data_settings(
|
|
2578
2595
|
self,
|
|
@@ -4913,6 +4913,39 @@ class AnalyticsAdminServiceGrpcTransport(AnalyticsAdminServiceTransport):
|
|
|
4913
4913
|
)
|
|
4914
4914
|
return self._stubs["get_reporting_identity_settings"]
|
|
4915
4915
|
|
|
4916
|
+
@property
|
|
4917
|
+
def update_reporting_identity_settings(
|
|
4918
|
+
self,
|
|
4919
|
+
) -> Callable[
|
|
4920
|
+
[analytics_admin.UpdateReportingIdentitySettingsRequest],
|
|
4921
|
+
resources.ReportingIdentitySettings,
|
|
4922
|
+
]:
|
|
4923
|
+
r"""Return a callable for the update reporting identity
|
|
4924
|
+
settings method over gRPC.
|
|
4925
|
+
|
|
4926
|
+
Updates the reporting identity settings for this
|
|
4927
|
+
property.
|
|
4928
|
+
|
|
4929
|
+
Returns:
|
|
4930
|
+
Callable[[~.UpdateReportingIdentitySettingsRequest],
|
|
4931
|
+
~.ReportingIdentitySettings]:
|
|
4932
|
+
A function that, when called, will call the underlying RPC
|
|
4933
|
+
on the server.
|
|
4934
|
+
"""
|
|
4935
|
+
# Generate a "stub function" on-the-fly which will actually make
|
|
4936
|
+
# the request.
|
|
4937
|
+
# gRPC handles serialization and deserialization, so we just need
|
|
4938
|
+
# to pass in the functions for each.
|
|
4939
|
+
if "update_reporting_identity_settings" not in self._stubs:
|
|
4940
|
+
self._stubs["update_reporting_identity_settings"] = (
|
|
4941
|
+
self._logged_channel.unary_unary(
|
|
4942
|
+
"/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateReportingIdentitySettings",
|
|
4943
|
+
request_serializer=analytics_admin.UpdateReportingIdentitySettingsRequest.serialize,
|
|
4944
|
+
response_deserializer=resources.ReportingIdentitySettings.deserialize,
|
|
4945
|
+
)
|
|
4946
|
+
)
|
|
4947
|
+
return self._stubs["update_reporting_identity_settings"]
|
|
4948
|
+
|
|
4916
4949
|
@property
|
|
4917
4950
|
def get_user_provided_data_settings(
|
|
4918
4951
|
self,
|
|
@@ -5027,6 +5027,39 @@ class AnalyticsAdminServiceGrpcAsyncIOTransport(AnalyticsAdminServiceTransport):
|
|
|
5027
5027
|
)
|
|
5028
5028
|
return self._stubs["get_reporting_identity_settings"]
|
|
5029
5029
|
|
|
5030
|
+
@property
|
|
5031
|
+
def update_reporting_identity_settings(
|
|
5032
|
+
self,
|
|
5033
|
+
) -> Callable[
|
|
5034
|
+
[analytics_admin.UpdateReportingIdentitySettingsRequest],
|
|
5035
|
+
Awaitable[resources.ReportingIdentitySettings],
|
|
5036
|
+
]:
|
|
5037
|
+
r"""Return a callable for the update reporting identity
|
|
5038
|
+
settings method over gRPC.
|
|
5039
|
+
|
|
5040
|
+
Updates the reporting identity settings for this
|
|
5041
|
+
property.
|
|
5042
|
+
|
|
5043
|
+
Returns:
|
|
5044
|
+
Callable[[~.UpdateReportingIdentitySettingsRequest],
|
|
5045
|
+
Awaitable[~.ReportingIdentitySettings]]:
|
|
5046
|
+
A function that, when called, will call the underlying RPC
|
|
5047
|
+
on the server.
|
|
5048
|
+
"""
|
|
5049
|
+
# Generate a "stub function" on-the-fly which will actually make
|
|
5050
|
+
# the request.
|
|
5051
|
+
# gRPC handles serialization and deserialization, so we just need
|
|
5052
|
+
# to pass in the functions for each.
|
|
5053
|
+
if "update_reporting_identity_settings" not in self._stubs:
|
|
5054
|
+
self._stubs["update_reporting_identity_settings"] = (
|
|
5055
|
+
self._logged_channel.unary_unary(
|
|
5056
|
+
"/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateReportingIdentitySettings",
|
|
5057
|
+
request_serializer=analytics_admin.UpdateReportingIdentitySettingsRequest.serialize,
|
|
5058
|
+
response_deserializer=resources.ReportingIdentitySettings.deserialize,
|
|
5059
|
+
)
|
|
5060
|
+
)
|
|
5061
|
+
return self._stubs["update_reporting_identity_settings"]
|
|
5062
|
+
|
|
5030
5063
|
@property
|
|
5031
5064
|
def get_user_provided_data_settings(
|
|
5032
5065
|
self,
|
|
@@ -5833,6 +5866,11 @@ class AnalyticsAdminServiceGrpcAsyncIOTransport(AnalyticsAdminServiceTransport):
|
|
|
5833
5866
|
default_timeout=None,
|
|
5834
5867
|
client_info=client_info,
|
|
5835
5868
|
),
|
|
5869
|
+
self.update_reporting_identity_settings: self._wrap_method(
|
|
5870
|
+
self.update_reporting_identity_settings,
|
|
5871
|
+
default_timeout=None,
|
|
5872
|
+
client_info=client_info,
|
|
5873
|
+
),
|
|
5836
5874
|
self.get_user_provided_data_settings: self._wrap_method(
|
|
5837
5875
|
self.get_user_provided_data_settings,
|
|
5838
5876
|
default_timeout=None,
|