B
     `                 @   s8   d Z ddlmZmZmZmZ ddlT G dd deZdS )a\  Webex Teams Webhook-Event data model.

Copyright (c) 2016-2020 Cisco and/or its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
    )absolute_importdivisionprint_functionunicode_literals)*c               @   s   e Zd ZdZedd Zedd Zedd Zedd	 Zed
d Z	edd Z
edd Zedd Zedd Zedd Zedd ZdS ) WebhookEventBasicPropertiesMixinzWebhook Event basic properties.c             C   s   | j dS )z$A unique identifier for the webhook.id)
_json_dataget)self r   X/home/dcms/DCMS/lib/python3.7/site-packages/webexteamssdk/models/mixins/webhook_event.pyr   '   s    z#WebhookEventBasicPropertiesMixin.idc             C   s   | j dS )z%A user-friendly name for the webhook.name)r	   r
   )r   r   r   r   r   ,   s    z%WebhookEventBasicPropertiesMixin.namec             C   s   | j dS )a3  The resource type for the webhook.

        Creating a webhook requires 'read' scope on the resource the webhook
        is for.

        Webhook Resource Enum:
            `memberships`: The Memberships resource
            `messages`: The Messages resource
            `rooms`: The Rooms resource
        resource)r	   r
   )r   r   r   r   r   1   s    z)WebhookEventBasicPropertiesMixin.resourcec             C   s   | j dS )zThe event type for the webhook.

        Webhook Event Type Enum:
            `created`: An object was created
            `updated`: An object was updated
            `deleted`: An object was deleted
        event)r	   r
   )r   r   r   r   r   ?   s    	z&WebhookEventBasicPropertiesMixin.eventc             C   s   | j dS )z*The filter that defines the webhook scope.filter)r	   r
   )r   r   r   r   r   J   s    z'WebhookEventBasicPropertiesMixin.filterc             C   s   | j dS )z1The ID of the organization that owns the webhook.orgId)r	   r
   )r   r   r   r   r   O   s    z&WebhookEventBasicPropertiesMixin.orgIdc             C   s   | j dS )z.The ID of the person that created the webhook.	createdBy)r	   r
   )r   r   r   r   r   T   s    z*WebhookEventBasicPropertiesMixin.createdByc             C   s   | j dS )z3The ID of the application that created the webhook.appId)r	   r
   )r   r   r   r   r   Y   s    z&WebhookEventBasicPropertiesMixin.appIdc             C   s   | j dS )a  Indicates if the webhook is owned by the `org` or the `creator`.

        Webhooks owned by the creator can only receive events that are
        accessible to the creator of the webhook. Those owned by the
        organization will receive events that are visible to anyone in the
        organization.

        Webhook Owned By Enum:
            `org`
            `creator`
        ownedBy)r	   r
   )r   r   r   r   r   ^   s    z(WebhookEventBasicPropertiesMixin.ownedByc             C   s   | j dS )zThe status of the webhook.

        Webhook Status Enum:
            `active`: The webhook is active
            `inactive`: The webhook is inactive
        status)r	   r
   )r   r   r   r   r   m   s    z'WebhookEventBasicPropertiesMixin.statusc             C   s   | j dS )z8The ID of the person that caused the webhook to be sent.actorId)r	   r
   )r   r   r   r   r   w   s    z(WebhookEventBasicPropertiesMixin.actorIdN)__name__
__module____qualname____doc__propertyr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   $   s   
r   N)	r   
__future__r   r   r   r   builtinsobjectr   r   r   r   r   <module>   s   