ComputeCapacityReservation

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

Bases: Reservation

Compute capacity reservations used for initial fleet provisioning.

Attributes:

TYPE_COMPUTE_CAPACITY_RESERVATION

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

capacity_reservation_ids

[Required] Gets the capacity_reservation_ids of this ComputeCapacityReservation.

type

[Required] Gets the type of this Reservation.

Methods:

__init__(**kwargs)

Initializes a new ComputeCapacityReservation 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 Reservation. This constant has a value of “COMPUTE_CAPACITY_RESERVATION”

__init__(**kwargs)

Initializes a new ComputeCapacityReservation 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 ComputeCapacityReservation. 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 ComputeCapacityReservation.

property capacity_reservation_ids

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

Returns

The capacity_reservation_ids of this ComputeCapacityReservation.

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 Reservation. Type of reservation. Discriminator for reservation subtypes.

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

Returns

The type of this Reservation.

Return type

str