ComputeCapacityReservationSummary

class oci.core.models.ComputeCapacityReservationSummary(**kwargs)

Bases: object

Summary information for a compute capacity reservation.

Methods:

__init__(**kwargs)

Initializes a new ComputeCapacityReservationSummary object with values from keyword arguments.

Attributes:

availability_domain

[Required] Gets the availability_domain of this ComputeCapacityReservationSummary.

compartment_id

Gets the compartment_id of this ComputeCapacityReservationSummary.

defined_tags

Gets the defined_tags of this ComputeCapacityReservationSummary.

display_name

Gets the display_name of this ComputeCapacityReservationSummary.

freeform_tags

Gets the freeform_tags of this ComputeCapacityReservationSummary.

id

[Required] Gets the id of this ComputeCapacityReservationSummary.

is_default_reservation

Gets the is_default_reservation of this ComputeCapacityReservationSummary.

lifecycle_state

Gets the lifecycle_state of this ComputeCapacityReservationSummary.

reserved_instance_count

Gets the reserved_instance_count of this ComputeCapacityReservationSummary.

time_created

[Required] Gets the time_created of this ComputeCapacityReservationSummary.

used_instance_count

Gets the used_instance_count of this ComputeCapacityReservationSummary.

__init__(**kwargs)

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

Parameters
  • id (str) – The value to assign to the id property of this ComputeCapacityReservationSummary.

  • compartment_id (str) – The value to assign to the compartment_id property of this ComputeCapacityReservationSummary.

  • display_name (str) – The value to assign to the display_name property of this ComputeCapacityReservationSummary.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ComputeCapacityReservationSummary.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ComputeCapacityReservationSummary.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ComputeCapacityReservationSummary.

  • availability_domain (str) – The value to assign to the availability_domain property of this ComputeCapacityReservationSummary.

  • reserved_instance_count (int) – The value to assign to the reserved_instance_count property of this ComputeCapacityReservationSummary.

  • used_instance_count (int) – The value to assign to the used_instance_count property of this ComputeCapacityReservationSummary.

  • is_default_reservation (bool) – The value to assign to the is_default_reservation property of this ComputeCapacityReservationSummary.

  • time_created (datetime) – The value to assign to the time_created property of this ComputeCapacityReservationSummary.

property availability_domain

[Required] Gets the availability_domain of this ComputeCapacityReservationSummary. The availability domain of the capacity reservation.

Returns

The availability_domain of this ComputeCapacityReservationSummary.

Return type

str

property compartment_id

Gets the compartment_id of this ComputeCapacityReservationSummary. The OCID of the compartment.

Returns

The compartment_id of this ComputeCapacityReservationSummary.

Return type

str

property defined_tags

Gets the defined_tags of this ComputeCapacityReservationSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns

The defined_tags of this ComputeCapacityReservationSummary.

Return type

dict(str, dict(str, object))

property display_name

Gets the display_name of this ComputeCapacityReservationSummary. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns

The display_name of this ComputeCapacityReservationSummary.

Return type

str

property freeform_tags

Gets the freeform_tags of this ComputeCapacityReservationSummary. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns

The freeform_tags of this ComputeCapacityReservationSummary.

Return type

dict(str, str)

property id

[Required] Gets the id of this ComputeCapacityReservationSummary. The OCID of the instance reservation configuration.

Returns

The id of this ComputeCapacityReservationSummary.

Return type

str

property is_default_reservation

Gets the is_default_reservation of this ComputeCapacityReservationSummary. Whether this capacity reservation is the default. For more information, see Capacity Reservations.

Returns

The is_default_reservation of this ComputeCapacityReservationSummary.

Return type

bool

property lifecycle_state

Gets the lifecycle_state of this ComputeCapacityReservationSummary. The current state of the capacity reservation.

Returns

The lifecycle_state of this ComputeCapacityReservationSummary.

Return type

str

property reserved_instance_count

Gets the reserved_instance_count of this ComputeCapacityReservationSummary. The number of instances for which capacity will be held in this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

Returns

The reserved_instance_count of this ComputeCapacityReservationSummary.

Return type

int

property time_created

[Required] Gets the time_created of this ComputeCapacityReservationSummary. The date and time the capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

Returns

The time_created of this ComputeCapacityReservationSummary.

Return type

datetime

property used_instance_count

Gets the used_instance_count of this ComputeCapacityReservationSummary. The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

Returns

The used_instance_count of this ComputeCapacityReservationSummary.

Return type

int