Google Cloud Config V1 Client - Class Revision (0.2.0)

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
NameDescription
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.

getTerraformBlueprint

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

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

hasTerraformBlueprint

setTerraformBlueprint

Output only. 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

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

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Time when the revision was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when the revision was created.

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

getUpdateTime

Output only. Time when the revision was last modified.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time when the revision was last modified.

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

getAction

Output only. The action which created this revision

Returns
TypeDescription
int

setAction

Output only. The action which created this revision

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

Output only. Current state of the revision.

Returns
TypeDescription
int

setState

Output only. Current state of the revision.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getApplyResults

Output only. Outputs and artifacts from applying a deployment.

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

hasApplyResults

clearApplyResults

setApplyResults

Output only. Outputs and artifacts from applying a deployment.

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

getStateDetail

Output only. Additional info regarding the current state.

Returns
TypeDescription
string

setStateDetail

Output only. Additional info regarding the current state.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getErrorCode

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

Returns
TypeDescription
int

setErrorCode

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBuild

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

Returns
TypeDescription
string

setBuild

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLogs

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

Returns
TypeDescription
string

setLogs

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
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

getServiceAccount

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

Returns
TypeDescription
string

setServiceAccount

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getBlueprint

Returns
TypeDescription
string