Class Revision (0.1.2)

Revision(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
terraform_blueprint google.cloud.config_v1.types.TerraformBlueprint
Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module. This field is a member of oneof_ blueprint.
name str
Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when the revision was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when the revision was last modified.
action google.cloud.config_v1.types.Revision.Action
Output only. The action which created this revision
state google.cloud.config_v1.types.Revision.State
Output only. Current state of the revision.
apply_results google.cloud.config_v1.types.ApplyResults
Output only. Outputs and artifacts from applying a deployment.
state_detail str
Output only. Additional info regarding the current state.
error_code google.cloud.config_v1.types.Revision.ErrorCode
Output only. Code describing any errors that may have occurred.
build str
Output only. Cloud Build instance UUID associated with this revision.
logs str
Output only. Location of Revision operation logs in gs://{bucket}/{object} format.
tf_errors MutableSequence[google.cloud.config_v1.types.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 str
Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.
service_account str
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 str
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.

Classes

Action

Action(value)

Actions that generate a revision.

Values: ACTION_UNSPECIFIED (0): The default value. This value is used if the action is omitted. CREATE (1): The revision was generated by creating a deployment. UPDATE (2): The revision was generated by updating a deployment. DELETE (3): The revision was deleted.

ErrorCode

ErrorCode(value)

Possible errors if Revision could not be created or updated successfully.

Values: ERROR_CODE_UNSPECIFIED (0): No error code was specified. CLOUD_BUILD_PERMISSION_DENIED (1): Cloud Build failed due to a permission issue. APPLY_BUILD_API_FAILED (4): Cloud Build job associated with creating or updating a deployment could not be started. APPLY_BUILD_RUN_FAILED (5): Cloud Build job associated with creating or updating a deployment was started but failed.

State

State(value)

Possible states of a revision.

Values: STATE_UNSPECIFIED (0): The default value. This value is used if the state is omitted. APPLYING (1): The revision is being applied. APPLIED (2): The revision was applied successfully. FAILED (3): The revision could not be applied successfully.