0.1.4 (latest) 0.1.3

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

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.

| ## 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. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the deployment was created. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.BlueGreenDeployment.State` Output only. The current state of the blue-green deployment. |
| `source_instance` | `str` 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. |
| `target_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.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. |
| `switchover_target_instance` | `str` Output only. Details about the primary target instance (the "Green" instance) that will be promoted during switchover. |
| `paired_nodes` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.BlueGreenDeployment.SourceTargetPairedNode]` Output only. Deprecated: Use deployment_mappings instead. Output only. A list representing the pairs of source and target instances in the deployment. |
| `error_detail` | `str` Output only. Provides an error message with details on why switchover is not possible. |
| `deployment_mappings` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.BlueGreenDeployment.SourceTargetPairedNode]` Output only. A list representing the pairs of source and target instances in the deployment. |
| `deployment_tasks` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.types.BlueGreenDeployment.DeploymentTasks` Output only. Combined list of tasks for all paired nodes. |
| `requested_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1beta4.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.
This enum is not frozen, and new values may be added in the
future.

### TargetConfig

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

Deprecated: Use RequestedConfig instead.
Configuration specified by the user at creation time for the
target (Green) instance.