Reference documentation and code samples for the Google Cloud Build V1 Client class PubsubConfig.
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
Generated from protobuf message google.devtools.cloudbuild.v1.PubsubConfig
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ subscription |
string
Output only. Name of the subscription. Format is |
↳ topic |
string
The name of the topic from which this subscription is receiving messages. Format is |
↳ service_account_email |
string
Service account that will make the push request. |
↳ state |
int
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. |
getSubscription
Output only. Name of the subscription. Format is
projects/{project}/subscriptions/{subscription}
.
Returns | |
---|---|
Type | Description |
string |
setSubscription
Output only. Name of the subscription. Format is
projects/{project}/subscriptions/{subscription}
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTopic
The name of the topic from which this subscription is receiving messages.
Format is projects/{project}/topics/{topic}
.
Returns | |
---|---|
Type | Description |
string |
setTopic
The name of the topic from which this subscription is receiving messages.
Format is projects/{project}/topics/{topic}
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getServiceAccountEmail
Service account that will make the push request.
Returns | |
---|---|
Type | Description |
string |
setServiceAccountEmail
Service account that will make the push request.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getState
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
Returns | |
---|---|
Type | Description |
int |
setState
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |