Service Client: Google::Cloud::Sql::V1beta4::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::V1beta4::CloudSqlBlueGreenDeployments - Compiled Protocol Buffers messages for google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.proto

SYNOPSIS

use Google::Cloud::Sql::V1beta4::CloudSqlBlueGreenDeployments;

my $msg = Google::Cloud::Sql::V1beta4::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::V1beta4::CloudSqlBlueGreenDeployments::BlueGreenDeployment->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/sql/v1beta4/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::V1beta4::CloudSqlBlueGreenDeployments::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 from Protobuf::Message.

Accessors

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::V1beta4::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.

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

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

    Required. The `BlueGreenDeployment` resource to create.

Google::Cloud::Sql::V1beta4::CloudSqlBlueGreenDeployments::GetBlueGreenDeploymentRequest

The request message for getting a `BlueGreenDeployment` resource.

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::V1beta4::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::V1beta4::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.

  • $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::V1beta4::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::V1beta4::CloudSqlBlueGreenDeployments::DeleteBlueGreenDeploymentRequest

Request message for deleting a `BlueGreenDeployment` resource.

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.

Google::Cloud::Sql::V1beta4::CloudSqlBlueGreenDeployments::ListBlueGreenDeploymentsResponse

The response message for listing blue-green deployment resources.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.