Class BlueGreenDeployment (0.1.2)

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

A BlueGreenDeployment resource represents a Cloud SQL blue-green deployment setup.

Attributes

Name Description
name str
Output only. Identifier. The full resource name of the deployment. Format: projects/{project}/locations/{location}/blueGreenDeployments/{deployment_id}
description str
Optional. User-provided description for the deployment. The description can be up to 255 characters long.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the deployment was created. Example: 2024-01-01T00:00:00Z
state google.cloud.sqladmin_v1.types.BlueGreenDeployment.State
Output only. The current state of the blue-green deployment.
source_instance str
Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project}/instances/{instance}
switchover_target_instance str
Output only. The full resource name of the primary target instance (the "green" instance) that will be promoted during switchover. This field is always populated once the deployment is created. Format: projects/{project}/instances/{instance}
error_detail str
Output only. Provides details on why switchover is not possible. This field is empty unless a switchover attempt failed or the state is SWITCHOVER_NOT_READY. Example: "The target database version does not match the source instance database version.".
deployment_mappings MutableSequence[google.cloud.sqladmin_v1.types.BlueGreenDeployment.SourceTargetPairedNode]
Output only. A list representing the pairs of source and target instances in the deployment.
deployment_tasks google.cloud.sqladmin_v1.types.BlueGreenDeployment.DeploymentTasks
Output only. Combined list of tasks for all paired nodes.
requested_config google.cloud.sqladmin_v1.types.BlueGreenDeployment.RequestedConfig
Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.

Classes

DeploymentTasks

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

Combined list of tasks for all paired nodes in the deployment.

RequestedConfig

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

Configuration specified by the user at creation time for the target (green) instance.

SourceTargetPairedNode

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

Represents a pairing of a source instance node and a target instance node.

State

State(value)

The state of the blue-green deployment.