Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::Config::V1::Deployment.
A Deployment is a group of resources and configs managed and provisioned by Infra Manager.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#artifacts_gcs_bucket
def artifacts_gcs_bucket() -> ::String
-
(::String) —
Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format:
gs://{bucket}/{folder}
A default bucket will be bootstrapped if the field is not set or empty. Default bucket format:
gs://<project number>-<region>-blueprint-config
Constraints:- The bucket needs to be in the same project as the deployment
- The path cannot be within the path of
gcs_source
- The field cannot be updated, including changing its presence
#artifacts_gcs_bucket=
def artifacts_gcs_bucket=(value) -> ::String
-
value (::String) —
Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format:
gs://{bucket}/{folder}
A default bucket will be bootstrapped if the field is not set or empty. Default bucket format:
gs://<project number>-<region>-blueprint-config
Constraints:- The bucket needs to be in the same project as the deployment
- The path cannot be within the path of
gcs_source
- The field cannot be updated, including changing its presence
-
(::String) —
Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format:
gs://{bucket}/{folder}
A default bucket will be bootstrapped if the field is not set or empty. Default bucket format:
gs://<project number>-<region>-blueprint-config
Constraints:- The bucket needs to be in the same project as the deployment
- The path cannot be within the path of
gcs_source
- The field cannot be updated, including changing its presence
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Time when the deployment was created.
#delete_build
def delete_build() -> ::String
- (::String) — Output only. Cloud Build instance UUID associated with deleting this deployment.
#delete_logs
def delete_logs() -> ::String
-
(::String) — Output only. Location of Cloud Build logs in Google Cloud Storage,
populated when deleting this deployment. Format:
gs://{bucket}/{object}
.
#delete_results
def delete_results() -> ::Google::Cloud::Config::V1::ApplyResults
- (::Google::Cloud::Config::V1::ApplyResults) — Output only. Location of artifacts from a DeleteDeployment operation.
#error_code
def error_code() -> ::Google::Cloud::Config::V1::Deployment::ErrorCode
- (::Google::Cloud::Config::V1::Deployment::ErrorCode) — Output only. Error code describing errors that may have occurred.
#error_logs
def error_logs() -> ::String
-
(::String) — Output only. Location of Terraform error logs in Google Cloud Storage.
Format:
gs://{bucket}/{object}
.
#import_existing_resources
def import_existing_resources() -> ::Boolean
-
(::Boolean) — 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.
#import_existing_resources=
def import_existing_resources=(value) -> ::Boolean
-
value (::Boolean) — 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.
-
(::Boolean) — 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.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — User-defined metadata for the deployment.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — User-defined metadata for the deployment.
- (::Google::Protobuf::Map{::String => ::String}) — User-defined metadata for the deployment.
#latest_revision
def latest_revision() -> ::String
-
(::String) — Output only. Revision name that was most recently applied.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/ revisions/\\{revision}
#lock_state
def lock_state() -> ::Google::Cloud::Config::V1::Deployment::LockState
- (::Google::Cloud::Config::V1::Deployment::LockState) — Output only. Current lock state of the deployment.
#name
def name() -> ::String
-
(::String) — Resource name of the deployment.
Format:
projects/{project}/locations/{location}/deployments/{deployment}
#name=
def name=(value) -> ::String
-
value (::String) — Resource name of the deployment.
Format:
projects/{project}/locations/{location}/deployments/{deployment}
-
(::String) — Resource name of the deployment.
Format:
projects/{project}/locations/{location}/deployments/{deployment}
#service_account
def service_account() -> ::String
-
(::String) — Optional. User-specified Service Account (SA) credentials to be used when
actuating resources.
Format:
projects/{projectID}/serviceAccounts/{serviceAccount}
#service_account=
def service_account=(value) -> ::String
-
value (::String) — Optional. User-specified Service Account (SA) credentials to be used when
actuating resources.
Format:
projects/{projectID}/serviceAccounts/{serviceAccount}
-
(::String) — Optional. User-specified Service Account (SA) credentials to be used when
actuating resources.
Format:
projects/{projectID}/serviceAccounts/{serviceAccount}
#state
def state() -> ::Google::Cloud::Config::V1::Deployment::State
- (::Google::Cloud::Config::V1::Deployment::State) — Output only. Current state of the deployment.
#state_detail
def state_detail() -> ::String
- (::String) — Output only. Additional information regarding the current state.
#terraform_blueprint
def terraform_blueprint() -> ::Google::Cloud::Config::V1::TerraformBlueprint
- (::Google::Cloud::Config::V1::TerraformBlueprint) — A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
#terraform_blueprint=
def terraform_blueprint=(value) -> ::Google::Cloud::Config::V1::TerraformBlueprint
- value (::Google::Cloud::Config::V1::TerraformBlueprint) — A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
- (::Google::Cloud::Config::V1::TerraformBlueprint) — A blueprint described using Terraform's HashiCorp Configuration Language as a root module.
#tf_errors
def tf_errors() -> ::Array<::Google::Cloud::Config::V1::TerraformError>
-
(::Array<::Google::Cloud::Config::V1::TerraformError>) — Output only. Errors encountered when deleting this deployment.
Errors are truncated to 10 entries, see
delete_results
anderror_logs
for full details.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Time when the deployment was last modified.
#worker_pool
def worker_pool() -> ::String
-
(::String) — Optional. 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.
#worker_pool=
def worker_pool=(value) -> ::String
-
value (::String) — Optional. 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.
-
(::String) — Optional. 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.