Reference documentation and code samples for the Google Workspace Events V1 API class Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Workspace Events V1 API - Class Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest (v0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-UpdateSubscriptionRequest)\n- [0.3.1](/ruby/docs/reference/google-apps-events-subscriptions-v1/0.3.1/Google-Apps-Events-Subscriptions-V1-UpdateSubscriptionRequest)\n- [0.2.0](/ruby/docs/reference/google-apps-events-subscriptions-v1/0.2.0/Google-Apps-Events-Subscriptions-V1-UpdateSubscriptionRequest)\n- [0.1.1](/ruby/docs/reference/google-apps-events-subscriptions-v1/0.1.1/Google-Apps-Events-Subscriptions-V1-UpdateSubscriptionRequest) \nReference documentation and code samples for the Google Workspace Events V1 API class Google::Apps::Events::Subscriptions::V1::UpdateSubscriptionRequest.\n\nThe request message for\n[SubscriptionsService.UpdateSubscription](/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)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #subscription\n\n def subscription() -\u003e ::Google::Apps::Events::Subscriptions::V1::Subscription\n\n**Returns**\n\n- ([::Google::Apps::Events::Subscriptions::V1::Subscription](./Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription to update.\n\n\n The subscription's `name` field is used to identify the subscription to\n update.\n\n### #subscription=\n\n def subscription=(value) -\u003e ::Google::Apps::Events::Subscriptions::V1::Subscription\n\n**Parameter**\n\n- **value** ([::Google::Apps::Events::Subscriptions::V1::Subscription](./Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription to update.\n\n\n The subscription's `name` field is used to identify the subscription to\nupdate. \n**Returns**\n\n- ([::Google::Apps::Events::Subscriptions::V1::Subscription](./Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription to update.\n\n\n The subscription's `name` field is used to identify the subscription to\n update.\n\n### #update_mask\n\n def update_mask() -\u003e ::Google::Protobuf::FieldMask\n\n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) ---\n\n Optional. Required. The field to update.\n\n You can update one of the following fields in a subscription:\n - [`expire_time`](/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.\n - [`ttl`](/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.\n\n### #update_mask=\n\n def update_mask=(value) -\u003e ::Google::Protobuf::FieldMask\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) ---\n\n Optional. Required. The field to update.\n\n You can update one of the following fields in a subscription:\n - [`expire_time`](/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.\n- [`ttl`](/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. \n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) ---\n\n Optional. Required. The field to update.\n\n You can update one of the following fields in a subscription:\n - [`expire_time`](/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.\n - [`ttl`](/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.\n\n### #validate_only\n\n def validate_only() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't update the subscription.\n\n### #validate_only=\n\n def validate_only=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't update the subscription. \n**Returns**\n\n- (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't update the subscription."]]