# Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest (v0.11.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.11.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-UpdateDataRetentionSettingsRequest)
- [0.10.0](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/0.10.0/Google-Analytics-Admin-V1alpha-UpdateDataRetentionSettingsRequest)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/0.9.1/Google-Analytics-Admin-V1alpha-UpdateDataRetentionSettingsRequest)
Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.

Request message for UpdateDataRetentionSettings RPC.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_retention_settings

    def data_retention_settings() -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettings

**Returns**

- ([::Google::Analytics::Admin::V1alpha::DataRetentionSettings](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-DataRetentionSettings)) --- Required. The settings to update. The `name` field is used to identify the settings to be updated.

### #data_retention_settings=

    def data_retention_settings=(value) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettings

**Parameter**

- **value** ([::Google::Analytics::Admin::V1alpha::DataRetentionSettings](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-DataRetentionSettings)) --- Required. The settings to update. The `name` field is used to identify the settings to be updated.
**Returns**

- ([::Google::Analytics::Admin::V1alpha::DataRetentionSettings](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-DataRetentionSettings)) --- Required. The settings to update. The `name` field is used to identify the settings to be updated.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Protobuf-FieldMask)) --- Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "\*" to match all fields.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Protobuf-FieldMask)) --- Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "\*" to match all fields.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Protobuf-FieldMask)) --- Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "\*" to match all fields.