Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class DatabaseConnection.
Represents DatabaseConnection resource.
Generated from protobuf message google.cloud.oracledatabase.v1.DatabaseConnection
Namespace
Google \ Cloud \ OracleDatabase \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ wallet_secret_version |
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. |
↳ odb_network |
string
Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork} |
↳ name |
string
Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection} |
↳ display_name |
string
Optional. Immutable. User-friendly display name for the connection. |
↳ username |
string
Optional. Immutable. The default database username to use for connections. |
↳ password_secret_version |
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. |
↳ connection_string |
string
Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME" |
↳ state |
int
Output only. The current state of the connection. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. Optional: Labels as key-value pairs to organize the resource. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. The create time of the resource. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. The update time of the resource. |
↳ lifecycle_details |
string
Output only. Additional information about the current state of the connection. |
getWalletSecretVersion
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasWalletSecretVersion
setWalletSecretVersion
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOdbNetwork
Optional. Immutable. For Oracle Database@Google cloud resources.
Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
| Returns | |
|---|---|
| Type | Description |
string |
|
hasOdbNetwork
setOdbNetwork
Optional. Immutable. For Oracle Database@Google cloud resources.
Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Identifier. The resource name of the DatabaseConnection.
Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the DatabaseConnection.
Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
Optional. Immutable. User-friendly display name for the connection.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
Optional. Immutable. User-friendly display name for the connection.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsername
Optional. Immutable. The default database username to use for connections.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsername
Optional. Immutable. The default database username to use for connections.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPasswordSecretVersion
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPasswordSecretVersion
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConnectionString
Required. Immutable. Oracle Easy Connect or TNS connection string.
Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
| Returns | |
|---|---|
| Type | Description |
string |
|
setConnectionString
Required. Immutable. Oracle Easy Connect or TNS connection string.
Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. The current state of the connection.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. The current state of the connection.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
Optional. Optional: Labels as key-value pairs to organize the resource.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
Optional. Optional: Labels as key-value pairs to organize the resource.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. The create time of the resource.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. The create time of the resource.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. The update time of the resource.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The update time of the resource.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLifecycleDetails
Output only. Additional information about the current state of the connection.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLifecycleDetails
Output only. Additional information about the current state of the connection.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWalletSource
| Returns | |
|---|---|
| Type | Description |
string |
|
getNetworkConfiguration
| Returns | |
|---|---|
| Type | Description |
string |
|