-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathactive_directories.py
More file actions
60 lines (54 loc) · 2.49 KB
/
active_directories.py
File metadata and controls
60 lines (54 loc) · 2.49 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ActiveDirectories(Model):
"""Active Directories.
:param active_directory_id: Id of the Active Directory
:type active_directory_id: str
:param username: Username of Active Directory domain administrator
:type username: str
:param password: Plain text password of Active Directory domain
administrator
:type password: str
:param domain: Name of the Active Directory domain
:type domain: str
:param d_ns: Comma separated list of DNS server IP addresses for the
Active Directory domain
:type d_ns: str
:param status: Status of the Active Directory
:type status: str
:param s_mb_server_name: NetBIOS name of the SMB server. This name will be
registered as a computer account in the AD and used to mount volumes
:type s_mb_server_name: str
:param organizational_unit: The Organizational Unit (OU) within the
Windows Active Directory
:type organizational_unit: str
"""
_attribute_map = {
'active_directory_id': {'key': 'activeDirectoryId', 'type': 'str'},
'username': {'key': 'username', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'domain': {'key': 'domain', 'type': 'str'},
'd_ns': {'key': 'dNS', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
's_mb_server_name': {'key': 'sMBServerName', 'type': 'str'},
'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ActiveDirectories, self).__init__(**kwargs)
self.active_directory_id = kwargs.get('active_directory_id', None)
self.username = kwargs.get('username', None)
self.password = kwargs.get('password', None)
self.domain = kwargs.get('domain', None)
self.d_ns = kwargs.get('d_ns', None)
self.status = kwargs.get('status', None)
self.s_mb_server_name = kwargs.get('s_mb_server_name', None)
self.organizational_unit = kwargs.get('organizational_unit', None)