ChangeDataguardRoleDetails

class oci.database.models.ChangeDataguardRoleDetails(**kwargs)

Bases: object

The configuration details for change Autonomous Container Database Dataguard role

Attributes

CONNECTION_STRINGS_TYPE_PRIMARY_SERVICES A constant which can be used with the connection_strings_type property of a ChangeDataguardRoleDetails.
CONNECTION_STRINGS_TYPE_SNAPSHOT_SERVICES A constant which can be used with the connection_strings_type property of a ChangeDataguardRoleDetails.
ROLE_BACKUP_COPY A constant which can be used with the role property of a ChangeDataguardRoleDetails.
ROLE_DISABLED_STANDBY A constant which can be used with the role property of a ChangeDataguardRoleDetails.
ROLE_PRIMARY A constant which can be used with the role property of a ChangeDataguardRoleDetails.
ROLE_SNAPSHOT_STANDBY A constant which can be used with the role property of a ChangeDataguardRoleDetails.
ROLE_STANDBY A constant which can be used with the role property of a ChangeDataguardRoleDetails.
autonomous_container_database_dataguard_association_id [Required] Gets the autonomous_container_database_dataguard_association_id of this ChangeDataguardRoleDetails.
connection_strings_type Gets the connection_strings_type of this ChangeDataguardRoleDetails.
role [Required] Gets the role of this ChangeDataguardRoleDetails.

Methods

__init__(**kwargs) Initializes a new ChangeDataguardRoleDetails object with values from keyword arguments.
CONNECTION_STRINGS_TYPE_PRIMARY_SERVICES = 'PRIMARY_SERVICES'

A constant which can be used with the connection_strings_type property of a ChangeDataguardRoleDetails. This constant has a value of “PRIMARY_SERVICES”

CONNECTION_STRINGS_TYPE_SNAPSHOT_SERVICES = 'SNAPSHOT_SERVICES'

A constant which can be used with the connection_strings_type property of a ChangeDataguardRoleDetails. This constant has a value of “SNAPSHOT_SERVICES”

ROLE_BACKUP_COPY = 'BACKUP_COPY'

A constant which can be used with the role property of a ChangeDataguardRoleDetails. This constant has a value of “BACKUP_COPY”

ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'

A constant which can be used with the role property of a ChangeDataguardRoleDetails. This constant has a value of “DISABLED_STANDBY”

ROLE_PRIMARY = 'PRIMARY'

A constant which can be used with the role property of a ChangeDataguardRoleDetails. This constant has a value of “PRIMARY”

ROLE_SNAPSHOT_STANDBY = 'SNAPSHOT_STANDBY'

A constant which can be used with the role property of a ChangeDataguardRoleDetails. This constant has a value of “SNAPSHOT_STANDBY”

ROLE_STANDBY = 'STANDBY'

A constant which can be used with the role property of a ChangeDataguardRoleDetails. This constant has a value of “STANDBY”

__init__(**kwargs)

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

Parameters:
  • role (str) – The value to assign to the role property of this ChangeDataguardRoleDetails. Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, “BACKUP_COPY”, “SNAPSHOT_STANDBY”
  • autonomous_container_database_dataguard_association_id (str) – The value to assign to the autonomous_container_database_dataguard_association_id property of this ChangeDataguardRoleDetails.
  • connection_strings_type (str) – The value to assign to the connection_strings_type property of this ChangeDataguardRoleDetails. Allowed values for this property are: “SNAPSHOT_SERVICES”, “PRIMARY_SERVICES”
autonomous_container_database_dataguard_association_id

[Required] Gets the autonomous_container_database_dataguard_association_id of this ChangeDataguardRoleDetails. The Autonomous Container Database-Autonomous Data Guard association OCID.

Returns:The autonomous_container_database_dataguard_association_id of this ChangeDataguardRoleDetails.
Return type:str
connection_strings_type

Gets the connection_strings_type of this ChangeDataguardRoleDetails. type of connection strings when converting database to snapshot mode

Allowed values for this property are: “SNAPSHOT_SERVICES”, “PRIMARY_SERVICES”

Returns:The connection_strings_type of this ChangeDataguardRoleDetails.
Return type:str
role

[Required] Gets the role of this ChangeDataguardRoleDetails. The Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled.

Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, “BACKUP_COPY”, “SNAPSHOT_STANDBY”

Returns:The role of this ChangeDataguardRoleDetails.
Return type:str