Service Client: Google::Cloud::Sql::V1::CloudSqlConnect::SqlConnectServiceClient
Client stub representing the remote SqlConnectService 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::CloudSqlConnect - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_connect.proto
SYNOPSIS
use Google::Cloud::Sql::V1::CloudSqlConnect;
my $msg = Google::Cloud::Sql::V1::CloudSqlConnect::GetConnectSettingsRequest->new({
instance => $instance,
project => $project,
read_time => $read_time,
});
# Read or update a field
my $val = $msg->instance();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1::CloudSqlConnect::GetConnectSettingsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_connect.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::CloudSqlConnect::GetConnectSettingsRequest
Connect settings retrieval request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Optional snapshot read timestamp to trade freshness for performance.
Google::Cloud::Sql::V1::CloudSqlConnect::ResolveConnectSettingsRequest
Connect settings retrieval request.
Inherits from Protobuf::Message.
Accessors
$msg->dns_name()/$msg->dns_name($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->location()/$msg->location($value)Type:
StringRequired. The region of the instance.
Google::Cloud::Sql::V1::CloudSqlConnect::ConnectSettings
Connect settings retrieval response.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#connectSettings`.
$msg->server_ca_cert()/$msg->server_ca_cert($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)SSL configuration.
$msg->ip_addresses()/$msg->ip_addresses($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::IpMapping)The assigned IP addresses for the instance.
$msg->region()/$msg->region($value)Type:
StringThe cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
$msg->database_version()/$msg->database_version($value)Type:
Enum(Google::Cloud::Sql::V1::SqlDatabaseVersion)The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
$msg->backend_type()/$msg->backend_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlBackendType)`SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
$msg->psc_enabled()/$msg->psc_enabled($value)Type:
BoolWhether PSC connectivity is enabled for this instance.
$msg->dns_name()/$msg->dns_name($value)Type:
StringThe dns name of the instance.
$msg->server_ca_mode()/$msg->server_ca_mode($value)Type:
Enum(Google::Cloud::Sql::V1::ConnectSettings::CaMode)Specify what type of CA is used for the server certificate.
$msg->custom_subject_alternative_names()/$msg->custom_subject_alternative_names($value)Type:
StringCustom subject alternative names for the server certificate.
$msg->dns_names()/$msg->dns_names($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DnsNameMapping)Output only. The list of DNS names used by this instance.
$msg->node_count()/$msg->node_count($value)Type:
Int32The number of read pool nodes in a read pool.
$msg->nodes()/$msg->nodes($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlConnect::ConnectSettings::ConnectPoolNodeConfig)Output only. Entries containing information about each read pool node of the read pool.
$msg->mdx_protocol_support()/$msg->mdx_protocol_support($value)Type:
Enum(Google::Cloud::Sql::V1::ConnectSettings::MdxProtocolSupport)Optional. Output only. mdx_protocol_support controls how the client uses metadata exchange when connecting to the instance. The values in the list representing parts of the MDX protocol that are supported by this instance. When the list is empty, the instance does not support MDX, so the client must not send an MDX request. The default is empty.
$msg->connection_name()/$msg->connection_name($value)Type:
StringOptional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.
Enum: ConnectSettings::CaMode
CA_MODE_UNSPECIFIED=>0GOOGLE_MANAGED_INTERNAL_CA=>1GOOGLE_MANAGED_CAS_CA=>2CUSTOMER_MANAGED_CAS_CA=>3
Enum: ConnectSettings::MdxProtocolSupport
MDX_PROTOCOL_SUPPORT_UNSPECIFIED=>0CLIENT_PROTOCOL_TYPE=>1
Google::Cloud::Sql::V1::CloudSqlConnect::GenerateEphemeralCertRequest
Ephemeral certificate creation request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->public_key()/$msg->public_key($value)Type:
StringPEM encoded public key to include in the signed certificate.
$msg->access_token()/$msg->access_token($value)Type:
StringOptional. Access token to include in the signed certificate.
$msg->read_time()/$msg->read_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Optional snapshot read timestamp to trade freshness for performance.
$msg->valid_duration()/$msg->valid_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. If set, it will contain the cert valid duration.
Google::Cloud::Sql::V1::CloudSqlConnect::GenerateEphemeralCertResponse
Ephemeral certificate creation request.
Inherits from Protobuf::Message.
Accessors
$msg->ephemeral_cert()/$msg->ephemeral_cert($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)Generated cert
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlConnect::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.