CreateDrPlanDetails

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

Bases: object

The details for creating a DR plan.

Attributes

TYPE_FAILOVER A constant which can be used with the type property of a CreateDrPlanDetails.
TYPE_START_DRILL A constant which can be used with the type property of a CreateDrPlanDetails.
TYPE_STOP_DRILL A constant which can be used with the type property of a CreateDrPlanDetails.
TYPE_SWITCHOVER A constant which can be used with the type property of a CreateDrPlanDetails.
defined_tags Gets the defined_tags of this CreateDrPlanDetails.
display_name [Required] Gets the display_name of this CreateDrPlanDetails.
dr_protection_group_id [Required] Gets the dr_protection_group_id of this CreateDrPlanDetails.
freeform_tags Gets the freeform_tags of this CreateDrPlanDetails.
type [Required] Gets the type of this CreateDrPlanDetails.

Methods

__init__(**kwargs) Initializes a new CreateDrPlanDetails object with values from keyword arguments.
TYPE_FAILOVER = 'FAILOVER'

A constant which can be used with the type property of a CreateDrPlanDetails. This constant has a value of “FAILOVER”

TYPE_START_DRILL = 'START_DRILL'

A constant which can be used with the type property of a CreateDrPlanDetails. This constant has a value of “START_DRILL”

TYPE_STOP_DRILL = 'STOP_DRILL'

A constant which can be used with the type property of a CreateDrPlanDetails. This constant has a value of “STOP_DRILL”

TYPE_SWITCHOVER = 'SWITCHOVER'

A constant which can be used with the type property of a CreateDrPlanDetails. This constant has a value of “SWITCHOVER”

__init__(**kwargs)

Initializes a new CreateDrPlanDetails 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 CreateDrPlanDetails.
  • type (str) – The value to assign to the type property of this CreateDrPlanDetails. Allowed values for this property are: “SWITCHOVER”, “FAILOVER”, “START_DRILL”, “STOP_DRILL”
  • dr_protection_group_id (str) – The value to assign to the dr_protection_group_id property of this CreateDrPlanDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateDrPlanDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateDrPlanDetails.
defined_tags

Gets the defined_tags of this CreateDrPlanDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this CreateDrPlanDetails.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this CreateDrPlanDetails. The display name of the DR plan being created.

Example: EBS Switchover PHX to IAD

Returns:The display_name of this CreateDrPlanDetails.
Return type:str
dr_protection_group_id

[Required] Gets the dr_protection_group_id of this CreateDrPlanDetails. The OCID of the DR protection group to which this DR plan belongs.

Example: ocid1.drprotectiongroup.oc1..uniqueID

Returns:The dr_protection_group_id of this CreateDrPlanDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateDrPlanDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this CreateDrPlanDetails.
Return type:dict(str, str)
type

[Required] Gets the type of this CreateDrPlanDetails. The type of DR plan to be created.

Allowed values for this property are: “SWITCHOVER”, “FAILOVER”, “START_DRILL”, “STOP_DRILL”

Returns:The type of this CreateDrPlanDetails.
Return type:str