class documentation

class ReservationPolicy__Policy(Enum): (source)

View In Hierarchy

Undocumented

Constant __PROTO_DESCRIPTOR__ Protobuf enum descriptor from the registry.
Constant __PROTO_FULL_NAME__ Fully qualified protobuf enum name.
Constant AUTO Will try to launch instance in any reservation_ids if provided.
Constant FORBID The instance is launched only using on-demand (PAYG) capacity. No attempt is made to find or use a Capacity Block. It's an error to provide reservation_ids with policy = FORBID
Constant STRICT Will try to launch the instance in Capacity Blocks from reservation_ids if provided.

Inherited from Enum:

Class Method get_descriptor Return the protobuf EnumDescriptor for this enum.
Constant __PB2_DESCRIPTOR__ Alias for code that expects a protobuf descriptor.
Constant __REGISTRY__ Registry for the enum and its descriptor.
Class Method _missing_ Represent unknown open-enum numbers without losing their value.
__PROTO_DESCRIPTOR__ = (source)

Protobuf enum descriptor from the registry.

Value
REGISTRY.enum_descriptor('nebius.compute.v1.ReservationPolicy.Policy')
__PROTO_FULL_NAME__: str = (source)

Fully qualified protobuf enum name.

Value
'nebius.compute.v1.ReservationPolicy.Policy'

  1. Will try to launch instance in any reservation_ids if provided.
  2. Will try to launch instance in any of the available capacity block.
  3. Will try to launch instance in PAYG if 1 & 2 are not satisfied.

Value
0

The instance is launched only using on-demand (PAYG) capacity. No attempt is made to find or use a Capacity Block. It's an error to provide reservation_ids with policy = FORBID

Value
1

  1. Will try to launch the instance in Capacity Blocks from reservation_ids if provided.
  2. If reservation_ids are not provided will try to launch instance in suitable & available Capacity Block.
  3. Fail otherwise.

Value
2