0.14.0 (latest) 0.13.0 0.12.3 0.9.0 0.8.2 0.7.1 0.6.1 0.4.1 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class AutonomousDatabase.

Details of the Autonomous Database resource.

<https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/>

Generated from protobuf message `google.cloud.oracledatabase.v1.AutonomousDatabase`

## Namespace

Google \\ Cloud \\ OracleDatabase \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the Autonomous Database resource in the following format: projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} |
| `↳ database` | `string` Optional. Immutable. The name of the Autonomous Database. The database name must be unique in the project. The name must begin with a letter and can contain a maximum of 30 alphanumeric characters. |
| `↳ display_name` | `string` Optional. Immutable. The display name for the Autonomous Database. The name does not have to be unique within your project. |
| `↳ entitlement_id` | `string` Output only. The ID of the subscription entitlement associated with the Autonomous Database. |
| `↳ admin_password` | `string` Optional. Immutable. The password for the default ADMIN user. Note: Only one of `admin_password_secret_version` or `admin_password` can be populated. |
| `↳ admin_password_secret_version` | `string` Optional. Immutable. The resource name of a secret version in Secret Manager which contains the database admin user's password. Format: projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of `admin_password_secret_version` or `admin_password` can be populated. |
| `↳ properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.AutonomousDatabaseProperties` Optional. The properties of the Autonomous Database. |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` Optional. The labels or tags associated with the Autonomous Database. |
| `↳ network` | `string` Optional. Immutable. The name of the VPC network used by the Autonomous Database in the following format: projects/{project}/global/networks/{network} |
| `↳ cidr` | `string` Optional. Immutable. The subnet CIDR range for the Autonomous Database. |
| `↳ odb_network` | `string` Optional. Immutable. The name of the OdbNetwork associated with the Autonomous Database. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} It is optional but if specified, this should match the parent ODBNetwork of the OdbSubnet. |
| `↳ odb_subnet` | `string` Optional. Immutable. The name of the OdbSubnet associated with the Autonomous Database. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} |
| `↳ source_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig` Optional. Immutable. The source Autonomous Database configuration for the standby Autonomous Database. The source Autonomous Database is configured while creating the Peer Autonomous Database and can't be updated after creation. |
| `↳ peer_autonomous_databases` | `string[]` Output only. The peer Autonomous Database names of the given Autonomous Database. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The date and time that the Autonomous Database was created. |
| `↳ disaster_recovery_supported_locations` | `string[]` Output only. List of supported GCP region to clone the Autonomous Database for disaster recovery. Format: `project/{project}/locations/{location}`. |

### getName

Identifier. The name of the Autonomous Database resource in the following
format:
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The name of the Autonomous Database resource in the following
format:
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDatabase

Optional. Immutable. The name of the Autonomous Database. The database name
must be unique in the project. The name must begin with a letter and can
contain a maximum of 30 alphanumeric characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDatabase

Optional. Immutable. The name of the Autonomous Database. The database name
must be unique in the project. The name must begin with a letter and can
contain a maximum of 30 alphanumeric characters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Optional. Immutable. The display name for the Autonomous Database. The name
does not have to be unique within your project.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Optional. Immutable. The display name for the Autonomous Database. The name
does not have to be unique within your project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEntitlementId

Output only. The ID of the subscription entitlement associated with the
Autonomous Database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEntitlementId

Output only. The ID of the subscription entitlement associated with the
Autonomous Database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdminPassword

Optional. Immutable. The password for the default ADMIN user.

Note: Only one of `admin_password_secret_version` or `admin_password` can
be populated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAdminPassword

Optional. Immutable. The password for the default ADMIN user.

Note: Only one of `admin_password_secret_version` or `admin_password` can
be populated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdminPasswordSecretVersion

Optional. Immutable. The resource name of a secret version in Secret
Manager which contains the database admin user's password. Format:
projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
`admin_password_secret_version` or `admin_password` can be populated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAdminPasswordSecretVersion

Optional. Immutable. The resource name of a secret version in Secret
Manager which contains the database admin user's password. Format:
projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
`admin_password_secret_version` or `admin_password` can be populated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProperties

Optional. The properties of the Autonomous Database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.AutonomousDatabaseProperties|null` |   |

### hasProperties

### clearProperties

### setProperties

Optional. The properties of the Autonomous Database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.AutonomousDatabaseProperties` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Optional. The labels or tags associated with the Autonomous Database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setLabels

Optional. The labels or tags associated with the Autonomous Database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetwork

Optional. Immutable. The name of the VPC network used by the Autonomous
Database in the following format:
projects/{project}/global/networks/{network}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNetwork

Optional. Immutable. The name of the VPC network used by the Autonomous
Database in the following format:
projects/{project}/global/networks/{network}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCidr

Optional. Immutable. The subnet CIDR range for the Autonomous Database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCidr

Optional. Immutable. The subnet CIDR range for the Autonomous Database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOdbNetwork

Optional. Immutable. The name of the OdbNetwork associated with the
Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
optional but if specified, this should match the parent ODBNetwork of the
OdbSubnet.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setOdbNetwork

Optional. Immutable. The name of the OdbNetwork associated with the
Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
optional but if specified, this should match the parent ODBNetwork of the
OdbSubnet.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOdbSubnet

Optional. Immutable. The name of the OdbSubnet associated with the
Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setOdbSubnet

Optional. Immutable. The name of the OdbSubnet associated with the
Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceConfig

Optional. Immutable. The source Autonomous Database configuration for the
standby Autonomous Database. The source Autonomous Database is configured
while creating the Peer Autonomous Database and can't be updated after
creation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig|null` |   |

### hasSourceConfig

### clearSourceConfig

### setSourceConfig

Optional. Immutable. The source Autonomous Database configuration for the
standby Autonomous Database. The source Autonomous Database is configured
while creating the Peer Autonomous Database and can't be updated after
creation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPeerAutonomousDatabases

Output only. The peer Autonomous Database names of the given Autonomous
Database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setPeerAutonomousDatabases

Output only. The peer Autonomous Database names of the given Autonomous
Database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. The date and time that the Autonomous Database was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The date and time that the Autonomous Database was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisasterRecoverySupportedLocations

Output only. List of supported GCP region to clone the Autonomous Database
for disaster recovery. Format: `project/{project}/locations/{location}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setDisasterRecoverySupportedLocations

Output only. List of supported GCP region to clone the Autonomous Database
for disaster recovery. Format: `project/{project}/locations/{location}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |