a ýÎòfQ:ã@s8ddlmZmZmZddlmZeGdd„deƒƒZdS)é)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@sZeZdZdZdZdZdZdd„Zedd„ƒZ e j d d„ƒZ ed d „ƒZ e j d d „ƒZ ed d„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ edd„ƒZej dd„ƒZedd„ƒZej dd„ƒZedd„ƒZej dd„ƒZedd„ƒZej dd„ƒZedd „ƒZej d!d „ƒZed"d#„ƒZej d$d#„ƒZed%d&„ƒZej d'd&„ƒZd(d)„Zd*d+„Zd,d-„Zd.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 Ks‚ddddddddddddœ |_dddd d d d d ddddœ |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ dS)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Úintzdict(str, str)zdict(str, dict(str, object))) ÚidÚtopic_idÚprotocolÚendpointÚlifecycle_stateÚcompartment_idÚ created_timeÚdeliver_policyÚetagÚ freeform_tagsÚ defined_tagsr ZtopicIdrrZlifecycleStateZ compartmentIdZ createdTimeZ deliverPolicyrZ 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.9/site-packages/oci/ons/models/subscription.pyÚ__init__!sF5õõzSubscription.__init__cCs|jS)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 }s zSubscription.idcCs ||_dS)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 ‹s cCs|jS)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 ©rr(r$r$r%r ™s zSubscription.topic_idcCs ||_dS)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 §s cCs|jS)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 ©rr(r$r$r%rµszSubscription.protocolcCs ||_dS)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"rr$r$r%rÏscCs|jS)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 ©rr(r$r$r%rés zSubscription.endpointcCs ||_dS)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"rr$r$r%rös cCs|jS)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 )rr(r$r$r%rs zSubscription.lifecycle_statecCs gd¢}t||ƒsd}||_dS)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 )rrr ZUNKNOWN_ENUM_VALUEN)rr)r"rZallowed_valuesr$r$r%rs  cCs|jS)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 ©rr(r$r$r%r!s zSubscription.compartment_idcCs ||_dS)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 Nr,)r"rr$r$r%r/s cCs|jS)z¿ Gets the created_time of this Subscription. The time when this suscription was created. :return: The created_time of this Subscription. :rtype: int ©rr(r$r$r%r=s zSubscription.created_timecCs ||_dS)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 Nr-)r"rr$r$r%rIs cCs|jS)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 ©rr(r$r$r%rUs zSubscription.deliver_policycCs ||_dS)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 Nr.)r"rr$r$r%ras cCs|jS)z· Gets the etag of this Subscription. For optimistic concurrency control. See `if-match`. :return: The etag of this Subscription. :rtype: str ©rr(r$r$r%rms zSubscription.etagcCs ||_dS)zº Sets the etag of this Subscription. For optimistic concurrency control. See `if-match`. :param etag: The etag of this Subscription. :type: str Nr/)r"rr$r$r%rys cCs|jS)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…szSubscription.freeform_tagscCs ||_dS)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) Nr0)r"rr$r$r%r•scCs|jS)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¥szSubscription.defined_tagscCs ||_dS)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)) Nr1)r"rr$r$r%rµscCst|ƒS©N)rr(r$r$r%Ú__repr__ÅszSubscription.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©r"Úotherr$r$r%Ú__eq__ÈszSubscription.__eq__cCs ||k Sr2r$r5r$r$r%Ú__ne__ÎszSubscription.__ne__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__ZLIFECYCLE_STATE_PENDINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETEDr&Úpropertyr Úsetterr rrrrrrrrrr3r7r8r$r$r$r%r sh \                      rN)Zoci.utilrrrZoci.decoratorsrÚobjectrr$r$r$r%Ús