ruạṛ
a ���fY� � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Z e jd7d6� �Z ed8d9� �Z!e!jd:d9� �Z!ed;d<� �Z"e"jd=d<� �Z"ed>d?� �Z#e#jd@d?� �Z#edAdB� �Z$e$jdCdB� �Z$edDdE� �Z%e%jdFdE� �Z%edGdH� �Z&e&jdIdH� �Z&edJdK� �Z'e'jdLdK� �Z'edMdN� �Z(e(jdOdN� �Z(edPdQ� �Z)e)jdRdQ� �Z)edSdT� �Z*e*jdUdT� �Z*edVdW� �Z+e+jdXdW� �Z+edYdZ� �Z,e,jd[dZ� �Z,ed\d]� �Z-e-jd^d]� �Z-ed_d`� �Z.e.jdad`� �Z.edbdc� �Z/e/jdddc� �Z/ededf� �Z0e0jdgdf� �Z0edhdi� �Z1e1jdjdi� �Z1edkdl� �Z2e2jdmdl� �Z2dndo� Z3dpdq� Z4drds� Z5dtS )u�Instancea� A compute host. The image used to launch the instance determines its operating system and other software. The shape specified during the launch process determines the number of CPUs and memory allocated to the instance. When you launch an instance, it is automatically attached to a virtual network interface card (VNIC), called the *primary VNIC*. The VNIC has a private IP address from the subnet's CIDR. You can either assign a private IP address of your choice or let Oracle automatically assign one. You can choose whether the instance has a public IP address. To retrieve the addresses, use the :func:`list_vnic_attachments` operation to get the VNIC ID for the instance, and then call :func:`get_vnic` with the VNIC ID. For more information, see `Overview of the Compute Service`__. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. __ https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm __ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm �NATIVE�EMULATED�PARAVIRTUALIZED�CUSTOM�MOVING�PROVISIONING�RUNNING�STARTING�STOPPING�STOPPED�CREATING_IMAGE�TERMINATING� TERMINATEDc K sJ ddddddddddddddddddddddd d dddd dddd�| _ 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/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _ d/S )0a9 Initializes a new Instance 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 Instance. :type availability_domain: str :param capacity_reservation_id: The value to assign to the capacity_reservation_id property of this Instance. :type capacity_reservation_id: str :param compartment_id: The value to assign to the compartment_id property of this Instance. :type compartment_id: str :param cluster_placement_group_id: The value to assign to the cluster_placement_group_id property of this Instance. :type cluster_placement_group_id: str :param dedicated_vm_host_id: The value to assign to the dedicated_vm_host_id property of this Instance. :type dedicated_vm_host_id: str :param defined_tags: The value to assign to the defined_tags property of this Instance. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this Instance. :type display_name: str :param extended_metadata: The value to assign to the extended_metadata property of this Instance. :type extended_metadata: dict(str, object) :param fault_domain: The value to assign to the fault_domain property of this Instance. :type fault_domain: str :param freeform_tags: The value to assign to the freeform_tags property of this Instance. :type freeform_tags: dict(str, str) :param id: The value to assign to the id property of this Instance. :type id: str :param image_id: The value to assign to the image_id property of this Instance. :type image_id: str :param ipxe_script: The value to assign to the ipxe_script property of this Instance. :type ipxe_script: str :param launch_mode: The value to assign to the launch_mode property of this Instance. Allowed values for this property are: "NATIVE", "EMULATED", "PARAVIRTUALIZED", "CUSTOM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type launch_mode: str :param launch_options: The value to assign to the launch_options property of this Instance. :type launch_options: oci.core.models.LaunchOptions :param instance_options: The value to assign to the instance_options property of this Instance. :type instance_options: oci.core.models.InstanceOptions :param availability_config: The value to assign to the availability_config property of this Instance. :type availability_config: oci.core.models.InstanceAvailabilityConfig :param preemptible_instance_config: The value to assign to the preemptible_instance_config property of this Instance. :type preemptible_instance_config: oci.core.models.PreemptibleInstanceConfigDetails :param lifecycle_state: The value to assign to the lifecycle_state property of this Instance. Allowed values for this property are: "MOVING", "PROVISIONING", "RUNNING", "STARTING", "STOPPING", "STOPPED", "CREATING_IMAGE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param metadata: The value to assign to the metadata property of this Instance. :type metadata: dict(str, str) :param region: The value to assign to the region property of this Instance. :type region: str :param shape: The value to assign to the shape property of this Instance. :type shape: str :param shape_config: The value to assign to the shape_config property of this Instance. :type shape_config: oci.core.models.InstanceShapeConfig :param is_cross_numa_node: The value to assign to the is_cross_numa_node property of this Instance. :type is_cross_numa_node: bool :param source_details: The value to assign to the source_details property of this Instance. :type source_details: oci.core.models.InstanceSourceDetails :param system_tags: The value to assign to the system_tags property of this Instance. :type system_tags: dict(str, dict(str, object)) :param time_created: The value to assign to the time_created property of this Instance. :type time_created: datetime :param agent_config: The value to assign to the agent_config property of this Instance. :type agent_config: oci.core.models.InstanceAgentConfig :param time_maintenance_reboot_due: The value to assign to the time_maintenance_reboot_due property of this Instance. :type time_maintenance_reboot_due: datetime :param platform_config: The value to assign to the platform_config property of this Instance. :type platform_config: oci.core.models.PlatformConfig :param instance_configuration_id: The value to assign to the instance_configuration_id property of this Instance. :type instance_configuration_id: str �strzdict(str, dict(str, object))zdict(str, object)zdict(str, str)Z LaunchOptionsZInstanceOptionsZInstanceAvailabilityConfigZ PreemptibleInstanceConfigDetailsZInstanceShapeConfig�boolZInstanceSourceDetailsZdatetimeZInstanceAgentConfigZPlatformConfig)�availability_domain�capacity_reservation_id�compartment_id�cluster_placement_group_id�dedicated_vm_host_id�defined_tags�display_name�extended_metadata�fault_domain� freeform_tags�id�image_id�ipxe_script�launch_mode�launch_options�instance_options�availability_config�preemptible_instance_config�lifecycle_state�metadata�region�shape�shape_config�is_cross_numa_node�source_details�system_tags�time_created�agent_config�time_maintenance_reboot_due�platform_config�instance_configuration_idZavailabilityDomainZcapacityReservationIdZ compartmentIdZclusterPlacementGroupIdZdedicatedVmHostIdZdefinedTagsZdisplayNameZextendedMetadataZfaultDomainZfreeformTagsr ZimageIdZ ipxeScriptZ launchModeZ launchOptionsZinstanceOptionsZavailabilityConfigZpreemptibleInstanceConfigZlifecycleStater) r* r+ ZshapeConfigZisCrossNumaNodeZ sourceDetailsZ systemTagsZtimeCreatedZagentConfigZtimeMaintenanceRebootDueZplatformConfigZinstanceConfigurationIdN)!Z swagger_typesZ attribute_map�_availability_domain�_capacity_reservation_id�_compartment_id�_cluster_placement_group_id�_dedicated_vm_host_id� _defined_tags� _display_name�_extended_metadata� _fault_domain�_freeform_tags�_id� _image_id�_ipxe_script�_launch_mode�_launch_options�_instance_options�_availability_config�_preemptible_instance_config�_lifecycle_state� _metadata�_region�_shape� _shape_config�_is_cross_numa_node�_source_details�_system_tags� _time_created� _agent_config�_time_maintenance_reboot_due�_platform_config�_instance_configuration_id)�self�kwargs� rV �</usr/lib/python3.9/site-packages/oci/core/models/instance.py�__init__^ s� �#�"zInstance.__init__c C s | j S )z� **[Required]** Gets the availability_domain of this Instance. The availability domain the instance is running in. Example: `Uocm:PHX-AD-1` :return: The availability_domain of this Instance. :rtype: str �r5 �rT rV rV rW r H s zInstance.availability_domainc C s || _ dS )a Sets the availability_domain of this Instance. The availability domain the instance is running in. Example: `Uocm:PHX-AD-1` :param availability_domain: The availability_domain of this Instance. :type: str NrY )rT r rV rV rW r V s c C s | j S )a Gets the capacity_reservation_id of this Instance. The OCID of the compute capacity reservation this instance is launched under. When this field contains an empty string or is null, the instance is not currently in a capacity reservation. 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 Instance. :rtype: str �r6 rZ rV rV rW r d s z Instance.capacity_reservation_idc C s || _ dS )a Sets the capacity_reservation_id of this Instance. The OCID of the compute capacity reservation this instance is launched under. When this field contains an empty string or is null, the instance is not currently in a capacity reservation. 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 Instance. :type: str Nr[ )rT r rV rV rW r t s c C s | j S )z� **[Required]** Gets the compartment_id of this Instance. The OCID of the compartment that contains the instance. :return: The compartment_id of this Instance. :rtype: str �r7 rZ rV rV rW r � s zInstance.compartment_idc C s || _ dS )z� Sets the compartment_id of this Instance. The OCID of the compartment that contains the instance. :param compartment_id: The compartment_id of this Instance. :type: str Nr\ )rT r rV rV rW r � s c C s | j S )z� Gets the cluster_placement_group_id of this Instance. The OCID of the cluster placement group of the instance. :return: The cluster_placement_group_id of this Instance. :rtype: str �r8 rZ rV rV rW r � s z#Instance.cluster_placement_group_idc C s || _ dS )z� Sets the cluster_placement_group_id of this Instance. The OCID of the cluster placement group of the instance. :param cluster_placement_group_id: The cluster_placement_group_id of this Instance. :type: str Nr] )rT r rV rV rW r � s c C s | j S )z� Gets the dedicated_vm_host_id of this Instance. The OCID of the dedicated virtual machine host that the instance is placed on. :return: The dedicated_vm_host_id of this Instance. :rtype: str �r9 rZ rV rV rW r � s zInstance.dedicated_vm_host_idc C s || _ dS )z� Sets the dedicated_vm_host_id of this Instance. The OCID of the dedicated virtual machine host that the instance is placed on. :param dedicated_vm_host_id: The dedicated_vm_host_id of this Instance. :type: str Nr^ )rT r rV rV rW r � s c C s | j S )a� Gets the defined_tags of this Instance. 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 Instance. :rtype: dict(str, dict(str, object)) �r: rZ rV rV rW r � s zInstance.defined_tagsc C s || _ dS )a� Sets the defined_tags of this Instance. 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 Instance. :type: dict(str, dict(str, object)) Nr_ )rT r rV rV rW r � s c C s | j S )a Gets the display_name of this Instance. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this Instance. :rtype: str �r; rZ rV rV rW r � s zInstance.display_namec C s || _ dS )a Sets the display_name of this Instance. 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 Instance. :type: str Nr` )rT r rV rV rW r � s c C s | j S )a� Gets the extended_metadata of this Instance. 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). :return: The extended_metadata of this Instance. :rtype: dict(str, object) �r<