InstanceReservationConfig

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

Bases: object

Data that defines the instance reservation configuration.

Methods

__init__(**kwargs) Initializes a new InstanceReservationConfig object with values from keyword arguments.

Attributes

fault_domain Gets the fault_domain of this InstanceReservationConfig.
instance_shape [Required] Gets the instance_shape of this InstanceReservationConfig.
instance_shape_config Gets the instance_shape_config of this InstanceReservationConfig.
reserved_count [Required] Gets the reserved_count of this InstanceReservationConfig.
used_count [Required] Gets the used_count of this InstanceReservationConfig.
__init__(**kwargs)

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

Parameters:
  • fault_domain (str) – The value to assign to the fault_domain property of this InstanceReservationConfig.
  • instance_shape (str) – The value to assign to the instance_shape property of this InstanceReservationConfig.
  • instance_shape_config (oci.core.models.InstanceReservationShapeConfigDetails) – The value to assign to the instance_shape_config property of this InstanceReservationConfig.
  • reserved_count (int) – The value to assign to the reserved_count property of this InstanceReservationConfig.
  • used_count (int) – The value to assign to the used_count property of this InstanceReservationConfig.
fault_domain

Gets the fault_domain of this InstanceReservationConfig. The fault domain of this reservation configuration. If a value is not supplied, this reservation configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.

Returns:The fault_domain of this InstanceReservationConfig.
Return type:str
instance_shape

[Required] Gets the instance_shape of this InstanceReservationConfig. The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.

Returns:The instance_shape of this InstanceReservationConfig.
Return type:str
instance_shape_config

Gets the instance_shape_config of this InstanceReservationConfig.

Returns:The instance_shape_config of this InstanceReservationConfig.
Return type:oci.core.models.InstanceReservationShapeConfigDetails
reserved_count

[Required] Gets the reserved_count of this InstanceReservationConfig. The amount of capacity reserved in this configuration.

Returns:The reserved_count of this InstanceReservationConfig.
Return type:int
used_count

[Required] Gets the used_count of this InstanceReservationConfig. The amount of capacity in use out of the total capacity reserved in this reservation configuration.

Returns:The used_count of this InstanceReservationConfig.
Return type:int