Google Cloud Config V1 Client - Class Deployment (0.2.0)

Reference documentation and code samples for the Google Cloud Config V1 Client class Deployment.

A Deployment is a group of resources and configs managed and provisioned by Infra Manager.

Generated from protobuf message google.cloud.config.v1.Deployment

Namespace

Google \ Cloud \ Config \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ terraform_blueprint Google\Cloud\Config\V1\TerraformBlueprint

A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

↳ name string

Resource name of the deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}

↳ create_time Google\Protobuf\Timestamp

Output only. Time when the deployment was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time when the deployment was last modified.

↳ labels array|Google\Protobuf\Internal\MapField

User-defined metadata for the deployment.

↳ state int

Output only. Current state of the deployment.

↳ latest_revision string

Output only. Revision name that was most recently applied. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

↳ state_detail string

Output only. Additional information regarding the current state.

↳ error_code int

Output only. Error code describing errors that may have occurred.

↳ delete_results Google\Cloud\Config\V1\ApplyResults

Output only. Location of artifacts from a DeleteDeployment operation.

↳ delete_build string

Output only. Cloud Build instance UUID associated with deleting this deployment.

↳ delete_logs string

Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: gs://{bucket}/{object}.

↳ tf_errors array<Google\Cloud\Config\V1\TerraformError>

Output only. Errors encountered when deleting this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

↳ error_logs string

Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.

↳ artifacts_gcs_bucket string

Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: gs://{bucket}/{folder} A default bucket will be bootstrapped if the field is not set or empty. Default bucket format: gs://<project number>-<region>-blueprint-config Constraints: - The bucket needs to be in the same project as the deployment - The path cannot be within the path of gcs_source - The field cannot be updated, including changing its presence

↳ service_account string

Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

↳ import_existing_resources bool

By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation. Not all resource types are supported, refer to documentation.

↳ worker_pool string

Optional. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}. If this field is unspecified, the default Cloud Build worker pool will be used.

↳ lock_state int

Output only. Current lock state of the deployment.

getTerraformBlueprint

A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

Returns
TypeDescription
Google\Cloud\Config\V1\TerraformBlueprint|null

hasTerraformBlueprint

setTerraformBlueprint

A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

Parameter
NameDescription
var Google\Cloud\Config\V1\TerraformBlueprint
Returns
TypeDescription
$this

getName

Resource name of the deployment.

Format: projects/{project}/locations/{location}/deployments/{deployment}

Returns
TypeDescription
string

setName

Resource name of the deployment.

Format: projects/{project}/locations/{location}/deployments/{deployment}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Time when the deployment was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when the deployment was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Time when the deployment was last modified.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time when the deployment was last modified.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

User-defined metadata for the deployment.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

User-defined metadata for the deployment.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getState

Output only. Current state of the deployment.

Returns
TypeDescription
int

setState

Output only. Current state of the deployment.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLatestRevision

Output only. Revision name that was most recently applied.

Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

Returns
TypeDescription
string

setLatestRevision

Output only. Revision name that was most recently applied.

Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStateDetail

Output only. Additional information regarding the current state.

Returns
TypeDescription
string

setStateDetail

Output only. Additional information regarding the current state.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getErrorCode

Output only. Error code describing errors that may have occurred.

Returns
TypeDescription
int

setErrorCode

Output only. Error code describing errors that may have occurred.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDeleteResults

Output only. Location of artifacts from a DeleteDeployment operation.

Returns
TypeDescription
Google\Cloud\Config\V1\ApplyResults|null

hasDeleteResults

clearDeleteResults

setDeleteResults

Output only. Location of artifacts from a DeleteDeployment operation.

Parameter
NameDescription
var Google\Cloud\Config\V1\ApplyResults
Returns
TypeDescription
$this

getDeleteBuild

Output only. Cloud Build instance UUID associated with deleting this deployment.

Returns
TypeDescription
string

setDeleteBuild

Output only. Cloud Build instance UUID associated with deleting this deployment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDeleteLogs

Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: gs://{bucket}/{object}.

Returns
TypeDescription
string

setDeleteLogs

Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: gs://{bucket}/{object}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTfErrors

Output only. Errors encountered when deleting this deployment.

Errors are truncated to 10 entries, see delete_results and error_logs for full details.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTfErrors

Output only. Errors encountered when deleting this deployment.

Errors are truncated to 10 entries, see delete_results and error_logs for full details.

Parameter
NameDescription
var array<Google\Cloud\Config\V1\TerraformError>
Returns
TypeDescription
$this

getErrorLogs

Output only. Location of Terraform error logs in Google Cloud Storage.

Format: gs://{bucket}/{object}.

Returns
TypeDescription
string

setErrorLogs

Output only. Location of Terraform error logs in Google Cloud Storage.

Format: gs://{bucket}/{object}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArtifactsGcsBucket

Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: gs://{bucket}/{folder} A default bucket will be bootstrapped if the field is not set or empty.

Default bucket format: gs://<project number>-<region>-blueprint-config Constraints:

  • The bucket needs to be in the same project as the deployment
  • The path cannot be within the path of gcs_source
  • The field cannot be updated, including changing its presence
Returns
TypeDescription
string

hasArtifactsGcsBucket

clearArtifactsGcsBucket

setArtifactsGcsBucket

Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: gs://{bucket}/{folder} A default bucket will be bootstrapped if the field is not set or empty.

Default bucket format: gs://<project number>-<region>-blueprint-config Constraints:

  • The bucket needs to be in the same project as the deployment
  • The path cannot be within the path of gcs_source
  • The field cannot be updated, including changing its presence
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceAccount

Optional. User-specified Service Account (SA) credentials to be used when actuating resources.

Format: projects/{projectID}/serviceAccounts/{serviceAccount}

Returns
TypeDescription
string

hasServiceAccount

clearServiceAccount

setServiceAccount

Optional. User-specified Service Account (SA) credentials to be used when actuating resources.

Format: projects/{projectID}/serviceAccounts/{serviceAccount}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImportExistingResources

By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation.

If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation. Not all resource types are supported, refer to documentation.

Returns
TypeDescription
bool

hasImportExistingResources

clearImportExistingResources

setImportExistingResources

By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation.

If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation. Not all resource types are supported, refer to documentation.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getWorkerPool

Optional. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}.

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

Returns
TypeDescription
string

hasWorkerPool

clearWorkerPool

setWorkerPool

Optional. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLockState

Output only. Current lock state of the deployment.

Returns
TypeDescription
int

setLockState

Output only. Current lock state of the deployment.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBlueprint

Returns
TypeDescription
string