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

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 Google\Apps\Events\Subscriptions\V1\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
Google\Apps\Events\Subscriptions\V1\Subscription|null

hasSubscription

clearSubscription

setSubscription

Required. The subscription resource to create.

Parameter
Name Description
var Google\Apps\Events\Subscriptions\V1\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 Google\Apps\Events\Subscriptions\V1\Subscription

Required. The subscription resource to create.

Returns
Type Description
Google\Apps\Events\Subscriptions\V1\CreateSubscriptionRequest