InstanceShapeConfig

class oci.core.models.InstanceShapeConfig(**kwargs)

Bases: object

The shape configuration for an instance. The shape configuration determines the resources allocated to an instance.

Attributes

BASELINE_OCPU_UTILIZATION_BASELINE_1_1 A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
BASELINE_OCPU_UTILIZATION_BASELINE_1_2 A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
BASELINE_OCPU_UTILIZATION_BASELINE_1_8 A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
baseline_ocpu_utilization Gets the baseline_ocpu_utilization of this InstanceShapeConfig.
gpu_description Gets the gpu_description of this InstanceShapeConfig.
gpus Gets the gpus of this InstanceShapeConfig.
local_disk_description Gets the local_disk_description of this InstanceShapeConfig.
local_disks Gets the local_disks of this InstanceShapeConfig.
local_disks_total_size_in_gbs Gets the local_disks_total_size_in_gbs of this InstanceShapeConfig.
max_vnic_attachments Gets the max_vnic_attachments of this InstanceShapeConfig.
memory_in_gbs Gets the memory_in_gbs of this InstanceShapeConfig.
networking_bandwidth_in_gbps Gets the networking_bandwidth_in_gbps of this InstanceShapeConfig.
ocpus Gets the ocpus of this InstanceShapeConfig.
processor_description Gets the processor_description of this InstanceShapeConfig.
vcpus Gets the vcpus of this InstanceShapeConfig.

Methods

__init__(**kwargs) Initializes a new InstanceShapeConfig object with values from keyword arguments.
BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = 'BASELINE_1_1'

A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig. This constant has a value of “BASELINE_1_1”

BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = 'BASELINE_1_2'

A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig. This constant has a value of “BASELINE_1_2”

BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = 'BASELINE_1_8'

A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig. This constant has a value of “BASELINE_1_8”

__init__(**kwargs)

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

Parameters:
  • ocpus (float) – The value to assign to the ocpus property of this InstanceShapeConfig.
  • memory_in_gbs (float) – The value to assign to the memory_in_gbs property of this InstanceShapeConfig.
  • baseline_ocpu_utilization (str) – The value to assign to the baseline_ocpu_utilization property of this InstanceShapeConfig. Allowed values for this property are: “BASELINE_1_8”, “BASELINE_1_2”, “BASELINE_1_1”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • processor_description (str) – The value to assign to the processor_description property of this InstanceShapeConfig.
  • networking_bandwidth_in_gbps (float) – The value to assign to the networking_bandwidth_in_gbps property of this InstanceShapeConfig.
  • max_vnic_attachments (int) – The value to assign to the max_vnic_attachments property of this InstanceShapeConfig.
  • gpus (int) – The value to assign to the gpus property of this InstanceShapeConfig.
  • gpu_description (str) – The value to assign to the gpu_description property of this InstanceShapeConfig.
  • local_disks (int) – The value to assign to the local_disks property of this InstanceShapeConfig.
  • local_disks_total_size_in_gbs (float) – The value to assign to the local_disks_total_size_in_gbs property of this InstanceShapeConfig.
  • local_disk_description (str) – The value to assign to the local_disk_description property of this InstanceShapeConfig.
  • vcpus (int) – The value to assign to the vcpus property of this InstanceShapeConfig.
baseline_ocpu_utilization

Gets the baseline_ocpu_utilization of this InstanceShapeConfig. The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with BASELINE_1_1.

The following values are supported: - BASELINE_1_8 - baseline usage is 1/8 of an OCPU. - BASELINE_1_2 - baseline usage is 1/2 of an OCPU. - BASELINE_1_1 - baseline usage is the entire OCPU. This represents a non-burstable instance.

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

Returns:The baseline_ocpu_utilization of this InstanceShapeConfig.
Return type:str
gpu_description

Gets the gpu_description of this InstanceShapeConfig. A short description of the instance’s graphics processing unit (GPU).

If the instance does not have any GPUs, this field is null.

Returns:The gpu_description of this InstanceShapeConfig.
Return type:str
gpus

Gets the gpus of this InstanceShapeConfig. The number of GPUs available to the instance.

Returns:The gpus of this InstanceShapeConfig.
Return type:int
local_disk_description

Gets the local_disk_description of this InstanceShapeConfig. A short description of the local disks available to this instance.

If the instance does not have any local disks, this field is null.

Returns:The local_disk_description of this InstanceShapeConfig.
Return type:str
local_disks

Gets the local_disks of this InstanceShapeConfig. The number of local disks available to the instance.

Returns:The local_disks of this InstanceShapeConfig.
Return type:int
local_disks_total_size_in_gbs

Gets the local_disks_total_size_in_gbs of this InstanceShapeConfig. The aggregate size of all local disks, in gigabytes.

If the instance does not have any local disks, this field is null.

Returns:The local_disks_total_size_in_gbs of this InstanceShapeConfig.
Return type:float
max_vnic_attachments

Gets the max_vnic_attachments of this InstanceShapeConfig. The maximum number of VNIC attachments for the instance.

Returns:The max_vnic_attachments of this InstanceShapeConfig.
Return type:int
memory_in_gbs

Gets the memory_in_gbs of this InstanceShapeConfig. The total amount of memory available to the instance, in gigabytes.

Returns:The memory_in_gbs of this InstanceShapeConfig.
Return type:float
networking_bandwidth_in_gbps

Gets the networking_bandwidth_in_gbps of this InstanceShapeConfig. The networking bandwidth available to the instance, in gigabits per second.

Returns:The networking_bandwidth_in_gbps of this InstanceShapeConfig.
Return type:float
ocpus

Gets the ocpus of this InstanceShapeConfig. The total number of OCPUs available to the instance.

Returns:The ocpus of this InstanceShapeConfig.
Return type:float
processor_description

Gets the processor_description of this InstanceShapeConfig. A short description of the instance’s processor (CPU).

Returns:The processor_description of this InstanceShapeConfig.
Return type:str
vcpus

Gets the vcpus of this InstanceShapeConfig. The total number of VCPUs available to the instance. This can be used instead of OCPUs, in which case the actual number of OCPUs will be calculated based on this value and the actual hardware. This must be a multiple of 2.

Returns:The vcpus of this InstanceShapeConfig.
Return type:int