o
    ɶd~9                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s  e Zd ZdZdZdZdZdZdd Ze	dd	 Z
e
jd
d	 Z
e	dd Zejdd Ze	dd Zejdd Ze	dd Zejdd Ze	dd Zejdd Ze	dd Zejdd Ze	dd Zejdd Ze	dd Zejdd Ze	d d! Zejd"d! Ze	d#d$ Zejd%d$ Ze	d&d' Zejd(d' Ze	d)d* Zejd+d* Ze	d,d- Zejd.d- Ze	d/d0 Zejd1d0 Ze	d2d3 Zejd4d3 Zd5d6 Zd7d8 Zd9d: Zd;S )<Erratumz$
    Details about the erratum.
    SECURITYBUGENHANCEMENTOTHERc                 K   s   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| _dS )a	  
        Initializes a new Erratum object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this Erratum.
        :type name: str

        :param id:
            The value to assign to the id property of this Erratum.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Erratum.
        :type compartment_id: str

        :param synopsis:
            The value to assign to the synopsis property of this Erratum.
        :type synopsis: str

        :param issued:
            The value to assign to the issued property of this Erratum.
        :type issued: str

        :param description:
            The value to assign to the description property of this Erratum.
        :type description: str

        :param updated:
            The value to assign to the updated property of this Erratum.
        :type updated: str

        :param advisory_type:
            The value to assign to the advisory_type property of this Erratum.
            Allowed values for this property are: "SECURITY", "BUG", "ENHANCEMENT", "OTHER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type advisory_type: str

        :param _from:
            The value to assign to the _from property of this Erratum.
        :type _from: str

        :param solution:
            The value to assign to the solution property of this Erratum.
        :type solution: str

        :param references:
            The value to assign to the references property of this Erratum.
        :type references: str

        :param affected_instances:
            The value to assign to the affected_instances property of this Erratum.
        :type affected_instances: list[oci.os_management.models.Id]

        :param related_cves:
            The value to assign to the related_cves property of this Erratum.
        :type related_cves: list[str]

        :param software_sources:
            The value to assign to the software_sources property of this Erratum.
        :type software_sources: list[oci.os_management.models.Id]

        :param packages:
            The value to assign to the packages property of this Erratum.
        :type packages: list[oci.os_management.models.SoftwarePackageSummary]

        strzlist[Id]z	list[str]zlist[SoftwarePackageSummary])nameidcompartment_idsynopsisissueddescriptionupdatedadvisory_type_fromsolution
referencesaffected_instancesrelated_cvessoftware_sourcespackagesr   r   ZcompartmentIdr   r   r   r   ZadvisoryTypefromr   r   ZaffectedInstancesZrelatedCvesZsoftwareSourcesr   N)Zswagger_typesZattribute_map_name_id_compartment_id	_synopsis_issued_description_updated_advisory_type_Erratum__from	_solution_references_affected_instances_related_cves_software_sources	_packages)selfkwargs r-   Dusr/lib/python3.10/site-packages/oci/os_management/models/erratum.py__init__"   s^   E
zErratum.__init__c                 C      | j S )z
        **[Required]** Gets the name of this Erratum.
        Advisory name


        :return: The name of this Erratum.
        :rtype: str
        r   r+   r-   r-   r.   r         
zErratum.namec                 C   
   || _ dS )z
        Sets the name of this Erratum.
        Advisory name


        :param name: The name of this Erratum.
        :type: str
        Nr1   )r+   r   r-   r-   r.   r         

c                 C   r0   )z
        **[Required]** Gets the id of this Erratum.
        OCID for the Erratum.


        :return: The id of this Erratum.
        :rtype: str
        r   r2   r-   r-   r.   r      r3   z
Erratum.idc                 C   r4   )z
        Sets the id of this Erratum.
        OCID for the Erratum.


        :param id: The id of this Erratum.
        :type: str
        Nr6   )r+   r   r-   r-   r.   r      r5   c                 C   r0   )z
        **[Required]** Gets the compartment_id of this Erratum.
        OCID for the Compartment.


        :return: The compartment_id of this Erratum.
        :rtype: str
        r   r2   r-   r-   r.   r      r3   zErratum.compartment_idc                 C   r4   )z
        Sets the compartment_id of this Erratum.
        OCID for the Compartment.


        :param compartment_id: The compartment_id of this Erratum.
        :type: str
        Nr7   )r+   r   r-   r-   r.   r      r5   c                 C   r0   )z
        Gets the synopsis of this Erratum.
        Summary description of the erratum.


        :return: The synopsis of this Erratum.
        :rtype: str
        r   r2   r-   r-   r.   r      r3   zErratum.synopsisc                 C   r4   )z
        Sets the synopsis of this Erratum.
        Summary description of the erratum.


        :param synopsis: The synopsis of this Erratum.
        :type: str
        Nr8   )r+   r   r-   r-   r.   r      r5   c                 C   r0   )z
        Gets the issued of this Erratum.
        date the erratum was issued


        :return: The issued of this Erratum.
        :rtype: str
        r    r2   r-   r-   r.   r      r3   zErratum.issuedc                 C   r4   )z
        Sets the issued of this Erratum.
        date the erratum was issued


        :param issued: The issued of this Erratum.
        :type: str
        Nr9   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the description of this Erratum.
        Details describing the erratum.


        :return: The description of this Erratum.
        :rtype: str
        r!   r2   r-   r-   r.   r     r3   zErratum.descriptionc                 C   r4   )z
        Sets the description of this Erratum.
        Details describing the erratum.


        :param description: The description of this Erratum.
        :type: str
        Nr:   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the updated of this Erratum.
        most recent date the erratum was updated


        :return: The updated of this Erratum.
        :rtype: str
        r"   r2   r-   r-   r.   r   *  r3   zErratum.updatedc                 C   r4   )z
        Sets the updated of this Erratum.
        most recent date the erratum was updated


        :param updated: The updated of this Erratum.
        :type: str
        Nr;   )r+   r   r-   r-   r.   r   6  r5   c                 C   r0   )an  
        Gets the advisory_type of this Erratum.
        Type of the erratum.

        Allowed values for this property are: "SECURITY", "BUG", "ENHANCEMENT", "OTHER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The advisory_type of this Erratum.
        :rtype: str
        )r#   r2   r-   r-   r.   r   B  s   zErratum.advisory_typec                 C   s    g d}t ||sd}|| _dS )z
        Sets the advisory_type of this Erratum.
        Type of the erratum.


        :param advisory_type: The advisory_type of this Erratum.
        :type: str
        )r   r   r	   r
   ZUNKNOWN_ENUM_VALUEN)r   r#   )r+   r   Zallowed_valuesr-   r-   r.   r   Q  s   


c                 C   r0   )z
        Gets the _from of this Erratum.
        Information specifying from where the erratum was release.


        :return: The _from of this Erratum.
        :rtype: str
        r$   r2   r-   r-   r.   r   `  r3   zErratum._fromc                 C   r4   )z
        Sets the _from of this Erratum.
        Information specifying from where the erratum was release.


        :param _from: The _from of this Erratum.
        :type: str
        Nr<   )r+   r   r-   r-   r.   r   l  r5   c                 C   r0   )z
        Gets the solution of this Erratum.
        Information describing how the erratum can be resolved.


        :return: The solution of this Erratum.
        :rtype: str
        r%   r2   r-   r-   r.   r   x  r3   zErratum.solutionc                 C   r4   )z
        Sets the solution of this Erratum.
        Information describing how the erratum can be resolved.


        :param solution: The solution of this Erratum.
        :type: str
        Nr=   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the references of this Erratum.
        Information describing how to find more information about the erratum.


        :return: The references of this Erratum.
        :rtype: str
        r&   r2   r-   r-   r.   r     r3   zErratum.referencesc                 C   r4   )z
        Sets the references of this Erratum.
        Information describing how to find more information about the erratum.


        :param references: The references of this Erratum.
        :type: str
        Nr>   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the affected_instances of this Erratum.
        list of managed instances  to this erratum


        :return: The affected_instances of this Erratum.
        :rtype: list[oci.os_management.models.Id]
        r'   r2   r-   r-   r.   r     r3   zErratum.affected_instancesc                 C   r4   )z
        Sets the affected_instances of this Erratum.
        list of managed instances  to this erratum


        :param affected_instances: The affected_instances of this Erratum.
        :type: list[oci.os_management.models.Id]
        Nr?   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the related_cves of this Erratum.
        list of CVEs applicable to this erratum


        :return: The related_cves of this Erratum.
        :rtype: list[str]
        r(   r2   r-   r-   r.   r     r3   zErratum.related_cvesc                 C   r4   )z
        Sets the related_cves of this Erratum.
        list of CVEs applicable to this erratum


        :param related_cves: The related_cves of this Erratum.
        :type: list[str]
        Nr@   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the software_sources of this Erratum.
        list of Software Sources


        :return: The software_sources of this Erratum.
        :rtype: list[oci.os_management.models.Id]
        r)   r2   r-   r-   r.   r     r3   zErratum.software_sourcesc                 C   r4   )z
        Sets the software_sources of this Erratum.
        list of Software Sources


        :param software_sources: The software_sources of this Erratum.
        :type: list[oci.os_management.models.Id]
        NrA   )r+   r   r-   r-   r.   r     r5   c                 C   r0   )z
        Gets the packages of this Erratum.
        list of Packages affected by this erratum


        :return: The packages of this Erratum.
        :rtype: list[oci.os_management.models.SoftwarePackageSummary]
        r*   r2   r-   r-   r.   r     r3   zErratum.packagesc                 C   r4   )z
        Sets the packages of this Erratum.
        list of Packages affected by this erratum


        :param packages: The packages of this Erratum.
        :type: list[oci.os_management.models.SoftwarePackageSummary]
        NrB   )r+   r   r-   r-   r.   r     r5   c                 C   s   t | S N)r   r2   r-   r-   r.   __repr__  s   zErratum.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r+   otherr-   r-   r.   __eq__  s   zErratum.__eq__c                 C   s
   | |k S rC   r-   rF   r-   r-   r.   __ne__  s   
zErratum.__ne__N)__name__
__module____qualname____doc__ZADVISORY_TYPE_SECURITYZADVISORY_TYPE_BUGZADVISORY_TYPE_ENHANCEMENTZADVISORY_TYPE_OTHERr/   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   rD   rH   rI   r-   r-   r-   r.   r      s    x





























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r-   r-   r-   r.   <module>   s   