Capacity

class oci.analytics.models.Capacity(**kwargs)

Bases: object

Service instance capacity metadata (e.g.: OLPU count, number of users, …etc…).

Attributes

CAPACITY_TYPE_OLPU_COUNT A constant which can be used with the capacity_type property of a Capacity.
CAPACITY_TYPE_USER_COUNT A constant which can be used with the capacity_type property of a Capacity.
capacity_type [Required] Gets the capacity_type of this Capacity.
capacity_value [Required] Gets the capacity_value of this Capacity.

Methods

__init__(**kwargs) Initializes a new Capacity object with values from keyword arguments.
CAPACITY_TYPE_OLPU_COUNT = 'OLPU_COUNT'

A constant which can be used with the capacity_type property of a Capacity. This constant has a value of “OLPU_COUNT”

CAPACITY_TYPE_USER_COUNT = 'USER_COUNT'

A constant which can be used with the capacity_type property of a Capacity. This constant has a value of “USER_COUNT”

__init__(**kwargs)

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

Parameters:
  • capacity_type (str) – The value to assign to the capacity_type property of this Capacity. Allowed values for this property are: “OLPU_COUNT”, “USER_COUNT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • capacity_value (int) – The value to assign to the capacity_value property of this Capacity.
capacity_type

[Required] Gets the capacity_type of this Capacity. The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT

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

Returns:The capacity_type of this Capacity.
Return type:str
capacity_value

[Required] Gets the capacity_value of this Capacity. The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance.

Returns:The capacity_value of this Capacity.
Return type:int