Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::Config::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::Config::V1::Revision::Action
Returns
- (::Google::Cloud::Config::V1::Revision::Action) — Output only. The action which created this revision
#apply_results
def apply_results() -> ::Google::Cloud::Config::V1::ApplyResults
Returns
- (::Google::Cloud::Config::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::Config::V1::Revision::ErrorCode
Returns
- (::Google::Cloud::Config::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}
#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::Config::V1::Revision::State
Returns
- (::Google::Cloud::Config::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::Config::V1::TerraformBlueprint
Returns
- (::Google::Cloud::Config::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::Config::V1::TerraformError>
Returns
-
(::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
anderror_logs
for full details.
#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.