File: security_permission_helper.py

package info (click to toggle)
azure-devops-cli-extension 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,384 kB
  • sloc: python: 160,782; xml: 198; makefile: 56; sh: 51
file content (35 lines) | stat: -rw-r--r-- 1,344 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------


from msrest.serialization import Model


class PermissionDetails(Model):
    """PermissionDetails.

    :param bit: Permission bit
    :type bit: int
    :param display_ame: Display string for permission
    :type display_ame: str
    :param effective_permission: Effective permission value, Allow, Deny, Not set.
    :type effective_permission:str
    :param name: Name of permission as found in namespace details.
    :type name:str
    """

    _attribute_map = {
        'bit': {'key': 'bit', 'type': 'int'},
        'display_name': {'key': 'displayName', 'type': 'str'},
        'effective_permission': {'key': 'effectivePermission', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
    }

    def __init__(self, bit=None, display_name=None, effective_permission=None, name=None):
        super(PermissionDetails, self).__init__()
        self.bit = bit
        self.display_name = display_name
        self.effective_permission = effective_permission
        self.name = name