Reference documentation and code samples for the Google Cloud Build V1 Client class CreateBuildRequest.
Request to create a new build.
Generated from protobuf message google.devtools.cloudbuild.v1.CreateBuildRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
The parent resource where this build will be created. Format: |
↳ project_id |
string
Required. ID of the project. |
↳ build |
Google\Cloud\Build\V1\Build
Required. Build resource to create. |
getParent
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
Returns | |
---|---|
Type | Description |
string |
setParent
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
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 |
getBuild
Required. Build resource to create.
Returns | |
---|---|
Type | Description |
Google\Cloud\Build\V1\Build|null |
hasBuild
clearBuild
setBuild
Required. Build resource to create.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\Build
|
Returns | |
---|---|
Type | Description |
$this |