Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::ConfigService::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action
def action() -> ::Google::Cloud::ConfigService::V1::Revision::Action
Returns
- (::Google::Cloud::ConfigService::V1::Revision::Action) — Output only. The action which created this revision
#apply_results
def apply_results() -> ::Google::Cloud::ConfigService::V1::ApplyResults
Returns
- (::Google::Cloud::ConfigService::V1::ApplyResults) — Output only. Outputs and artifacts from applying a deployment.
#build
def build() -> ::String
Returns
- (::String) — Output only. Cloud Build instance UUID associated with this revision.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Time when the revision was created.
#error_code
def error_code() -> ::Google::Cloud::ConfigService::V1::Revision::ErrorCode
Returns
- (::Google::Cloud::ConfigService::V1::Revision::ErrorCode) — Output only. Code describing any errors that may have occurred.
#error_logs
def error_logs() -> ::String
Returns
-
(::String) — Output only. Location of Terraform error logs in Google Cloud Storage.
Format:
gs://{bucket}/{object}
.
#import_existing_resources
def import_existing_resources() -> ::Boolean
Returns
-
(::Boolean) — 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.
#logs
def logs() -> ::String
Returns
-
(::String) — Output only. Location of Revision operation logs in
gs://{bucket}/{object}
format.
#name
def name() -> ::String
Returns
-
(::String) — Revision name. Format:
projects/{project}/locations/{location}/deployments/{deployment}/ revisions/\\{revision}
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Revision name. Format:
projects/{project}/locations/{location}/deployments/{deployment}/ revisions/\\{revision}
Returns
-
(::String) — Revision name. Format:
projects/{project}/locations/{location}/deployments/{deployment}/ revisions/\\{revision}
#quota_validation
def quota_validation() -> ::Google::Cloud::ConfigService::V1::QuotaValidation
Returns
- (::Google::Cloud::ConfigService::V1::QuotaValidation) — Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
#quota_validation=
def quota_validation=(value) -> ::Google::Cloud::ConfigService::V1::QuotaValidation
Parameter
- value (::Google::Cloud::ConfigService::V1::QuotaValidation) — Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
Returns
- (::Google::Cloud::ConfigService::V1::QuotaValidation) — Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
#quota_validation_results
def quota_validation_results() -> ::String
Returns
-
(::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}
.
#service_account
def service_account() -> ::String
Returns
-
(::String) — Output only. User-specified Service Account (SA) to be used as credential
to manage resources. Format:
projects/{projectID}/serviceAccounts/{serviceAccount}
#state
def state() -> ::Google::Cloud::ConfigService::V1::Revision::State
Returns
- (::Google::Cloud::ConfigService::V1::Revision::State) — Output only. Current state of the revision.
#state_detail
def state_detail() -> ::String
Returns
- (::String) — Output only. Additional info regarding the current state.
#terraform_blueprint
def terraform_blueprint() -> ::Google::Cloud::ConfigService::V1::TerraformBlueprint
Returns
- (::Google::Cloud::ConfigService::V1::TerraformBlueprint) — Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
#tf_errors
def tf_errors() -> ::Array<::Google::Cloud::ConfigService::V1::TerraformError>
Returns
-
(::Array<::Google::Cloud::ConfigService::V1::TerraformError>) — Output only. Errors encountered when creating or updating this deployment.
Errors are truncated to 10 entries, see
delete_results
anderror_logs
for full details.
#tf_version
def tf_version() -> ::String
Returns
- (::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".
#tf_version_constraint
def tf_version_constraint() -> ::String
Returns
- (::String) — Output only. The user-specified Terraform version constraint. Example: "=1.3.10".
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Time when the revision was last modified.
#worker_pool
def worker_pool() -> ::String
Returns
-
(::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.