o
    ëÉ¶d .  ã                   @   sD   d dl mZ ddlmZmZmZ ddlmZ eG dd„ deƒƒZdS )é   )ÚBaseAnnouncementé    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s~   e 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	dd„ Z
dd„ Zdd„ ZdS )ÚAnnouncementz9
    A message about an impactful operational event.
    c                 K   s†  i 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œ¥| _ i 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*| _	d*| _
d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d+| _d*S ),a  
        Initializes a new Announcement object with values from keyword arguments. The default value of the :py:attr:`~oci.announcements_service.models.Announcement.type` attribute
        of this class is ``Announcement`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

        :param reference_ticket_number:
            The value to assign to the reference_ticket_number property of this Announcement.
        :type reference_ticket_number: str

        :param summary:
            The value to assign to the summary property of this Announcement.
        :type summary: str

        :param time_one_title:
            The value to assign to the time_one_title property of this Announcement.
        :type time_one_title: str

        :param time_one_type:
            The value to assign to the time_one_type property of this Announcement.
            Allowed values for this property are: "ACTION_REQUIRED_BY", "NEW_START_TIME", "ORIGINAL_END_TIME", "REPORT_DATE", "START_TIME", "TIME_DETECTED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type time_one_type: str

        :param time_one_value:
            The value to assign to the time_one_value property of this Announcement.
        :type time_one_value: datetime

        :param time_two_title:
            The value to assign to the time_two_title property of this Announcement.
        :type time_two_title: str

        :param time_two_type:
            The value to assign to the time_two_type property of this Announcement.
            Allowed values for this property are: "END_TIME", "NEW_END_TIME", "ESTIMATED_END_TIME", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type time_two_type: str

        :param time_two_value:
            The value to assign to the time_two_value property of this Announcement.
        :type time_two_value: datetime

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

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

        :param announcement_type:
            The value to assign to the announcement_type property of this Announcement.
            Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type announcement_type: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Announcement.
            Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param is_banner:
            The value to assign to the is_banner property of this Announcement.
        :type is_banner: bool

        :param time_created:
            The value to assign to the time_created property of this Announcement.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Announcement.
        :type time_updated: datetime

        :param environment_name:
            The value to assign to the environment_name property of this Announcement.
        :type environment_name: str

        :param platform_type:
            The value to assign to the platform_type property of this Announcement.
            Allowed values for this property are: "IAAS", "SAAS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type platform_type: str

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

        :param additional_information:
            The value to assign to the additional_information property of this Announcement.
        :type additional_information: str

        :param affected_resources:
            The value to assign to the affected_resources property of this Announcement.
        :type affected_resources: list[oci.announcements_service.models.AffectedResource]

        ÚidÚstrÚtypeZreference_ticket_numberÚsummaryZtime_one_titleZtime_one_typeZtime_one_valueÚdatetimeZtime_two_titleZtime_two_typeZtime_two_valueZservicesz	list[str]Zaffected_regionsZannouncement_typeZlifecycle_stateZ	is_bannerÚboolZtime_createdZtime_updatedzlist[AffectedResource])Zenvironment_nameZplatform_typeÚdescriptionÚadditional_informationÚaffected_resourcesZreferenceTicketNumberZtimeOneTitleZtimeOneTypeZtimeOneValueZtimeTwoTitleZtimeTwoTypeZtimeTwoValueZaffectedRegionsZannouncementTypeZlifecycleStateZisBannerZtimeCreatedZtimeUpdatedZenvironmentNameZplatformTyper   ZadditionalInformationZaffectedResourcesNr   )Zswagger_typesZattribute_mapZ_idZ_typeZ_reference_ticket_numberZ_summaryZ_time_one_titleZ_time_one_typeZ_time_one_valueZ_time_two_titleZ_time_two_typeZ_time_two_valueZ	_servicesZ_affected_regionsZ_announcement_typeZ_lifecycle_stateZ
_is_bannerZ_time_createdZ_time_updatedZ_environment_nameZ_platform_typeÚ_descriptionÚ_additional_informationÚ_affected_resources)ÚselfÚkwargs© r   úQusr/lib/python3.10/site-packages/oci/announcements_service/models/announcement.pyÚ__init__   sÒ   iÿþýüûúùø	÷
öõôóòñðï
êÿþýüûúùø	÷
öõôóòñðï
ê
zAnnouncement.__init__c                 C   ó   | j S )a  
        Gets the description of this Announcement.
        A detailed explanation of the event, expressed by using Markdown language. Avoid entering
        confidential information.


        :return: The description of this Announcement.
        :rtype: str
        ©r   ©r   r   r   r   r   Å   s   zAnnouncement.descriptionc                 C   ó
   || _ dS )a  
        Sets the description of this Announcement.
        A detailed explanation of the event, expressed by using Markdown language. Avoid entering
        confidential information.


        :param description: The description of this Announcement.
        :type: str
        Nr   )r   r   r   r   r   r   Ò   s   
c                 C   r   )aÃ  
        Gets the additional_information of this Announcement.
        Additional information about the event, expressed by using Markdown language and included in the
        details view of an announcement. Additional information might include remediation steps or
        answers to frequently asked questions. Avoid entering confidential information.


        :return: The additional_information of this Announcement.
        :rtype: str
        ©r   r   r   r   r   r   ß   s   z#Announcement.additional_informationc                 C   r   )aØ  
        Sets the additional_information of this Announcement.
        Additional information about the event, expressed by using Markdown language and included in the
        details view of an announcement. Additional information might include remediation steps or
        answers to frequently asked questions. Avoid entering confidential information.


        :param additional_information: The additional_information of this Announcement.
        :type: str
        Nr   )r   r   r   r   r   r   í   s   
c                 C   r   )a'  
        Gets the affected_resources of this Announcement.
        The list of resources, if any, affected by the event described in the announcement.


        :return: The affected_resources of this Announcement.
        :rtype: list[oci.announcements_service.models.AffectedResource]
        ©r   r   r   r   r   r   û   s   
zAnnouncement.affected_resourcesc                 C   r   )a8  
        Sets the affected_resources of this Announcement.
        The list of resources, if any, affected by the event described in the announcement.


        :param affected_resources: The affected_resources of this Announcement.
        :type: list[oci.announcements_service.models.AffectedResource]
        Nr   )r   r   r   r   r   r     s   

c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__  s   zAnnouncement.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zAnnouncement.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__  s   
zAnnouncement.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r   r!   r%   r&   r   r   r   r   r      s&     4





r   N)	Zbase_announcementr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r   r   r   r   Ú<module>   s
   