Google Cloud Config V1 Client - Class Revision (0.5.2)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ terraform_blueprint Google\Cloud\Config\V1\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 Google\Protobuf\Timestamp

Output only. Time when the revision was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time when the revision was last modified.

↳ action int

Output only. The action which created this revision

↳ state int

Output only. Current state of the revision.

↳ apply_results Google\Cloud\Config\V1\ApplyResults

Output only. Outputs and artifacts from applying a deployment.

↳ 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<Google\Cloud\Config\V1\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.

Returns
Type Description
Google\Cloud\Config\V1\TerraformBlueprint|null

hasTerraformBlueprint

setTerraformBlueprint

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

Parameter
Name Description
var Google\Cloud\Config\V1\TerraformBlueprint
Returns
Type Description
$this

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. Time when the revision was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when the revision was created.

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

getUpdateTime

Output only. Time when the revision was last modified.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time when the revision was last modified.

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

getAction

Output only. The action which created this revision

Returns
Type Description
int

setAction

Output only. The action which created this revision

Parameter
Name Description
var int
Returns
Type Description
$this

getState

Output only. Current state of the revision.

Returns
Type Description
int

setState

Output only. Current state of the revision.

Parameter
Name Description
var int
Returns
Type Description
$this

getApplyResults

Output only. Outputs and artifacts from applying a deployment.

Returns
Type Description
Google\Cloud\Config\V1\ApplyResults|null

hasApplyResults

clearApplyResults

setApplyResults

Output only. Outputs and artifacts from applying a deployment.

Parameter
Name Description
var Google\Cloud\Config\V1\ApplyResults
Returns
Type Description
$this

getStateDetail

Output only. Additional info regarding the current state.

Returns
Type Description
string

setStateDetail

Output only. Additional info regarding the current state.

Parameter
Name Description
var string
Returns
Type Description
$this

getErrorCode

Output only. Code describing any errors that may have occurred.

Returns
Type Description
int

setErrorCode

Output only. Code describing any errors that may have occurred.

Parameter
Name Description
var int
Returns
Type Description
$this

getBuild

Output only. Cloud Build instance UUID associated with this revision.

Returns
Type Description
string

setBuild

Output only. Cloud Build instance UUID associated with this revision.

Parameter
Name Description
var string
Returns
Type Description
$this

getLogs

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

Returns
Type Description
string

setLogs

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

Parameter
Name Description
var string
Returns
Type Description
$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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

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.

Parameter
Name Description
var array<Google\Cloud\Config\V1\TerraformError>
Returns
Type Description
$this

getErrorLogs

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

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

Returns
Type Description
string

setErrorLogs

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

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

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceAccount

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

Returns
Type Description
string

setServiceAccount

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

Parameter
Name Description
var string
Returns
Type Description
$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.

Returns
Type Description
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.

Parameter
Name Description
var bool
Returns
Type Description
$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.

Returns
Type Description
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.

Parameter
Name Description
var string
Returns
Type Description
$this

getTfVersionConstraint

Output only. The user-specified Terraform version constraint.

Example: "=1.3.10".

Returns
Type Description
string

setTfVersionConstraint

Output only. The user-specified Terraform version constraint.

Example: "=1.3.10".

Parameter
Name Description
var string
Returns
Type Description
$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".

Returns
Type Description
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".

Parameter
Name Description
var string
Returns
Type Description
$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}.

Returns
Type Description
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}.

Parameter
Name Description
var string
Returns
Type Description
$this

getQuotaValidation

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

Returns
Type Description
int

setQuotaValidation

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

Parameter
Name Description
var int
Returns
Type Description
$this

getBlueprint

Returns
Type Description
string