Infrastructure Manager V1 API - Class Google::Cloud::Config::V1::Deployment (v0.2.0)

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
Returns
  • (::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
Parameter
  • 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
Returns
  • (::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
Returns

#delete_build

def delete_build() -> ::String
Returns
  • (::String) — Output only. Cloud Build instance UUID associated with deleting this deployment.

#delete_logs

def delete_logs() -> ::String
Returns
  • (::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
Returns

#error_code

def error_code() -> ::Google::Cloud::Config::V1::Deployment::ErrorCode
Returns

#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) — 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
Parameter
  • 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.

Returns
  • (::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}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — User-defined metadata for the deployment.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — User-defined metadata for the deployment.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — User-defined metadata for the deployment.

#latest_revision

def latest_revision() -> ::String
Returns
  • (::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
Returns

#name

def name() -> ::String
Returns
  • (::String) — Resource name of the deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Resource name of the deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}
Returns
  • (::String) — Resource name of the deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}

#service_account

def service_account() -> ::String
Returns
  • (::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
Parameter
  • value (::String) — Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}
Returns
  • (::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
Returns

#state_detail

def state_detail() -> ::String
Returns
  • (::String) — Output only. Additional information regarding the current state.

#terraform_blueprint

def terraform_blueprint() -> ::Google::Cloud::Config::V1::TerraformBlueprint
Returns

#terraform_blueprint=

def terraform_blueprint=(value) -> ::Google::Cloud::Config::V1::TerraformBlueprint
Parameter
Returns

#tf_errors

def tf_errors() -> ::Array<::Google::Cloud::Config::V1::TerraformError>
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#worker_pool

def worker_pool() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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.