ChangeRoleToStandaloneDetails

class oci.psql.models.ChangeRoleToStandaloneDetails(**kwargs)

Bases: object

The information required to change a replica database system’s role to standalone.

Attributes

CHANGE_MODE_IMMEDIATELY A constant which can be used with the change_mode property of a ChangeRoleToStandaloneDetails.
CHANGE_MODE_REPLAY_PENDING_UPDATES A constant which can be used with the change_mode property of a ChangeRoleToStandaloneDetails.
change_mode [Required] Gets the change_mode of this ChangeRoleToStandaloneDetails.

Methods

__init__(**kwargs) Initializes a new ChangeRoleToStandaloneDetails object with values from keyword arguments.
CHANGE_MODE_IMMEDIATELY = 'IMMEDIATELY'

A constant which can be used with the change_mode property of a ChangeRoleToStandaloneDetails. This constant has a value of “IMMEDIATELY”

CHANGE_MODE_REPLAY_PENDING_UPDATES = 'REPLAY_PENDING_UPDATES'

A constant which can be used with the change_mode property of a ChangeRoleToStandaloneDetails. This constant has a value of “REPLAY_PENDING_UPDATES”

__init__(**kwargs)

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

Parameters:change_mode (str) – The value to assign to the change_mode property of this ChangeRoleToStandaloneDetails. Allowed values for this property are: “REPLAY_PENDING_UPDATES”, “IMMEDIATELY”
change_mode

[Required] Gets the change_mode of this ChangeRoleToStandaloneDetails. Type of the mode choose during change role operation. REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition.

Allowed values for this property are: “REPLAY_PENDING_UPDATES”, “IMMEDIATELY”

Returns:The change_mode of this ChangeRoleToStandaloneDetails.
Return type:str