Google Apps Events Subscriptions V1 Client - Class CreateSubscriptionRequest (0.1.4)

Reference documentation and code samples for the Google Apps Events Subscriptions V1 Client class CreateSubscriptionRequest.

The request message for SubscriptionsService.CreateSubscription.

Generated from protobuf message google.apps.events.subscriptions.v1.CreateSubscriptionRequest

Namespace

Google \ Apps \ Events \ Subscriptions \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ subscription Subscription

Required. The subscription resource to create.

↳ validate_only bool

Optional. If set to true, validates and previews the request, but doesn't create the subscription.

getSubscription

Required. The subscription resource to create.

Returns
Type Description
Subscription|null

hasSubscription

clearSubscription

setSubscription

Required. The subscription resource to create.

Parameter
Name Description
var Subscription
Returns
Type Description
$this

getValidateOnly

Optional. If set to true, validates and previews the request, but doesn't create the subscription.

Returns
Type Description
bool

setValidateOnly

Optional. If set to true, validates and previews the request, but doesn't create the subscription.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameter
Name Description
subscription Subscription

Required. The subscription resource to create.

Returns
Type Description
CreateSubscriptionRequest