UpdateInstanceShapeConfigDetails¶
-
class
oci.core.models.
UpdateInstanceShapeConfigDetails
(**kwargs)¶ Bases:
object
The shape configuration requested for the instance. If provided, the instance will be updated with the resources specified. In the case where some properties are missing, the missing values will be set to the default for the provided shape.
Each shape only supports certain configurable values. If the shape is provided and the configuration values are invalid for that new shape, an error will be returned. If no shape is provided and the configuration values are invalid for the instance’s existing shape, an error will be returned.
Attributes
BASELINE_OCPU_UTILIZATION_BASELINE_1_1
A constant which can be used with the baseline_ocpu_utilization property of a UpdateInstanceShapeConfigDetails. BASELINE_OCPU_UTILIZATION_BASELINE_1_2
A constant which can be used with the baseline_ocpu_utilization property of a UpdateInstanceShapeConfigDetails. BASELINE_OCPU_UTILIZATION_BASELINE_1_8
A constant which can be used with the baseline_ocpu_utilization property of a UpdateInstanceShapeConfigDetails. baseline_ocpu_utilization
Gets the baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails. memory_in_gbs
Gets the memory_in_gbs of this UpdateInstanceShapeConfigDetails. nvmes
Gets the nvmes of this UpdateInstanceShapeConfigDetails. ocpus
Gets the ocpus of this UpdateInstanceShapeConfigDetails. vcpus
Gets the vcpus of this UpdateInstanceShapeConfigDetails. Methods
__init__
(**kwargs)Initializes a new UpdateInstanceShapeConfigDetails 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 UpdateInstanceShapeConfigDetails. 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 UpdateInstanceShapeConfigDetails. 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 UpdateInstanceShapeConfigDetails. This constant has a value of “BASELINE_1_8”
-
__init__
(**kwargs)¶ Initializes a new UpdateInstanceShapeConfigDetails 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 UpdateInstanceShapeConfigDetails.
- vcpus (int) – The value to assign to the vcpus property of this UpdateInstanceShapeConfigDetails.
- memory_in_gbs (float) – The value to assign to the memory_in_gbs property of this UpdateInstanceShapeConfigDetails.
- baseline_ocpu_utilization (str) – The value to assign to the baseline_ocpu_utilization property of this UpdateInstanceShapeConfigDetails. Allowed values for this property are: “BASELINE_1_8”, “BASELINE_1_2”, “BASELINE_1_1”
- nvmes (int) – The value to assign to the nvmes property of this UpdateInstanceShapeConfigDetails.
-
baseline_ocpu_utilization
¶ Gets the baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails. 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 an entire OCPU. This represents a non-burstable instance.
Allowed values for this property are: “BASELINE_1_8”, “BASELINE_1_2”, “BASELINE_1_1”
Returns: The baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails. Return type: str
-
memory_in_gbs
¶ Gets the memory_in_gbs of this UpdateInstanceShapeConfigDetails. The total amount of memory available to the instance, in gigabytes.
Returns: The memory_in_gbs of this UpdateInstanceShapeConfigDetails. Return type: float
-
nvmes
¶ Gets the nvmes of this UpdateInstanceShapeConfigDetails. The number of NVMe drives to be used for storage. A single drive has 6.8 TB available.
Returns: The nvmes of this UpdateInstanceShapeConfigDetails. Return type: int
-
ocpus
¶ Gets the ocpus of this UpdateInstanceShapeConfigDetails. The total number of OCPUs available to the instance.
Returns: The ocpus of this UpdateInstanceShapeConfigDetails. Return type: float
-
vcpus
¶ Gets the vcpus of this UpdateInstanceShapeConfigDetails. 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 UpdateInstanceShapeConfigDetails. Return type: int
-