# Google Workspace Events V1BETA API - Class Google::Apps::Events::Subscriptions::V1beta::Subscription::DriveOptions (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::Subscription::DriveOptions.

Additional supported options for serving Drive events.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #include_descendants

    def include_descendants() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the [`target_resource`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription#Google__Apps__Events__Subscriptions__V1beta__Subscription_target_resource_instance_ "Google::Apps::Events::Subscriptions::V1beta::Subscription#target_resource (method)").


  This flag can be used when the
  [`target_resource`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription#Google__Apps__Events__Subscriptions__V1beta__Subscription_target_resource_instance_ "Google::Apps::Events::Subscriptions::V1beta::Subscription#target_resource (method)")
  is either a
  [Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)
  or a [Drive
  file](https://developers.google.com/drive/api/reference/rest/v3/files)
  that has mimeType set to `application/vnd.google-apps.folder`.

### #include_descendants=

    def include_descendants=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the [`target_resource`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription#Google__Apps__Events__Subscriptions__V1beta__Subscription_target_resource_instance_ "Google::Apps::Events::Subscriptions::V1beta::Subscription#target_resource (method)").


  This flag can be used when the
  [`target_resource`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription#Google__Apps__Events__Subscriptions__V1beta__Subscription_target_resource_instance_ "Google::Apps::Events::Subscriptions::V1beta::Subscription#target_resource (method)")
  is either a
  [Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)
  or a [Drive
  file](https://developers.google.com/drive/api/reference/rest/v3/files)
  that has mimeType set to `application/vnd.google-apps.folder`.
**Returns**

- (::Boolean) --- Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the [`target_resource`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription#Google__Apps__Events__Subscriptions__V1beta__Subscription_target_resource_instance_ "Google::Apps::Events::Subscriptions::V1beta::Subscription#target_resource (method)").


  This flag can be used when the
  [`target_resource`](https://docs.cloud.google.com/ruby/docs/reference/google-apps-events-subscriptions-v1beta/latest/Google-Apps-Events-Subscriptions-V1beta-Subscription#Google__Apps__Events__Subscriptions__V1beta__Subscription_target_resource_instance_ "Google::Apps::Events::Subscriptions::V1beta::Subscription#target_resource (method)")
  is either a
  [Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)
  or a [Drive
  file](https://developers.google.com/drive/api/reference/rest/v3/files)
  that has mimeType set to `application/vnd.google-apps.folder`.