CreateComputeCapacityReservationDetails

class oci.batch.models.CreateComputeCapacityReservationDetails(**kwargs)

Bases: CreateReservationDetails

Compute capacity reservations supplied for initial fleet provisioning.

Attributes:

TYPE_COMPUTE_CAPACITY_RESERVATION

A constant which can be used with the type property of a CreateReservationDetails.

capacity_reservation_ids

[Required] Gets the capacity_reservation_ids of this CreateComputeCapacityReservationDetails.

type

[Required] Gets the type of this CreateReservationDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateComputeCapacityReservationDetails object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

TYPE_COMPUTE_CAPACITY_RESERVATION = 'COMPUTE_CAPACITY_RESERVATION'

A constant which can be used with the type property of a CreateReservationDetails. This constant has a value of “COMPUTE_CAPACITY_RESERVATION”

__init__(**kwargs)

Initializes a new CreateComputeCapacityReservationDetails object with values from keyword arguments. The default value of the type attribute of this class is COMPUTE_CAPACITY_RESERVATION and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this CreateComputeCapacityReservationDetails. Allowed values for this property are: “COMPUTE_CAPACITY_RESERVATION”

  • capacity_reservation_ids (list[str]) – The value to assign to the capacity_reservation_ids property of this CreateComputeCapacityReservationDetails.

property capacity_reservation_ids

[Required] Gets the capacity_reservation_ids of this CreateComputeCapacityReservationDetails. Compute capacity reservation OCIDs used for initial fleet provisioning.

Returns

The capacity_reservation_ids of this CreateComputeCapacityReservationDetails.

Return type

list[str]

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property type

[Required] Gets the type of this CreateReservationDetails. Type of reservation. Discriminator for reservation subtypes.

Allowed values for this property are: “COMPUTE_CAPACITY_RESERVATION”

Returns

The type of this CreateReservationDetails.

Return type

str