ruạṛ
a ���f�t � @ 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 d � Zedd� �Z e jd d� �Z edd� �Zejdd� �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� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zed;d<� �Zejd=d<� �Zed>d?� �Zejd@d?� �ZedAdB� �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'dYdZ� Z(d[d\� Z)d]d^� Z*d_S )`�ManagedInstancezN Detail information for an OCI Compute instance that is being managed �NORMAL�UNREACHABLE�ERROR�WARNING�LINUX�WINDOWS�ALLc K s ddddddddddddddddddddddddddd�| _ d d ddd ddddddddddddddddddd 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 )$a� Initializes a new ManagedInstance object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this ManagedInstance. :type display_name: str :param id: The value to assign to the id property of this ManagedInstance. :type id: str :param description: The value to assign to the description property of this ManagedInstance. :type description: str :param last_checkin: The value to assign to the last_checkin property of this ManagedInstance. :type last_checkin: str :param last_boot: The value to assign to the last_boot property of this ManagedInstance. :type last_boot: str :param updates_available: The value to assign to the updates_available property of this ManagedInstance. :type updates_available: int :param os_name: The value to assign to the os_name property of this ManagedInstance. :type os_name: str :param os_version: The value to assign to the os_version property of this ManagedInstance. :type os_version: str :param os_kernel_version: The value to assign to the os_kernel_version property of this ManagedInstance. :type os_kernel_version: str :param compartment_id: The value to assign to the compartment_id property of this ManagedInstance. :type compartment_id: str :param status: The value to assign to the status property of this ManagedInstance. Allowed values for this property are: "NORMAL", "UNREACHABLE", "ERROR", "WARNING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param parent_software_source: The value to assign to the parent_software_source property of this ManagedInstance. :type parent_software_source: oci.os_management.models.SoftwareSourceId :param child_software_sources: The value to assign to the child_software_sources property of this ManagedInstance. :type child_software_sources: list[oci.os_management.models.SoftwareSourceId] :param managed_instance_groups: The value to assign to the managed_instance_groups property of this ManagedInstance. :type managed_instance_groups: list[oci.os_management.models.Id] :param os_family: The value to assign to the os_family property of this ManagedInstance. Allowed values for this property are: "LINUX", "WINDOWS", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type os_family: str :param is_reboot_required: The value to assign to the is_reboot_required property of this ManagedInstance. :type is_reboot_required: bool :param notification_topic_id: The value to assign to the notification_topic_id property of this ManagedInstance. :type notification_topic_id: str :param ksplice_effective_kernel_version: The value to assign to the ksplice_effective_kernel_version property of this ManagedInstance. :type ksplice_effective_kernel_version: str :param is_data_collection_authorized: The value to assign to the is_data_collection_authorized property of this ManagedInstance. :type is_data_collection_authorized: bool :param autonomous: The value to assign to the autonomous property of this ManagedInstance. :type autonomous: oci.os_management.models.AutonomousSettings :param security_updates_available: The value to assign to the security_updates_available property of this ManagedInstance. :type security_updates_available: int :param bug_updates_available: The value to assign to the bug_updates_available property of this ManagedInstance. :type bug_updates_available: int :param enhancement_updates_available: The value to assign to the enhancement_updates_available property of this ManagedInstance. :type enhancement_updates_available: int :param other_updates_available: The value to assign to the other_updates_available property of this ManagedInstance. :type other_updates_available: int :param scheduled_job_count: The value to assign to the scheduled_job_count property of this ManagedInstance. :type scheduled_job_count: int :param work_request_count: The value to assign to the work_request_count property of this ManagedInstance. :type work_request_count: int �str�intZSoftwareSourceIdzlist[SoftwareSourceId]zlist[Id]�boolZAutonomousSettings)�display_name�id�description�last_checkin� last_boot�updates_available�os_name� os_version�os_kernel_version�compartment_id�status�parent_software_source�child_software_sources�managed_instance_groups� os_family�is_reboot_required�notification_topic_id� ksplice_effective_kernel_version�is_data_collection_authorized� autonomous�security_updates_available�bug_updates_available�enhancement_updates_available�other_updates_available�scheduled_job_count�work_request_countZdisplayNamer r ZlastCheckinZlastBootZupdatesAvailableZosNameZ osVersionZosKernelVersionZ compartmentIdr ZparentSoftwareSourceZchildSoftwareSourcesZmanagedInstanceGroupsZosFamilyZisRebootRequiredZnotificationTopicIdZkspliceEffectiveKernelVersionZisDataCollectionAuthorizedr$ ZsecurityUpdatesAvailableZbugUpdatesAvailableZenhancementUpdatesAvailableZotherUpdatesAvailableZscheduledJobCountZworkRequestCountN)Z swagger_typesZ attribute_map� _display_name�_id�_description� _last_checkin� _last_boot�_updates_available�_os_name�_os_version�_os_kernel_version�_compartment_id�_status�_parent_software_source�_child_software_sources�_managed_instance_groups� _os_family�_is_reboot_required�_notification_topic_id�!_ksplice_effective_kernel_version�_is_data_collection_authorized�_autonomous�_security_updates_available�_bug_updates_available�_enhancement_updates_available�_other_updates_available�_scheduled_job_count�_work_request_count)�self�kwargs� rG �M/usr/lib/python3.9/site-packages/oci/os_management/models/managed_instance.py�__init__. s� s��zManagedInstance.__init__c C s | j S )z� **[Required]** Gets the display_name of this ManagedInstance. Managed Instance identifier :return: The display_name of this ManagedInstance. :rtype: str �r+ �rE rG rG rH r � s zManagedInstance.display_namec C s || _ dS )z� Sets the display_name of this ManagedInstance. Managed Instance identifier :param display_name: The display_name of this ManagedInstance. :type: str NrJ )rE r rG rG rH r s c C s | j S )z� **[Required]** Gets the id of this ManagedInstance. OCID for the managed instance :return: The id of this ManagedInstance. :rtype: str �r, rK rG rG rH r s zManagedInstance.idc C s || _ dS )z� Sets the id of this ManagedInstance. OCID for the managed instance :param id: The id of this ManagedInstance. :type: str NrL )rE r rG rG rH r s c C s | j S )z� Gets the description of this ManagedInstance. Information specified by the user about the managed instance :return: The description of this ManagedInstance. :rtype: str �r- rK rG rG rH r % s zManagedInstance.descriptionc C s || _ dS )z� Sets the description of this ManagedInstance. Information specified by the user about the managed instance :param description: The description of this ManagedInstance. :type: str NrM )rE r rG rG rH r 1 s c C s | j S )z� Gets the last_checkin of this ManagedInstance. Time at which the instance last checked in :return: The last_checkin of this ManagedInstance. :rtype: str �r. rK rG rG rH r = s zManagedInstance.last_checkinc C s || _ dS )z� Sets the last_checkin of this ManagedInstance. Time at which the instance last checked in :param last_checkin: The last_checkin of this ManagedInstance. :type: str NrN )rE r rG rG rH r I s c C s | j S )z� Gets the last_boot of this ManagedInstance. Time at which the instance last booted :return: The last_boot of this ManagedInstance. :rtype: str �r/ rK rG rG rH r U s zManagedInstance.last_bootc C s || _ dS )z� Sets the last_boot of this ManagedInstance. Time at which the instance last booted :param last_boot: The last_boot of this ManagedInstance. :type: str NrO )rE r rG rG rH r a s c C s | j S )z� Gets the updates_available of this ManagedInstance. Number of updates available to be installed :return: The updates_available of this ManagedInstance. :rtype: int �r0 rK rG rG rH r m s z!ManagedInstance.updates_availablec C s || _ dS )z� Sets the updates_available of this ManagedInstance. Number of updates available to be installed :param updates_available: The updates_available of this ManagedInstance. :type: int NrP )rE r rG rG rH r y s c C s | j S )z� Gets the os_name of this ManagedInstance. Operating System Name :return: The os_name of this ManagedInstance. :rtype: str �r1 rK rG rG rH r � s zManagedInstance.os_namec C s || _ dS )z� Sets the os_name of this ManagedInstance. Operating System Name :param os_name: The os_name of this ManagedInstance. :type: str NrQ )rE r rG rG rH r � s c C s | j S )z� Gets the os_version of this ManagedInstance. Operating System Version :return: The os_version of this ManagedInstance. :rtype: str �r2 rK rG rG rH r � s zManagedInstance.os_versionc C s || _ dS )z� Sets the os_version of this ManagedInstance. Operating System Version :param os_version: The os_version of this ManagedInstance. :type: str NrR )rE r rG rG rH r � s c C s | j S )z� Gets the os_kernel_version of this ManagedInstance. Operating System Kernel Version :return: The os_kernel_version of this ManagedInstance. :rtype: str �r3 rK rG rG rH r � s z!ManagedInstance.os_kernel_versionc C s || _ dS )z� Sets the os_kernel_version of this ManagedInstance. Operating System Kernel Version :param os_kernel_version: The os_kernel_version of this ManagedInstance. :type: str NrS )rE r rG rG rH r � s c C s | j S )z� **[Required]** Gets the compartment_id of this ManagedInstance. OCID for the Compartment :return: The compartment_id of this ManagedInstance. :rtype: str �r4 rK rG rG rH r � s zManagedInstance.compartment_idc C s || _ dS )z� Sets the compartment_id of this ManagedInstance. OCID for the Compartment :param compartment_id: The compartment_id of this ManagedInstance. :type: str NrT )rE r rG rG rH r � s c C s | j S )a} Gets the status of this ManagedInstance. status of the managed instance. Allowed values for this property are: "NORMAL", "UNREACHABLE", "ERROR", "WARNING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this ManagedInstance. :rtype: str )r5 rK rG rG rH r � s zManagedInstance.statusc C s g d�}t ||�sd}|| _dS )z� Sets the status of this ManagedInstance. status of the managed instance. :param status: The status of this ManagedInstance. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r r5 )rE r �allowed_valuesrG rG rH r � s c C s | j S )a Gets the parent_software_source of this ManagedInstance. the parent (base) Software Source attached to the Managed Instance :return: The parent_software_source of this ManagedInstance. :rtype: oci.os_management.models.SoftwareSourceId �r6 rK rG rG rH r s z&ManagedInstance.parent_software_sourcec C s || _ dS )a+ Sets the parent_software_source of this ManagedInstance. the parent (base) Software Source attached to the Managed Instance :param parent_software_source: The parent_software_source of this ManagedInstance. :type: oci.os_management.models.SoftwareSourceId NrW )rE r rG rG rH r s c C s | j S )a Gets the child_software_sources of this ManagedInstance. list of child Software Sources attached to the Managed Instance :return: The child_software_sources of this ManagedInstance. :rtype: list[oci.os_management.models.SoftwareSourceId] �r7 rK rG rG rH r s z&ManagedInstance.child_software_sourcesc C s || _ dS )a. Sets the child_software_sources of this ManagedInstance. list of child Software Sources attached to the Managed Instance :param child_software_sources: The child_software_sources of this ManagedInstance. :type: list[oci.os_management.models.SoftwareSourceId] NrX )rE r rG rG rH r ' s c C s | j S )a Gets the managed_instance_groups of this ManagedInstance. The ids of the managed instance groups of which this instance is a member. :return: The managed_instance_groups of this ManagedInstance. :rtype: list[oci.os_management.models.Id] �r8 rK rG rG rH r 3 s z'ManagedInstance.managed_instance_groupsc C s || _ dS )a6 Sets the managed_instance_groups of this ManagedInstance. The ids of the managed instance groups of which this instance is a member. :param managed_instance_groups: The managed_instance_groups of this ManagedInstance. :type: list[oci.os_management.models.Id] NrY )rE r rG rG rH r @ s c C s | j S )a� Gets the os_family of this ManagedInstance. The Operating System type of the managed instance. Allowed values for this property are: "LINUX", "WINDOWS", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The os_family of this ManagedInstance. :rtype: str )r9 rK rG rG rH r M s zManagedInstance.os_familyc C s g d�}t ||�sd}|| _dS )z� Sets the os_family of this ManagedInstance. The Operating System type of the managed instance. :param os_family: The os_family of this ManagedInstance. :type: str )r r r rU N)r r9 )rE r rV rG rG rH r \ s c C s | j S )z� Gets the is_reboot_required of this ManagedInstance. Indicates whether a reboot is required to complete installation of updates. :return: The is_reboot_required of this ManagedInstance. :rtype: bool �r: rK rG rG rH r k s z"ManagedInstance.is_reboot_requiredc C s || _ dS )a Sets the is_reboot_required of this ManagedInstance. Indicates whether a reboot is required to complete installation of updates. :param is_reboot_required: The is_reboot_required of this ManagedInstance. :type: bool NrZ )rE r rG rG rH r w s c C s | j S )z� Gets the notification_topic_id of this ManagedInstance. OCID of the ONS topic used to send notification to users :return: The notification_topic_id of this ManagedInstance. :rtype: str �r; rK rG rG rH r! � s z%ManagedInstance.notification_topic_idc C s || _ dS )z� Sets the notification_topic_id of this ManagedInstance. OCID of the ONS topic used to send notification to users :param notification_topic_id: The notification_topic_id of this ManagedInstance. :type: str Nr[ )rE r! rG rG rH r! � s c C s | j S )z� Gets the ksplice_effective_kernel_version of this ManagedInstance. The ksplice effective kernel version :return: The ksplice_effective_kernel_version of this ManagedInstance. :rtype: str �r<