ShapeOcpuOptions

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

Bases: object

For a flexible shape, the number of OCPUs available for container instances that use this shape.

Methods:

__init__(**kwargs)

Initializes a new ShapeOcpuOptions object with values from keyword arguments.

Attributes:

max_ocpus

[Required] Gets the max_ocpus of this ShapeOcpuOptions.

min_ocpus

[Required] Gets the min_ocpus of this ShapeOcpuOptions.

__init__(**kwargs)

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

Parameters
  • max_ocpus (float) – The value to assign to the max_ocpus property of this ShapeOcpuOptions.

  • min_ocpus (float) – The value to assign to the min_ocpus property of this ShapeOcpuOptions.

property max_ocpus

[Required] Gets the max_ocpus of this ShapeOcpuOptions. The maximum number of OCPUs.

Returns

The max_ocpus of this ShapeOcpuOptions.

Return type

float

property min_ocpus

[Required] Gets the min_ocpus of this ShapeOcpuOptions. The minimum number of OCPUs.

Returns

The min_ocpus of this ShapeOcpuOptions.

Return type

float