Reference documentation and code samples for the Google Cloud Build V1 Client class RunBuildTriggerRequest.
Specifies a build trigger to run and the source to use.
Generated from protobuf message google.devtools.cloudbuild.v1.RunBuildTriggerRequest
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The name of the |
↳ project_id |
string
Required. ID of the project. |
↳ trigger_id |
string
Required. ID of the trigger. |
↳ source |
Google\Cloud\Build\V1\RepoSource
Source to build against this trigger. |
getName
The name of the Trigger
to run.
Format: projects/{project}/locations/{location}/triggers/{trigger}
Returns | |
---|---|
Type | Description |
string |
setName
The name of the Trigger
to run.
Format: projects/{project}/locations/{location}/triggers/{trigger}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getProjectId
Required. ID of the project.
Returns | |
---|---|
Type | Description |
string |
setProjectId
Required. ID of the project.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTriggerId
Required. ID of the trigger.
Returns | |
---|---|
Type | Description |
string |
setTriggerId
Required. ID of the trigger.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSource
Source to build against this trigger.
Returns | |
---|---|
Type | Description |
Google\Cloud\Build\V1\RepoSource|null |
hasSource
clearSource
setSource
Source to build against this trigger.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\RepoSource
|
Returns | |
---|---|
Type | Description |
$this |