# Google Workspace Events V1BETA API - Class Google::Apps::Events::Subscriptions::V1beta::CreateSubscriptionRequest (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Workspace Events V1BETA API class Google::Apps::Events::Subscriptions::V1beta::CreateSubscriptionRequest.

The request message for
[SubscriptionsService.CreateSubscription](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-SubscriptionsService-Client#Google__Apps__Events__Subscriptions__V1beta__SubscriptionsService__Client_create_subscription_instance_ "Google::Apps::Events::Subscriptions::V1beta::SubscriptionsService::Client#create_subscription (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #subscription

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

**Returns**

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

### #subscription=

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

**Parameter**

- **value** ([::Google::Apps::Events::Subscriptions::V1beta::Subscription](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription)) --- Required. The subscription resource to create.
**Returns**

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

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set to `true`, validates and previews the request, but doesn't create 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 create the subscription.
**Returns**

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