forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdministrativeUnit.php
More file actions
204 lines (188 loc) · 5.69 KB
/
AdministrativeUnit.php
File metadata and controls
204 lines (188 loc) · 5.69 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AdministrativeUnit File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* AdministrativeUnit class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class AdministrativeUnit extends DirectoryObject
{
/**
* Gets the description
* An optional description for the administrative unit.
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* An optional description for the administrative unit.
*
* @param string $val The description
*
* @return AdministrativeUnit
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* Display name for the administrative unit.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* Display name for the administrative unit.
*
* @param string $val The displayName
*
* @return AdministrativeUnit
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the visibility
* Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
*
* @return string|null The visibility
*/
public function getVisibility()
{
if (array_key_exists("visibility", $this->_propDict)) {
return $this->_propDict["visibility"];
} else {
return null;
}
}
/**
* Sets the visibility
* Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
*
* @param string $val The visibility
*
* @return AdministrativeUnit
*/
public function setVisibility($val)
{
$this->_propDict["visibility"] = $val;
return $this;
}
/**
* Gets the members
* Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).
*
* @return array|null The members
*/
public function getMembers()
{
if (array_key_exists("members", $this->_propDict)) {
return $this->_propDict["members"];
} else {
return null;
}
}
/**
* Sets the members
* Users and groups that are members of this Adminsitrative Unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).
*
* @param DirectoryObject $val The members
*
* @return AdministrativeUnit
*/
public function setMembers($val)
{
$this->_propDict["members"] = $val;
return $this;
}
/**
* Gets the scopedRoleMembers
* Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).
*
* @return array|null The scopedRoleMembers
*/
public function getScopedRoleMembers()
{
if (array_key_exists("scopedRoleMembers", $this->_propDict)) {
return $this->_propDict["scopedRoleMembers"];
} else {
return null;
}
}
/**
* Sets the scopedRoleMembers
* Scoped-role members of this Administrative Unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).
*
* @param ScopedRoleMembership $val The scopedRoleMembers
*
* @return AdministrativeUnit
*/
public function setScopedRoleMembers($val)
{
$this->_propDict["scopedRoleMembers"] = $val;
return $this;
}
/**
* Gets the extensions
* The collection of open extensions defined for this Administrative Unit. Nullable.
*
* @return array|null The extensions
*/
public function getExtensions()
{
if (array_key_exists("extensions", $this->_propDict)) {
return $this->_propDict["extensions"];
} else {
return null;
}
}
/**
* Sets the extensions
* The collection of open extensions defined for this Administrative Unit. Nullable.
*
* @param Extension $val The extensions
*
* @return AdministrativeUnit
*/
public function setExtensions($val)
{
$this->_propDict["extensions"] = $val;
return $this;
}
}