Replica¶
- class oci.nosql.models.Replica(**kwargs)¶
Bases:
objectInformation about a MR table replica
Attributes:
A constant which can be used with the capacity_mode property of a Replica.
A constant which can be used with the capacity_mode property of a Replica.
A constant which can be used with the lifecycle_state property of a Replica.
A constant which can be used with the lifecycle_state property of a Replica.
A constant which can be used with the lifecycle_state property of a Replica.
A constant which can be used with the lifecycle_state property of a Replica.
Gets the capacity_mode of this Replica.
Gets the lifecycle_details of this Replica.
Gets the lifecycle_state of this Replica.
Gets the max_write_units of this Replica.
Gets the region of this Replica.
Gets the table_id of this Replica.
Methods:
__init__(**kwargs)Initializes a new Replica object with values from keyword arguments.
- CAPACITY_MODE_ON_DEMAND = 'ON_DEMAND'¶
A constant which can be used with the capacity_mode property of a Replica. This constant has a value of “ON_DEMAND”
- CAPACITY_MODE_PROVISIONED = 'PROVISIONED'¶
A constant which can be used with the capacity_mode property of a Replica. This constant has a value of “PROVISIONED”
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a Replica. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_CREATING = 'CREATING'¶
A constant which can be used with the lifecycle_state property of a Replica. This constant has a value of “CREATING”
- LIFECYCLE_STATE_DELETING = 'DELETING'¶
A constant which can be used with the lifecycle_state property of a Replica. This constant has a value of “DELETING”
- LIFECYCLE_STATE_UPDATING = 'UPDATING'¶
A constant which can be used with the lifecycle_state property of a Replica. This constant has a value of “UPDATING”
- __init__(**kwargs)¶
Initializes a new Replica object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
region (str) – The value to assign to the region property of this Replica.
table_id (str) – The value to assign to the table_id property of this Replica.
max_write_units (int) – The value to assign to the max_write_units property of this Replica.
capacity_mode (str) – The value to assign to the capacity_mode property of this Replica. Allowed values for this property are: “PROVISIONED”, “ON_DEMAND”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this Replica. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
lifecycle_details (str) – The value to assign to the lifecycle_details property of this Replica.
- property capacity_mode¶
Gets the capacity_mode of this Replica. The capacity mode of the replica.
Allowed values for this property are: “PROVISIONED”, “ON_DEMAND”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The capacity_mode of this Replica.
- Return type
str
- property lifecycle_details¶
Gets the lifecycle_details of this Replica. A message describing the current state in more detail.
- Returns
The lifecycle_details of this Replica.
- Return type
str
- property lifecycle_state¶
Gets the lifecycle_state of this Replica. The state of the replica.
Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this Replica.
- Return type
str
- property max_write_units¶
Gets the max_write_units of this Replica. Maximum sustained write throughput limit of the replica table.
- Returns
The max_write_units of this Replica.
- Return type
int
- property region¶
Gets the region of this Replica. A customer-facing region identifier
- Returns
The region of this Replica.
- Return type
str
- property table_id¶
Gets the table_id of this Replica. The OCID of the replica table
- Returns
The table_id of this Replica.
- Return type
str