ruạṛ
a ���f�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� �Zd:d;� Zd<d=� Zd>d?� Zd@S )A�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 d d�| _ dd ddddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _dS )a� 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.cloud_migrations.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 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 ipxe_script: The value to assign to the ipxe_script property of this LaunchInstanceDetails. :type ipxe_script: str :param instance_options: The value to assign to the instance_options property of this LaunchInstanceDetails. :type instance_options: oci.cloud_migrations.models.InstanceOptions :param preemptible_instance_config: The value to assign to the preemptible_instance_config property of this LaunchInstanceDetails. :type preemptible_instance_config: oci.cloud_migrations.models.PreemptibleInstanceConfigDetails :param agent_config: The value to assign to the agent_config property of this LaunchInstanceDetails. :type agent_config: oci.cloud_migrations.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.cloud_migrations.models.LaunchInstanceShapeConfigDetails :param source_details: The value to assign to the source_details property of this LaunchInstanceDetails. :type source_details: oci.cloud_migrations.models.InstanceSourceDetails :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 �strZCreateVnicDetailszdict(str, dict(str, object))zdict(str, str)ZInstanceOptionsZ PreemptibleInstanceConfigDetailsZ LaunchInstanceAgentConfigDetailsZ LaunchInstanceShapeConfigDetailsZInstanceSourceDetails�bool)�availability_domain�capacity_reservation_id�compartment_id�create_vnic_details�dedicated_vm_host_id�defined_tags�display_name�fault_domain� freeform_tags�hostname_label�ipxe_script�instance_options�preemptible_instance_config�agent_config�shape�shape_config�source_details�#is_pv_encryption_in_transit_enabledZavailabilityDomainZcapacityReservationIdZ compartmentIdZcreateVnicDetailsZdedicatedVmHostIdZdefinedTagsZdisplayNameZfaultDomainZfreeformTagsZ hostnameLabelZ ipxeScriptZinstanceOptionsZpreemptibleInstanceConfigZagentConfigr ZshapeConfigZ sourceDetailsZisPvEncryptionInTransitEnabledN)Z swagger_typesZ attribute_map�_availability_domain�_capacity_reservation_id�_compartment_id�_create_vnic_details�_dedicated_vm_host_id� _defined_tags� _display_name� _fault_domain�_freeform_tags�_hostname_label�_ipxe_script�_instance_options�_preemptible_instance_config� _agent_config�_shape� _shape_config�_source_details�$_is_pv_encryption_in_transit_enabled)�self�kwargs� r/ �W/usr/lib/python3.9/site-packages/oci/cloud_migrations/models/launch_instance_details.py�__init__ sp O��zLaunchInstanceDetails.__init__c C s | j S )z� 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 �r �r- r/ r/ r0 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 Nr2 )r- r r/ r/ r0 r � s c C s | j S )a Gets the capacity_reservation_id of this LaunchInstanceDetails. The OCID of the compute capacity reservation under which this instance is launched. 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 �r r3 r/ r/ r0 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 under which this instance is launched. 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 Nr4 )r- r r/ r/ r0 r � s c C s | j S )z� Gets the compartment_id of this LaunchInstanceDetails. The OCID of the compartment. :return: The compartment_id of this LaunchInstanceDetails. :rtype: str �r r3 r/ r/ r0 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 Nr5 )r- r r/ r/ r0 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.cloud_migrations.models.CreateVnicDetails �r r3 r/ r/ r0 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.cloud_migrations.models.CreateVnicDetails Nr6 )r- r r/ r/ r0 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 �r r3 r/ r/ r0 r 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 Nr7 )r- r r/ r/ r0 r s c C s | j S )aK Gets the defined_tags of this LaunchInstanceDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :return: The defined_tags of this LaunchInstanceDetails. :rtype: dict(str, dict(str, object)) �r r3 r/ r/ r0 r s z"LaunchInstanceDetails.defined_tagsc C s || _ dS )aV Sets the defined_tags of this LaunchInstanceDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :param defined_tags: The defined_tags of this LaunchInstanceDetails. :type: dict(str, dict(str, object)) Nr8 )r- r r/ r/ r0 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 �r! r3 r/ r/ r0 r 8 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 Nr9 )r- r r/ r/ r0 r E s c C s | j S )aq 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 lets 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 �r"