AdditionalComputeCapabilityDetails

class oci.cluster_placement_groups.models.AdditionalComputeCapabilityDetails(**kwargs)

Bases: AdditionalCapabilityDetails

Additional details about the COMPUTE capability.

Attributes:

SERVICE_TYPE_COMPUTE

A constant which can be used with the service_type property of a AdditionalCapabilityDetails.

count

Gets the count of this AdditionalComputeCapabilityDetails.

memory_in_gbs

Gets the memory_in_gbs of this AdditionalComputeCapabilityDetails.

nvmes

Gets the nvmes of this AdditionalComputeCapabilityDetails.

ocpus

Gets the ocpus of this AdditionalComputeCapabilityDetails.

service_type

[Required] Gets the service_type of this AdditionalCapabilityDetails.

Methods:

__init__(**kwargs)

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

SERVICE_TYPE_COMPUTE = 'COMPUTE'

A constant which can be used with the service_type property of a AdditionalCapabilityDetails. This constant has a value of “COMPUTE”

__init__(**kwargs)

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

Parameters
  • service_type (str) – The value to assign to the service_type property of this AdditionalComputeCapabilityDetails. Allowed values for this property are: “COMPUTE”

  • memory_in_gbs (float) – The value to assign to the memory_in_gbs property of this AdditionalComputeCapabilityDetails.

  • ocpus (float) – The value to assign to the ocpus property of this AdditionalComputeCapabilityDetails.

  • nvmes (int) – The value to assign to the nvmes property of this AdditionalComputeCapabilityDetails.

  • count (int) – The value to assign to the count property of this AdditionalComputeCapabilityDetails.

property count

Gets the count of this AdditionalComputeCapabilityDetails. The number of instances or size of the resource.

Returns

The count of this AdditionalComputeCapabilityDetails.

Return type

int

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 memory_in_gbs

Gets the memory_in_gbs of this AdditionalComputeCapabilityDetails. The amount of memory (in GBs) needed in the instance.

Returns

The memory_in_gbs of this AdditionalComputeCapabilityDetails.

Return type

float

property nvmes

Gets the nvmes of this AdditionalComputeCapabilityDetails. The number of NVMe drives to use for storage.

Returns

The nvmes of this AdditionalComputeCapabilityDetails.

Return type

int

property ocpus

Gets the ocpus of this AdditionalComputeCapabilityDetails. The number of OCPUs needed in the instance.

Returns

The ocpus of this AdditionalComputeCapabilityDetails.

Return type

float

property service_type

[Required] Gets the service_type of this AdditionalCapabilityDetails. Additional details about what service provides the capability. For example, COMPUTE means that the Oracle Cloud Infrastructure Compute service provides the selected capability.

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

Returns

The service_type of this AdditionalCapabilityDetails.

Return type

str