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 SourceConfig.

The source configuration for the standby Autonomous Database.

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

## Namespace

Google \\ Cloud \\ OracleDatabase \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ autonomous_database` | `string` Optional. The name of the primary Autonomous Database that is used to create a Peer Autonomous Database from a source. |
| `↳ automatic_backups_replication_enabled` | `bool` Optional. This field specifies if the replication of automatic backups is enabled when creating a Data Guard. |
| `↳ source_type` | `int` Optional. The source type of the Autonomous Database. |
| `↳ clone_type` | `int` Optional. The clone type of the Autonomous Database. This field is only applicable in case of cloning |
| `↳ refreshable_mode` | `int` Optional. The refresh mode of the clone. |
| `↳ auto_refresh_frequency_seconds` | `int` Optional. The frequency in seconds a refreshable clone is refreshed after auto-refresh is enabled. |
| `↳ auto_refresh_point_lag_seconds` | `int` Optional. The time, in seconds, the data of the automatic refreshable clone lags the primary database at the point of refresh. |
| `↳ auto_refresh_start_time` | `Google\Protobuf\Timestamp` Optional. The date and time that auto-refreshing will begin for an Autonomous Database refreshable clone. This value controls only the start time for the first refresh operation. |
| `↳ autonomous_database_backup` | `string` Optional. The name of the Autonomous Database Backup resource with the format: projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} Required when source_type is BACKUP_FROM_ID. |
| `↳ backup_time` | `Google\Protobuf\Timestamp` Optional. The timestamp specified for the point-in-time clone of the source Autonomous Database. This field is only applicable in case of BACKUP_FROM_TIMESTAMP source type and when use_latest_available_backup is false. |
| `↳ use_latest_available_backup` | `bool` Optional. Clone from latest available backup timestamp. This field is only applicable in case of BACKUP_FROM_TIMESTAMP source type. |

### getAutonomousDatabase

Optional. The name of the primary Autonomous Database that is used to
create a Peer Autonomous Database from a source.

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

### setAutonomousDatabase

Optional. The name of the primary Autonomous Database that is used to
create a Peer Autonomous Database from a source.

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

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

### getAutomaticBackupsReplicationEnabled

Optional. This field specifies if the replication of automatic backups is
enabled when creating a Data Guard.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAutomaticBackupsReplicationEnabled

Optional. This field specifies if the replication of automatic backups is
enabled when creating a Data Guard.

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

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

### getSourceType

Optional. The source type of the Autonomous Database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig.SourceType). |

### setSourceType

Optional. The source type of the Autonomous Database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig.SourceType). |

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

### getCloneType

Optional. The clone type of the Autonomous Database. This field is only
applicable in case of cloning

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CloneType](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig.CloneType). |

### setCloneType

Optional. The clone type of the Autonomous Database. This field is only
applicable in case of cloning

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CloneType](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig.CloneType). |

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

### getRefreshableMode

Optional. The refresh mode of the clone.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RefreshableMode](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig.RefreshableMode). |

### setRefreshableMode

Optional. The refresh mode of the clone.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RefreshableMode](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.SourceConfig.RefreshableMode). |

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

### getAutoRefreshFrequencySeconds

Optional. The frequency in seconds a refreshable clone is refreshed after
auto-refresh is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setAutoRefreshFrequencySeconds

Optional. The frequency in seconds a refreshable clone is refreshed after
auto-refresh is enabled.

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

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

### getAutoRefreshPointLagSeconds

Optional. The time, in seconds, the data of the automatic refreshable clone
lags the primary database at the point of refresh.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasAutoRefreshPointLagSeconds

### clearAutoRefreshPointLagSeconds

### setAutoRefreshPointLagSeconds

Optional. The time, in seconds, the data of the automatic refreshable clone
lags the primary database at the point of refresh.

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

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

### getAutoRefreshStartTime

Optional. The date and time that auto-refreshing will begin for an
Autonomous Database refreshable clone. This value controls only the start
time for the first refresh operation.

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

### hasAutoRefreshStartTime

### clearAutoRefreshStartTime

### setAutoRefreshStartTime

Optional. The date and time that auto-refreshing will begin for an
Autonomous Database refreshable clone. This value controls only the start
time for the first refresh operation.

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

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

### getAutonomousDatabaseBackup

Optional. The name of the Autonomous Database Backup resource with the
format:
projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
Required when source_type is BACKUP_FROM_ID.

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

### setAutonomousDatabaseBackup

Optional. The name of the Autonomous Database Backup resource with the
format:
projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
Required when source_type is BACKUP_FROM_ID.

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

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

### getBackupTime

Optional. The timestamp specified for the point-in-time clone of the source
Autonomous Database. This field is only applicable
in case of BACKUP_FROM_TIMESTAMP source type and when
use_latest_available_backup is false.

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

### hasBackupTime

### clearBackupTime

### setBackupTime

Optional. The timestamp specified for the point-in-time clone of the source
Autonomous Database. This field is only applicable
in case of BACKUP_FROM_TIMESTAMP source type and when
use_latest_available_backup is false.

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

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

### getUseLatestAvailableBackup

Optional. Clone from latest available backup timestamp. This field is only
applicable in case of BACKUP_FROM_TIMESTAMP source type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUseLatestAvailableBackup

Optional. Clone from latest available backup timestamp. This field is only
applicable in case of BACKUP_FROM_TIMESTAMP source type.

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

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