Reference documentation and code samples for the Google Cloud Eventarc V1 Client class Trigger.
A representation of the trigger resource.
Generated from protobuf message google.cloud.eventarc.v1.Trigger
Namespace
Google \ Cloud \ Eventarc \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the trigger. Must be unique within the location of the project and must be in projects/{project}/locations/{location}/triggers/{trigger}
format.
↳ uid
string
Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
↳ create_time
↳ update_time
↳ event_filters
array< EventFilter
>
Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
↳ service_account
string
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The iam.serviceAccounts.actAs
permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the Roles and permissions
page specific to the trigger destination.
↳ destination
↳ transport
Transport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. User labels attached to the triggers that can be used to group resources.
↳ channel
string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.
↳ conditions
array| Google\Protobuf\Internal\MapField
Output only. The reason(s) why a trigger is in FAILED state.
↳ event_data_content_type
string
Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to application/json
if the value is not defined.
↳ satisfies_pzs
bool
Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
↳ etag
string
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.
getName
Required. The resource name of the trigger. Must be unique within the
location of the project and must be in projects/{project}/locations/{location}/triggers/{trigger}
format.
string
setName
Required. The resource name of the trigger. Must be unique within the
location of the project and must be in projects/{project}/locations/{location}/triggers/{trigger}
format.
var
string
$this
getUid
Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string
setUid
Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
var
string
$this
getCreateTime
Output only. The creation time.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The creation time.
$this
getUpdateTime
Output only. The last-modified time.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The last-modified time.
$this
getEventFilters
Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
setEventFilters
Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
$this
getServiceAccount
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.
The iam.serviceAccounts.actAs
permission must be granted on the service
account to allow a principal to impersonate the service account. For more
information, see the Roles and permissions
page specific
to the trigger destination.
string
setServiceAccount
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.
The iam.serviceAccounts.actAs
permission must be granted on the service
account to allow a principal to impersonate the service account. For more
information, see the Roles and permissions
page specific
to the trigger destination.
var
string
$this
getDestination
Required. Destination specifies where the events should be sent to.
hasDestination
clearDestination
setDestination
Required. Destination specifies where the events should be sent to.
$this
getTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
hasTransport
clearTransport
setTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
$this
getLabels
Optional. User labels attached to the triggers that can be used to group resources.
setLabels
Optional. User labels attached to the triggers that can be used to group resources.
$this
getChannel
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel}
format.
You must provide a channel to receive events from Eventarc SaaS partners.
string
setChannel
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel}
format.
You must provide a channel to receive events from Eventarc SaaS partners.
var
string
$this
getConditions
Output only. The reason(s) why a trigger is in FAILED state.
setConditions
Output only. The reason(s) why a trigger is in FAILED state.
$this
getEventDataContentType
Optional. EventDataContentType specifies the type of payload in MIME
format that is expected from the CloudEvent data field. This is set to application/json
if the value is not defined.
string
setEventDataContentType
Optional. EventDataContentType specifies the type of payload in MIME
format that is expected from the CloudEvent data field. This is set to application/json
if the value is not defined.
var
string
$this
getSatisfiesPzs
Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
bool
setSatisfiesPzs
Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
var
bool
$this
getEtag
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.
string
setEtag
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.
var
string
$this