Class: Google::Apis::ConfigV1::Revision
- Inherits:
-
Object
- Object
- Google::Apis::ConfigV1::Revision
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/config_v1/classes.rb,
lib/google/apis/config_v1/representations.rb,
lib/google/apis/config_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#action ⇒ String
Output only.
-
#apply_results ⇒ Google::Apis::ConfigV1::ApplyResults
Outputs and artifacts from applying a deployment.
-
#build ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#error_code ⇒ String
Output only.
-
#error_logs ⇒ String
Output only.
-
#import_existing_resources ⇒ Boolean
(also: #import_existing_resources?)
Output only.
-
#logs ⇒ String
Output only.
-
#name ⇒ String
Revision name.
-
#quota_validation ⇒ String
Optional.
-
#quota_validation_results ⇒ String
Output only.
-
#service_account ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#state_detail ⇒ String
Output only.
-
#terraform_blueprint ⇒ Google::Apis::ConfigV1::TerraformBlueprint
TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed.
-
#tf_errors ⇒ Array<Google::Apis::ConfigV1::TerraformError>
Output only.
-
#tf_version ⇒ String
Output only.
-
#tf_version_constraint ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#worker_pool ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Revision
constructor
A new instance of Revision.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Revision
Returns a new instance of Revision.
1695 1696 1697 |
# File 'lib/google/apis/config_v1/classes.rb', line 1695 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Output only. The action which created this revision
Corresponds to the JSON property action
1576 1577 1578 |
# File 'lib/google/apis/config_v1/classes.rb', line 1576 def action @action end |
#apply_results ⇒ Google::Apis::ConfigV1::ApplyResults
Outputs and artifacts from applying a deployment.
Corresponds to the JSON property applyResults
1581 1582 1583 |
# File 'lib/google/apis/config_v1/classes.rb', line 1581 def apply_results @apply_results end |
#build ⇒ String
Output only. Cloud Build instance UUID associated with this revision.
Corresponds to the JSON property build
1586 1587 1588 |
# File 'lib/google/apis/config_v1/classes.rb', line 1586 def build @build end |
#create_time ⇒ String
Output only. Time when the revision was created.
Corresponds to the JSON property createTime
1591 1592 1593 |
# File 'lib/google/apis/config_v1/classes.rb', line 1591 def create_time @create_time end |
#error_code ⇒ String
Output only. Code describing any errors that may have occurred.
Corresponds to the JSON property errorCode
1596 1597 1598 |
# File 'lib/google/apis/config_v1/classes.rb', line 1596 def error_code @error_code end |
#error_logs ⇒ String
Output only. Location of Terraform error logs in Google Cloud Storage. Format:
gs://
bucket/
object`.
Corresponds to the JSON property
errorLogs`
1602 1603 1604 |
# File 'lib/google/apis/config_v1/classes.rb', line 1602 def error_logs @error_logs end |
#import_existing_resources ⇒ Boolean Also known as: import_existing_resources?
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.
Corresponds to the JSON property importExistingResources
1611 1612 1613 |
# File 'lib/google/apis/config_v1/classes.rb', line 1611 def import_existing_resources @import_existing_resources end |
#logs ⇒ String
Output only. Location of Revision operation logs in gs://
bucket/
object`
format.
Corresponds to the JSON property
logs`
1618 1619 1620 |
# File 'lib/google/apis/config_v1/classes.rb', line 1618 def logs @logs end |
#name ⇒ String
Revision name. Format: projects/
project/locations/
location/deployments/
deployment/ revisions/
revision`
Corresponds to the JSON property
name`
1624 1625 1626 |
# File 'lib/google/apis/config_v1/classes.rb', line 1624 def name @name end |
#quota_validation ⇒ String
Optional. Input to control quota checks for resources in terraform
configuration files. There are limited resources on which quota validation
applies.
Corresponds to the JSON property quotaValidation
1631 1632 1633 |
# File 'lib/google/apis/config_v1/classes.rb', line 1631 def quota_validation @quota_validation end |
#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`.
Corresponds to the JSON property
quotaValidationResults`
1638 1639 1640 |
# File 'lib/google/apis/config_v1/classes.rb', line 1638 def quota_validation_results @quota_validation_results end |
#service_account ⇒ String
Output only. User-specified Service Account (SA) to be used as credential to
manage resources. Format: projects/
projectID/serviceAccounts/
serviceAccount`
Corresponds to the JSON property
serviceAccount`
1645 1646 1647 |
# File 'lib/google/apis/config_v1/classes.rb', line 1645 def service_account @service_account end |
#state ⇒ String
Output only. Current state of the revision.
Corresponds to the JSON property state
1650 1651 1652 |
# File 'lib/google/apis/config_v1/classes.rb', line 1650 def state @state end |
#state_detail ⇒ String
Output only. Additional info regarding the current state.
Corresponds to the JSON property stateDetail
1655 1656 1657 |
# File 'lib/google/apis/config_v1/classes.rb', line 1655 def state_detail @state_detail end |
#terraform_blueprint ⇒ Google::Apis::ConfigV1::TerraformBlueprint
TerraformBlueprint describes the source of a Terraform root module which
describes the resources and configs to be deployed.
Corresponds to the JSON property terraformBlueprint
1661 1662 1663 |
# File 'lib/google/apis/config_v1/classes.rb', line 1661 def terraform_blueprint @terraform_blueprint end |
#tf_errors ⇒ Array<Google::Apis::ConfigV1::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.
Corresponds to the JSON property tfErrors
1668 1669 1670 |
# File 'lib/google/apis/config_v1/classes.rb', line 1668 def tf_errors @tf_errors end |
#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".
Corresponds to the JSON property tfVersion
1674 1675 1676 |
# File 'lib/google/apis/config_v1/classes.rb', line 1674 def tf_version @tf_version end |
#tf_version_constraint ⇒ String
Output only. The user-specified Terraform version constraint. Example: "=1.3.
10".
Corresponds to the JSON property tfVersionConstraint
1680 1681 1682 |
# File 'lib/google/apis/config_v1/classes.rb', line 1680 def tf_version_constraint @tf_version_constraint end |
#update_time ⇒ String
Output only. Time when the revision was last modified.
Corresponds to the JSON property updateTime
1685 1686 1687 |
# File 'lib/google/apis/config_v1/classes.rb', line 1685 def update_time @update_time end |
#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.
Corresponds to the JSON property
workerPool`
1693 1694 1695 |
# File 'lib/google/apis/config_v1/classes.rb', line 1693 def worker_pool @worker_pool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/google/apis/config_v1/classes.rb', line 1700 def update!(**args) @action = args[:action] if args.key?(:action) @apply_results = args[:apply_results] if args.key?(:apply_results) @build = args[:build] if args.key?(:build) @create_time = args[:create_time] if args.key?(:create_time) @error_code = args[:error_code] if args.key?(:error_code) @error_logs = args[:error_logs] if args.key?(:error_logs) @import_existing_resources = args[:import_existing_resources] if args.key?(:import_existing_resources) @logs = args[:logs] if args.key?(:logs) @name = args[:name] if args.key?(:name) @quota_validation = args[:quota_validation] if args.key?(:quota_validation) @quota_validation_results = args[:quota_validation_results] if args.key?(:quota_validation_results) @service_account = args[:service_account] if args.key?(:service_account) @state = args[:state] if args.key?(:state) @state_detail = args[:state_detail] if args.key?(:state_detail) @terraform_blueprint = args[:terraform_blueprint] if args.key?(:terraform_blueprint) @tf_errors = args[:tf_errors] if args.key?(:tf_errors) @tf_version = args[:tf_version] if args.key?(:tf_version) @tf_version_constraint = args[:tf_version_constraint] if args.key?(:tf_version_constraint) @update_time = args[:update_time] if args.key?(:update_time) @worker_pool = args[:worker_pool] if args.key?(:worker_pool) end |