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 @ s� e Zd ZdZdZdZdZdZdd� Ze dd� �Z e jd d� �Z e d d� �Zejdd� �Ze d d� �Z e jdd� �Z dd� Zdd� Zdd� ZdS )�UpdateLaunchOptionszL Options for tuning the compatibility and performance of VM shapes. �ISCSI�PARAVIRTUALIZED�VFIOc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a� Initializes a new UpdateLaunchOptions object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param boot_volume_type: The value to assign to the boot_volume_type property of this UpdateLaunchOptions. Allowed values for this property are: "ISCSI", "PARAVIRTUALIZED" :type boot_volume_type: str :param network_type: The value to assign to the network_type property of this UpdateLaunchOptions. Allowed values for this property are: "VFIO", "PARAVIRTUALIZED" :type network_type: str :param is_pv_encryption_in_transit_enabled: The value to assign to the is_pv_encryption_in_transit_enabled property of this UpdateLaunchOptions. :type is_pv_encryption_in_transit_enabled: bool �str�bool)�boot_volume_type�network_type�#is_pv_encryption_in_transit_enabled�bootVolumeType�networkType�isPvEncryptionInTransitEnabledN)� swagger_types� attribute_map�_boot_volume_type� _network_type�$_is_pv_encryption_in_transit_enabled)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/core/models/update_launch_options.py�__init__ s ��zUpdateLaunchOptions.__init__c C s | j S )a= Gets the boot_volume_type of this UpdateLaunchOptions. Emulation type for the boot volume. * `ISCSI` - ISCSI attached block storage device. * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block storage volumes on platform images. Before you change the boot volume attachment type, detach all block volumes and VNICs except for the boot volume and the primary VNIC. If the instance is running when you change the boot volume attachment type, it will be rebooted. **Note:** Some instances might not function properly if you change the boot volume attachment type. After the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave as expected, the changes are not supported. Revert the instance to the original boot volume attachment type. Allowed values for this property are: "ISCSI", "PARAVIRTUALIZED" :return: The boot_volume_type of this UpdateLaunchOptions. :rtype: str )r �r r r r r D s z$UpdateLaunchOptions.boot_volume_typec C s* ddg}t ||�s td�|���|| _dS )a Sets the boot_volume_type of this UpdateLaunchOptions. Emulation type for the boot volume. * `ISCSI` - ISCSI attached block storage device. * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block storage volumes on platform images. Before you change the boot volume attachment type, detach all block volumes and VNICs except for the boot volume and the primary VNIC. If the instance is running when you change the boot volume attachment type, it will be rebooted. **Note:** Some instances might not function properly if you change the boot volume attachment type. After the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave as expected, the changes are not supported. Revert the instance to the original boot volume attachment type. :param boot_volume_type: The boot_volume_type of this UpdateLaunchOptions. :type: str r r z@Invalid value for `boot_volume_type`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r ^ s ��c C s | j S )a< Gets the network_type of this UpdateLaunchOptions. Emulation type for the physical network interface card (NIC). * `VFIO` - Direct attached Virtual Function network controller. This is the networking type when you launch an instance using hardware-assisted (SR-IOV) networking. * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. Before you change the networking type, detach all VNICs and block volumes except for the primary VNIC and the boot volume. The image must have paravirtualized drivers installed. For more information, see `Editing an Instance`__. If the instance is running when you change the network type, it will be rebooted. **Note:** Some instances might not function properly if you change the networking type. After the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave as expected, the changes are not supported. Revert the instance to the original networking type. __ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm Allowed values for this property are: "VFIO", "PARAVIRTUALIZED" :return: The network_type of this UpdateLaunchOptions. :rtype: str )r r r r r r | s z UpdateLaunchOptions.network_typec C s* ddg}t ||�s td�|���|| _dS )a� Sets the network_type of this UpdateLaunchOptions. Emulation type for the physical network interface card (NIC). * `VFIO` - Direct attached Virtual Function network controller. This is the networking type when you launch an instance using hardware-assisted (SR-IOV) networking. * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. Before you change the networking type, detach all VNICs and block volumes except for the primary VNIC and the boot volume. The image must have paravirtualized drivers installed. For more information, see `Editing an Instance`__. If the instance is running when you change the network type, it will be rebooted. **Note:** Some instances might not function properly if you change the networking type. After the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave as expected, the changes are not supported. Revert the instance to the original networking type. __ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm :param network_type: The network_type of this UpdateLaunchOptions. :type: str r r z<Invalid value for `network_type`, must be None or one of {0}N)r r r r )r r r r r r r � s ��c C s | j S )a� Gets the is_pv_encryption_in_transit_enabled of this UpdateLaunchOptions. Whether to enable in-transit encryption for the volume's paravirtualized attachment. To enable in-transit encryption for block volumes and boot volumes, this field must be set to `true`. Data in transit is transferred over an internal and highly secure network. If you have specific compliance requirements related to the encryption of the data while it is moving between the instance and the boot volume or the block volume, you can enable in-transit encryption. In-transit encryption is not enabled by default. All boot volumes and block volumes are encrypted at rest. For more information, see `Block Volume Encryption`__. __ https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm#Encrypti :return: The is_pv_encryption_in_transit_enabled of this UpdateLaunchOptions. :rtype: bool �r r r r r r � s z7UpdateLaunchOptions.is_pv_encryption_in_transit_enabledc C s || _ dS )a� Sets the is_pv_encryption_in_transit_enabled of this UpdateLaunchOptions. Whether to enable in-transit encryption for the volume's paravirtualized attachment. To enable in-transit encryption for block volumes and boot volumes, this field must be set to `true`. Data in transit is transferred over an internal and highly secure network. If you have specific compliance requirements related to the encryption of the data while it is moving between the instance and the boot volume or the block volume, you can enable in-transit encryption. In-transit encryption is not enabled by default. All boot volumes and block volumes are encrypted at rest. For more information, see `Block Volume Encryption`__. __ https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm#Encrypti :param is_pv_encryption_in_transit_enabled: The is_pv_encryption_in_transit_enabled of this UpdateLaunchOptions. :type: bool Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zUpdateLaunchOptions.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zUpdateLaunchOptions.__eq__c C s | |k S r! r r$ r r r �__ne__� s zUpdateLaunchOptions.__ne__N)�__name__� __module__�__qualname__�__doc__�BOOT_VOLUME_TYPE_ISCSI� BOOT_VOLUME_TYPE_PARAVIRTUALIZED�NETWORK_TYPE_VFIO�NETWORK_TYPE_PARAVIRTUALIZEDr �propertyr �setterr r r"