Reference documentation and code samples for the Google Workspace Events V1 API class Google::Apps::Events::Subscriptions::V1::CreateSubscriptionRequest.
[[["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::CreateSubscriptionRequest (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-CreateSubscriptionRequest)\n- [0.3.1](/ruby/docs/reference/google-apps-events-subscriptions-v1/0.3.1/Google-Apps-Events-Subscriptions-V1-CreateSubscriptionRequest)\n- [0.2.0](/ruby/docs/reference/google-apps-events-subscriptions-v1/0.2.0/Google-Apps-Events-Subscriptions-V1-CreateSubscriptionRequest)\n- [0.1.1](/ruby/docs/reference/google-apps-events-subscriptions-v1/0.1.1/Google-Apps-Events-Subscriptions-V1-CreateSubscriptionRequest) \nReference documentation and code samples for the Google Workspace Events V1 API class Google::Apps::Events::Subscriptions::V1::CreateSubscriptionRequest.\n\nThe request message for\n[SubscriptionsService.CreateSubscription](/ruby/docs/reference/google-apps-events-subscriptions-v1/latest/Google-Apps-Events-Subscriptions-V1-SubscriptionsService-Client#Google__Apps__Events__Subscriptions__V1__SubscriptionsService__Client_create_subscription_instance_ \"Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Client#create_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 resource to create.\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 resource to create. \n**Returns**\n\n- ([::Google::Apps::Events::Subscriptions::V1::Subscription](./Google-Apps-Events-Subscriptions-V1-Subscription)) --- Required. The subscription resource to create.\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 create 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 create the subscription. \n**Returns**\n\n- (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't create the subscription."]]