Service Client: Google::Cloud::Sql::V1::CloudSqlDatabases::SqlDatabasesServiceClient

Client stub representing the remote SqlDatabasesService 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::CloudSqlDatabases - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_databases.proto

SYNOPSIS

use Google::Cloud::Sql::V1::CloudSqlDatabases;

my $msg = Google::Cloud::Sql::V1::CloudSqlDatabases::SqlDatabasesDeleteRequest->new({
    database => $database,
    instance => $instance,
    project => $project,
    location => $location,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_databases.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::CloudSqlDatabases::SqlDatabasesDeleteRequest

Database delete request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Name of the database to be deleted in the instance.

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

    Type: String

    Database instance ID. This does not include the project ID.

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

    Type: String

    Project ID of the project that contains the instance.

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

    Type: String

    Optional. Region of the Cloud SQL instance.

Google::Cloud::Sql::V1::CloudSqlDatabases::SqlDatabasesGetRequest

Database get request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Name of the database in the instance.

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

    Type: String

    Database instance ID. This does not include the project ID.

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

    Type: String

    Project ID of the project that contains the instance.

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

    Type: String

    Optional. Region of the Cloud SQL instance.

Google::Cloud::Sql::V1::CloudSqlDatabases::SqlDatabasesInsertRequest

Database insert request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Database instance ID. This does not include the project ID.

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

    Type: String

    Project ID of the project that contains the instance.

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlResources::Database)

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

    Type: String

    Optional. Region of the Cloud SQL instance.

Google::Cloud::Sql::V1::CloudSqlDatabases::SqlDatabasesListRequest

Database list request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud SQL instance ID. This does not include the project ID.

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

    Type: String

    Project ID of the project that contains the instance.

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

    Type: String

    Optional. Region of the Cloud SQL instance.

Google::Cloud::Sql::V1::CloudSqlDatabases::SqlDatabasesUpdateRequest

Database update request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Name of the database to be updated in the instance.

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

    Type: String

    Database instance ID. This does not include the project ID.

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

    Type: String

    Project ID of the project that contains the instance.

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlResources::Database)

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

    Type: String

    Optional. Region of the Cloud SQL instance.

Google::Cloud::Sql::V1::CloudSqlDatabases::DatabasesListResponse

Database list response.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.