o
    ëÉ¶dQ:  ã                   @   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 )/ÚSubscriptionzÞ
    The subscription's configuration. For general information about subscriptions, see
    `Notifications Overview`__.

    __ https://docs.cloud.oracle.com/iaas/Content/Notification/Concepts/notificationoverview.htm
    Ú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 Subscription 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 Subscription.
        :type id: str

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Subscription.
            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 Subscription.
        :type compartment_id: str

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

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

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

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

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

        ÚstrÚintzdict(str, str)zdict(str, dict(str, object)))ÚidÚtopic_idÚprotocolÚendpointÚlifecycle_stateÚcompartment_idÚcreated_timeÚdeliver_policyÚetagÚfreeform_tagsÚdefined_tagsr   ZtopicIdr   r   ZlifecycleStateZcompartmentIdZcreatedTimeZdeliverPolicyr   ZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ	_topic_idÚ	_protocolÚ	_endpointÚ_lifecycle_stateÚ_compartment_idÚ_created_timeÚ_deliver_policyÚ_etagÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r$   ú?usr/lib/python3.10/site-packages/oci/ons/models/subscription.pyÚ__init__!   sF   5õõ
zSubscription.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the id of this Subscription.
        The `OCID`__ of the subscription.

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


        :return: The id of this Subscription.
        :rtype: str
        ©r   ©r"   r$   r$   r%   r   }   ó   zSubscription.idc                 C   ó
   || _ dS )zú
        Sets the id of this Subscription.
        The `OCID`__ of the subscription.

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


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

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


        :return: The topic_id of this Subscription.
        :rtype: str
        ©r   r)   r$   r$   r%   r   ™   r*   zSubscription.topic_idc                 C   r+   )a  
        Sets the topic_id of this Subscription.
        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 Subscription.
        :type: str
        Nr-   )r"   r   r$   r$   r%   r   §   r,   c                 C   r'   )aŠ  
        **[Required]** Gets the protocol of this Subscription.
        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 Subscription.
        :rtype: str
        ©r   r)   r$   r$   r%   r   µ   s   zSubscription.protocolc                 C   r+   )a‚  
        Sets the protocol of this Subscription.
        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 Subscription.
        :type: str
        Nr.   )r"   r   r$   r$   r%   r   Ï   s   
c                 C   r'   )aj  
        **[Required]** Gets the endpoint of this Subscription.
        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 Subscription.
        :rtype: str
        ©r   r)   r$   r$   r%   r   é   s   zSubscription.endpointc                 C   r+   )ab  
        Sets the endpoint of this Subscription.
        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 Subscription.
        :type: str
        Nr/   )r"   r   r$   r$   r%   r   ö   s   
c                 C   r'   )aü  
        **[Required]** Gets the lifecycle_state of this Subscription.
        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 Subscription.
        :rtype: str
        )r   r)   r$   r$   r%   r     s   zSubscription.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )a8  
        Sets the lifecycle_state of this Subscription.
        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 Subscription.
        :type: str
        )r   r   r	   ZUNKNOWN_ENUM_VALUEN)r   r   )r"   r   Zallowed_valuesr$   r$   r%   r     s   


c                 C   r'   )a4  
        **[Required]** Gets the compartment_id of this Subscription.
        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 Subscription.
        :rtype: str
        ©r   r)   r$   r$   r%   r   !  r*   zSubscription.compartment_idc                 C   r+   )a2  
        Sets the compartment_id of this Subscription.
        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 Subscription.
        :type: str
        Nr0   )r"   r   r$   r$   r%   r   /  r,   c                 C   r'   )z¿
        Gets the created_time of this Subscription.
        The time when this suscription was created.


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


        :param created_time: The created_time of this Subscription.
        :type: int
        Nr1   )r"   r   r$   r$   r%   r   I  ó   

c                 C   r'   )zÙ
        Gets the deliver_policy of this Subscription.
        The delivery policy of the subscription. Stored as a JSON string.


        :return: The deliver_policy of this Subscription.
        :rtype: str
        ©r   r)   r$   r$   r%   r   U  r2   zSubscription.deliver_policyc                 C   r+   )zæ
        Sets the deliver_policy of this Subscription.
        The delivery policy of the subscription. Stored as a JSON string.


        :param deliver_policy: The deliver_policy of this Subscription.
        :type: str
        Nr4   )r"   r   r$   r$   r%   r   a  r3   c                 C   r'   )z·
        Gets the etag of this Subscription.
        For optimistic concurrency control. See `if-match`.


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


        :param etag: The etag of this Subscription.
        :type: str
        Nr5   )r"   r   r$   r$   r%   r   y  r3   c                 C   r'   )aÂ  
        Gets the freeform_tags of this Subscription.
        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 Subscription.
        :rtype: dict(str, str)
        ©r    r)   r$   r$   r%   r   …  ó   zSubscription.freeform_tagsc                 C   r+   )aÎ  
        Sets the freeform_tags of this Subscription.
        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 Subscription.
        :type: dict(str, str)
        Nr6   )r"   r   r$   r$   r%   r   •  ó   
c                 C   r'   )a¸  
        Gets the defined_tags of this Subscription.
        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 Subscription.
        :rtype: dict(str, dict(str, object))
        ©r!   r)   r$   r$   r%   r   ¥  r7   zSubscription.defined_tagsc                 C   r+   )aÃ  
        Sets the defined_tags of this Subscription.
        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 Subscription.
        :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Subscription.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r"   Úotherr$   r$   r%   Ú__eq__È  s   zSubscription.__eq__c                 C   s
   | |k S r:   r$   r=   r$   r$   r%   Ú__ne__Î  s   
zSubscription.__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   