CreateAutonomousSystemRaftClusterDetails¶
-
class
oci.distributed_database_v26.models.CreateAutonomousSystemRaftClusterDetails(**kwargs)¶ Bases:
objectDetails required to create system raft cluster.
Attributes
RU_MODE_READ_ONLYA constant which can be used with the ru_mode property of a CreateAutonomousSystemRaftClusterDetails. RU_MODE_READ_WRITEA constant which can be used with the ru_mode property of a CreateAutonomousSystemRaftClusterDetails. databases[Required] Gets the databases of this CreateAutonomousSystemRaftClusterDetails. name[Required] Gets the name of this CreateAutonomousSystemRaftClusterDetails. replication_factor[Required] Gets the replication_factor of this CreateAutonomousSystemRaftClusterDetails. ru_mode[Required] Gets the ru_mode of this CreateAutonomousSystemRaftClusterDetails. witness_count[Required] Gets the witness_count of this CreateAutonomousSystemRaftClusterDetails. Methods
__init__(**kwargs)Initializes a new CreateAutonomousSystemRaftClusterDetails object with values from keyword arguments. -
RU_MODE_READ_ONLY= 'READ_ONLY'¶ A constant which can be used with the ru_mode property of a CreateAutonomousSystemRaftClusterDetails. This constant has a value of “READ_ONLY”
-
RU_MODE_READ_WRITE= 'READ_WRITE'¶ A constant which can be used with the ru_mode property of a CreateAutonomousSystemRaftClusterDetails. This constant has a value of “READ_WRITE”
-
__init__(**kwargs)¶ Initializes a new CreateAutonomousSystemRaftClusterDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - name (str) – The value to assign to the name property of this CreateAutonomousSystemRaftClusterDetails.
- replication_factor (int) – The value to assign to the replication_factor property of this CreateAutonomousSystemRaftClusterDetails.
- witness_count (int) – The value to assign to the witness_count property of this CreateAutonomousSystemRaftClusterDetails.
- ru_mode (str) – The value to assign to the ru_mode property of this CreateAutonomousSystemRaftClusterDetails. Allowed values for this property are: “READ_ONLY”, “READ_WRITE”
- databases (list[oci.distributed_database_v26.models.CreateDistributedAutonomousDatabaseShardDatabaseDetails]) – The value to assign to the databases property of this CreateAutonomousSystemRaftClusterDetails.
-
databases¶ [Required] Gets the databases of this CreateAutonomousSystemRaftClusterDetails. Details of the databases associated with the system raft cluster.
Returns: The databases of this CreateAutonomousSystemRaftClusterDetails. Return type: list[oci.distributed_database_v26.models.CreateDistributedAutonomousDatabaseShardDatabaseDetails]
-
name¶ [Required] Gets the name of this CreateAutonomousSystemRaftClusterDetails. The name of raft cluster. It must start with a letter and contain only letters, digits, and underscores. Maximum length is 40 characters.
Returns: The name of this CreateAutonomousSystemRaftClusterDetails. Return type: str
-
replication_factor¶ [Required] Gets the replication_factor of this CreateAutonomousSystemRaftClusterDetails. Replication factor associated with the raft cluster.
Returns: The replication_factor of this CreateAutonomousSystemRaftClusterDetails. Return type: int
-
ru_mode¶ [Required] Gets the ru_mode of this CreateAutonomousSystemRaftClusterDetails. Replication factor associated with the raft cluster.
Allowed values for this property are: “READ_ONLY”, “READ_WRITE”
Returns: The ru_mode of this CreateAutonomousSystemRaftClusterDetails. Return type: str
-
witness_count¶ [Required] Gets the witness_count of this CreateAutonomousSystemRaftClusterDetails. Witnesses RU count associated with the raft cluster.
Returns: The witness_count of this CreateAutonomousSystemRaftClusterDetails. Return type: int
-