Skip to content

Commit 542857d

Browse files
authored
chore: update googleapis and regenerate (#16735)
1 parent eba633c commit 542857d

File tree

242 files changed

+83969
-6692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+83969
-6692
lines changed

librarian.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ version: v0.10.1
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
19-
commit: 2233f63baf69c2a481f30180045fcf036242781d
20-
sha256: fe0d4bb6d640fa6e0b48aa828c833c458f6835b6643b664062a288995b244c3c
19+
commit: 4ad1b6750926701f94ae8a88525395fd17b42cfe
20+
sha256: 4a54e2829977dea29fb0dde856b182a009873c9f1296e4df3ccb35c62511137b
2121
release:
2222
ignored_changes:
2323
- .repo-metadata.json

packages/google-analytics-admin/google/analytics/admin/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
GetSKAdNetworkConversionValueSchemaRequest,
145145
GetSubpropertyEventFilterRequest,
146146
GetSubpropertySyncConfigRequest,
147+
GetUserProvidedDataSettingsRequest,
147148
ListAccessBindingsRequest,
148149
ListAccessBindingsResponse,
149150
ListAccountsRequest,
@@ -320,6 +321,7 @@
320321
ServiceLevel,
321322
SKAdNetworkConversionValueSchema,
322323
SubpropertySyncConfig,
324+
UserProvidedDataSettings,
323325
)
324326
from google.analytics.admin_v1alpha.types.subproperty_event_filter import (
325327
SubpropertyEventFilter,
@@ -449,6 +451,7 @@
449451
"GetSKAdNetworkConversionValueSchemaRequest",
450452
"GetSubpropertyEventFilterRequest",
451453
"GetSubpropertySyncConfigRequest",
454+
"GetUserProvidedDataSettingsRequest",
452455
"ListAccessBindingsRequest",
453456
"ListAccessBindingsResponse",
454457
"ListAccountsRequest",
@@ -604,6 +607,7 @@
604607
"SearchAds360Link",
605608
"SKAdNetworkConversionValueSchema",
606609
"SubpropertySyncConfig",
610+
"UserProvidedDataSettings",
607611
"ActionType",
608612
"ActorType",
609613
"ChangeHistoryResourceType",

packages/google-analytics-admin/google/analytics/admin_v1alpha/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
GetSKAdNetworkConversionValueSchemaRequest,
154154
GetSubpropertyEventFilterRequest,
155155
GetSubpropertySyncConfigRequest,
156+
GetUserProvidedDataSettingsRequest,
156157
ListAccessBindingsRequest,
157158
ListAccessBindingsResponse,
158159
ListAccountsRequest,
@@ -329,6 +330,7 @@
329330
ServiceLevel,
330331
SKAdNetworkConversionValueSchema,
331332
SubpropertySyncConfig,
333+
UserProvidedDataSettings,
332334
)
333335
from .types.subproperty_event_filter import (
334336
SubpropertyEventFilter,
@@ -597,6 +599,7 @@ def _get_version(dependency_name):
597599
"GetSearchAds360LinkRequest",
598600
"GetSubpropertyEventFilterRequest",
599601
"GetSubpropertySyncConfigRequest",
602+
"GetUserProvidedDataSettingsRequest",
600603
"GlobalSiteTag",
601604
"GoogleAdsLink",
602605
"GoogleSignalsConsent",
@@ -723,4 +726,5 @@ def _get_version(dependency_name):
723726
"UpdateSearchAds360LinkRequest",
724727
"UpdateSubpropertyEventFilterRequest",
725728
"UpdateSubpropertySyncConfigRequest",
729+
"UserProvidedDataSettings",
726730
)

packages/google-analytics-admin/google/analytics/admin_v1alpha/gapic_metadata.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@
470470
"get_subproperty_sync_config"
471471
]
472472
},
473+
"GetUserProvidedDataSettings": {
474+
"methods": [
475+
"get_user_provided_data_settings"
476+
]
477+
},
473478
"ListAccessBindings": {
474479
"methods": [
475480
"list_access_bindings"
@@ -1245,6 +1250,11 @@
12451250
"get_subproperty_sync_config"
12461251
]
12471252
},
1253+
"GetUserProvidedDataSettings": {
1254+
"methods": [
1255+
"get_user_provided_data_settings"
1256+
]
1257+
},
12481258
"ListAccessBindings": {
12491259
"methods": [
12501260
"list_access_bindings"
@@ -2020,6 +2030,11 @@
20202030
"get_subproperty_sync_config"
20212031
]
20222032
},
2033+
"GetUserProvidedDataSettings": {
2034+
"methods": [
2035+
"get_user_provided_data_settings"
2036+
]
2037+
},
20232038
"ListAccessBindings": {
20242039
"methods": [
20252040
"list_access_bindings"

packages/google-analytics-admin/google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,12 @@ class AnalyticsAdminServiceAsyncClient:
288288
parse_subproperty_sync_config_path = staticmethod(
289289
AnalyticsAdminServiceClient.parse_subproperty_sync_config_path
290290
)
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+
)
291297
common_billing_account_path = staticmethod(
292298
AnalyticsAdminServiceClient.common_billing_account_path
293299
)
@@ -14672,8 +14678,8 @@ async def get_reporting_identity_settings(
1467214678
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1467314679
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1467414680
) -> 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.
1467714683

1467814684
Args:
1467914685
request (Optional[Union[google.analytics.admin_v1alpha.types.GetReportingIdentitySettingsRequest, dict]]):
@@ -14753,6 +14759,97 @@ async def get_reporting_identity_settings(
1475314759
# Done; return the response.
1475414760
return response
1475514761

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+
1475614853
async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
1475714854
return self
1475814855

packages/google-analytics-admin/google/analytics/admin_v1alpha/services/analytics_admin_service/client.py

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,21 @@ def parse_subproperty_sync_config_path(path: str) -> Dict[str, str]:
944944
)
945945
return m.groupdict() if m else {}
946946

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+
947962
@staticmethod
948963
def common_billing_account_path(
949964
billing_account: str,
@@ -15260,8 +15275,8 @@ def get_reporting_identity_settings(
1526015275
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1526115276
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1526215277
) -> 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.
1526515280

1526615281
Args:
1526715282
request (Union[google.analytics.admin_v1alpha.types.GetReportingIdentitySettingsRequest, dict]):
@@ -15340,6 +15355,96 @@ def get_reporting_identity_settings(
1534015355
# Done; return the response.
1534115356
return response
1534215357

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+
1534315448
def __enter__(self) -> "AnalyticsAdminServiceClient":
1534415449
return self
1534515450

packages/google-analytics-admin/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,11 @@ def _prep_wrapped_messages(self, client_info):
934934
default_timeout=None,
935935
client_info=client_info,
936936
),
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+
),
937942
}
938943

939944
def close(self):
@@ -2568,6 +2573,18 @@ def get_reporting_identity_settings(
25682573
]:
25692574
raise NotImplementedError()
25702575

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+
25712588
@property
25722589
def kind(self) -> str:
25732590
raise NotImplementedError()

0 commit comments

Comments
 (0)