Google Cloud Deploy V1 Client - Class ExecutionConfig (0.18.1)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class ExecutionConfig.

Configuration of the environment to use when calling Skaffold.

Generated from protobuf message google.cloud.deploy.v1.ExecutionConfig

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ usages array

Required. Usages when this configuration should be applied.

↳ default_pool Google\Cloud\Deploy\V1\DefaultPool

Optional. Use default Cloud Build pool.

↳ private_pool Google\Cloud\Deploy\V1\PrivatePool

Optional. Use private Cloud Build pool.

↳ worker_pool string

Optional. The resource name of the WorkerPool, with the format projects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.

↳ service_account string

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.

↳ artifact_storage string

Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.

↳ execution_timeout Google\Protobuf\Duration

Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.

getUsages

Required. Usages when this configuration should be applied.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setUsages

Required. Usages when this configuration should be applied.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getDefaultPool

Optional. Use default Cloud Build pool.

Returns
Type Description
Google\Cloud\Deploy\V1\DefaultPool|null

hasDefaultPool

setDefaultPool

Optional. Use default Cloud Build pool.

Parameter
Name Description
var Google\Cloud\Deploy\V1\DefaultPool
Returns
Type Description
$this

getPrivatePool

Optional. Use private Cloud Build pool.

Returns
Type Description
Google\Cloud\Deploy\V1\PrivatePool|null

hasPrivatePool

setPrivatePool

Optional. Use private Cloud Build pool.

Parameter
Name Description
var Google\Cloud\Deploy\V1\PrivatePool
Returns
Type Description
$this

getWorkerPool

Optional. The resource name of the WorkerPool, with the format projects/{project}/locations/{location}/workerPools/{worker_pool}.

If this optional field is unspecified, the default Cloud Build pool will be used.

Returns
Type Description
string

setWorkerPool

Optional. The resource name of the WorkerPool, with the format projects/{project}/locations/{location}/workerPools/{worker_pool}.

If this optional field is unspecified, the default Cloud Build pool will be used.

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceAccount

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.

Returns
Type Description
string

setServiceAccount

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.

Parameter
Name Description
var string
Returns
Type Description
$this

getArtifactStorage

Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir").

If unspecified, a default bucket located in the same region will be used.

Returns
Type Description
string

setArtifactStorage

Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir").

If unspecified, a default bucket located in the same region will be used.

Parameter
Name Description
var string
Returns
Type Description
$this

getExecutionTimeout

Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.

Returns
Type Description
Google\Protobuf\Duration|null

hasExecutionTimeout

clearExecutionTimeout

setExecutionTimeout

Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getExecutionEnvironment

Returns
Type Description
string