Cloud SQL Admin V1BETA4 API - Class Google::Cloud::Sql::V1beta4::BlueGreenDeployment (v0.3.0)

Reference documentation and code samples for the Cloud SQL Admin V1BETA4 API class Google::Cloud::Sql::V1beta4::BlueGreenDeployment.

A BlueGreenDeployment resource represents a Cloud SQL blue-green deployment setup. It orchestrates the lifecycle of creating a synchronized "green" environment from a "blue" production environment, performing updates, and managing the switchover process to minimize downtime.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

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

#deployment_mappings

def deployment_mappings() -> ::Array<::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::SourceTargetPairedNode>
Returns

#deployment_tasks

def deployment_tasks() -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::DeploymentTasks
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. User-provided description for the deployment.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. User-provided description for the deployment.
Returns
  • (::String) — Optional. User-provided description for the deployment.

#error_detail

def error_detail() -> ::String
Returns
  • (::String) — Output only. Provides an error message with details on why switchover is not possible.

#name

def name() -> ::String
Returns
  • (::String) — Output only. Identifier. The full resource name of the deployment. Format: projects/{project}/locations/{location}/blueGreenDeployments/{deployment_id}

#paired_nodes

def paired_nodes() -> ::Array<::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::SourceTargetPairedNode>
Returns

#requested_config

def requested_config() -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig
Returns

#requested_config=

def requested_config=(value) -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig
Parameter
Returns

#source_instance

def source_instance() -> ::String
Returns
  • (::String) — Required. Immutable. The instance ID of the source instance (the "blue" instance). The value for this field does not include the project ID, for example, my-instance-id. This field is immutable.

#source_instance=

def source_instance=(value) -> ::String
Parameter
  • value (::String) — Required. Immutable. The instance ID of the source instance (the "blue" instance). The value for this field does not include the project ID, for example, my-instance-id. This field is immutable.
Returns
  • (::String) — Required. Immutable. The instance ID of the source instance (the "blue" instance). The value for this field does not include the project ID, for example, my-instance-id. This field is immutable.

#state

def state() -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::State
Returns

#switchover_target_instance

def switchover_target_instance() -> ::String
Returns
  • (::String) — Output only. Details about the primary target instance (the "Green" instance) that will be promoted during switchover.

#target_config

def target_config() -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::TargetConfig
Returns

#target_config=

def target_config=(value) -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::TargetConfig
Parameter
Returns