google-analytics-admin 0.24.0__tar.gz → 0.24.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 (65) hide show
  1. {google_analytics_admin-0.24.0/google_analytics_admin.egg-info → google_analytics_admin-0.24.1}/PKG-INFO +13 -2
  2. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin/__init__.py +10 -0
  3. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin/gapic_version.py +1 -1
  4. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/__init__.py +10 -0
  5. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/gapic_metadata.json +45 -0
  6. {google_analytics_admin-0.24.0/google/analytics/admin_v1beta → google_analytics_admin-0.24.1/google/analytics/admin_v1alpha}/gapic_version.py +1 -1
  7. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +315 -0
  8. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +325 -0
  9. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +160 -0
  10. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +53 -0
  11. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +93 -0
  12. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +108 -0
  13. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +694 -0
  14. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +151 -0
  15. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/__init__.py +10 -0
  16. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/analytics_admin.py +121 -0
  17. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/resources.py +80 -0
  18. {google_analytics_admin-0.24.0/google/analytics/admin_v1alpha → google_analytics_admin-0.24.1/google/analytics/admin_v1beta}/gapic_version.py +1 -1
  19. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +4 -0
  20. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/client.py +3 -0
  21. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +4 -0
  22. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +4 -0
  23. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1/google_analytics_admin.egg-info}/PKG-INFO +13 -2
  24. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/unit/gapic/admin_v1alpha/test_analytics_admin_service.py +10698 -8025
  25. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/LICENSE +0 -0
  26. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/MANIFEST.in +0 -0
  27. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/README.rst +0 -0
  28. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin/py.typed +0 -0
  29. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/py.typed +0 -0
  30. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/__init__.py +0 -0
  31. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +0 -0
  32. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +0 -0
  33. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/access_report.py +0 -0
  34. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/audience.py +0 -0
  35. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/channel_group.py +0 -0
  36. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/event_create_and_edit.py +0 -0
  37. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/expanded_data_set.py +0 -0
  38. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1alpha/types/subproperty_event_filter.py +0 -0
  39. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/__init__.py +0 -0
  40. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/gapic_metadata.json +0 -0
  41. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/py.typed +0 -0
  42. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/__init__.py +0 -0
  43. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +0 -0
  44. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +0 -0
  45. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +0 -0
  46. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +0 -0
  47. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +0 -0
  48. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +0 -0
  49. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/types/__init__.py +0 -0
  50. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/types/access_report.py +0 -0
  51. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/types/analytics_admin.py +0 -0
  52. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google/analytics/admin_v1beta/types/resources.py +0 -0
  53. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google_analytics_admin.egg-info/SOURCES.txt +0 -0
  54. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google_analytics_admin.egg-info/dependency_links.txt +0 -0
  55. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google_analytics_admin.egg-info/not-zip-safe +0 -0
  56. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google_analytics_admin.egg-info/requires.txt +0 -0
  57. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/google_analytics_admin.egg-info/top_level.txt +0 -0
  58. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/setup.cfg +0 -0
  59. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/setup.py +0 -0
  60. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/__init__.py +0 -0
  61. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/unit/__init__.py +0 -0
  62. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/unit/gapic/__init__.py +0 -0
  63. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/unit/gapic/admin_v1alpha/__init__.py +0 -0
  64. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/unit/gapic/admin_v1beta/__init__.py +0 -0
  65. {google_analytics_admin-0.24.0 → google_analytics_admin-0.24.1}/tests/unit/gapic/admin_v1beta/test_analytics_admin_service.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: google-analytics-admin
3
- Version: 0.24.0
3
+ Version: 0.24.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
@@ -28,6 +28,17 @@ Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
28
28
  Requires-Dist: proto-plus<2.0.0,>=1.22.3
29
29
  Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
30
30
  Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
31
+ Dynamic: author
32
+ Dynamic: author-email
33
+ Dynamic: classifier
34
+ Dynamic: description
35
+ Dynamic: home-page
36
+ Dynamic: license
37
+ Dynamic: license-file
38
+ Dynamic: platform
39
+ Dynamic: requires-dist
40
+ Dynamic: requires-python
41
+ Dynamic: summary
31
42
 
32
43
  Python Client for Analytics Admin
33
44
  =================================
@@ -149,6 +149,7 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
149
149
  GetSearchAds360LinkRequest,
150
150
  GetSKAdNetworkConversionValueSchemaRequest,
151
151
  GetSubpropertyEventFilterRequest,
152
+ GetSubpropertySyncConfigRequest,
152
153
  ListAccessBindingsRequest,
153
154
  ListAccessBindingsResponse,
154
155
  ListAccountsRequest,
@@ -205,6 +206,8 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
205
206
  ListSKAdNetworkConversionValueSchemasResponse,
206
207
  ListSubpropertyEventFiltersRequest,
207
208
  ListSubpropertyEventFiltersResponse,
209
+ ListSubpropertySyncConfigsRequest,
210
+ ListSubpropertySyncConfigsResponse,
208
211
  ProvisionAccountTicketRequest,
209
212
  ProvisionAccountTicketResponse,
210
213
  ProvisionSubpropertyRequest,
@@ -245,6 +248,7 @@ from google.analytics.admin_v1alpha.types.analytics_admin import (
245
248
  UpdateSearchAds360LinkRequest,
246
249
  UpdateSKAdNetworkConversionValueSchemaRequest,
247
250
  UpdateSubpropertyEventFilterRequest,
251
+ UpdateSubpropertySyncConfigRequest,
248
252
  )
249
253
  from google.analytics.admin_v1alpha.types.audience import (
250
254
  Audience,
@@ -325,6 +329,7 @@ from google.analytics.admin_v1alpha.types.resources import (
325
329
  SearchAds360Link,
326
330
  ServiceLevel,
327
331
  SKAdNetworkConversionValueSchema,
332
+ SubpropertySyncConfig,
328
333
  )
329
334
  from google.analytics.admin_v1alpha.types.subproperty_event_filter import (
330
335
  SubpropertyEventFilter,
@@ -459,6 +464,7 @@ __all__ = (
459
464
  "GetSearchAds360LinkRequest",
460
465
  "GetSKAdNetworkConversionValueSchemaRequest",
461
466
  "GetSubpropertyEventFilterRequest",
467
+ "GetSubpropertySyncConfigRequest",
462
468
  "ListAccessBindingsRequest",
463
469
  "ListAccessBindingsResponse",
464
470
  "ListAccountsRequest",
@@ -515,6 +521,8 @@ __all__ = (
515
521
  "ListSKAdNetworkConversionValueSchemasResponse",
516
522
  "ListSubpropertyEventFiltersRequest",
517
523
  "ListSubpropertyEventFiltersResponse",
524
+ "ListSubpropertySyncConfigsRequest",
525
+ "ListSubpropertySyncConfigsResponse",
518
526
  "ProvisionAccountTicketRequest",
519
527
  "ProvisionAccountTicketResponse",
520
528
  "ProvisionSubpropertyRequest",
@@ -555,6 +563,7 @@ __all__ = (
555
563
  "UpdateSearchAds360LinkRequest",
556
564
  "UpdateSKAdNetworkConversionValueSchemaRequest",
557
565
  "UpdateSubpropertyEventFilterRequest",
566
+ "UpdateSubpropertySyncConfigRequest",
558
567
  "Audience",
559
568
  "AudienceDimensionOrMetricFilter",
560
569
  "AudienceEventFilter",
@@ -614,6 +623,7 @@ __all__ = (
614
623
  "RollupPropertySourceLink",
615
624
  "SearchAds360Link",
616
625
  "SKAdNetworkConversionValueSchema",
626
+ "SubpropertySyncConfig",
617
627
  "ActionType",
618
628
  "ActorType",
619
629
  "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.24.0" # {x-release-please-version}
16
+ __version__ = "0.24.1" # {x-release-please-version}
@@ -147,6 +147,7 @@ from .types.analytics_admin import (
147
147
  GetSearchAds360LinkRequest,
148
148
  GetSKAdNetworkConversionValueSchemaRequest,
149
149
  GetSubpropertyEventFilterRequest,
150
+ GetSubpropertySyncConfigRequest,
150
151
  ListAccessBindingsRequest,
151
152
  ListAccessBindingsResponse,
152
153
  ListAccountsRequest,
@@ -203,6 +204,8 @@ from .types.analytics_admin import (
203
204
  ListSKAdNetworkConversionValueSchemasResponse,
204
205
  ListSubpropertyEventFiltersRequest,
205
206
  ListSubpropertyEventFiltersResponse,
207
+ ListSubpropertySyncConfigsRequest,
208
+ ListSubpropertySyncConfigsResponse,
206
209
  ProvisionAccountTicketRequest,
207
210
  ProvisionAccountTicketResponse,
208
211
  ProvisionSubpropertyRequest,
@@ -243,6 +246,7 @@ from .types.analytics_admin import (
243
246
  UpdateSearchAds360LinkRequest,
244
247
  UpdateSKAdNetworkConversionValueSchemaRequest,
245
248
  UpdateSubpropertyEventFilterRequest,
249
+ UpdateSubpropertySyncConfigRequest,
246
250
  )
247
251
  from .types.audience import (
248
252
  Audience,
@@ -323,6 +327,7 @@ from .types.resources import (
323
327
  SearchAds360Link,
324
328
  ServiceLevel,
325
329
  SKAdNetworkConversionValueSchema,
330
+ SubpropertySyncConfig,
326
331
  )
327
332
  from .types.subproperty_event_filter import (
328
333
  SubpropertyEventFilter,
@@ -503,6 +508,7 @@ __all__ = (
503
508
  "GetSKAdNetworkConversionValueSchemaRequest",
504
509
  "GetSearchAds360LinkRequest",
505
510
  "GetSubpropertyEventFilterRequest",
511
+ "GetSubpropertySyncConfigRequest",
506
512
  "GlobalSiteTag",
507
513
  "GoogleAdsLink",
508
514
  "GoogleSignalsConsent",
@@ -570,6 +576,8 @@ __all__ = (
570
576
  "ListSearchAds360LinksResponse",
571
577
  "ListSubpropertyEventFiltersRequest",
572
578
  "ListSubpropertyEventFiltersResponse",
579
+ "ListSubpropertySyncConfigsRequest",
580
+ "ListSubpropertySyncConfigsResponse",
573
581
  "MatchingCondition",
574
582
  "MeasurementProtocolSecret",
575
583
  "NumericValue",
@@ -601,6 +609,7 @@ __all__ = (
601
609
  "SubpropertyEventFilterCondition",
602
610
  "SubpropertyEventFilterExpression",
603
611
  "SubpropertyEventFilterExpressionList",
612
+ "SubpropertySyncConfig",
604
613
  "UpdateAccessBindingRequest",
605
614
  "UpdateAccountRequest",
606
615
  "UpdateAttributionSettingsRequest",
@@ -628,4 +637,5 @@ __all__ = (
628
637
  "UpdateSKAdNetworkConversionValueSchemaRequest",
629
638
  "UpdateSearchAds360LinkRequest",
630
639
  "UpdateSubpropertyEventFilterRequest",
640
+ "UpdateSubpropertySyncConfigRequest",
631
641
  )
@@ -480,6 +480,11 @@
480
480
  "get_subproperty_event_filter"
481
481
  ]
482
482
  },
483
+ "GetSubpropertySyncConfig": {
484
+ "methods": [
485
+ "get_subproperty_sync_config"
486
+ ]
487
+ },
483
488
  "ListAccessBindings": {
484
489
  "methods": [
485
490
  "list_access_bindings"
@@ -620,6 +625,11 @@
620
625
  "list_subproperty_event_filters"
621
626
  ]
622
627
  },
628
+ "ListSubpropertySyncConfigs": {
629
+ "methods": [
630
+ "list_subproperty_sync_configs"
631
+ ]
632
+ },
623
633
  "ProvisionAccountTicket": {
624
634
  "methods": [
625
635
  "provision_account_ticket"
@@ -789,6 +799,11 @@
789
799
  "methods": [
790
800
  "update_subproperty_event_filter"
791
801
  ]
802
+ },
803
+ "UpdateSubpropertySyncConfig": {
804
+ "methods": [
805
+ "update_subproperty_sync_config"
806
+ ]
792
807
  }
793
808
  }
794
809
  },
@@ -1265,6 +1280,11 @@
1265
1280
  "get_subproperty_event_filter"
1266
1281
  ]
1267
1282
  },
1283
+ "GetSubpropertySyncConfig": {
1284
+ "methods": [
1285
+ "get_subproperty_sync_config"
1286
+ ]
1287
+ },
1268
1288
  "ListAccessBindings": {
1269
1289
  "methods": [
1270
1290
  "list_access_bindings"
@@ -1405,6 +1425,11 @@
1405
1425
  "list_subproperty_event_filters"
1406
1426
  ]
1407
1427
  },
1428
+ "ListSubpropertySyncConfigs": {
1429
+ "methods": [
1430
+ "list_subproperty_sync_configs"
1431
+ ]
1432
+ },
1408
1433
  "ProvisionAccountTicket": {
1409
1434
  "methods": [
1410
1435
  "provision_account_ticket"
@@ -1574,6 +1599,11 @@
1574
1599
  "methods": [
1575
1600
  "update_subproperty_event_filter"
1576
1601
  ]
1602
+ },
1603
+ "UpdateSubpropertySyncConfig": {
1604
+ "methods": [
1605
+ "update_subproperty_sync_config"
1606
+ ]
1577
1607
  }
1578
1608
  }
1579
1609
  },
@@ -2050,6 +2080,11 @@
2050
2080
  "get_subproperty_event_filter"
2051
2081
  ]
2052
2082
  },
2083
+ "GetSubpropertySyncConfig": {
2084
+ "methods": [
2085
+ "get_subproperty_sync_config"
2086
+ ]
2087
+ },
2053
2088
  "ListAccessBindings": {
2054
2089
  "methods": [
2055
2090
  "list_access_bindings"
@@ -2190,6 +2225,11 @@
2190
2225
  "list_subproperty_event_filters"
2191
2226
  ]
2192
2227
  },
2228
+ "ListSubpropertySyncConfigs": {
2229
+ "methods": [
2230
+ "list_subproperty_sync_configs"
2231
+ ]
2232
+ },
2193
2233
  "ProvisionAccountTicket": {
2194
2234
  "methods": [
2195
2235
  "provision_account_ticket"
@@ -2359,6 +2399,11 @@
2359
2399
  "methods": [
2360
2400
  "update_subproperty_event_filter"
2361
2401
  ]
2402
+ },
2403
+ "UpdateSubpropertySyncConfig": {
2404
+ "methods": [
2405
+ "update_subproperty_sync_config"
2406
+ ]
2362
2407
  }
2363
2408
  }
2364
2409
  }
@@ -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.24.0" # {x-release-please-version}
16
+ __version__ = "0.24.1" # {x-release-please-version}
@@ -36,6 +36,7 @@ from google.api_core import retry_async as retries
36
36
  from google.api_core.client_options import ClientOptions
37
37
  from google.auth import credentials as ga_credentials # type: ignore
38
38
  from google.oauth2 import service_account # type: ignore
39
+ import google.protobuf
39
40
 
40
41
  from google.analytics.admin_v1alpha import gapic_version as package_version
41
42
 
@@ -272,6 +273,12 @@ class AnalyticsAdminServiceAsyncClient:
272
273
  parse_subproperty_event_filter_path = staticmethod(
273
274
  AnalyticsAdminServiceClient.parse_subproperty_event_filter_path
274
275
  )
276
+ subproperty_sync_config_path = staticmethod(
277
+ AnalyticsAdminServiceClient.subproperty_sync_config_path
278
+ )
279
+ parse_subproperty_sync_config_path = staticmethod(
280
+ AnalyticsAdminServiceClient.parse_subproperty_sync_config_path
281
+ )
275
282
  common_billing_account_path = staticmethod(
276
283
  AnalyticsAdminServiceClient.common_billing_account_path
277
284
  )
@@ -14685,6 +14692,311 @@ class AnalyticsAdminServiceAsyncClient:
14685
14692
  # Done; return the response.
14686
14693
  return response
14687
14694
 
14695
+ async def list_subproperty_sync_configs(
14696
+ self,
14697
+ request: Optional[
14698
+ Union[analytics_admin.ListSubpropertySyncConfigsRequest, dict]
14699
+ ] = None,
14700
+ *,
14701
+ parent: Optional[str] = None,
14702
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
14703
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
14704
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
14705
+ ) -> pagers.ListSubpropertySyncConfigsAsyncPager:
14706
+ r"""List all Subproperty Sync Configs on a property.
14707
+
14708
+ Args:
14709
+ request (Optional[Union[google.analytics.admin_v1alpha.types.ListSubpropertySyncConfigsRequest, dict]]):
14710
+ The request object. Request message for
14711
+ ListSubpropertySyncConfigs RPC.
14712
+ parent (:class:`str`):
14713
+ Required. Resource name of the property. Format:
14714
+ properties/property_id Example: properties/123
14715
+
14716
+ This corresponds to the ``parent`` field
14717
+ on the ``request`` instance; if ``request`` is provided, this
14718
+ should not be set.
14719
+ retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
14720
+ should be retried.
14721
+ timeout (float): The timeout for this request.
14722
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
14723
+ sent along with the request as metadata. Normally, each value must be of type `str`,
14724
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
14725
+ be of type `bytes`.
14726
+
14727
+ Returns:
14728
+ google.analytics.admin_v1alpha.services.analytics_admin_service.pagers.ListSubpropertySyncConfigsAsyncPager:
14729
+ Response message for
14730
+ ListSubpropertySyncConfigs RPC.
14731
+ Iterating over this object will yield
14732
+ results and resolve additional pages
14733
+ automatically.
14734
+
14735
+ """
14736
+ # Create or coerce a protobuf request object.
14737
+ # - Quick check: If we got a request object, we should *not* have
14738
+ # gotten any keyword arguments that map to the request.
14739
+ flattened_params = [parent]
14740
+ has_flattened_params = (
14741
+ len([param for param in flattened_params if param is not None]) > 0
14742
+ )
14743
+ if request is not None and has_flattened_params:
14744
+ raise ValueError(
14745
+ "If the `request` argument is set, then none of "
14746
+ "the individual field arguments should be set."
14747
+ )
14748
+
14749
+ # - Use the request object if provided (there's no risk of modifying the input as
14750
+ # there are no flattened fields), or create one.
14751
+ if not isinstance(request, analytics_admin.ListSubpropertySyncConfigsRequest):
14752
+ request = analytics_admin.ListSubpropertySyncConfigsRequest(request)
14753
+
14754
+ # If we have keyword arguments corresponding to fields on the
14755
+ # request, apply these.
14756
+ if parent is not None:
14757
+ request.parent = parent
14758
+
14759
+ # Wrap the RPC method; this adds retry and timeout information,
14760
+ # and friendly error handling.
14761
+ rpc = self._client._transport._wrapped_methods[
14762
+ self._client._transport.list_subproperty_sync_configs
14763
+ ]
14764
+
14765
+ # Certain fields should be provided within the metadata header;
14766
+ # add these here.
14767
+ metadata = tuple(metadata) + (
14768
+ gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
14769
+ )
14770
+
14771
+ # Validate the universe domain.
14772
+ self._client._validate_universe_domain()
14773
+
14774
+ # Send the request.
14775
+ response = await rpc(
14776
+ request,
14777
+ retry=retry,
14778
+ timeout=timeout,
14779
+ metadata=metadata,
14780
+ )
14781
+
14782
+ # This method is paged; wrap the response in a pager, which provides
14783
+ # an `__aiter__` convenience method.
14784
+ response = pagers.ListSubpropertySyncConfigsAsyncPager(
14785
+ method=rpc,
14786
+ request=request,
14787
+ response=response,
14788
+ retry=retry,
14789
+ timeout=timeout,
14790
+ metadata=metadata,
14791
+ )
14792
+
14793
+ # Done; return the response.
14794
+ return response
14795
+
14796
+ async def update_subproperty_sync_config(
14797
+ self,
14798
+ request: Optional[
14799
+ Union[analytics_admin.UpdateSubpropertySyncConfigRequest, dict]
14800
+ ] = None,
14801
+ *,
14802
+ subproperty_sync_config: Optional[resources.SubpropertySyncConfig] = None,
14803
+ update_mask: Optional[field_mask_pb2.FieldMask] = None,
14804
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
14805
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
14806
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
14807
+ ) -> resources.SubpropertySyncConfig:
14808
+ r"""Updates a Subproperty Sync Config.
14809
+
14810
+ Args:
14811
+ request (Optional[Union[google.analytics.admin_v1alpha.types.UpdateSubpropertySyncConfigRequest, dict]]):
14812
+ The request object. Request message for
14813
+ UpdateSubpropertySyncConfig RPC.
14814
+ subproperty_sync_config (:class:`google.analytics.admin_v1alpha.types.SubpropertySyncConfig`):
14815
+ Required. The SubpropertySyncConfig
14816
+ to update.
14817
+
14818
+ This corresponds to the ``subproperty_sync_config`` field
14819
+ on the ``request`` instance; if ``request`` is provided, this
14820
+ should not be set.
14821
+ update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
14822
+ Optional. The list of fields to update. Field names must
14823
+ be in snake case (for example, "field_to_update").
14824
+ Omitted fields will not be updated. To replace the
14825
+ entire entity, use one path with the string "*" to match
14826
+ all fields.
14827
+
14828
+ This corresponds to the ``update_mask`` field
14829
+ on the ``request`` instance; if ``request`` is provided, this
14830
+ should not be set.
14831
+ retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
14832
+ should be retried.
14833
+ timeout (float): The timeout for this request.
14834
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
14835
+ sent along with the request as metadata. Normally, each value must be of type `str`,
14836
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
14837
+ be of type `bytes`.
14838
+
14839
+ Returns:
14840
+ google.analytics.admin_v1alpha.types.SubpropertySyncConfig:
14841
+ Subproperty synchronization
14842
+ configuration controls how ordinary
14843
+ property configurations are synchronized
14844
+ to subproperties. This resource is
14845
+ provisioned automatically for each
14846
+ subproperty.
14847
+
14848
+ """
14849
+ # Create or coerce a protobuf request object.
14850
+ # - Quick check: If we got a request object, we should *not* have
14851
+ # gotten any keyword arguments that map to the request.
14852
+ flattened_params = [subproperty_sync_config, update_mask]
14853
+ has_flattened_params = (
14854
+ len([param for param in flattened_params if param is not None]) > 0
14855
+ )
14856
+ if request is not None and has_flattened_params:
14857
+ raise ValueError(
14858
+ "If the `request` argument is set, then none of "
14859
+ "the individual field arguments should be set."
14860
+ )
14861
+
14862
+ # - Use the request object if provided (there's no risk of modifying the input as
14863
+ # there are no flattened fields), or create one.
14864
+ if not isinstance(request, analytics_admin.UpdateSubpropertySyncConfigRequest):
14865
+ request = analytics_admin.UpdateSubpropertySyncConfigRequest(request)
14866
+
14867
+ # If we have keyword arguments corresponding to fields on the
14868
+ # request, apply these.
14869
+ if subproperty_sync_config is not None:
14870
+ request.subproperty_sync_config = subproperty_sync_config
14871
+ if update_mask is not None:
14872
+ request.update_mask = update_mask
14873
+
14874
+ # Wrap the RPC method; this adds retry and timeout information,
14875
+ # and friendly error handling.
14876
+ rpc = self._client._transport._wrapped_methods[
14877
+ self._client._transport.update_subproperty_sync_config
14878
+ ]
14879
+
14880
+ # Certain fields should be provided within the metadata header;
14881
+ # add these here.
14882
+ metadata = tuple(metadata) + (
14883
+ gapic_v1.routing_header.to_grpc_metadata(
14884
+ (
14885
+ (
14886
+ "subproperty_sync_config.name",
14887
+ request.subproperty_sync_config.name,
14888
+ ),
14889
+ )
14890
+ ),
14891
+ )
14892
+
14893
+ # Validate the universe domain.
14894
+ self._client._validate_universe_domain()
14895
+
14896
+ # Send the request.
14897
+ response = await rpc(
14898
+ request,
14899
+ retry=retry,
14900
+ timeout=timeout,
14901
+ metadata=metadata,
14902
+ )
14903
+
14904
+ # Done; return the response.
14905
+ return response
14906
+
14907
+ async def get_subproperty_sync_config(
14908
+ self,
14909
+ request: Optional[
14910
+ Union[analytics_admin.GetSubpropertySyncConfigRequest, dict]
14911
+ ] = None,
14912
+ *,
14913
+ name: Optional[str] = None,
14914
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
14915
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
14916
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
14917
+ ) -> resources.SubpropertySyncConfig:
14918
+ r"""Lookup for a single Subproperty Sync Config.
14919
+
14920
+ Args:
14921
+ request (Optional[Union[google.analytics.admin_v1alpha.types.GetSubpropertySyncConfigRequest, dict]]):
14922
+ The request object. Request message for
14923
+ GetSubpropertySyncConfig RPC.
14924
+ name (:class:`str`):
14925
+ Required. Resource name of the SubpropertySyncConfig to
14926
+ lookup. Format:
14927
+ properties/{ordinary_property_id}/subpropertySyncConfigs/{subproperty_id}
14928
+ Example: properties/1234/subpropertySyncConfigs/5678
14929
+
14930
+ This corresponds to the ``name`` field
14931
+ on the ``request`` instance; if ``request`` is provided, this
14932
+ should not be set.
14933
+ retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
14934
+ should be retried.
14935
+ timeout (float): The timeout for this request.
14936
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
14937
+ sent along with the request as metadata. Normally, each value must be of type `str`,
14938
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
14939
+ be of type `bytes`.
14940
+
14941
+ Returns:
14942
+ google.analytics.admin_v1alpha.types.SubpropertySyncConfig:
14943
+ Subproperty synchronization
14944
+ configuration controls how ordinary
14945
+ property configurations are synchronized
14946
+ to subproperties. This resource is
14947
+ provisioned automatically for each
14948
+ subproperty.
14949
+
14950
+ """
14951
+ # Create or coerce a protobuf request object.
14952
+ # - Quick check: If we got a request object, we should *not* have
14953
+ # gotten any keyword arguments that map to the request.
14954
+ flattened_params = [name]
14955
+ has_flattened_params = (
14956
+ len([param for param in flattened_params if param is not None]) > 0
14957
+ )
14958
+ if request is not None and has_flattened_params:
14959
+ raise ValueError(
14960
+ "If the `request` argument is set, then none of "
14961
+ "the individual field arguments should be set."
14962
+ )
14963
+
14964
+ # - Use the request object if provided (there's no risk of modifying the input as
14965
+ # there are no flattened fields), or create one.
14966
+ if not isinstance(request, analytics_admin.GetSubpropertySyncConfigRequest):
14967
+ request = analytics_admin.GetSubpropertySyncConfigRequest(request)
14968
+
14969
+ # If we have keyword arguments corresponding to fields on the
14970
+ # request, apply these.
14971
+ if name is not None:
14972
+ request.name = name
14973
+
14974
+ # Wrap the RPC method; this adds retry and timeout information,
14975
+ # and friendly error handling.
14976
+ rpc = self._client._transport._wrapped_methods[
14977
+ self._client._transport.get_subproperty_sync_config
14978
+ ]
14979
+
14980
+ # Certain fields should be provided within the metadata header;
14981
+ # add these here.
14982
+ metadata = tuple(metadata) + (
14983
+ gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
14984
+ )
14985
+
14986
+ # Validate the universe domain.
14987
+ self._client._validate_universe_domain()
14988
+
14989
+ # Send the request.
14990
+ response = await rpc(
14991
+ request,
14992
+ retry=retry,
14993
+ timeout=timeout,
14994
+ metadata=metadata,
14995
+ )
14996
+
14997
+ # Done; return the response.
14998
+ return response
14999
+
14688
15000
  async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
14689
15001
  return self
14690
15002
 
@@ -14696,5 +15008,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
14696
15008
  gapic_version=package_version.__version__
14697
15009
  )
14698
15010
 
15011
+ if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
15012
+ DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
15013
+
14699
15014
 
14700
15015
  __all__ = ("AnalyticsAdminServiceAsyncClient",)