ruạṛ
a N��f�; � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sZ e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zd(d)� Zd*d+� Zd,d-� Zd.S )/�InstanceShapeConfigz� The shape configuration for an instance. The shape configuration determines the resources allocated to an instance. �BASELINE_1_8�BASELINE_1_2�BASELINE_1_1c K s� dddddddddddd�| _ ddddd d ddd ddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _dS )a� Initializes a new InstanceShapeConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param ocpus: The value to assign to the ocpus property of this InstanceShapeConfig. :type ocpus: float :param memory_in_gbs: The value to assign to the memory_in_gbs property of this InstanceShapeConfig. :type memory_in_gbs: float :param baseline_ocpu_utilization: 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'. :type baseline_ocpu_utilization: str :param processor_description: The value to assign to the processor_description property of this InstanceShapeConfig. :type processor_description: str :param networking_bandwidth_in_gbps: The value to assign to the networking_bandwidth_in_gbps property of this InstanceShapeConfig. :type networking_bandwidth_in_gbps: float :param max_vnic_attachments: The value to assign to the max_vnic_attachments property of this InstanceShapeConfig. :type max_vnic_attachments: int :param gpus: The value to assign to the gpus property of this InstanceShapeConfig. :type gpus: int :param gpu_description: The value to assign to the gpu_description property of this InstanceShapeConfig. :type gpu_description: str :param local_disks: The value to assign to the local_disks property of this InstanceShapeConfig. :type local_disks: int :param local_disks_total_size_in_gbs: The value to assign to the local_disks_total_size_in_gbs property of this InstanceShapeConfig. :type local_disks_total_size_in_gbs: float :param local_disk_description: The value to assign to the local_disk_description property of this InstanceShapeConfig. :type local_disk_description: str �float�str�int)�ocpus� memory_in_gbs�baseline_ocpu_utilization�processor_description�networking_bandwidth_in_gbps�max_vnic_attachments�gpus�gpu_description�local_disks�local_disks_total_size_in_gbs�local_disk_descriptionr �memoryInGBs�baselineOcpuUtilization�processorDescription�networkingBandwidthInGbps�maxVnicAttachmentsr �gpuDescription� localDisks�localDisksTotalSizeInGBs�localDiskDescriptionN) � swagger_types� attribute_map�_ocpus�_memory_in_gbs�_baseline_ocpu_utilization�_processor_description�_networking_bandwidth_in_gbps�_max_vnic_attachments�_gpus�_gpu_description�_local_disks�_local_disks_total_size_in_gbs�_local_disk_description)�self�kwargs� r0 ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/core/models/instance_shape_config.py�__init__ sF 5��zInstanceShapeConfig.__init__c C s | j S )z� Gets the ocpus of this InstanceShapeConfig. The total number of OCPUs available to the instance. :return: The ocpus of this InstanceShapeConfig. :rtype: float �r# �r. r0 r0 r1 r y s zInstanceShapeConfig.ocpusc C s || _ dS )z� Sets the ocpus of this InstanceShapeConfig. The total number of OCPUs available to the instance. :param ocpus: The ocpus of this InstanceShapeConfig. :type: float Nr3 )r. r r0 r0 r1 r � s c C s | j S )z� Gets the memory_in_gbs of this InstanceShapeConfig. The total amount of memory available to the instance, in gigabytes. :return: The memory_in_gbs of this InstanceShapeConfig. :rtype: float �r$ r4 r0 r0 r1 r � s z!InstanceShapeConfig.memory_in_gbsc C s || _ dS )z� Sets the memory_in_gbs of this InstanceShapeConfig. The total amount of memory available to the instance, in gigabytes. :param memory_in_gbs: The memory_in_gbs of this InstanceShapeConfig. :type: float Nr5 )r. r r0 r0 r1 r � s c C s | j S )aZ 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'. :return: The baseline_ocpu_utilization of this InstanceShapeConfig. :rtype: str )r% r4 r0 r0 r1 r � s z-InstanceShapeConfig.baseline_ocpu_utilizationc C s g d�}t ||�sd}|| _dS )a� Sets 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. :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this InstanceShapeConfig. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r% )r. r �allowed_valuesr0 r0 r1 r � s c C s | j S )z� Gets the processor_description of this InstanceShapeConfig. A short description of the instance's processor (CPU). :return: The processor_description of this InstanceShapeConfig. :rtype: str �r&