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
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The full resource name of the deployment. Format: projects/{project}/locations/{location}/blueGreenDeployments/{deployment_id}
$msg->description()/$msg->description($value)Type:
StringOptional. User-provided description for the deployment.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the deployment was created.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Sql::V1beta4::BlueGreenDeployment::State)Output only. The current state of the blue-green deployment.
$msg->source_instance()/$msg->source_instance($value)Type:
StringRequired. 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.
$msg->target_config()/$msg->target_config($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlBlueGreenDeployments::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.
$msg->switchover_target_instance()/$msg->switchover_target_instance($value)Type:
StringOutput only. Details about the primary target instance (the "Green" instance) that will be promoted during switchover.
$msg->paired_nodes()/$msg->paired_nodes($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlBlueGreenDeployments::BlueGreenDeployment::SourceTargetPairedNode)Output only. Deprecated: Use deployment_mappings instead. Output only. A list representing the pairs of source and target instances in the deployment.
$msg->error_detail()/$msg->error_detail($value)Type:
StringOutput only. Provides an error message with details on why switchover is not possible.
$msg->deployment_mappings()/$msg->deployment_mappings($value)Type:
Message(Google::Cloud::Sql::V1beta4::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::V1beta4::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::V1beta4::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=>0PROVISIONING=>1SWITCHOVER_READY=>2SWITCHOVER_NOT_READY=>3SWITCHOVER_IN_PROGRESS=>4SWITCHOVER_COMPLETED=>5DELETING=>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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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=>0BASIC=>1DETAILED=>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:
StringRequired. The parent resource whose blue-green deployments are to be listed. Format: projects/{project}/locations/{location}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of deployments to return.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A filter expression that filters the results.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. 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:
StringRequired. 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:
StringRequired. 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:
BoolOptional. 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
$msg->blue_green_deployments()/$msg->blue_green_deployments($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlBlueGreenDeployments::BlueGreenDeployment)The list of blue-green deployment resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve the next page of results, or empty if there are no more results.
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.