InstanceReservationConfig

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

Bases: object

Data that defines the capacity configuration.

Methods

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

Attributes

cluster_config Gets the cluster_config of this InstanceReservationConfig.
cluster_placement_group_id Gets the cluster_placement_group_id of this InstanceReservationConfig.
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.
  • cluster_config (oci.core.models.ClusterConfigDetails) – The value to assign to the cluster_config 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.
  • cluster_placement_group_id (str) – The value to assign to the cluster_placement_group_id property of this InstanceReservationConfig.
cluster_config

Gets the cluster_config of this InstanceReservationConfig.

Returns:The cluster_config of this InstanceReservationConfig.
Return type:oci.core.models.ClusterConfigDetails
cluster_placement_group_id

Gets the cluster_placement_group_id of this InstanceReservationConfig. The OCID of the cluster placement group for this instance reservation capacity configuration.

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

Gets the fault_domain of this InstanceReservationConfig. The fault domain of this capacity configuration. If a value is not supplied, this capacity 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 total number of instances that can be launched from the capacity 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 capacity configuration.

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