o
    ɶd ;                     @   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                   @   sZ  e 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d(d) Zd*d+ Zd,d- Zd.S )/SubscriptionSummaryz3
    The subscription's configuration summary.
    PENDINGACTIVEDELETEDc                 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S )a   
        Initializes a new SubscriptionSummary object with values from keyword arguments.
        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 SubscriptionSummary.
        :type id: str

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

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

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

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

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

        :param created_time:
            The value to assign to the created_time property of this SubscriptionSummary.
        :type created_time: int

        :param delivery_policy:
            The value to assign to the delivery_policy property of this SubscriptionSummary.
        :type delivery_policy: oci.ons.models.DeliveryPolicy

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

        :param freeform_tags:
            The value to assign to the freeform_tags property of this SubscriptionSummary.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this SubscriptionSummary.
        :type defined_tags: dict(str, dict(str, object))

        strintZDeliveryPolicyzdict(str, str)zdict(str, dict(str, object)))idtopic_idprotocolendpointlifecycle_statecompartment_idcreated_timedelivery_policyetagfreeform_tagsdefined_tagsr   ZtopicIdr   r   ZlifecycleStateZcompartmentIdZcreatedTimeZdeliveryPolicyr   ZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id	_topic_id	_protocol	_endpoint_lifecycle_state_compartment_id_created_time_delivery_policy_etag_freeform_tags_defined_tags)selfkwargs r$   Gusr/lib/python3.10/site-packages/oci/ons/models/subscription_summary.py__init__   sF   5
zSubscriptionSummary.__init__c                 C      | j S )a  
        **[Required]** Gets the id of this SubscriptionSummary.
        The `OCID`__ of the subscription.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The id of this SubscriptionSummary.
        :rtype: str
        r   r"   r$   r$   r%   r   z      zSubscriptionSummary.idc                 C   
   || _ dS )a  
        Sets the id of this SubscriptionSummary.
        The `OCID`__ of the subscription.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param id: The id of this SubscriptionSummary.
        :type: str
        Nr(   )r"   r   r$   r$   r%   r         
c                 C   r'   )a&  
        **[Required]** Gets the topic_id of this SubscriptionSummary.
        The `OCID`__ of the associated topic.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The topic_id of this SubscriptionSummary.
        :rtype: str
        r   r)   r$   r$   r%   r      r*   zSubscriptionSummary.topic_idc                 C   r+   )a  
        Sets the topic_id of this SubscriptionSummary.
        The `OCID`__ of the associated topic.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param topic_id: The topic_id of this SubscriptionSummary.
        :type: str
        Nr-   )r"   r   r$   r$   r%   r      r,   c                 C   r'   )a  
        **[Required]** Gets the protocol of this SubscriptionSummary.
        The protocol used for the subscription.

        Allowed values:
          * `CUSTOM_HTTPS`
          * `EMAIL`
          * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
          * `ORACLE_FUNCTIONS`
          * `PAGERDUTY`
          * `SLACK`
          * `SMS`

        For information about subscription protocols, see
        `To create a subscription`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub


        :return: The protocol of this SubscriptionSummary.
        :rtype: str
        r   r)   r$   r$   r%   r      s   zSubscriptionSummary.protocolc                 C   r+   )a  
        Sets the protocol of this SubscriptionSummary.
        The protocol used for the subscription.

        Allowed values:
          * `CUSTOM_HTTPS`
          * `EMAIL`
          * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`)
          * `ORACLE_FUNCTIONS`
          * `PAGERDUTY`
          * `SLACK`
          * `SMS`

        For information about subscription protocols, see
        `To create a subscription`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub


        :param protocol: The protocol of this SubscriptionSummary.
        :type: str
        Nr.   )r"   r   r$   r$   r%   r      s   
c                 C   r'   )ax  
        **[Required]** Gets the endpoint of this SubscriptionSummary.
        A locator that corresponds to the subscription protocol.
        For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.


        :return: The endpoint of this SubscriptionSummary.
        :rtype: str
        r   r)   r$   r$   r%   r      s   zSubscriptionSummary.endpointc                 C   r+   )ap  
        Sets the endpoint of this SubscriptionSummary.
        A locator that corresponds to the subscription protocol.
        For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.


        :param endpoint: The endpoint of this SubscriptionSummary.
        :type: str
        Nr/   )r"   r   r$   r$   r%   r      s   
c                 C   r'   )a
  
        **[Required]** Gets the lifecycle_state of this SubscriptionSummary.
        The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.

        Allowed values for this property are: "PENDING", "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this SubscriptionSummary.
        :rtype: str
        )r   r)   r$   r$   r%   r      s   z#SubscriptionSummary.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )aF  
        Sets the lifecycle_state of this SubscriptionSummary.
        The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.


        :param lifecycle_state: The lifecycle_state of this SubscriptionSummary.
        :type: str
        )r   r   r	   ZUNKNOWN_ENUM_VALUEN)r   r   )r"   r   Zallowed_valuesr$   r$   r%   r     s   


c                 C   r'   )aB  
        **[Required]** Gets the compartment_id of this SubscriptionSummary.
        The `OCID`__ of the compartment for the subscription.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this SubscriptionSummary.
        :rtype: str
        r   r)   r$   r$   r%   r     r*   z"SubscriptionSummary.compartment_idc                 C   r+   )a@  
        Sets the compartment_id of this SubscriptionSummary.
        The `OCID`__ of the compartment for the subscription.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this SubscriptionSummary.
        :type: str
        Nr0   )r"   r   r$   r$   r%   r   ,  r,   c                 C   r'   )z
        Gets the created_time of this SubscriptionSummary.
        The time when this suscription was created.


        :return: The created_time of this SubscriptionSummary.
        :rtype: int
        r   r)   r$   r$   r%   r   :     
z SubscriptionSummary.created_timec                 C   r+   )z
        Sets the created_time of this SubscriptionSummary.
        The time when this suscription was created.


        :param created_time: The created_time of this SubscriptionSummary.
        :type: int
        Nr1   )r"   r   r$   r$   r%   r   F     

c                 C   r'   )z
        Gets the delivery_policy of this SubscriptionSummary.

        :return: The delivery_policy of this SubscriptionSummary.
        :rtype: oci.ons.models.DeliveryPolicy
        r   r)   r$   r$   r%   r   R  s   z#SubscriptionSummary.delivery_policyc                 C   r+   )z
        Sets the delivery_policy of this SubscriptionSummary.

        :param delivery_policy: The delivery_policy of this SubscriptionSummary.
        :type: oci.ons.models.DeliveryPolicy
        Nr4   )r"   r   r$   r$   r%   r   \  s   
c                 C   r'   )z
        Gets the etag of this SubscriptionSummary.
        For optimistic concurrency control. See `if-match`.


        :return: The etag of this SubscriptionSummary.
        :rtype: str
        r   r)   r$   r$   r%   r   f  r2   zSubscriptionSummary.etagc                 C   r+   )z
        Sets the etag of this SubscriptionSummary.
        For optimistic concurrency control. See `if-match`.


        :param etag: The etag of this SubscriptionSummary.
        :type: str
        Nr5   )r"   r   r$   r$   r%   r   r  r3   c                 C   r'   )a  
        Gets the freeform_tags of this SubscriptionSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this SubscriptionSummary.
        :rtype: dict(str, str)
        r    r)   r$   r$   r%   r   ~     z!SubscriptionSummary.freeform_tagsc                 C   r+   )a  
        Sets the freeform_tags of this SubscriptionSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this SubscriptionSummary.
        :type: dict(str, str)
        Nr6   )r"   r   r$   r$   r%   r        
c                 C   r'   )a  
        Gets the defined_tags of this SubscriptionSummary.
        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/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this SubscriptionSummary.
        :rtype: dict(str, dict(str, object))
        r!   r)   r$   r$   r%   r     r7   z SubscriptionSummary.defined_tagsc                 C   r+   )a  
        Sets the defined_tags of this SubscriptionSummary.
        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/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this SubscriptionSummary.
        :type: dict(str, dict(str, object))
        Nr9   )r"   r   r$   r$   r%   r     r8   c                 C   s   t | S N)r   r)   r$   r$   r%   __repr__  s   zSubscriptionSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r"   otherr$   r$   r%   __eq__  s   zSubscriptionSummary.__eq__c                 C   s
   | |k S r:   r$   r=   r$   r$   r%   __ne__  s   
zSubscriptionSummary.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_PENDINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETEDr&   propertyr   setterr   r   r   r   r   r   r   r   r   r   r;   r?   r@   r$   r$   r$   r%   r      sj    \














	
	





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r$   r$   r$   r%   <module>   s   