PeerTargetDatabase

class oci.data_safe.models.PeerTargetDatabase(**kwargs)

Bases: object

The details of the peer target database in Data Safe.

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_INACTIVE

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_NEEDS_ATTENTION

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

LIFECYCLE_STATE_UPDATING

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase.

database_details

[Required] Gets the database_details of this PeerTargetDatabase.

database_unique_name

Gets the database_unique_name of this PeerTargetDatabase.

dataguard_association_id

[Required] Gets the dataguard_association_id of this PeerTargetDatabase.

description

Gets the description of this PeerTargetDatabase.

display_name

[Required] Gets the display_name of this PeerTargetDatabase.

key

[Required] Gets the key of this PeerTargetDatabase.

lifecycle_details

Gets the lifecycle_details of this PeerTargetDatabase.

lifecycle_state

[Required] Gets the lifecycle_state of this PeerTargetDatabase.

role

Gets the role of this PeerTargetDatabase.

time_created

[Required] Gets the time_created of this PeerTargetDatabase.

tls_config

Gets the tls_config of this PeerTargetDatabase.

Methods:

__init__(**kwargs)

Initializes a new PeerTargetDatabase object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “FAILED”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “INACTIVE”

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “NEEDS_ATTENTION”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a PeerTargetDatabase. This constant has a value of “UPDATING”

__init__(**kwargs)

Initializes a new PeerTargetDatabase object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • display_name (str) – The value to assign to the display_name property of this PeerTargetDatabase.

  • description (str) – The value to assign to the description property of this PeerTargetDatabase.

  • key (int) – The value to assign to the key property of this PeerTargetDatabase.

  • dataguard_association_id (str) – The value to assign to the dataguard_association_id property of this PeerTargetDatabase.

  • time_created (datetime) – The value to assign to the time_created property of this PeerTargetDatabase.

  • role (str) – The value to assign to the role property of this PeerTargetDatabase.

  • database_unique_name (str) – The value to assign to the database_unique_name property of this PeerTargetDatabase.

  • database_details (oci.data_safe.models.DatabaseDetails) – The value to assign to the database_details property of this PeerTargetDatabase.

  • tls_config (oci.data_safe.models.TlsConfig) – The value to assign to the tls_config property of this PeerTargetDatabase.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this PeerTargetDatabase. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “NEEDS_ATTENTION”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this PeerTargetDatabase.

property database_details

[Required] Gets the database_details of this PeerTargetDatabase.

Returns

The database_details of this PeerTargetDatabase.

Return type

oci.data_safe.models.DatabaseDetails

property database_unique_name

Gets the database_unique_name of this PeerTargetDatabase. Unique name of the database associated to the peer target database.

Returns

The database_unique_name of this PeerTargetDatabase.

Return type

str

property dataguard_association_id

[Required] Gets the dataguard_association_id of this PeerTargetDatabase. The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.

Returns

The dataguard_association_id of this PeerTargetDatabase.

Return type

str

property description

Gets the description of this PeerTargetDatabase. The description of the peer target database in Data Safe.

Returns

The description of this PeerTargetDatabase.

Return type

str

property display_name

[Required] Gets the display_name of this PeerTargetDatabase. The display name of the peer target database in Data Safe.

Returns

The display_name of this PeerTargetDatabase.

Return type

str

property key

[Required] Gets the key of this PeerTargetDatabase. The secondary key assigned for the peer target database in Data Safe.

Returns

The key of this PeerTargetDatabase.

Return type

int

property lifecycle_details

Gets the lifecycle_details of this PeerTargetDatabase. Details about the current state of the peer target database in Data Safe.

Returns

The lifecycle_details of this PeerTargetDatabase.

Return type

str

property lifecycle_state

[Required] Gets the lifecycle_state of this PeerTargetDatabase. The current state of the peer target database in Data Safe.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “NEEDS_ATTENTION”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this PeerTargetDatabase.

Return type

str

property role

Gets the role of this PeerTargetDatabase. Role of the database associated to the peer target database.

Returns

The role of this PeerTargetDatabase.

Return type

str

property time_created

[Required] Gets the time_created of this PeerTargetDatabase. The date and time of the peer target database registration in Data Safe.

Returns

The time_created of this PeerTargetDatabase.

Return type

datetime

property tls_config

Gets the tls_config of this PeerTargetDatabase.

Returns

The tls_config of this PeerTargetDatabase.

Return type

oci.data_safe.models.TlsConfig