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 ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Zejd9d8� �Zed:d;� �Zejd<d;� �Zed=d>� �Zejd?d>� �Zed@dA� �ZejdBdA� �ZedCdD� �ZejdEdD� �ZedFdG� �ZejdHdG� �ZedIdJ� �ZejdKdJ� �ZedLdM� �ZejdNdM� �ZdOdP� Z dQdR� Z!dSdT� Z"dUS )V�LaunchInstanceDetailsz� Instance launch details. Use the `sourceDetails` parameter to specify whether a boot volume or an image should be used to launch a new instance. c K s ddddddddddddddddd dd ddddd dd�| _ ddddddddddddddddd d!d"d#d$d%d&d'd(d�| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _ d)| _ d)| _d)| _d)| _ d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)S )*ac Initializes a new LaunchInstanceDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param availability_domain: The value to assign to the availability_domain property of this LaunchInstanceDetails. :type availability_domain: str :param capacity_reservation_id: The value to assign to the capacity_reservation_id property of this LaunchInstanceDetails. :type capacity_reservation_id: str :param compartment_id: The value to assign to the compartment_id property of this LaunchInstanceDetails. :type compartment_id: str :param create_vnic_details: The value to assign to the create_vnic_details property of this LaunchInstanceDetails. :type create_vnic_details: oci.core.models.CreateVnicDetails :param dedicated_vm_host_id: The value to assign to the dedicated_vm_host_id property of this LaunchInstanceDetails. :type dedicated_vm_host_id: str :param defined_tags: The value to assign to the defined_tags property of this LaunchInstanceDetails. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this LaunchInstanceDetails. :type display_name: str :param extended_metadata: The value to assign to the extended_metadata property of this LaunchInstanceDetails. :type extended_metadata: dict(str, object) :param fault_domain: The value to assign to the fault_domain property of this LaunchInstanceDetails. :type fault_domain: str :param freeform_tags: The value to assign to the freeform_tags property of this LaunchInstanceDetails. :type freeform_tags: dict(str, str) :param hostname_label: The value to assign to the hostname_label property of this LaunchInstanceDetails. :type hostname_label: str :param image_id: The value to assign to the image_id property of this LaunchInstanceDetails. :type image_id: str :param ipxe_script: The value to assign to the ipxe_script property of this LaunchInstanceDetails. :type ipxe_script: str :param launch_options: The value to assign to the launch_options property of this LaunchInstanceDetails. :type launch_options: oci.core.models.LaunchOptions :param instance_options: The value to assign to the instance_options property of this LaunchInstanceDetails. :type instance_options: oci.core.models.InstanceOptions :param availability_config: The value to assign to the availability_config property of this LaunchInstanceDetails. :type availability_config: oci.core.models.LaunchInstanceAvailabilityConfigDetails :param preemptible_instance_config: The value to assign to the preemptible_instance_config property of this LaunchInstanceDetails. :type preemptible_instance_config: oci.core.models.PreemptibleInstanceConfigDetails :param metadata: The value to assign to the metadata property of this LaunchInstanceDetails. :type metadata: dict(str, str) :param agent_config: The value to assign to the agent_config property of this LaunchInstanceDetails. :type agent_config: oci.core.models.LaunchInstanceAgentConfigDetails :param shape: The value to assign to the shape property of this LaunchInstanceDetails. :type shape: str :param shape_config: The value to assign to the shape_config property of this LaunchInstanceDetails. :type shape_config: oci.core.models.LaunchInstanceShapeConfigDetails :param source_details: The value to assign to the source_details property of this LaunchInstanceDetails. :type source_details: oci.core.models.InstanceSourceDetails :param subnet_id: The value to assign to the subnet_id property of this LaunchInstanceDetails. :type subnet_id: str :param is_pv_encryption_in_transit_enabled: The value to assign to the is_pv_encryption_in_transit_enabled property of this LaunchInstanceDetails. :type is_pv_encryption_in_transit_enabled: bool :param platform_config: The value to assign to the platform_config property of this LaunchInstanceDetails. :type platform_config: oci.core.models.LaunchInstancePlatformConfig �str�CreateVnicDetailszdict(str, dict(str, object))zdict(str, object)zdict(str, str)� LaunchOptions�InstanceOptions�'LaunchInstanceAvailabilityConfigDetails� PreemptibleInstanceConfigDetails� LaunchInstanceAgentConfigDetails� LaunchInstanceShapeConfigDetails�InstanceSourceDetails�bool�LaunchInstancePlatformConfig)�availability_domain�capacity_reservation_id�compartment_id�create_vnic_details�dedicated_vm_host_id�defined_tags�display_name�extended_metadata�fault_domain� freeform_tags�hostname_label�image_id�ipxe_script�launch_options�instance_options�availability_config�preemptible_instance_config�metadata�agent_config�shape�shape_config�source_details� subnet_id�#is_pv_encryption_in_transit_enabled�platform_config�availabilityDomain�capacityReservationId� compartmentId�createVnicDetails�dedicatedVmHostId�definedTags�displayName�extendedMetadata�faultDomain�freeformTags� hostnameLabel�imageId� ipxeScript� launchOptions�instanceOptions�availabilityConfig�preemptibleInstanceConfigr# �agentConfigr% �shapeConfig� sourceDetails�subnetId�isPvEncryptionInTransitEnabled�platformConfigN)� swagger_types� attribute_map�_availability_domain�_capacity_reservation_id�_compartment_id�_create_vnic_details�_dedicated_vm_host_id� _defined_tags� _display_name�_extended_metadata� _fault_domain�_freeform_tags�_hostname_label� _image_id�_ipxe_script�_launch_options�_instance_options�_availability_config�_preemptible_instance_config� _metadata� _agent_config�_shape� _shape_config�_source_details� _subnet_id�$_is_pv_encryption_in_transit_enabled�_platform_config)�self�kwargs� r_ ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/core/models/launch_instance_details.py�__init__ s� k��zLaunchInstanceDetails.__init__c C s | j S )a **[Required]** Gets the availability_domain of this LaunchInstanceDetails. The availability domain of the instance. Example: `Uocm:PHX-AD-1` :return: The availability_domain of this LaunchInstanceDetails. :rtype: str �rD �r] r_ r_ r` r � s z)LaunchInstanceDetails.availability_domainc C s || _ dS )a Sets the availability_domain of this LaunchInstanceDetails. The availability domain of the instance. Example: `Uocm:PHX-AD-1` :param availability_domain: The availability_domain of this LaunchInstanceDetails. :type: str Nrb )r] r r_ r_ r` r � s c C s | j S )a Gets the capacity_reservation_id of this LaunchInstanceDetails. The OCID of the compute capacity reservation this instance is launched under. You can opt out of all default reservations by specifying an empty string as input for this field. For more information, see `Capacity Reservations`__. __ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default :return: The capacity_reservation_id of this LaunchInstanceDetails. :rtype: str �rE rc r_ r_ r` r � s z-LaunchInstanceDetails.capacity_reservation_idc C s || _ dS )a) Sets the capacity_reservation_id of this LaunchInstanceDetails. The OCID of the compute capacity reservation this instance is launched under. You can opt out of all default reservations by specifying an empty string as input for this field. For more information, see `Capacity Reservations`__. __ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default :param capacity_reservation_id: The capacity_reservation_id of this LaunchInstanceDetails. :type: str Nrd )r] r r_ r_ r` r � s c C s | j S )z� **[Required]** Gets the compartment_id of this LaunchInstanceDetails. The OCID of the compartment. :return: The compartment_id of this LaunchInstanceDetails. :rtype: str �rF rc r_ r_ r` r s z$LaunchInstanceDetails.compartment_idc C s || _ dS )z� Sets the compartment_id of this LaunchInstanceDetails. The OCID of the compartment. :param compartment_id: The compartment_id of this LaunchInstanceDetails. :type: str Nre )r] r r_ r_ r` r s c C s | j S )z� Gets the create_vnic_details of this LaunchInstanceDetails. :return: The create_vnic_details of this LaunchInstanceDetails. :rtype: oci.core.models.CreateVnicDetails �rG rc r_ r_ r` r ! s z)LaunchInstanceDetails.create_vnic_detailsc C s || _ dS )z� Sets the create_vnic_details of this LaunchInstanceDetails. :param create_vnic_details: The create_vnic_details of this LaunchInstanceDetails. :type: oci.core.models.CreateVnicDetails Nrf )r] r r_ r_ r` r + s c C s | j S )z� Gets the dedicated_vm_host_id of this LaunchInstanceDetails. The OCID of the dedicated VM host. :return: The dedicated_vm_host_id of this LaunchInstanceDetails. :rtype: str �rH rc r_ r_ r` r 5 s z*LaunchInstanceDetails.dedicated_vm_host_idc C s || _ dS )z� Sets the dedicated_vm_host_id of this LaunchInstanceDetails. The OCID of the dedicated VM host. :param dedicated_vm_host_id: The dedicated_vm_host_id of this LaunchInstanceDetails. :type: str Nrg )r] r r_ r_ r` r A s c C s | j S )a� Gets the defined_tags of this LaunchInstanceDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. Example: `{"Operations": {"CostCenter": "42"}}` __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :return: The defined_tags of this LaunchInstanceDetails. :rtype: dict(str, dict(str, object)) �rI rc r_ r_ r` r M s z"LaunchInstanceDetails.defined_tagsc C s || _ dS )a� Sets the defined_tags of this LaunchInstanceDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. Example: `{"Operations": {"CostCenter": "42"}}` __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :param defined_tags: The defined_tags of this LaunchInstanceDetails. :type: dict(str, dict(str, object)) Nrh )r] r r_ r_ r` r ^ s c C s | j S )a Gets the display_name of this LaunchInstanceDetails. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this LaunchInstanceDetails. :rtype: str �rJ rc r_ r_ r` r o s z"LaunchInstanceDetails.display_namec C s || _ dS )a( Sets the display_name of this LaunchInstanceDetails. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this LaunchInstanceDetails. :type: str Nri )r] r r_ r_ r` r | s c C s | j S )ad Gets the extended_metadata of this LaunchInstanceDetails. Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the `metadata` object. They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` fields are string/string maps only). The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. :return: The extended_metadata of this LaunchInstanceDetails. :rtype: dict(str, object) �rK rc r_ r_ r` r � s z'LaunchInstanceDetails.extended_metadatac C s || _ dS )at Sets the extended_metadata of this LaunchInstanceDetails. Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the `metadata` object. They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` fields are string/string maps only). The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. :param extended_metadata: The extended_metadata of this LaunchInstanceDetails. :type: dict(str, object) Nrj )r] r r_ r_ r` r � s c C s | j S )ap Gets the fault_domain of this LaunchInstanceDetails. A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains. If you do not specify the fault domain, the system selects one for you. To get a list of fault domains, use the :func:`list_fault_domains` operation in the Identity and Access Management Service API. Example: `FAULT-DOMAIN-1` :return: The fault_domain of this LaunchInstanceDetails. :rtype: str �rL rc r_ r_ r` r � s z"LaunchInstanceDetails.fault_domainc C s || _ dS )a{ Sets the fault_domain of this LaunchInstanceDetails. A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains. If you do not specify the fault domain, the system selects one for you. To get a list of fault domains, use the :func:`list_fault_domains` operation in the Identity and Access Management Service API. Example: `FAULT-DOMAIN-1` :param fault_domain: The fault_domain of this LaunchInstanceDetails. :type: str Nrk )r] r r_ r_ r` r � s c C s | j S )a� Gets the freeform_tags of this LaunchInstanceDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}` __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :return: The freeform_tags of this LaunchInstanceDetails. :rtype: dict(str, str) �rM rc r_ r_ r` r � s z#LaunchInstanceDetails.freeform_tagsc C s || _ dS )a� Sets the freeform_tags of this LaunchInstanceDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}` __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :param freeform_tags: The freeform_tags of this LaunchInstanceDetails. :type: dict(str, str) Nrl )r] r r_ r_ r` r � s c C s | j S )a, Gets the hostname_label of this LaunchInstanceDetails. Deprecated. Instead use `hostnameLabel` in :class:`CreateVnicDetails`. If you provide both, the values must match. :return: The hostname_label of this LaunchInstanceDetails. :rtype: str �rN rc r_ r_ r` r s z$LaunchInstanceDetails.hostname_labelc C s || _ dS )a9 Sets the hostname_label of this LaunchInstanceDetails. Deprecated. Instead use `hostnameLabel` in :class:`CreateVnicDetails`. If you provide both, the values must match. :param hostname_label: The hostname_label of this LaunchInstanceDetails. :type: str Nrm )r] r r_ r_ r` r s c C s | j S )a@ Gets the image_id of this LaunchInstanceDetails. Deprecated. Use `sourceDetails` with :func:`instance_source_via_image_details` source type instead. If you specify values for both, the values must match. :return: The image_id of this LaunchInstanceDetails. :rtype: str �rO rc r_ r_ r` r s zLaunchInstanceDetails.image_idc C s || _ dS )aG Sets the image_id of this LaunchInstanceDetails. Deprecated. Use `sourceDetails` with :func:`instance_source_via_image_details` source type instead. If you specify values for both, the values must match. :param image_id: The image_id of this LaunchInstanceDetails. :type: str Nrn )r] r r_ r_ r` r , s c C s | j S )a� Gets the ipxe_script of this LaunchInstanceDetails. This is an advanced option. When a bare metal or virtual machine instance boots, the iPXE firmware that runs on the instance is configured to run an iPXE script to continue the boot process. If you want more control over the boot process, you can provide your own custom iPXE script that will run when the instance boots. Be aware that the same iPXE script will run every time an instance boots, not only after the initial LaunchInstance call. The default iPXE script connects to the instance's local boot volume over iSCSI and performs a network boot. If you use a custom iPXE script and want to network-boot from the instance's local boot volume over iSCSI the same way as the default iPXE script, use the following iSCSI IP address: 169.254.0.2, and boot volume IQN: iqn.2015-02.oracle.boot. If your instance boot volume type is paravirtualized, the boot volume is attached to the instance through virtio-scsi and no iPXE script is used. If your instance boot volume type is paravirtualized and you use custom iPXE to network boot into your instance, the primary boot volume is attached as a data volume through virtio-scsi drive. For more information about the Bring Your Own Image feature of Oracle Cloud Infrastructure, see `Bring Your Own Image`__. For more information about iPXE, see http://ipxe.org. __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm :return: The ipxe_script of this LaunchInstanceDetails. :rtype: str �rP rc r_ r_ r` r 9 s )z!LaunchInstanceDetails.ipxe_scriptc C s || _ dS )a� Sets the ipxe_script of this LaunchInstanceDetails. This is an advanced option. When a bare metal or virtual machine instance boots, the iPXE firmware that runs on the instance is configured to run an iPXE script to continue the boot process. If you want more control over the boot process, you can provide your own custom iPXE script that will run when the instance boots. Be aware that the same iPXE script will run every time an instance boots, not only after the initial LaunchInstance call. The default iPXE script connects to the instance's local boot volume over iSCSI and performs a network boot. If you use a custom iPXE script and want to network-boot from the instance's local boot volume over iSCSI the same way as the default iPXE script, use the following iSCSI IP address: 169.254.0.2, and boot volume IQN: iqn.2015-02.oracle.boot. If your instance boot volume type is paravirtualized, the boot volume is attached to the instance through virtio-scsi and no iPXE script is used. If your instance boot volume type is paravirtualized and you use custom iPXE to network boot into your instance, the primary boot volume is attached as a data volume through virtio-scsi drive. For more information about the Bring Your Own Image feature of Oracle Cloud Infrastructure, see `Bring Your Own Image`__. For more information about iPXE, see http://ipxe.org. __ https://docs.cloud.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm :param ipxe_script: The ipxe_script of this LaunchInstanceDetails. :type: str Nro )r] r r_ r_ r` r d s )c C s | j S )z� Gets the launch_options of this LaunchInstanceDetails. :return: The launch_options of this LaunchInstanceDetails. :rtype: oci.core.models.LaunchOptions �rQ rc r_ r_ r` r � s z$LaunchInstanceDetails.launch_optionsc C s || _ dS )z� Sets the launch_options of this LaunchInstanceDetails. :param launch_options: The launch_options of this LaunchInstanceDetails. :type: oci.core.models.LaunchOptions Nrp )r] r r_ r_ r` r � s c C s | j S )z� Gets the instance_options of this LaunchInstanceDetails. :return: The instance_options of this LaunchInstanceDetails. :rtype: oci.core.models.InstanceOptions �rR rc r_ r_ r` r � s z&LaunchInstanceDetails.instance_optionsc C s || _ dS )z� Sets the instance_options of this LaunchInstanceDetails. :param instance_options: The instance_options of this LaunchInstanceDetails. :type: oci.core.models.InstanceOptions Nrq )r] r r_ r_ r` r � s c C s | j S )z� Gets the availability_config of this LaunchInstanceDetails. :return: The availability_config of this LaunchInstanceDetails. :rtype: oci.core.models.LaunchInstanceAvailabilityConfigDetails �rS rc r_ r_ r` r! � s z)LaunchInstanceDetails.availability_configc C s || _ dS )z� Sets the availability_config of this LaunchInstanceDetails. :param availability_config: The availability_config of this LaunchInstanceDetails. :type: oci.core.models.LaunchInstanceAvailabilityConfigDetails Nrr )r] r! r_ r_ r` r! � s c C s | j S )z� Gets the preemptible_instance_config of this LaunchInstanceDetails. :return: The preemptible_instance_config of this LaunchInstanceDetails. :rtype: oci.core.models.PreemptibleInstanceConfigDetails �rT rc r_ r_ r` r"