google-analytics-admin 0.29.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.
Files changed (69) hide show
  1. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/MANIFEST.in +1 -1
  2. {google_analytics_admin-0.29.0/google_analytics_admin.egg-info → google_analytics_admin-0.30.1}/PKG-INFO +10 -11
  3. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/README.rst +3 -2
  4. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin/__init__.py +3 -1
  5. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin/gapic_version.py +2 -2
  6. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/__init__.py +10 -25
  7. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/gapic_metadata.json +15 -0
  8. {google_analytics_admin-0.29.0/google/analytics/admin_v1beta → google_analytics_admin-0.30.1/google/analytics/admin_v1alpha}/gapic_version.py +2 -2
  9. {google_analytics_admin-0.29.0/google/analytics/admin_v1beta → google_analytics_admin-0.30.1/google/analytics/admin_v1alpha}/services/__init__.py +1 -1
  10. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +1 -1
  11. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +116 -1
  12. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +115 -1
  13. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +1 -1
  14. {google_analytics_admin-0.29.0/google/analytics/admin_v1beta → google_analytics_admin-0.30.1/google/analytics/admin_v1alpha}/services/analytics_admin_service/transports/__init__.py +1 -1
  15. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +18 -1
  16. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +34 -1
  17. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +39 -1
  18. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +236 -1
  19. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +60 -1
  20. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/__init__.py +3 -1
  21. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/access_report.py +1 -1
  22. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/analytics_admin.py +30 -1
  23. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/audience.py +1 -1
  24. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/channel_group.py +1 -1
  25. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +1 -1
  26. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/expanded_data_set.py +1 -1
  27. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/resources.py +8 -1
  28. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +1 -1
  29. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/__init__.py +8 -25
  30. {google_analytics_admin-0.29.0/google/analytics/admin_v1alpha → google_analytics_admin-0.30.1/google/analytics/admin_v1beta}/gapic_version.py +2 -2
  31. {google_analytics_admin-0.29.0/tests → google_analytics_admin-0.30.1/google/analytics/admin_v1beta/services}/__init__.py +1 -1
  32. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +1 -1
  33. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +1 -1
  34. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +1 -1
  35. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +1 -1
  36. {google_analytics_admin-0.29.0/google/analytics/admin_v1alpha → google_analytics_admin-0.30.1/google/analytics/admin_v1beta}/services/analytics_admin_service/transports/__init__.py +1 -1
  37. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +1 -1
  38. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +1 -1
  39. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +1 -1
  40. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +1 -1
  41. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +1 -1
  42. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/__init__.py +1 -1
  43. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/access_report.py +1 -1
  44. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/analytics_admin.py +59 -59
  45. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/types/resources.py +57 -25
  46. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1/google_analytics_admin.egg-info}/PKG-INFO +10 -11
  47. google_analytics_admin-0.30.1/google_analytics_admin.egg-info/requires.txt +8 -0
  48. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/setup.py +11 -10
  49. {google_analytics_admin-0.29.0/tests/unit → google_analytics_admin-0.30.1/tests}/__init__.py +1 -1
  50. {google_analytics_admin-0.29.0/google/analytics/admin_v1alpha/services → google_analytics_admin-0.30.1/tests/unit}/__init__.py +1 -1
  51. google_analytics_admin-0.30.1/tests/unit/gapic/__init__.py +15 -0
  52. google_analytics_admin-0.30.1/tests/unit/gapic/admin_v1alpha/__init__.py +15 -0
  53. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +3302 -2729
  54. google_analytics_admin-0.30.1/tests/unit/gapic/admin_v1beta/__init__.py +15 -0
  55. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/tests/unit/gapic/admin_v1beta/test_analytics_admin_service.py +838 -954
  56. google_analytics_admin-0.29.0/google_analytics_admin.egg-info/requires.txt +0 -11
  57. google_analytics_admin-0.29.0/tests/unit/gapic/__init__.py +0 -15
  58. google_analytics_admin-0.29.0/tests/unit/gapic/admin_v1alpha/__init__.py +0 -15
  59. google_analytics_admin-0.29.0/tests/unit/gapic/admin_v1beta/__init__.py +0 -15
  60. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/LICENSE +0 -0
  61. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin/py.typed +0 -0
  62. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1alpha/py.typed +0 -0
  63. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
  64. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google/analytics/admin_v1beta/py.typed +0 -0
  65. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
  66. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
  67. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/not-zip-safe +0 -0
  68. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/google_analytics_admin.egg-info/top_level.txt +0 -0
  69. {google_analytics_admin-0.29.0 → google_analytics_admin-0.30.1}/setup.cfg +0 -0
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,18 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-analytics-admin
3
- Version: 0.29.0
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
7
7
  Author-email: googleapis-packages@google.com
8
- License: Apache 2.0
8
+ License: Apache-2.0
9
9
  Platform: Posix; MacOS X; Windows
10
10
  Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Programming Language :: Python
14
14
  Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
17
16
  Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
@@ -20,15 +19,14 @@ Classifier: Programming Language :: Python :: 3.13
20
19
  Classifier: Programming Language :: Python :: 3.14
21
20
  Classifier: Operating System :: OS Independent
22
21
  Classifier: Topic :: Internet
23
- Requires-Python: >=3.9
22
+ Requires-Python: >=3.10
24
23
  License-File: LICENSE
25
- Requires-Dist: google-api-core[grpc]<3.0.0,>=2.11.0
24
+ Requires-Dist: google-api-core[grpc]<3.0.0,>=2.24.2
26
25
  Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
27
- Requires-Dist: grpcio<2.0.0,>=1.33.2
26
+ Requires-Dist: grpcio<2.0.0,>=1.59.0
28
27
  Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
29
- Requires-Dist: proto-plus<2.0.0,>=1.22.3
30
- Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
31
- 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
32
30
  Dynamic: author
33
31
  Dynamic: author-email
34
32
  Dynamic: classifier
@@ -110,14 +108,15 @@ Supported Python Versions
110
108
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
111
109
  Python.
112
110
 
113
- Python >= 3.9, including 3.14
111
+ Python >= 3.10, including 3.14
114
112
 
115
113
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
116
114
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
117
115
 
118
116
  Unsupported Python Versions
119
117
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
- Python <= 3.8
118
+ Python <= 3.9
119
+
121
120
 
122
121
  If you are using an `end-of-life`_
123
122
  version of Python, we recommend that you update as soon as possible to an actively supported version.
@@ -67,14 +67,15 @@ Supported Python Versions
67
67
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
68
68
  Python.
69
69
 
70
- Python >= 3.9, including 3.14
70
+ Python >= 3.10, including 3.14
71
71
 
72
72
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
73
73
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
74
74
 
75
75
  Unsupported Python Versions
76
76
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
- Python <= 3.8
77
+ Python <= 3.9
78
+
78
79
 
79
80
  If you are using an `end-of-life`_
80
81
  version of Python, we recommend that you update as soon as possible to an actively supported version.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -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",
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.29.0" # {x-release-please-version}
16
+ __version__ = "0.30.1" # {x-release-please-version}
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -21,13 +21,7 @@ from google.analytics.admin_v1alpha import gapic_version as package_version
21
21
 
22
22
  __version__ = package_version.__version__
23
23
 
24
- if sys.version_info >= (3, 8): # pragma: NO COVER
25
- from importlib import metadata
26
- else: # pragma: NO COVER
27
- # TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
28
- # this code path once we drop support for Python 3.7
29
- import importlib_metadata as metadata
30
-
24
+ from importlib import metadata
31
25
 
32
26
  from .services.analytics_admin_service import (
33
27
  AnalyticsAdminServiceAsyncClient,
@@ -245,6 +239,7 @@ from .types.analytics_admin import (
245
239
  UpdateMeasurementProtocolSecretRequest,
246
240
  UpdatePropertyRequest,
247
241
  UpdateReportingDataAnnotationRequest,
242
+ UpdateReportingIdentitySettingsRequest,
248
243
  UpdateSearchAds360LinkRequest,
249
244
  UpdateSKAdNetworkConversionValueSchemaRequest,
250
245
  UpdateSubpropertyEventFilterRequest,
@@ -349,34 +344,23 @@ else: # pragma: NO COVER
349
344
  # An older version of api_core is installed which does not define the
350
345
  # functions above. We do equivalent checks manually.
351
346
  try:
352
- import sys
353
347
  import warnings
354
348
 
355
349
  _py_version_str = sys.version.split()[0]
356
350
  _package_label = "google.analytics.admin_v1alpha"
357
- if sys.version_info < (3, 9):
351
+ if sys.version_info < (3, 10):
358
352
  warnings.warn(
359
353
  "You are using a non-supported Python version "
360
354
  + f"({_py_version_str}). Google will not post any further "
361
355
  + f"updates to {_package_label} supporting this Python version. "
362
356
  + "Please upgrade to the latest Python version, or at "
363
- + f"least to Python 3.9, and then update {_package_label}.",
364
- FutureWarning,
365
- )
366
- if sys.version_info[:2] == (3, 9):
367
- warnings.warn(
368
- f"You are using a Python version ({_py_version_str}) "
369
- + f"which Google will stop supporting in {_package_label} in "
370
- + "January 2026. Please "
371
- + "upgrade to the latest Python version, or at "
372
- + "least to Python 3.10, before then, and "
373
- + f"then update {_package_label}.",
357
+ + f"least to Python 3.10, and then update {_package_label}.",
374
358
  FutureWarning,
375
359
  )
376
360
 
377
361
  def parse_version_to_tuple(version_string: str):
378
362
  """Safely converts a semantic version string to a comparable tuple of integers.
379
- Example: "4.25.8" -> (4, 25, 8)
363
+ Example: "6.33.5" -> (6, 33, 5)
380
364
  Ignores non-numeric parts and handles common version formats.
381
365
  Args:
382
366
  version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
@@ -405,9 +389,9 @@ else: # pragma: NO COVER
405
389
  return (None, "--")
406
390
 
407
391
  _dependency_package = "google.protobuf"
408
- _next_supported_version = "4.25.8"
409
- _next_supported_version_tuple = (4, 25, 8)
410
- _recommendation = " (we recommend 6.x)"
392
+ _next_supported_version = "6.33.5"
393
+ _next_supported_version_tuple = (6, 33, 5)
394
+ _recommendation = " (we recommend 7.x)"
411
395
  (_version_used, _version_used_string) = _get_version(_dependency_package)
412
396
  if _version_used and _version_used < _next_supported_version_tuple:
413
397
  warnings.warn(
@@ -722,6 +706,7 @@ __all__ = (
722
706
  "UpdateMeasurementProtocolSecretRequest",
723
707
  "UpdatePropertyRequest",
724
708
  "UpdateReportingDataAnnotationRequest",
709
+ "UpdateReportingIdentitySettingsRequest",
725
710
  "UpdateSKAdNetworkConversionValueSchemaRequest",
726
711
  "UpdateSearchAds360LinkRequest",
727
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"
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.29.0" # {x-release-please-version}
16
+ __version__ = "0.30.1" # {x-release-please-version}
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -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[
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -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[
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -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,
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright 2025 Google LLC
2
+ # Copyright 2026 Google LLC
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -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,