InstanceShapeConfig¶
- class oci.core.models.InstanceShapeConfig(**kwargs)¶
Bases:
objectThe shape configuration for an instance. The shape configuration determines the resources allocated to an instance.
Attributes:
A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
A constant which can be used with the resource_management property of a InstanceShapeConfig.
A constant which can be used with the resource_management property of a InstanceShapeConfig.
Gets the baseline_ocpu_utilization of this InstanceShapeConfig.
Gets the gpu_description of this InstanceShapeConfig.
Gets the gpus of this InstanceShapeConfig.
Gets the local_disk_description of this InstanceShapeConfig.
Gets the local_disks of this InstanceShapeConfig.
Gets the local_disks_total_size_in_gbs of this InstanceShapeConfig.
Gets the local_volume_size_in_gbs of this InstanceShapeConfig.
Gets the max_vnic_attachments of this InstanceShapeConfig.
Gets the memory_in_gbs of this InstanceShapeConfig.
Gets the networking_bandwidth_in_gbps of this InstanceShapeConfig.
Gets the ocpus of this InstanceShapeConfig.
Gets the processor_description of this InstanceShapeConfig.
Gets the resource_management of this InstanceShapeConfig.
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”
- RESOURCE_MANAGEMENT_DYNAMIC = 'DYNAMIC'¶
A constant which can be used with the resource_management property of a InstanceShapeConfig. This constant has a value of “DYNAMIC”
- RESOURCE_MANAGEMENT_STATIC = 'STATIC'¶
A constant which can be used with the resource_management property of a InstanceShapeConfig. This constant has a value of “STATIC”
- __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.
resource_management (str) – The value to assign to the resource_management property of this InstanceShapeConfig. Allowed values for this property are: “DYNAMIC”, “STATIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
local_volume_size_in_gbs (int) – The value to assign to the local_volume_size_in_gbs property of this InstanceShapeConfig.
- property 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
- property 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
- property gpus¶
Gets the gpus of this InstanceShapeConfig. The number of GPUs available to the instance.
- Returns
The gpus of this InstanceShapeConfig.
- Return type
int
- property 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
- property 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
- property 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
- property local_volume_size_in_gbs¶
Gets the local_volume_size_in_gbs of this InstanceShapeConfig. The NVMe-backed local storage capacity, in GB, for flexible dense (DenseLV) VM shapes. If the shape is DenseLV, the value will be greater than 0. For all other shapes, the value will be null.
- Returns
The local_volume_size_in_gbs of this InstanceShapeConfig.
- Return type
int
- property 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
- property 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
- property 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
- property 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
- property 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
- property resource_management¶
Gets the resource_management of this InstanceShapeConfig. This field is reserved for internal use.
Allowed values for this property are: “DYNAMIC”, “STATIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The resource_management of this InstanceShapeConfig.
- Return type
str
- property 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