ruạṛ
a ���f�+ � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS ) �CreateSubscriptionDetailszB The configuration details for creating the subscription. c K sZ dddddddd�| _ ddddd d dd�| _d| _d| _d| _d| _d| _d| _d| _dS ) a$ Initializes a new CreateSubscriptionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param topic_id: The value to assign to the topic_id property of this CreateSubscriptionDetails. :type topic_id: str :param compartment_id: The value to assign to the compartment_id property of this CreateSubscriptionDetails. :type compartment_id: str :param protocol: The value to assign to the protocol property of this CreateSubscriptionDetails. :type protocol: str :param endpoint: The value to assign to the endpoint property of this CreateSubscriptionDetails. :type endpoint: str :param metadata: The value to assign to the metadata property of this CreateSubscriptionDetails. :type metadata: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateSubscriptionDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateSubscriptionDetails. :type defined_tags: dict(str, dict(str, object)) �strzdict(str, str)zdict(str, dict(str, object)))�topic_id�compartment_id�protocol�endpoint�metadata� freeform_tags�defined_tagsZtopicIdZ compartmentIdr r r ZfreeformTagsZdefinedTagsN) Z swagger_typesZ attribute_map� _topic_id�_compartment_id� _protocol� _endpoint� _metadata�_freeform_tags� _defined_tags)�self�kwargs� r �N/usr/lib/python3.9/site-packages/oci/ons/models/create_subscription_details.py�__init__ s. #�� z"CreateSubscriptionDetails.__init__c C s | j S )a< **[Required]** Gets the topic_id of this CreateSubscriptionDetails. The `OCID`__ of the topic for the subscription. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The topic_id of this CreateSubscriptionDetails. :rtype: str �r �r r r r r P s z"CreateSubscriptionDetails.topic_idc C s || _ dS )a4 Sets the topic_id of this CreateSubscriptionDetails. The `OCID`__ of the topic for the subscription. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param topic_id: The topic_id of this CreateSubscriptionDetails. :type: str Nr )r r r r r r ^ s c C s | j S )aN **[Required]** Gets the compartment_id of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :rtype: str �r r r r r r l s z(CreateSubscriptionDetails.compartment_idc C s || _ dS )aL Sets the compartment_id of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :type: str Nr )r r r r r r z s c C s | j S )a� **[Required]** Gets the protocol of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :rtype: str �r r r r r r � s z"CreateSubscriptionDetails.protocolc C s || _ dS )a� Sets the protocol of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :type: str Nr )r r r r r r � s c C s | j S )a, **[Required]** Gets the endpoint of this CreateSubscriptionDetails. 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. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". A URL cannot exceed 512 characters. Avoid entering confidential information. For protocol-specific endpoint formats and steps to get or create endpoints, see `To create a subscription`__. __ https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub :return: The endpoint of this CreateSubscriptionDetails. :rtype: str �r r r r r r � s z"CreateSubscriptionDetails.endpointc C s || _ dS )a$ Sets the endpoint of this CreateSubscriptionDetails. 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. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". A URL cannot exceed 512 characters. Avoid entering confidential information. For protocol-specific endpoint formats and steps to get or create endpoints, see `To create a subscription`__. __ https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub :param endpoint: The endpoint of this CreateSubscriptionDetails. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the metadata of this CreateSubscriptionDetails. Metadata for the subscription. :return: The metadata of this CreateSubscriptionDetails. :rtype: str �r r r r r r � s z"CreateSubscriptionDetails.metadatac C s || _ dS )z� Sets the metadata of this CreateSubscriptionDetails. Metadata for the subscription. :param metadata: The metadata of this CreateSubscriptionDetails. :type: str Nr )r r r r r r � s c C s | j S )a� Gets the freeform_tags of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :rtype: dict(str, str) �r r r r r r � s z'CreateSubscriptionDetails.freeform_tagsc C s || _ dS )a� Sets the freeform_tags of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :type: dict(str, str) Nr! )r r r r r r s c C s | j S )a� Gets the defined_tags of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :rtype: dict(str, dict(str, object)) �r r r r r r s z&CreateSubscriptionDetails.defined_tagsc C s || _ dS )a� Sets the defined_tags of this CreateSubscriptionDetails. 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 CreateSubscriptionDetails. :type: dict(str, dict(str, object)) Nr"