TableLimits

class oci.nosql.models.TableLimits(**kwargs)

Bases: object

Throughput and storage limits configuration of a table.

Attributes

CAPACITY_MODE_ON_DEMAND A constant which can be used with the capacity_mode property of a TableLimits.
CAPACITY_MODE_PROVISIONED A constant which can be used with the capacity_mode property of a TableLimits.
capacity_mode Gets the capacity_mode of this TableLimits.
max_read_units [Required] Gets the max_read_units of this TableLimits.
max_storage_in_g_bs [Required] Gets the max_storage_in_g_bs of this TableLimits.
max_write_units [Required] Gets the max_write_units of this TableLimits.

Methods

__init__(**kwargs) Initializes a new TableLimits 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 TableLimits. 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 TableLimits. This constant has a value of “PROVISIONED”

__init__(**kwargs)

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

Parameters:
  • max_read_units (int) – The value to assign to the max_read_units property of this TableLimits.
  • max_write_units (int) – The value to assign to the max_write_units property of this TableLimits.
  • max_storage_in_g_bs (int) – The value to assign to the max_storage_in_g_bs property of this TableLimits.
  • capacity_mode (str) – The value to assign to the capacity_mode property of this TableLimits. 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’.
capacity_mode

Gets the capacity_mode of this TableLimits. The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.

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 TableLimits.
Return type:str
max_read_units

[Required] Gets the max_read_units of this TableLimits. Maximum sustained read throughput limit for the table.

Returns:The max_read_units of this TableLimits.
Return type:int
max_storage_in_g_bs

[Required] Gets the max_storage_in_g_bs of this TableLimits. Maximum size of storage used by the table.

Returns:The max_storage_in_g_bs of this TableLimits.
Return type:int
max_write_units

[Required] Gets the max_write_units of this TableLimits. Maximum sustained write throughput limit for the table.

Returns:The max_write_units of this TableLimits.
Return type:int