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
- (::Google::Protobuf::Timestamp) — Output only. The time when the deployment was created.
#deployment_mappings
def deployment_mappings() -> ::Array<::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::SourceTargetPairedNode>
Returns
- (::Array<::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::SourceTargetPairedNode>) — Output only. A list representing the pairs of source and target instances in the deployment.
#deployment_tasks
def deployment_tasks() -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::DeploymentTasks
Returns
- (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::DeploymentTasks) — Output only. Combined list of tasks for all paired nodes.
#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
- (::Array<::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::SourceTargetPairedNode>) — Output only. Deprecated: Use deployment_mappings instead. Output only. A list representing the pairs of source and target instances in the deployment.
#requested_config
def requested_config() -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig
Returns
- (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig) — Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
#requested_config=
def requested_config=(value) -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig
Parameter
- value (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig) — Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
Returns
- (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::RequestedConfig) — Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
#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
- (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::State) — Output only. The current state of the blue-green deployment.
#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
- (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::TargetConfig) — Optional. Immutable. Deprecated: Use requested_config instead. The configuration intended for the target instance(s) when the deployment was created. This field is immutable.
#target_config=
def target_config=(value) -> ::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::TargetConfig
Parameter
- value (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::TargetConfig) — Optional. Immutable. Deprecated: Use requested_config instead. The configuration intended for the target instance(s) when the deployment was created. This field is immutable.
Returns
- (::Google::Cloud::Sql::V1beta4::BlueGreenDeployment::TargetConfig) — Optional. Immutable. Deprecated: Use requested_config instead. The configuration intended for the target instance(s) when the deployment was created. This field is immutable.