Google Cloud Eventarc V1 Client - Class CreateTriggerRequest (1.0.5)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class CreateTriggerRequest.

The request message for the CreateTrigger method.

Generated from protobuf message google.cloud.eventarc.v1.CreateTriggerRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent collection in which to add this trigger.

↳ trigger Google\Cloud\Eventarc\V1\Trigger

Required. The trigger to create.

↳ trigger_id string

Required. The user-provided ID to be assigned to the trigger.

↳ validate_only bool

Required. If set, validate the request and preview the review, but do not post it.

getParent

Required. The parent collection in which to add this trigger.

Returns
TypeDescription
string

setParent

Required. The parent collection in which to add this trigger.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTrigger

Required. The trigger to create.

Returns
TypeDescription
Google\Cloud\Eventarc\V1\Trigger|null

hasTrigger

clearTrigger

setTrigger

Required. The trigger to create.

Parameter
NameDescription
var Google\Cloud\Eventarc\V1\Trigger
Returns
TypeDescription
$this

getTriggerId

Required. The user-provided ID to be assigned to the trigger.

Returns
TypeDescription
string

setTriggerId

Required. The user-provided ID to be assigned to the trigger.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValidateOnly

Required. If set, validate the request and preview the review, but do not post it.

Returns
TypeDescription
bool

setValidateOnly

Required. If set, validate the request and preview the review, but do not post it.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this