NAME

Google::Cloud::Oracledatabase::V1::DatabaseConnection - Compiled Protocol Buffers messages for google/cloud/oracledatabase/v1/database_connection.proto

SYNOPSIS

use Google::Cloud::Oracledatabase::V1::DatabaseConnection;

my $msg = Google::Cloud::Oracledatabase::V1::DatabaseConnection::DatabaseConnection->new({
    wallet_secret_version => $wallet_secret_version,
    odb_network => $odb_network,
    name => $name,
    display_name => $display_name,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/oracledatabase/v1/database_connection.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::Oracledatabase::V1::DatabaseConnection::DatabaseConnection

Represents DatabaseConnection resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.

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

    Type: String

    Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}

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

    Type: String

    Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}

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

    Type: String

    Optional. Immutable. User-friendly display name for the connection.

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

    Type: String

    Optional. Immutable. The default database username to use for connections.

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

    Type: String

    Optional. The resource name of the GCP Secret Manager secret version containing the password for the specified username. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.

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

    Type: String

    Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"

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

    Type: Enum (Google::Cloud::Oracledatabase::V1::DatabaseConnection::State)

    Output only. The current state of the connection.

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

    Type: Message (Google::Cloud::Oracledatabase::V1::DatabaseConnection::DatabaseConnection::LabelsEntry)

    Optional. Optional: Labels as key-value pairs to organize the resource.

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

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

    Output only. The create time of the resource.

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

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

    Output only. The update time of the resource.

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

    Type: String

    Output only. Additional information about the current state of the connection.

Enum: DatabaseConnection::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • FAILED => 3

  • DELETING => 4

Google::Cloud::Oracledatabase::V1::DatabaseConnection::CreateDatabaseConnectionRequest

The request for `DatabaseConnection.Create`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent value for the DatabaseConnection in the following format: projects/{project}/locations/{location}.

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

    Type: String

    Required. The ID of the DatabaseConnection to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.

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

    Type: Message (Google::Cloud::Oracledatabase::V1::DatabaseConnection::DatabaseConnection)

    Required. Details of the DatabaseConnection instance to create.

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

    Type: String

    Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Oracledatabase::V1::DatabaseConnection::DeleteDatabaseConnectionRequest

The request for `DatabaseConnection.Delete`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the resource in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

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

    Type: String

    Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Oracledatabase::V1::DatabaseConnection::ListDatabaseConnectionsRequest

The request for `DatabaseConnection.List`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent value for the DatabaseConnection in the following format: projects/{project}/locations/{location}.

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

    Type: Int32

    Optional. The maximum number of items to return. If unspecified, at most 50 DatabaseConnections will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. An expression for filtering the results of the request.

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

    Type: String

    Optional. An expression for ordering the results of the request.

Google::Cloud::Oracledatabase::V1::DatabaseConnection::ListDatabaseConnectionsResponse

The response for `DatabaseConnection.List`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Oracledatabase::V1::DatabaseConnection::DatabaseConnection)

    The list of DatabaseConnections.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Unreachable locations when listing resources across all locations using wildcard location '-'.

Google::Cloud::Oracledatabase::V1::DatabaseConnection::GetDatabaseConnectionRequest

The request for `DatabaseConnection.Get`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the DatabaseConnection in the following format: projects/{project}/locations/{location}/databaseConnections/{database_connection}.

Google::Cloud::Oracledatabase::V1::DatabaseConnection::UpdateDatabaseConnectionRequest

The request for `DatabaseConnection.Update`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. A mask specifying which fields in the DatabaseConnection should be updated. A field specified in the mask is overwritten. If a mask isn't provided then all the fields in the DatabaseConnection are overwritten.

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

    Type: Message (Google::Cloud::Oracledatabase::V1::DatabaseConnection::DatabaseConnection)

    Required. The resource being updated.

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

    Type: String

    Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Oracledatabase::V1::DatabaseConnection::TestDatabaseConnectionRequest

Request message for `DatabaseConnection.TestDatabaseConnection`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the DatabaseConnection to test. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}

Google::Cloud::Oracledatabase::V1::DatabaseConnection::TestDatabaseConnectionResponse

Response message for `DatabaseConnection.TestDatabaseConnection`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Whether the test connection was successful.

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

    Type: String

    Error message if the test connection failed.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Oracledatabase::V1::DatabaseConnection::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.