Service Client: Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeploymentsServiceClient

Client stub representing the remote BlueGreenDeploymentsService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to sql.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_blue_green_deployments.proto

SYNOPSIS

use Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments;

my $msg = Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment->new({
    name => $name,
    description => $description,
    create_time => $create_time,
    state => $state,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_blue_green_deployments.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. Identifier. The full resource name of the deployment. Format: projects/{project}/locations/{location}/blueGreenDeployments/{deployment_id}

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. User-provided description for the deployment. The description can be up to 255 characters long.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the deployment was created. Example: `2024-01-01T00:00:00Z`

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Sql::V1::BlueGreenDeployment::State)

    Output only. The current state of the blue-green deployment.

  • $msg->source_instance() / $msg->source_instance($value)

    Type: String

    Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project}/instances/{instance}

  • $msg->switchover_target_instance() / $msg->switchover_target_instance($value)

    Type: String

    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}

  • $msg->error_detail() / $msg->error_detail($value)

    Type: String

    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."

  • $msg->deployment_mappings() / $msg->deployment_mappings($value)

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode)

    Output only. A list representing the pairs of source and target instances in the deployment.

  • $msg->deployment_tasks() / $msg->deployment_tasks($value)

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::DeploymentTasks)

    Output only. Combined list of tasks for all paired nodes.

  • $msg->requested_config() / $msg->requested_config($value)

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment::RequestedConfig)

    Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.

Enum: BlueGreenDeployment::State

  • STATE_UNSPECIFIED => 0

  • PROVISIONING => 1

  • SWITCHOVER_READY => 2

  • SWITCHOVER_NOT_READY => 3

  • SWITCHOVER_IN_PROGRESS => 4

  • SWITCHOVER_COMPLETED => 5

  • DELETING => 6

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::CreateBlueGreenDeploymentRequest

The request message for creating a `BlueGreenDeployment` resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource where this blue-green deployment will be created. Format: projects/{project}/locations/{location}

  • $msg->blue_green_deployment_id() / $msg->blue_green_deployment_id($value)

    Type: String

    Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.

  • $msg->blue_green_deployment() / $msg->blue_green_deployment($value)

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::BlueGreenDeployment)

    Required. The `BlueGreenDeployment` resource to create.

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::GetBlueGreenDeploymentRequest

The request message for getting a BlueGreenDeployment.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the blue-green deployment to retrieve. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}

  • $msg->view() / $msg->view($value)

    Type: Enum (Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest::BlueGreenDeploymentView)

    Optional. Specifies whether to return the basic or detailed view of the resource in the response.

Enum: GetBlueGreenDeploymentRequest::BlueGreenDeploymentView

  • BLUE_GREEN_DEPLOYMENT_VIEW_UNSPECIFIED => 0

  • BASIC => 1

  • DETAILED => 2

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::SwitchoverBlueGreenDeploymentRequest

Request message for switching over a `BlueGreenDeployment` resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the blue-green deployment to switch over. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsRequest

The request message for listing blue-green deployment resources.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project}/locations/{location}

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. A filter expression that filters the results.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. A comma-separated list of fields to order the results by.

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsResponse

The response message for listing blue-green deployment resources.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::DeleteBlueGreenDeploymentRequest

Request message for deleting a BlueGreenDeployment.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the blue-green deployment to delete. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}

  • $msg->delete_old_source() / $msg->delete_old_source($value)

    Type: Bool

    Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlBlueGreenDeployments::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.