CreateAutomaticDrConfigurationMemberDatabaseDetails

class oci.disaster_recovery.models.CreateAutomaticDrConfigurationMemberDatabaseDetails(**kwargs)

Bases: CreateAutomaticDrConfigurationMemberDetails

Create properties for Database member in an Automatic DR configuration.

Attributes:

MEMBER_TYPE_AUTONOMOUS_CONTAINER_DATABASE

A constant which can be used with the member_type property of a CreateAutomaticDrConfigurationMemberDetails.

MEMBER_TYPE_AUTONOMOUS_DATABASE

A constant which can be used with the member_type property of a CreateAutomaticDrConfigurationMemberDetails.

MEMBER_TYPE_DATABASE

A constant which can be used with the member_type property of a CreateAutomaticDrConfigurationMemberDetails.

is_auto_failover_enabled

Gets the is_auto_failover_enabled of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

is_auto_switchover_enabled

Gets the is_auto_switchover_enabled of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

member_id

[Required] Gets the member_id of this CreateAutomaticDrConfigurationMemberDetails.

member_type

[Required] Gets the member_type of this CreateAutomaticDrConfigurationMemberDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateAutomaticDrConfigurationMemberDatabaseDetails object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

MEMBER_TYPE_AUTONOMOUS_CONTAINER_DATABASE = 'AUTONOMOUS_CONTAINER_DATABASE'

A constant which can be used with the member_type property of a CreateAutomaticDrConfigurationMemberDetails. This constant has a value of “AUTONOMOUS_CONTAINER_DATABASE”

MEMBER_TYPE_AUTONOMOUS_DATABASE = 'AUTONOMOUS_DATABASE'

A constant which can be used with the member_type property of a CreateAutomaticDrConfigurationMemberDetails. This constant has a value of “AUTONOMOUS_DATABASE”

MEMBER_TYPE_DATABASE = 'DATABASE'

A constant which can be used with the member_type property of a CreateAutomaticDrConfigurationMemberDetails. This constant has a value of “DATABASE”

__init__(**kwargs)

Initializes a new CreateAutomaticDrConfigurationMemberDatabaseDetails object with values from keyword arguments. The default value of the member_type attribute of this class is DATABASE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • member_id (str) – The value to assign to the member_id property of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

  • member_type (str) – The value to assign to the member_type property of this CreateAutomaticDrConfigurationMemberDatabaseDetails. Allowed values for this property are: “DATABASE”, “AUTONOMOUS_DATABASE”, “AUTONOMOUS_CONTAINER_DATABASE”

  • is_auto_switchover_enabled (bool) – The value to assign to the is_auto_switchover_enabled property of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

  • is_auto_failover_enabled (bool) – The value to assign to the is_auto_failover_enabled property of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property is_auto_failover_enabled

Gets the is_auto_failover_enabled of this CreateAutomaticDrConfigurationMemberDatabaseDetails. A flag indicating if the automatic failover should be enabled for the Database member in the Automatic DR configuration.

Example: false

Returns

The is_auto_failover_enabled of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

Return type

bool

property is_auto_switchover_enabled

Gets the is_auto_switchover_enabled of this CreateAutomaticDrConfigurationMemberDatabaseDetails. A flag indicating if the automatic switchover should be enabled for the Database member in the Automatic DR configuration.

Example: false

Returns

The is_auto_switchover_enabled of this CreateAutomaticDrConfigurationMemberDatabaseDetails.

Return type

bool

property member_id

[Required] Gets the member_id of this CreateAutomaticDrConfigurationMemberDetails. The OCID of the member.

Example: ocid1.database.oc1..uniqueID

Returns

The member_id of this CreateAutomaticDrConfigurationMemberDetails.

Return type

str

property member_type

[Required] Gets the member_type of this CreateAutomaticDrConfigurationMemberDetails. The type of the member.

Allowed values for this property are: “DATABASE”, “AUTONOMOUS_DATABASE”, “AUTONOMOUS_CONTAINER_DATABASE”

Returns

The member_type of this CreateAutomaticDrConfigurationMemberDetails.

Return type

str