B
     ²ô`m  ã               @   sT   d Z ddlmZmZmZmZ ddlT ddlmZ G dd„ de	ƒZ
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)Ú*)ÚWebexTeamsDateTimec               @   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edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZd S )!Ú'AdminAuditEventDataBasicPropertiesMixinz(Admin Audit Event Data basic properties.c             C   s   | j  d¡S )z%The display name of the organization.ÚactorOrgName)Ú
_json_dataÚget)Úself© r   ú\/home/dcms/DCMS/lib/python3.7/site-packages/webexteamssdk/models/mixins/admin_audit_event.pyr	   )   s    z4AdminAuditEventDataBasicPropertiesMixin.actorOrgNamec             C   s   | j  d¡S )z*The name of the resource being acted upon.Ú
targetName)r
   r   )r   r   r   r   r   .   s    z2AdminAuditEventDataBasicPropertiesMixin.targetNamec             C   s   | j  d¡S )zA description for the event.ÚeventDescription)r
   r   )r   r   r   r   r   3   s    z8AdminAuditEventDataBasicPropertiesMixin.eventDescriptionc             C   s   | j  d¡S )z0The name of the person who performed the action.Ú	actorName)r
   r   )r   r   r   r   r   8   s    z1AdminAuditEventDataBasicPropertiesMixin.actorNamec             C   s   | j  d¡S )z1The email of the person who performed the action.Ú
actorEmail)r
   r   )r   r   r   r   r   =   s    z2AdminAuditEventDataBasicPropertiesMixin.actorEmailc             C   s   | j  d¡S )zAdmin roles for the person.Ú
adminRoles)r
   r   )r   r   r   r   r   B   s    z2AdminAuditEventDataBasicPropertiesMixin.adminRolesc             C   s   | j  d¡S )z$A tracking identifier for the event.Ú
trackingId)r
   r   )r   r   r   r   r   G   s    z2AdminAuditEventDataBasicPropertiesMixin.trackingIdc             C   s   | j  d¡S )z*The type of resource changed by the event.Ú
targetType)r
   r   )r   r   r   r   r   L   s    z2AdminAuditEventDataBasicPropertiesMixin.targetTypec             C   s   | j  d¡S )z5The identifier for the resource changed by the event.ÚtargetId)r
   r   )r   r   r   r   r   Q   s    z0AdminAuditEventDataBasicPropertiesMixin.targetIdc             C   s   | j  d¡S )z.The category of resource changed by the event.ÚeventCategory)r
   r   )r   r   r   r   r   V   s    z5AdminAuditEventDataBasicPropertiesMixin.eventCategoryc             C   s   | j  d¡S )z>The browser user agent of the person who performed the action.ÚactorUserAgent)r
   r   )r   r   r   r   r   [   s    z6AdminAuditEventDataBasicPropertiesMixin.actorUserAgentc             C   s   | j  d¡S )z6The IP address of the person who performed the action.ÚactorIp)r
   r   )r   r   r   r   r   `   s    z/AdminAuditEventDataBasicPropertiesMixin.actorIpc             C   s   | j  d¡S )zThe orgId of the organization.ÚtargetOrgId)r
   r   )r   r   r   r   r   e   s    z3AdminAuditEventDataBasicPropertiesMixin.targetOrgIdc             C   s   | j  d¡S )z=A more detailed description of the change made by the person.Ú
actionText)r
   r   )r   r   r   r   r   j   s    z2AdminAuditEventDataBasicPropertiesMixin.actionTextc             C   s   | j  d¡S )z.The name of the organization being acted upon.ÚtargetOrgName)r
   r   )r   r   r   r   r   o   s    z5AdminAuditEventDataBasicPropertiesMixin.targetOrgNameN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   &   s    r   c               @   s@   e Zd ZdZedd„ ƒZedd„ ƒZedd„ ƒZedd	„ ƒZd
S )Ú#AdminAuditEventBasicPropertiesMixinz#Admin Audit Event basic properties.c             C   s   | j  d¡S )z"A unique identifier for the event.Úid)r
   r   )r   r   r   r   r#   x   s    z&AdminAuditEventBasicPropertiesMixin.idc             C   s   | j  d¡S )z/The personId of the person who made the change.ÚactorId)r
   r   )r   r   r   r   r$   }   s    z+AdminAuditEventBasicPropertiesMixin.actorIdc             C   s   | j  d¡S )z,The orgId of the person who made the change.ÚorgId)r
   r   )r   r   r   r   r%   ‚   s    z)AdminAuditEventBasicPropertiesMixin.orgIdc             C   s"   | j  d¡}|rt |¡S dS dS )z'The date and time the event took place.ÚcreatedN)r
   r   r   Ústrptime)r   r&   r   r   r   r&   ‡   s    
z+AdminAuditEventBasicPropertiesMixin.createdN)	r   r   r   r    r!   r#   r$   r%   r&   r   r   r   r   r"   u   s
   r"   N)r    Ú
__future__r   r   r   r   ÚbuiltinsZwebexteamssdk.utilsr   Úobjectr   r"   r   r   r   r   Ú<module>   s
   O