InstanceReservationShapeConfigDetails

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

Bases: object

The shape configuration requested when launching instances in a compute capacity reservation.

If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

Methods

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

Attributes

memory_in_gbs Gets the memory_in_gbs of this InstanceReservationShapeConfigDetails.
ocpus Gets the ocpus of this InstanceReservationShapeConfigDetails.
__init__(**kwargs)

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

Parameters:
  • ocpus (float) – The value to assign to the ocpus property of this InstanceReservationShapeConfigDetails.
  • memory_in_gbs (float) – The value to assign to the memory_in_gbs property of this InstanceReservationShapeConfigDetails.
memory_in_gbs

Gets the memory_in_gbs of this InstanceReservationShapeConfigDetails. The total amount of memory available to the instance, in gigabytes.

Returns:The memory_in_gbs of this InstanceReservationShapeConfigDetails.
Return type:float
ocpus

Gets the ocpus of this InstanceReservationShapeConfigDetails. The total number of OCPUs available to the instance.

Returns:The ocpus of this InstanceReservationShapeConfigDetails.
Return type:float