Optional. The field to update. If omitted, updates any fields included in the request. You can update one of the following fields in a subscription: * * expire_time: The timestamp when the subscription expires. * * ttl: The time-to-live (TTL) or duration of the subscription. * * event_types: The list of event types to receive about the target resource. To fully replace the subscription (the equivalent of PUT), use *. Any omitted fields are updated with empty values.
↳ validate_only
bool
Optional. If set to true, validates and previews the request, but doesn't update the subscription.
getSubscription
Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
Optional. The field to update. If omitted, updates any fields included in
the request.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the
subscription expires.
ttl: The
time-to-live (TTL) or duration of the
subscription.
event_types: The list of event types to
receive about the target resource.
To fully replace the subscription (the equivalent of PUT), use *. Any
omitted fields are updated with empty values.
Optional. The field to update. If omitted, updates any fields included in
the request.
You can update one of the following fields in a subscription:
expire_time: The timestamp when the
subscription expires.
ttl: The
time-to-live (TTL) or duration of the
subscription.
event_types: The list of event types to
receive about the target resource.
To fully replace the subscription (the equivalent of PUT), use *. Any
omitted fields are updated with empty values.
[[["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 Apps Events Subscriptions V1beta Client - Class UpdateSubscriptionRequest (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/apps-events-subscriptions/latest/V1beta.UpdateSubscriptionRequest)\n- [0.3.0](/php/docs/reference/apps-events-subscriptions/0.3.0/V1beta.UpdateSubscriptionRequest)\n- [0.2.1](/php/docs/reference/apps-events-subscriptions/0.2.1/V1beta.UpdateSubscriptionRequest)\n- [0.1.6](/php/docs/reference/apps-events-subscriptions/0.1.6/V1beta.UpdateSubscriptionRequest) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Apps Events Subscriptions V1beta Client class UpdateSubscriptionRequest.\n\nThe request message for\n[SubscriptionsService.UpdateSubscription](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Client.SubscriptionsServiceClient#_Google_Apps_Events_Subscriptions_V1beta_Client_SubscriptionsServiceClient__updateSubscription__).\n\nGenerated from protobuf message `google.apps.events.subscriptions.v1beta.UpdateSubscriptionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Events \\\\ Subscriptions \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSubscription\n\nRequired. The subscription to update.\n\nThe subscription's `name` field is used to identify the subscription to\nupdate.\n\n### hasSubscription\n\n### clearSubscription\n\n### setSubscription\n\nRequired. The subscription to update.\n\nThe subscription's `name` field is used to identify the subscription to\nupdate.\n\n### getUpdateMask\n\nOptional. The field to update. If omitted, updates any fields included in\nthe request.\n\nYou can update one of the following fields in a subscription:\n\n- [`expire_time`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getExpireTime__): The timestamp when the subscription expires.\n- [`ttl`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTtl__): The time-to-live (TTL) or duration of the subscription.\n- [`event_types`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getEventTypes__): The list of event types to receive about the target resource. To fully replace the subscription (the equivalent of `PUT`), use `*`. Any omitted fields are updated with empty values.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nOptional. The field to update. If omitted, updates any fields included in\nthe request.\n\nYou can update one of the following fields in a subscription:\n\n- [`expire_time`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getExpireTime__): The timestamp when the subscription expires.\n- [`ttl`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTtl__): The time-to-live (TTL) or duration of the subscription.\n- [`event_types`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getEventTypes__): The list of event types to receive about the target resource. To fully replace the subscription (the equivalent of `PUT`), use `*`. Any omitted fields are updated with empty values.\n\n### getValidateOnly\n\nOptional. If set to `true`, validates and previews the request, but doesn't\nupdate the subscription.\n\n### setValidateOnly\n\nOptional. If set to `true`, validates and previews the request, but doesn't\nupdate the subscription.\n\n### static::build"]]