CompositeShardSpaceRaftCluster

class oci.distributed_database.models.CompositeShardSpaceRaftCluster(**kwargs)

Bases: object

Raft clusters details for composite shard spaces.

Attributes:

RU_MODE_READ_ONLY

A constant which can be used with the ru_mode property of a CompositeShardSpaceRaftCluster.

RU_MODE_READ_WRITE

A constant which can be used with the ru_mode property of a CompositeShardSpaceRaftCluster.

databases

[Required] Gets the databases of this CompositeShardSpaceRaftCluster.

name

[Required] Gets the name of this CompositeShardSpaceRaftCluster.

replication_factor

[Required] Gets the replication_factor of this CompositeShardSpaceRaftCluster.

ru_mode

[Required] Gets the ru_mode of this CompositeShardSpaceRaftCluster.

witness_count

[Required] Gets the witness_count of this CompositeShardSpaceRaftCluster.

Methods:

__init__(**kwargs)

Initializes a new CompositeShardSpaceRaftCluster 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 CompositeShardSpaceRaftCluster. 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 CompositeShardSpaceRaftCluster. This constant has a value of “READ_WRITE”

__init__(**kwargs)

Initializes a new CompositeShardSpaceRaftCluster 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 CompositeShardSpaceRaftCluster.

  • replication_factor (int) – The value to assign to the replication_factor property of this CompositeShardSpaceRaftCluster.

  • witness_count (int) – The value to assign to the witness_count property of this CompositeShardSpaceRaftCluster.

  • ru_mode (str) – The value to assign to the ru_mode property of this CompositeShardSpaceRaftCluster. Allowed values for this property are: “READ_ONLY”, “READ_WRITE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • databases (list[oci.distributed_database.models.DistributedDatabaseShardDatabase]) – The value to assign to the databases property of this CompositeShardSpaceRaftCluster.

property databases

[Required] Gets the databases of this CompositeShardSpaceRaftCluster. The details of databases associated with the composite shard space raft cluster.

Returns

The databases of this CompositeShardSpaceRaftCluster.

Return type

list[oci.distributed_database.models.DistributedDatabaseShardDatabase]

property name

[Required] Gets the name of this CompositeShardSpaceRaftCluster. 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 CompositeShardSpaceRaftCluster.

Return type

str

property replication_factor

[Required] Gets the replication_factor of this CompositeShardSpaceRaftCluster. Replication factor associated with the raft cluster.

Returns

The replication_factor of this CompositeShardSpaceRaftCluster.

Return type

int

property ru_mode

[Required] Gets the ru_mode of this CompositeShardSpaceRaftCluster. Replication factor associated with the raft cluster.

Allowed values for this property are: “READ_ONLY”, “READ_WRITE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The ru_mode of this CompositeShardSpaceRaftCluster.

Return type

str

property witness_count

[Required] Gets the witness_count of this CompositeShardSpaceRaftCluster. Witnesses RU count associated with the raft cluster.

Returns

The witness_count of this CompositeShardSpaceRaftCluster.

Return type

int