ResourceAvailability

class oci.limits.models.ResourceAvailability(**kwargs)

Bases: object

The availability of a given resource limit, based on the usage, tenant service limits, and quotas set for the tenancy. Note: We cannot guarantee this data for all the limits. In such cases, these fields will be empty.

Methods:

__init__(**kwargs)

Initializes a new ResourceAvailability object with values from keyword arguments.

Attributes:

available

Gets the available of this ResourceAvailability.

effective_quota_value

Gets the effective_quota_value of this ResourceAvailability.

fractional_availability

Gets the fractional_availability of this ResourceAvailability.

fractional_usage

Gets the fractional_usage of this ResourceAvailability.

used

Gets the used of this ResourceAvailability.

__init__(**kwargs)

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

Parameters
  • used (int) – The value to assign to the used property of this ResourceAvailability.

  • available (int) – The value to assign to the available property of this ResourceAvailability.

  • fractional_usage (float) – The value to assign to the fractional_usage property of this ResourceAvailability.

  • fractional_availability (float) – The value to assign to the fractional_availability property of this ResourceAvailability.

  • effective_quota_value (float) – The value to assign to the effective_quota_value property of this ResourceAvailability.

property available

Gets the available of this ResourceAvailability. The count of available resources. To support resources with fractional counts, the field rounds down to the nearest integer.

Returns

The available of this ResourceAvailability.

Return type

int

property effective_quota_value

Gets the effective_quota_value of this ResourceAvailability. The effective quota value for the given compartment. This field is only present if there is a current quota policy affecting the current resource in the target region or availability domain.

Returns

The effective_quota_value of this ResourceAvailability.

Return type

float

property fractional_availability

Gets the fractional_availability of this ResourceAvailability. The most accurate count of available resources.

Returns

The fractional_availability of this ResourceAvailability.

Return type

float

property fractional_usage

Gets the fractional_usage of this ResourceAvailability. The current most accurate usage in the given compartment.

Returns

The fractional_usage of this ResourceAvailability.

Return type

float

property used

Gets the used of this ResourceAvailability. The current usage in the given compartment. To support resources with fractional counts, the field rounds up to the nearest integer.

Returns

The used of this ResourceAvailability.

Return type

int