google-analytics-admin 0.28.0__tar.gz → 0.29.0__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 (65) hide show
  1. {google_analytics_admin-0.28.0/google_analytics_admin.egg-info → google_analytics_admin-0.29.0}/PKG-INFO +16 -10
  2. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/README.rst +15 -9
  3. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin/__init__.py +4 -0
  4. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin/gapic_version.py +1 -1
  5. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/__init__.py +4 -0
  6. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/gapic_metadata.json +15 -0
  7. {google_analytics_admin-0.28.0/google/analytics/admin_v1beta → google_analytics_admin-0.29.0/google/analytics/admin_v1alpha}/gapic_version.py +1 -1
  8. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +99 -2
  9. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +107 -2
  10. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +17 -0
  11. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +35 -2
  12. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +40 -2
  13. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +228 -0
  14. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +47 -0
  15. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/__init__.py +4 -0
  16. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/analytics_admin.py +79 -62
  17. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/resources.py +70 -21
  18. {google_analytics_admin-0.28.0/google/analytics/admin_v1alpha → google_analytics_admin-0.29.0/google/analytics/admin_v1beta}/gapic_version.py +1 -1
  19. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0/google_analytics_admin.egg-info}/PKG-INFO +16 -10
  20. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +787 -12
  21. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/LICENSE +0 -0
  22. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/MANIFEST.in +0 -0
  23. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin/py.typed +0 -0
  24. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/py.typed +0 -0
  25. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/__init__.py +0 -0
  26. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +0 -0
  27. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +0 -0
  28. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +0 -0
  29. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/access_report.py +0 -0
  30. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/audience.py +0 -0
  31. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/channel_group.py +0 -0
  32. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +0 -0
  33. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/expanded_data_set.py +0 -0
  34. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +0 -0
  35. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/__init__.py +0 -0
  36. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
  37. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/py.typed +0 -0
  38. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/__init__.py +0 -0
  39. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +0 -0
  40. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +0 -0
  41. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +0 -0
  42. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +0 -0
  43. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +0 -0
  44. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +0 -0
  45. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +0 -0
  46. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +0 -0
  47. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +0 -0
  48. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +0 -0
  49. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/__init__.py +0 -0
  50. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/access_report.py +0 -0
  51. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/analytics_admin.py +0 -0
  52. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google/analytics/admin_v1beta/types/resources.py +0 -0
  53. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
  54. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
  55. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/not-zip-safe +0 -0
  56. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/requires.txt +0 -0
  57. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/google_analytics_admin.egg-info/top_level.txt +0 -0
  58. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/setup.cfg +0 -0
  59. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/setup.py +0 -0
  60. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/tests/__init__.py +0 -0
  61. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/tests/unit/__init__.py +0 -0
  62. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/__init__.py +0 -0
  63. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1alpha/__init__.py +0 -0
  64. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/tests/unit/gapic/admin_v1beta/__init__.py +0 -0
  65. {google_analytics_admin-0.28.0 → google_analytics_admin-0.29.0}/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.28.0
3
+ Version: 0.29.0
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
@@ -41,12 +41,18 @@ Dynamic: requires-dist
41
41
  Dynamic: requires-python
42
42
  Dynamic: summary
43
43
 
44
- Python Client for Analytics Admin
45
- =================================
44
+ Python Client for Google Analytics Admin
45
+ ========================================
46
46
 
47
47
  |preview| |pypi| |versions|
48
48
 
49
- `Analytics Admin`_: allows you to manage Google Analytics accounts and properties.
49
+ `Google Analytics Admin`_: Manage properties in Google Analytics. Warning: Creating multiple Customer
50
+ Applications, Accounts, or Projects to simulate or act as a single
51
+ Customer Application, Account, or Project (respectively) or to circumvent
52
+ Service-specific usage limits or quotas is a direct violation of Google
53
+ Cloud Platform Terms of Service as well as Google APIs Terms of Service.
54
+ These actions can result in immediate termination of your GCP project(s)
55
+ without any warning.
50
56
 
51
57
  - `Client Library Documentation`_
52
58
  - `Product Documentation`_
@@ -57,7 +63,7 @@ Python Client for Analytics Admin
57
63
  :target: https://pypi.org/project/google-analytics-admin/
58
64
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-analytics-admin.svg
59
65
  :target: https://pypi.org/project/google-analytics-admin/
60
- .. _Analytics Admin: https://developers.google.com/analytics/
66
+ .. _Google Analytics Admin: https://developers.google.com/analytics/
61
67
  .. _Client Library Documentation: https://googleapis.dev/python/analyticsadmin/latest
62
68
  .. _Product Documentation: https://developers.google.com/analytics/
63
69
 
@@ -68,12 +74,12 @@ In order to use this library, you first need to go through the following steps:
68
74
 
69
75
  1. `Select or create a Cloud Platform project.`_
70
76
  2. `Enable billing for your project.`_
71
- 3. `Enable the Analytics Admin.`_
77
+ 3. `Enable the Google Analytics Admin.`_
72
78
  4. `Set up Authentication.`_
73
79
 
74
80
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
75
81
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
76
- .. _Enable the Analytics Admin.: https://developers.google.com/analytics/
82
+ .. _Enable the Google Analytics Admin.: https://developers.google.com/analytics/
77
83
  .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
78
84
 
79
85
  Installation
@@ -140,14 +146,14 @@ Windows
140
146
  Next Steps
141
147
  ~~~~~~~~~~
142
148
 
143
- - Read the `Client Library Documentation`_ for Analytics Admin
149
+ - Read the `Client Library Documentation`_ for Google Analytics Admin
144
150
  to see other available methods on the client.
145
- - Read the `Analytics Admin Product documentation`_ to learn
151
+ - Read the `Google Analytics Admin Product documentation`_ to learn
146
152
  more about the product and see How-to Guides.
147
153
  - View this `README`_ to see the full list of Cloud
148
154
  APIs that we cover.
149
155
 
150
- .. _Analytics Admin Product documentation: https://developers.google.com/analytics/
156
+ .. _Google Analytics Admin Product documentation: https://developers.google.com/analytics/
151
157
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
152
158
 
153
159
  Logging
@@ -1,9 +1,15 @@
1
- Python Client for Analytics Admin
2
- =================================
1
+ Python Client for Google Analytics Admin
2
+ ========================================
3
3
 
4
4
  |preview| |pypi| |versions|
5
5
 
6
- `Analytics Admin`_: allows you to manage Google Analytics accounts and properties.
6
+ `Google Analytics Admin`_: Manage properties in Google Analytics. Warning: Creating multiple Customer
7
+ Applications, Accounts, or Projects to simulate or act as a single
8
+ Customer Application, Account, or Project (respectively) or to circumvent
9
+ Service-specific usage limits or quotas is a direct violation of Google
10
+ Cloud Platform Terms of Service as well as Google APIs Terms of Service.
11
+ These actions can result in immediate termination of your GCP project(s)
12
+ without any warning.
7
13
 
8
14
  - `Client Library Documentation`_
9
15
  - `Product Documentation`_
@@ -14,7 +20,7 @@ Python Client for Analytics Admin
14
20
  :target: https://pypi.org/project/google-analytics-admin/
15
21
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-analytics-admin.svg
16
22
  :target: https://pypi.org/project/google-analytics-admin/
17
- .. _Analytics Admin: https://developers.google.com/analytics/
23
+ .. _Google Analytics Admin: https://developers.google.com/analytics/
18
24
  .. _Client Library Documentation: https://googleapis.dev/python/analyticsadmin/latest
19
25
  .. _Product Documentation: https://developers.google.com/analytics/
20
26
 
@@ -25,12 +31,12 @@ In order to use this library, you first need to go through the following steps:
25
31
 
26
32
  1. `Select or create a Cloud Platform project.`_
27
33
  2. `Enable billing for your project.`_
28
- 3. `Enable the Analytics Admin.`_
34
+ 3. `Enable the Google Analytics Admin.`_
29
35
  4. `Set up Authentication.`_
30
36
 
31
37
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
32
38
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
33
- .. _Enable the Analytics Admin.: https://developers.google.com/analytics/
39
+ .. _Enable the Google Analytics Admin.: https://developers.google.com/analytics/
34
40
  .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
35
41
 
36
42
  Installation
@@ -97,14 +103,14 @@ Windows
97
103
  Next Steps
98
104
  ~~~~~~~~~~
99
105
 
100
- - Read the `Client Library Documentation`_ for Analytics Admin
106
+ - Read the `Client Library Documentation`_ for Google Analytics Admin
101
107
  to see other available methods on the client.
102
- - Read the `Analytics Admin Product documentation`_ to learn
108
+ - Read the `Google Analytics Admin Product documentation`_ to learn
103
109
  more about the product and see How-to Guides.
104
110
  - View this `README`_ to see the full list of Cloud
105
111
  APIs that we cover.
106
112
 
107
- .. _Analytics Admin Product documentation: https://developers.google.com/analytics/
113
+ .. _Google Analytics Admin Product documentation: https://developers.google.com/analytics/
108
114
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
109
115
 
110
116
  Logging
@@ -144,6 +144,7 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
144
144
  GetSKAdNetworkConversionValueSchemaRequest,
145
145
  GetSubpropertyEventFilterRequest,
146
146
  GetSubpropertySyncConfigRequest,
147
+ GetUserProvidedDataSettingsRequest,
147
148
  ListAccessBindingsRequest,
148
149
  ListAccessBindingsResponse,
149
150
  ListAccountsRequest,
@@ -320,6 +321,7 @@ from google.analytics.admin_v1alpha.types.resources import (
320
321
  ServiceLevel,
321
322
  SKAdNetworkConversionValueSchema,
322
323
  SubpropertySyncConfig,
324
+ UserProvidedDataSettings,
323
325
  )
324
326
  from google.analytics.admin_v1alpha.types.subproperty_event_filter import (
325
327
  SubpropertyEventFilter,
@@ -449,6 +451,7 @@ __all__ = (
449
451
  "GetSKAdNetworkConversionValueSchemaRequest",
450
452
  "GetSubpropertyEventFilterRequest",
451
453
  "GetSubpropertySyncConfigRequest",
454
+ "GetUserProvidedDataSettingsRequest",
452
455
  "ListAccessBindingsRequest",
453
456
  "ListAccessBindingsResponse",
454
457
  "ListAccountsRequest",
@@ -604,6 +607,7 @@ __all__ = (
604
607
  "SearchAds360Link",
605
608
  "SKAdNetworkConversionValueSchema",
606
609
  "SubpropertySyncConfig",
610
+ "UserProvidedDataSettings",
607
611
  "ActionType",
608
612
  "ActorType",
609
613
  "ChangeHistoryResourceType",
@@ -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.28.0" # {x-release-please-version}
16
+ __version__ = "0.29.0" # {x-release-please-version}
@@ -153,6 +153,7 @@ from .types.analytics_admin import (
153
153
  GetSKAdNetworkConversionValueSchemaRequest,
154
154
  GetSubpropertyEventFilterRequest,
155
155
  GetSubpropertySyncConfigRequest,
156
+ GetUserProvidedDataSettingsRequest,
156
157
  ListAccessBindingsRequest,
157
158
  ListAccessBindingsResponse,
158
159
  ListAccountsRequest,
@@ -329,6 +330,7 @@ from .types.resources import (
329
330
  ServiceLevel,
330
331
  SKAdNetworkConversionValueSchema,
331
332
  SubpropertySyncConfig,
333
+ UserProvidedDataSettings,
332
334
  )
333
335
  from .types.subproperty_event_filter import (
334
336
  SubpropertyEventFilter,
@@ -597,6 +599,7 @@ __all__ = (
597
599
  "GetSearchAds360LinkRequest",
598
600
  "GetSubpropertyEventFilterRequest",
599
601
  "GetSubpropertySyncConfigRequest",
602
+ "GetUserProvidedDataSettingsRequest",
600
603
  "GlobalSiteTag",
601
604
  "GoogleAdsLink",
602
605
  "GoogleSignalsConsent",
@@ -723,4 +726,5 @@ __all__ = (
723
726
  "UpdateSearchAds360LinkRequest",
724
727
  "UpdateSubpropertyEventFilterRequest",
725
728
  "UpdateSubpropertySyncConfigRequest",
729
+ "UserProvidedDataSettings",
726
730
  )
@@ -470,6 +470,11 @@
470
470
  "get_subproperty_sync_config"
471
471
  ]
472
472
  },
473
+ "GetUserProvidedDataSettings": {
474
+ "methods": [
475
+ "get_user_provided_data_settings"
476
+ ]
477
+ },
473
478
  "ListAccessBindings": {
474
479
  "methods": [
475
480
  "list_access_bindings"
@@ -1245,6 +1250,11 @@
1245
1250
  "get_subproperty_sync_config"
1246
1251
  ]
1247
1252
  },
1253
+ "GetUserProvidedDataSettings": {
1254
+ "methods": [
1255
+ "get_user_provided_data_settings"
1256
+ ]
1257
+ },
1248
1258
  "ListAccessBindings": {
1249
1259
  "methods": [
1250
1260
  "list_access_bindings"
@@ -2020,6 +2030,11 @@
2020
2030
  "get_subproperty_sync_config"
2021
2031
  ]
2022
2032
  },
2033
+ "GetUserProvidedDataSettings": {
2034
+ "methods": [
2035
+ "get_user_provided_data_settings"
2036
+ ]
2037
+ },
2023
2038
  "ListAccessBindings": {
2024
2039
  "methods": [
2025
2040
  "list_access_bindings"
@@ -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.28.0" # {x-release-please-version}
16
+ __version__ = "0.29.0" # {x-release-please-version}
@@ -288,6 +288,12 @@ class AnalyticsAdminServiceAsyncClient:
288
288
  parse_subproperty_sync_config_path = staticmethod(
289
289
  AnalyticsAdminServiceClient.parse_subproperty_sync_config_path
290
290
  )
291
+ user_provided_data_settings_path = staticmethod(
292
+ AnalyticsAdminServiceClient.user_provided_data_settings_path
293
+ )
294
+ parse_user_provided_data_settings_path = staticmethod(
295
+ AnalyticsAdminServiceClient.parse_user_provided_data_settings_path
296
+ )
291
297
  common_billing_account_path = staticmethod(
292
298
  AnalyticsAdminServiceClient.common_billing_account_path
293
299
  )
@@ -14672,8 +14678,8 @@ class AnalyticsAdminServiceAsyncClient:
14672
14678
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
14673
14679
  metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
14674
14680
  ) -> resources.ReportingIdentitySettings:
14675
- r"""Returns the singleton data retention settings for
14676
- this property.
14681
+ r"""Returns the reporting identity settings for this
14682
+ property.
14677
14683
 
14678
14684
  Args:
14679
14685
  request (Optional[Union[google.analytics.admin_v1alpha.types.GetReportingIdentitySettingsRequest, dict]]):
@@ -14753,6 +14759,97 @@ class AnalyticsAdminServiceAsyncClient:
14753
14759
  # Done; return the response.
14754
14760
  return response
14755
14761
 
14762
+ async def get_user_provided_data_settings(
14763
+ self,
14764
+ request: Optional[
14765
+ Union[analytics_admin.GetUserProvidedDataSettingsRequest, dict]
14766
+ ] = None,
14767
+ *,
14768
+ name: Optional[str] = None,
14769
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
14770
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
14771
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
14772
+ ) -> resources.UserProvidedDataSettings:
14773
+ r"""Looks up settings related to user-provided data for a
14774
+ property.
14775
+
14776
+ Args:
14777
+ request (Optional[Union[google.analytics.admin_v1alpha.types.GetUserProvidedDataSettingsRequest, dict]]):
14778
+ The request object. Request message for
14779
+ GetUserProvidedDataSettings RPC
14780
+ name (:class:`str`):
14781
+ Required. The name of the user
14782
+ provided data settings to retrieve.
14783
+ Format:
14784
+ properties/{property}/userProvidedDataSettings
14785
+
14786
+ This corresponds to the ``name`` field
14787
+ on the ``request`` instance; if ``request`` is provided, this
14788
+ should not be set.
14789
+ retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
14790
+ should be retried.
14791
+ timeout (float): The timeout for this request.
14792
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
14793
+ sent along with the request as metadata. Normally, each value must be of type `str`,
14794
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
14795
+ be of type `bytes`.
14796
+
14797
+ Returns:
14798
+ google.analytics.admin_v1alpha.types.UserProvidedDataSettings:
14799
+ Configuration for user-provided data
14800
+ collection. This is a singleton resource
14801
+ for a Google Analytics property.
14802
+
14803
+ """
14804
+ # Create or coerce a protobuf request object.
14805
+ # - Quick check: If we got a request object, we should *not* have
14806
+ # gotten any keyword arguments that map to the request.
14807
+ flattened_params = [name]
14808
+ has_flattened_params = (
14809
+ len([param for param in flattened_params if param is not None]) > 0
14810
+ )
14811
+ if request is not None and has_flattened_params:
14812
+ raise ValueError(
14813
+ "If the `request` argument is set, then none of "
14814
+ "the individual field arguments should be set."
14815
+ )
14816
+
14817
+ # - Use the request object if provided (there's no risk of modifying the input as
14818
+ # there are no flattened fields), or create one.
14819
+ if not isinstance(request, analytics_admin.GetUserProvidedDataSettingsRequest):
14820
+ request = analytics_admin.GetUserProvidedDataSettingsRequest(request)
14821
+
14822
+ # If we have keyword arguments corresponding to fields on the
14823
+ # request, apply these.
14824
+ if name is not None:
14825
+ request.name = name
14826
+
14827
+ # Wrap the RPC method; this adds retry and timeout information,
14828
+ # and friendly error handling.
14829
+ rpc = self._client._transport._wrapped_methods[
14830
+ self._client._transport.get_user_provided_data_settings
14831
+ ]
14832
+
14833
+ # Certain fields should be provided within the metadata header;
14834
+ # add these here.
14835
+ metadata = tuple(metadata) + (
14836
+ gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
14837
+ )
14838
+
14839
+ # Validate the universe domain.
14840
+ self._client._validate_universe_domain()
14841
+
14842
+ # Send the request.
14843
+ response = await rpc(
14844
+ request,
14845
+ retry=retry,
14846
+ timeout=timeout,
14847
+ metadata=metadata,
14848
+ )
14849
+
14850
+ # Done; return the response.
14851
+ return response
14852
+
14756
14853
  async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
14757
14854
  return self
14758
14855
 
@@ -944,6 +944,21 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
944
944
  )
945
945
  return m.groupdict() if m else {}
946
946
 
947
+ @staticmethod
948
+ def user_provided_data_settings_path(
949
+ property: str,
950
+ ) -> str:
951
+ """Returns a fully-qualified user_provided_data_settings string."""
952
+ return "properties/{property}/userProvidedDataSettings".format(
953
+ property=property,
954
+ )
955
+
956
+ @staticmethod
957
+ def parse_user_provided_data_settings_path(path: str) -> Dict[str, str]:
958
+ """Parses a user_provided_data_settings path into its component segments."""
959
+ m = re.match(r"^properties/(?P<property>.+?)/userProvidedDataSettings$", path)
960
+ return m.groupdict() if m else {}
961
+
947
962
  @staticmethod
948
963
  def common_billing_account_path(
949
964
  billing_account: str,
@@ -15260,8 +15275,8 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
15260
15275
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
15261
15276
  metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
15262
15277
  ) -> resources.ReportingIdentitySettings:
15263
- r"""Returns the singleton data retention settings for
15264
- this property.
15278
+ r"""Returns the reporting identity settings for this
15279
+ property.
15265
15280
 
15266
15281
  Args:
15267
15282
  request (Union[google.analytics.admin_v1alpha.types.GetReportingIdentitySettingsRequest, dict]):
@@ -15340,6 +15355,96 @@ class AnalyticsAdminServiceClient(metaclass=AnalyticsAdminServiceClientMeta):
15340
15355
  # Done; return the response.
15341
15356
  return response
15342
15357
 
15358
+ def get_user_provided_data_settings(
15359
+ self,
15360
+ request: Optional[
15361
+ Union[analytics_admin.GetUserProvidedDataSettingsRequest, dict]
15362
+ ] = None,
15363
+ *,
15364
+ name: Optional[str] = None,
15365
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
15366
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
15367
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
15368
+ ) -> resources.UserProvidedDataSettings:
15369
+ r"""Looks up settings related to user-provided data for a
15370
+ property.
15371
+
15372
+ Args:
15373
+ request (Union[google.analytics.admin_v1alpha.types.GetUserProvidedDataSettingsRequest, dict]):
15374
+ The request object. Request message for
15375
+ GetUserProvidedDataSettings RPC
15376
+ name (str):
15377
+ Required. The name of the user
15378
+ provided data settings to retrieve.
15379
+ Format:
15380
+ properties/{property}/userProvidedDataSettings
15381
+
15382
+ This corresponds to the ``name`` field
15383
+ on the ``request`` instance; if ``request`` is provided, this
15384
+ should not be set.
15385
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
15386
+ should be retried.
15387
+ timeout (float): The timeout for this request.
15388
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
15389
+ sent along with the request as metadata. Normally, each value must be of type `str`,
15390
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
15391
+ be of type `bytes`.
15392
+
15393
+ Returns:
15394
+ google.analytics.admin_v1alpha.types.UserProvidedDataSettings:
15395
+ Configuration for user-provided data
15396
+ collection. This is a singleton resource
15397
+ for a Google Analytics property.
15398
+
15399
+ """
15400
+ # Create or coerce a protobuf request object.
15401
+ # - Quick check: If we got a request object, we should *not* have
15402
+ # gotten any keyword arguments that map to the request.
15403
+ flattened_params = [name]
15404
+ has_flattened_params = (
15405
+ len([param for param in flattened_params if param is not None]) > 0
15406
+ )
15407
+ if request is not None and has_flattened_params:
15408
+ raise ValueError(
15409
+ "If the `request` argument is set, then none of "
15410
+ "the individual field arguments should be set."
15411
+ )
15412
+
15413
+ # - Use the request object if provided (there's no risk of modifying the input as
15414
+ # there are no flattened fields), or create one.
15415
+ if not isinstance(request, analytics_admin.GetUserProvidedDataSettingsRequest):
15416
+ request = analytics_admin.GetUserProvidedDataSettingsRequest(request)
15417
+ # If we have keyword arguments corresponding to fields on the
15418
+ # request, apply these.
15419
+ if name is not None:
15420
+ request.name = name
15421
+
15422
+ # Wrap the RPC method; this adds retry and timeout information,
15423
+ # and friendly error handling.
15424
+ rpc = self._transport._wrapped_methods[
15425
+ self._transport.get_user_provided_data_settings
15426
+ ]
15427
+
15428
+ # Certain fields should be provided within the metadata header;
15429
+ # add these here.
15430
+ metadata = tuple(metadata) + (
15431
+ gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
15432
+ )
15433
+
15434
+ # Validate the universe domain.
15435
+ self._validate_universe_domain()
15436
+
15437
+ # Send the request.
15438
+ response = rpc(
15439
+ request,
15440
+ retry=retry,
15441
+ timeout=timeout,
15442
+ metadata=metadata,
15443
+ )
15444
+
15445
+ # Done; return the response.
15446
+ return response
15447
+
15343
15448
  def __enter__(self) -> "AnalyticsAdminServiceClient":
15344
15449
  return self
15345
15450
 
@@ -934,6 +934,11 @@ class AnalyticsAdminServiceTransport(abc.ABC):
934
934
  default_timeout=None,
935
935
  client_info=client_info,
936
936
  ),
937
+ self.get_user_provided_data_settings: gapic_v1.method.wrap_method(
938
+ self.get_user_provided_data_settings,
939
+ default_timeout=None,
940
+ client_info=client_info,
941
+ ),
937
942
  }
938
943
 
939
944
  def close(self):
@@ -2568,6 +2573,18 @@ class AnalyticsAdminServiceTransport(abc.ABC):
2568
2573
  ]:
2569
2574
  raise NotImplementedError()
2570
2575
 
2576
+ @property
2577
+ def get_user_provided_data_settings(
2578
+ self,
2579
+ ) -> Callable[
2580
+ [analytics_admin.GetUserProvidedDataSettingsRequest],
2581
+ Union[
2582
+ resources.UserProvidedDataSettings,
2583
+ Awaitable[resources.UserProvidedDataSettings],
2584
+ ],
2585
+ ]:
2586
+ raise NotImplementedError()
2587
+
2571
2588
  @property
2572
2589
  def kind(self) -> str:
2573
2590
  raise NotImplementedError()
@@ -4890,8 +4890,8 @@ class AnalyticsAdminServiceGrpcTransport(AnalyticsAdminServiceTransport):
4890
4890
  r"""Return a callable for the get reporting identity
4891
4891
  settings method over gRPC.
4892
4892
 
4893
- Returns the singleton data retention settings for
4894
- this property.
4893
+ Returns the reporting identity settings for this
4894
+ property.
4895
4895
 
4896
4896
  Returns:
4897
4897
  Callable[[~.GetReportingIdentitySettingsRequest],
@@ -4913,6 +4913,39 @@ class AnalyticsAdminServiceGrpcTransport(AnalyticsAdminServiceTransport):
4913
4913
  )
4914
4914
  return self._stubs["get_reporting_identity_settings"]
4915
4915
 
4916
+ @property
4917
+ def get_user_provided_data_settings(
4918
+ self,
4919
+ ) -> Callable[
4920
+ [analytics_admin.GetUserProvidedDataSettingsRequest],
4921
+ resources.UserProvidedDataSettings,
4922
+ ]:
4923
+ r"""Return a callable for the get user provided data
4924
+ settings method over gRPC.
4925
+
4926
+ Looks up settings related to user-provided data for a
4927
+ property.
4928
+
4929
+ Returns:
4930
+ Callable[[~.GetUserProvidedDataSettingsRequest],
4931
+ ~.UserProvidedDataSettings]:
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 "get_user_provided_data_settings" not in self._stubs:
4940
+ self._stubs["get_user_provided_data_settings"] = (
4941
+ self._logged_channel.unary_unary(
4942
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserProvidedDataSettings",
4943
+ request_serializer=analytics_admin.GetUserProvidedDataSettingsRequest.serialize,
4944
+ response_deserializer=resources.UserProvidedDataSettings.deserialize,
4945
+ )
4946
+ )
4947
+ return self._stubs["get_user_provided_data_settings"]
4948
+
4916
4949
  def close(self):
4917
4950
  self._logged_channel.close()
4918
4951
 
@@ -5004,8 +5004,8 @@ class AnalyticsAdminServiceGrpcAsyncIOTransport(AnalyticsAdminServiceTransport):
5004
5004
  r"""Return a callable for the get reporting identity
5005
5005
  settings method over gRPC.
5006
5006
 
5007
- Returns the singleton data retention settings for
5008
- this property.
5007
+ Returns the reporting identity settings for this
5008
+ property.
5009
5009
 
5010
5010
  Returns:
5011
5011
  Callable[[~.GetReportingIdentitySettingsRequest],
@@ -5027,6 +5027,39 @@ class AnalyticsAdminServiceGrpcAsyncIOTransport(AnalyticsAdminServiceTransport):
5027
5027
  )
5028
5028
  return self._stubs["get_reporting_identity_settings"]
5029
5029
 
5030
+ @property
5031
+ def get_user_provided_data_settings(
5032
+ self,
5033
+ ) -> Callable[
5034
+ [analytics_admin.GetUserProvidedDataSettingsRequest],
5035
+ Awaitable[resources.UserProvidedDataSettings],
5036
+ ]:
5037
+ r"""Return a callable for the get user provided data
5038
+ settings method over gRPC.
5039
+
5040
+ Looks up settings related to user-provided data for a
5041
+ property.
5042
+
5043
+ Returns:
5044
+ Callable[[~.GetUserProvidedDataSettingsRequest],
5045
+ Awaitable[~.UserProvidedDataSettings]]:
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 "get_user_provided_data_settings" not in self._stubs:
5054
+ self._stubs["get_user_provided_data_settings"] = (
5055
+ self._logged_channel.unary_unary(
5056
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserProvidedDataSettings",
5057
+ request_serializer=analytics_admin.GetUserProvidedDataSettingsRequest.serialize,
5058
+ response_deserializer=resources.UserProvidedDataSettings.deserialize,
5059
+ )
5060
+ )
5061
+ return self._stubs["get_user_provided_data_settings"]
5062
+
5030
5063
  def _prep_wrapped_messages(self, client_info):
5031
5064
  """Precompute the wrapped methods, overriding the base class method to use async wrappers."""
5032
5065
  self._wrapped_methods = {
@@ -5800,6 +5833,11 @@ class AnalyticsAdminServiceGrpcAsyncIOTransport(AnalyticsAdminServiceTransport):
5800
5833
  default_timeout=None,
5801
5834
  client_info=client_info,
5802
5835
  ),
5836
+ self.get_user_provided_data_settings: self._wrap_method(
5837
+ self.get_user_provided_data_settings,
5838
+ default_timeout=None,
5839
+ client_info=client_info,
5840
+ ),
5803
5841
  }
5804
5842
 
5805
5843
  def _wrap_method(self, func, *args, **kwargs):