# Google Workspace Events V1 API - Class Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest (v0.8.0)

0.8.0 (latest) 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Workspace Events V1 API class Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest.

The request message for
[SubscriptionsService.UpdateSubscription](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-SubscriptionsService-Client#Google__Apps__Events__Subscriptions__V1__SubscriptionsService__Client_update_subscription_instance_ "Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Client#update_subscription (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #subscription

    def subscription() -> ::Google::Apps::Events::Subscriptions::V1::Subscription

**Returns**

- ([::Google::Apps::Events::Subscriptions::V1::Subscription](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription to update.


  The subscription's `name` field is used to identify the subscription to
  update.

### #subscription=

    def subscription=(value) -> ::Google::Apps::Events::Subscriptions::V1::Subscription

**Parameter**

- **value** ([::Google::Apps::Events::Subscriptions::V1::Subscription](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription to update.


  The subscription's `name` field is used to identify the subscription to
  update.
**Returns**

- ([::Google::Apps::Events::Subscriptions::V1::Subscription](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription to update.


  The subscription's `name` field is used to identify the subscription to
  update.

### #update_mask

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

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Protobuf-FieldMask)) ---

  Optional. Required. The field to update.

  You can update one of the following fields in a subscription:
  - [`expire_time`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription#Google__Apps__Events__Subscriptions__V1__Subscription_expire_time_instance_ "Google::Apps::Events::Subscriptions::V1::Subscription#expire_time (method)"): The timestamp when the subscription expires.
  - [`ttl`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription#Google__Apps__Events__Subscriptions__V1__Subscription_ttl_instance_ "Google::Apps::Events::Subscriptions::V1::Subscription#ttl (method)"): The time-to-live (TTL) or duration of the subscription.

### #update_mask=

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

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Protobuf-FieldMask)) ---

  Optional. Required. The field to update.

  You can update one of the following fields in a subscription:
  - [`expire_time`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription#Google__Apps__Events__Subscriptions__V1__Subscription_expire_time_instance_ "Google::Apps::Events::Subscriptions::V1::Subscription#expire_time (method)"): The timestamp when the subscription expires.
  - [`ttl`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription#Google__Apps__Events__Subscriptions__V1__Subscription_ttl_instance_ "Google::Apps::Events::Subscriptions::V1::Subscription#ttl (method)"): The time-to-live (TTL) or duration of the subscription.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Protobuf-FieldMask)) ---

  Optional. Required. The field to update.

  You can update one of the following fields in a subscription:
  - [`expire_time`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription#Google__Apps__Events__Subscriptions__V1__Subscription_expire_time_instance_ "Google::Apps::Events::Subscriptions::V1::Subscription#expire_time (method)"): The timestamp when the subscription expires.
  - [`ttl`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-Subscription#Google__Apps__Events__Subscriptions__V1__Subscription_ttl_instance_ "Google::Apps::Events::Subscriptions::V1::Subscription#ttl (method)"): The time-to-live (TTL) or duration of the subscription.

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't update the subscription.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't update the subscription.
**Returns**

- (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't update the subscription.