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.

Attributes

RESOURCE_MANAGEMENT_DYNAMIC A constant which can be used with the resource_management property of a InstanceReservationShapeConfigDetails.
RESOURCE_MANAGEMENT_STATIC A constant which can be used with the resource_management property of a InstanceReservationShapeConfigDetails.
memory_in_gbs Gets the memory_in_gbs of this InstanceReservationShapeConfigDetails.
ocpus Gets the ocpus of this InstanceReservationShapeConfigDetails.
resource_management Gets the resource_management of this InstanceReservationShapeConfigDetails.

Methods

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

A constant which can be used with the resource_management property of a InstanceReservationShapeConfigDetails. This constant has a value of “DYNAMIC”

RESOURCE_MANAGEMENT_STATIC = 'STATIC'

A constant which can be used with the resource_management property of a InstanceReservationShapeConfigDetails. This constant has a value of “STATIC”

__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.
  • resource_management (str) – The value to assign to the resource_management property of this InstanceReservationShapeConfigDetails. Allowed values for this property are: “DYNAMIC”, “STATIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
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
resource_management

Gets the resource_management of this InstanceReservationShapeConfigDetails. This field is reserved for internal use.

Allowed values for this property are: “DYNAMIC”, “STATIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The resource_management of this InstanceReservationShapeConfigDetails.
Return type:str