Reference documentation and code samples for the Google Cloud Config V1 Client class Revision.
A child resource of a Deployment generated by a 'CreateDeployment' or 'UpdateDeployment' call. Each Revision contains metadata pertaining to a snapshot of a particular Deployment.
Generated from protobuf message google.cloud.config.v1.Revision
Namespace
Google \ Cloud \ Config \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ terraform_blueprint
TerraformBlueprint
Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
↳ name
string
Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}
↳ create_time
↳ update_time
↳ action
int
Output only. The action which created this revision
↳ state
int
Output only. Current state of the revision.
↳ apply_results
↳ state_detail
string
Output only. Additional info regarding the current state.
↳ error_code
int
Output only. Code describing any errors that may have occurred.
↳ build
string
Output only. Cloud Build instance UUID associated with this revision.
↳ logs
string
Output only. Location of Revision operation logs in gs://{bucket}/{object}
format.
↳ tf_errors
array< TerraformError
>
Output only. Errors encountered when creating or updating 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}
.
↳ service_account
string
Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}
↳ import_existing_resources
bool
Output only. 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
Output only. 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.
↳ tf_version_constraint
string
Output only. The user-specified Terraform version constraint. Example: "=1.3.10".
↳ tf_version
string
Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".
↳ quota_validation_results
string
Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: gs://{bucket}/{object}
.
↳ quota_validation
int
Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
getTerraformBlueprint
Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
hasTerraformBlueprint
setTerraformBlueprint
Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
$this
getName
Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/
revisions/{revision}
string
setName
Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/
revisions/{revision}
var
string
$this
getCreateTime
Output only. Time when the revision was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time when the revision was created.
$this
getUpdateTime
Output only. Time when the revision was last modified.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time when the revision was last modified.
$this
getAction
Output only. The action which created this revision
int
setAction
Output only. The action which created this revision
var
int
$this
getState
Output only. Current state of the revision.
int
setState
Output only. Current state of the revision.
var
int
$this
getApplyResults
Output only. Outputs and artifacts from applying a deployment.
hasApplyResults
clearApplyResults
setApplyResults
Output only. Outputs and artifacts from applying a deployment.
$this
getStateDetail
Output only. Additional info regarding the current state.
string
setStateDetail
Output only. Additional info regarding the current state.
var
string
$this
getErrorCode
Output only. Code describing any errors that may have occurred.
int
setErrorCode
Output only. Code describing any errors that may have occurred.
var
int
$this
getBuild
Output only. Cloud Build instance UUID associated with this revision.
string
setBuild
Output only. Cloud Build instance UUID associated with this revision.
var
string
$this
getLogs
Output only. Location of Revision operation logs in gs://{bucket}/{object}
format.
string
setLogs
Output only. Location of Revision operation logs in gs://{bucket}/{object}
format.
var
string
$this
getTfErrors
Output only. Errors encountered when creating or updating this deployment.
Errors are truncated to 10 entries, see delete_results
and error_logs
for full details.
setTfErrors
Output only. Errors encountered when creating or updating this deployment.
Errors are truncated to 10 entries, see delete_results
and error_logs
for full details.
$this
getErrorLogs
Output only. Location of Terraform error logs in Google Cloud Storage.
Format: gs://{bucket}/{object}
.
string
setErrorLogs
Output only. Location of Terraform error logs in Google Cloud Storage.
Format: gs://{bucket}/{object}
.
var
string
$this
getServiceAccount
Output only. User-specified Service Account (SA) to be used as credential
to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}
string
setServiceAccount
Output only. User-specified Service Account (SA) to be used as credential
to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}
var
string
$this
getImportExistingResources
Output only. 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.
bool
setImportExistingResources
Output only. 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.
var
bool
$this
getWorkerPool
Output only. 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.
string
setWorkerPool
Output only. 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.
var
string
$this
getTfVersionConstraint
Output only. The user-specified Terraform version constraint.
Example: "=1.3.10".
string
setTfVersionConstraint
Output only. The user-specified Terraform version constraint.
Example: "=1.3.10".
var
string
$this
getTfVersion
Output only. The version of Terraform used to create the Revision.
It is in the format of "Major.Minor.Patch", for example, "1.3.10".
string
setTfVersion
Output only. The version of Terraform used to create the Revision.
It is in the format of "Major.Minor.Patch", for example, "1.3.10".
var
string
$this
getQuotaValidationResults
Output only. Cloud Storage path containing quota validation results. This
field is set when a user sets Deployment.quota_validation field to ENABLED
or ENFORCED. Format: gs://{bucket}/{object}
.
string
setQuotaValidationResults
Output only. Cloud Storage path containing quota validation results. This
field is set when a user sets Deployment.quota_validation field to ENABLED
or ENFORCED. Format: gs://{bucket}/{object}
.
var
string
$this
getQuotaValidation
Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
int
setQuotaValidation
Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
var
int
$this
getBlueprint
string