Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ version: v0.10.1
repo: googleapis/google-cloud-python
sources:
googleapis:
commit: 2233f63baf69c2a481f30180045fcf036242781d
sha256: fe0d4bb6d640fa6e0b48aa828c833c458f6835b6643b664062a288995b244c3c
commit: 4ad1b6750926701f94ae8a88525395fd17b42cfe
sha256: 4a54e2829977dea29fb0dde856b182a009873c9f1296e4df3ccb35c62511137b
release:
ignored_changes:
- .repo-metadata.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
GetSKAdNetworkConversionValueSchemaRequest,
GetSubpropertyEventFilterRequest,
GetSubpropertySyncConfigRequest,
GetUserProvidedDataSettingsRequest,
ListAccessBindingsRequest,
ListAccessBindingsResponse,
ListAccountsRequest,
Expand Down Expand Up @@ -320,6 +321,7 @@
ServiceLevel,
SKAdNetworkConversionValueSchema,
SubpropertySyncConfig,
UserProvidedDataSettings,
)
from google.analytics.admin_v1alpha.types.subproperty_event_filter import (
SubpropertyEventFilter,
Expand Down Expand Up @@ -449,6 +451,7 @@
"GetSKAdNetworkConversionValueSchemaRequest",
"GetSubpropertyEventFilterRequest",
"GetSubpropertySyncConfigRequest",
"GetUserProvidedDataSettingsRequest",
"ListAccessBindingsRequest",
"ListAccessBindingsResponse",
"ListAccountsRequest",
Expand Down Expand Up @@ -604,6 +607,7 @@
"SearchAds360Link",
"SKAdNetworkConversionValueSchema",
"SubpropertySyncConfig",
"UserProvidedDataSettings",
"ActionType",
"ActorType",
"ChangeHistoryResourceType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
GetSKAdNetworkConversionValueSchemaRequest,
GetSubpropertyEventFilterRequest,
GetSubpropertySyncConfigRequest,
GetUserProvidedDataSettingsRequest,
ListAccessBindingsRequest,
ListAccessBindingsResponse,
ListAccountsRequest,
Expand Down Expand Up @@ -329,6 +330,7 @@
ServiceLevel,
SKAdNetworkConversionValueSchema,
SubpropertySyncConfig,
UserProvidedDataSettings,
)
from .types.subproperty_event_filter import (
SubpropertyEventFilter,
Expand Down Expand Up @@ -597,6 +599,7 @@ def _get_version(dependency_name):
"GetSearchAds360LinkRequest",
"GetSubpropertyEventFilterRequest",
"GetSubpropertySyncConfigRequest",
"GetUserProvidedDataSettingsRequest",
"GlobalSiteTag",
"GoogleAdsLink",
"GoogleSignalsConsent",
Expand Down Expand Up @@ -723,4 +726,5 @@ def _get_version(dependency_name):
"UpdateSearchAds360LinkRequest",
"UpdateSubpropertyEventFilterRequest",
"UpdateSubpropertySyncConfigRequest",
"UserProvidedDataSettings",
)
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,11 @@
"get_subproperty_sync_config"
]
},
"GetUserProvidedDataSettings": {
"methods": [
"get_user_provided_data_settings"
]
},
"ListAccessBindings": {
"methods": [
"list_access_bindings"
Expand Down Expand Up @@ -1245,6 +1250,11 @@
"get_subproperty_sync_config"
]
},
"GetUserProvidedDataSettings": {
"methods": [
"get_user_provided_data_settings"
]
},
"ListAccessBindings": {
"methods": [
"list_access_bindings"
Expand Down Expand Up @@ -2020,6 +2030,11 @@
"get_subproperty_sync_config"
]
},
"GetUserProvidedDataSettings": {
"methods": [
"get_user_provided_data_settings"
]
},
"ListAccessBindings": {
"methods": [
"list_access_bindings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ class AnalyticsAdminServiceAsyncClient:
parse_subproperty_sync_config_path = staticmethod(
AnalyticsAdminServiceClient.parse_subproperty_sync_config_path
)
user_provided_data_settings_path = staticmethod(
AnalyticsAdminServiceClient.user_provided_data_settings_path
)
parse_user_provided_data_settings_path = staticmethod(
AnalyticsAdminServiceClient.parse_user_provided_data_settings_path
)
common_billing_account_path = staticmethod(
AnalyticsAdminServiceClient.common_billing_account_path
)
Expand Down Expand Up @@ -14672,8 +14678,8 @@ async def get_reporting_identity_settings(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> resources.ReportingIdentitySettings:
r"""Returns the singleton data retention settings for
this property.
r"""Returns the reporting identity settings for this
property.

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

async def get_user_provided_data_settings(
self,
request: Optional[
Union[analytics_admin.GetUserProvidedDataSettingsRequest, dict]
] = None,
*,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> resources.UserProvidedDataSettings:
r"""Looks up settings related to user-provided data for a
property.

Args:
request (Optional[Union[google.analytics.admin_v1alpha.types.GetUserProvidedDataSettingsRequest, dict]]):
The request object. Request message for
GetUserProvidedDataSettings RPC
name (:class:`str`):
Required. The name of the user
provided data settings to retrieve.
Format:
properties/{property}/userProvidedDataSettings

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
sent along with the request as metadata. Normally, each value must be of type `str`,
but for metadata keys ending with the suffix `-bin`, the corresponding values must
be of type `bytes`.

Returns:
google.analytics.admin_v1alpha.types.UserProvidedDataSettings:
Configuration for user-provided data
collection. This is a singleton resource
for a Google Analytics property.

"""
# Create or coerce a protobuf request object.
# - Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
flattened_params = [name]
has_flattened_params = (
len([param for param in flattened_params if param is not None]) > 0
)
if request is not None and has_flattened_params:
raise ValueError(
"If the `request` argument is set, then none of "
"the individual field arguments should be set."
)

# - Use the request object if provided (there's no risk of modifying the input as
# there are no flattened fields), or create one.
if not isinstance(request, analytics_admin.GetUserProvidedDataSettingsRequest):
request = analytics_admin.GetUserProvidedDataSettingsRequest(request)

# If we have keyword arguments corresponding to fields on the
# request, apply these.
if name is not None:
request.name = name

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._client._transport._wrapped_methods[
self._client._transport.get_user_provided_data_settings
]

# Certain fields should be provided within the metadata header;
# add these here.
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
)

# Validate the universe domain.
self._client._validate_universe_domain()

# Send the request.
response = await rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Done; return the response.
return response

async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,21 @@ def parse_subproperty_sync_config_path(path: str) -> Dict[str, str]:
)
return m.groupdict() if m else {}

@staticmethod
def user_provided_data_settings_path(
property: str,
) -> str:
"""Returns a fully-qualified user_provided_data_settings string."""
return "properties/{property}/userProvidedDataSettings".format(
property=property,
)

@staticmethod
def parse_user_provided_data_settings_path(path: str) -> Dict[str, str]:
"""Parses a user_provided_data_settings path into its component segments."""
m = re.match(r"^properties/(?P<property>.+?)/userProvidedDataSettings$", path)
return m.groupdict() if m else {}

@staticmethod
def common_billing_account_path(
billing_account: str,
Expand Down Expand Up @@ -15260,8 +15275,8 @@ def get_reporting_identity_settings(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> resources.ReportingIdentitySettings:
r"""Returns the singleton data retention settings for
this property.
r"""Returns the reporting identity settings for this
property.

Args:
request (Union[google.analytics.admin_v1alpha.types.GetReportingIdentitySettingsRequest, dict]):
Expand Down Expand Up @@ -15340,6 +15355,96 @@ def get_reporting_identity_settings(
# Done; return the response.
return response

def get_user_provided_data_settings(
self,
request: Optional[
Union[analytics_admin.GetUserProvidedDataSettingsRequest, dict]
] = None,
*,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> resources.UserProvidedDataSettings:
r"""Looks up settings related to user-provided data for a
property.

Args:
request (Union[google.analytics.admin_v1alpha.types.GetUserProvidedDataSettingsRequest, dict]):
The request object. Request message for
GetUserProvidedDataSettings RPC
name (str):
Required. The name of the user
provided data settings to retrieve.
Format:
properties/{property}/userProvidedDataSettings

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
sent along with the request as metadata. Normally, each value must be of type `str`,
but for metadata keys ending with the suffix `-bin`, the corresponding values must
be of type `bytes`.

Returns:
google.analytics.admin_v1alpha.types.UserProvidedDataSettings:
Configuration for user-provided data
collection. This is a singleton resource
for a Google Analytics property.

"""
# Create or coerce a protobuf request object.
# - Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
flattened_params = [name]
has_flattened_params = (
len([param for param in flattened_params if param is not None]) > 0
)
if request is not None and has_flattened_params:
raise ValueError(
"If the `request` argument is set, then none of "
"the individual field arguments should be set."
)

# - Use the request object if provided (there's no risk of modifying the input as
# there are no flattened fields), or create one.
if not isinstance(request, analytics_admin.GetUserProvidedDataSettingsRequest):
request = analytics_admin.GetUserProvidedDataSettingsRequest(request)
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if name is not None:
request.name = name

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._transport._wrapped_methods[
self._transport.get_user_provided_data_settings
]

# Certain fields should be provided within the metadata header;
# add these here.
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
)

# Validate the universe domain.
self._validate_universe_domain()

# Send the request.
response = rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Done; return the response.
return response

def __enter__(self) -> "AnalyticsAdminServiceClient":
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,11 @@ def _prep_wrapped_messages(self, client_info):
default_timeout=None,
client_info=client_info,
),
self.get_user_provided_data_settings: gapic_v1.method.wrap_method(
self.get_user_provided_data_settings,
default_timeout=None,
client_info=client_info,
),
}

def close(self):
Expand Down Expand Up @@ -2568,6 +2573,18 @@ def get_reporting_identity_settings(
]:
raise NotImplementedError()

@property
def get_user_provided_data_settings(
self,
) -> Callable[
[analytics_admin.GetUserProvidedDataSettingsRequest],
Union[
resources.UserProvidedDataSettings,
Awaitable[resources.UserProvidedDataSettings],
],
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()
Expand Down
Loading
Loading