Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class BuildSpec.
Specification for building container image.
Generated from protobuf message google.cloud.aiplatform.v1.ReasoningEngineSpec.BuildSpec
Namespace
Google \ Cloud \ AIPlatform \ V1 \ ReasoningEngineSpecMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ worker_pool |
string
Optional. The resource name of the Cloud Build WorkerPool to use for the build. Format: |
↳ service_account |
string
Optional. The service account that Cloud Build uses to run the build. This field is only applicable when |
getWorkerPool
Optional. The resource name of the Cloud Build WorkerPool to use for the build.
Format:
projects/{project}/locations/{location}/workerPools/{worker_pool}
| Returns | |
|---|---|
| Type | Description |
string |
|
setWorkerPool
Optional. The resource name of the Cloud Build WorkerPool to use for the build.
Format:
projects/{project}/locations/{location}/workerPools/{worker_pool}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServiceAccount
Optional. The service account that Cloud Build uses to run the build.
This field is only applicable when worker_pool is specified (i.e., for
custom worker pools). If worker_pool is not specified, this field is
ignored and the build runs using the Google-managed service agent.
Format: projects/{project}/serviceAccounts/{service_account} or
{service_account}\@{project}.iam.gserviceaccount.com
| Returns | |
|---|---|
| Type | Description |
string |
|
setServiceAccount
Optional. The service account that Cloud Build uses to run the build.
This field is only applicable when worker_pool is specified (i.e., for
custom worker pools). If worker_pool is not specified, this field is
ignored and the build runs using the Google-managed service agent.
Format: projects/{project}/serviceAccounts/{service_account} or
{service_account}\@{project}.iam.gserviceaccount.com
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|