forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppRole.php
More file actions
222 lines (215 loc) · 7.57 KB
/
Copy pathAppRole.php
File metadata and controls
222 lines (215 loc) · 7.57 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AppRole 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;
/**
* AppRole 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 AppRole extends Entity
{
/**
* Gets the allowedMemberTypes
* Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.
*
* @return string|null The allowedMemberTypes
*/
public function getAllowedMemberTypes()
{
if (array_key_exists("allowedMemberTypes", $this->_propDict)) {
return $this->_propDict["allowedMemberTypes"];
} else {
return null;
}
}
/**
* Sets the allowedMemberTypes
* Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.
*
* @param string $val The value of the allowedMemberTypes
*
* @return AppRole
*/
public function setAllowedMemberTypes($val)
{
$this->_propDict["allowedMemberTypes"] = $val;
return $this;
}
/**
* Gets the description
* The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.
*
* @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
* The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.
*
* @param string $val The value of the description
*
* @return AppRole
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* Display name for the permission that appears in the app role assignment and consent experiences.
*
* @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 permission that appears in the app role assignment and consent experiences.
*
* @param string $val The value of the displayName
*
* @return AppRole
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the id
* Unique role identifier inside the appRoles collection. When creating a new app role, a new Guid identifier must be provided.
*
* @return string|null The id
*/
public function getId()
{
if (array_key_exists("id", $this->_propDict)) {
return $this->_propDict["id"];
} else {
return null;
}
}
/**
* Sets the id
* Unique role identifier inside the appRoles collection. When creating a new app role, a new Guid identifier must be provided.
*
* @param string $val The value of the id
*
* @return AppRole
*/
public function setId($val)
{
$this->_propDict["id"] = $val;
return $this;
}
/**
* Gets the isEnabled
* When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.
*
* @return bool|null The isEnabled
*/
public function getIsEnabled()
{
if (array_key_exists("isEnabled", $this->_propDict)) {
return $this->_propDict["isEnabled"];
} else {
return null;
}
}
/**
* Sets the isEnabled
* When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.
*
* @param bool $val The value of the isEnabled
*
* @return AppRole
*/
public function setIsEnabled($val)
{
$this->_propDict["isEnabled"] = $val;
return $this;
}
/**
* Gets the origin
* Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.
*
* @return string|null The origin
*/
public function getOrigin()
{
if (array_key_exists("origin", $this->_propDict)) {
return $this->_propDict["origin"];
} else {
return null;
}
}
/**
* Sets the origin
* Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.
*
* @param string $val The value of the origin
*
* @return AppRole
*/
public function setOrigin($val)
{
$this->_propDict["origin"] = $val;
return $this;
}
/**
* Gets the value
* Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with ..
*
* @return string|null The value
*/
public function getValue()
{
if (array_key_exists("value", $this->_propDict)) {
return $this->_propDict["value"];
} else {
return null;
}
}
/**
* Sets the value
* Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with ..
*
* @param string $val The value of the value
*
* @return AppRole
*/
public function setValue($val)
{
$this->_propDict["value"] = $val;
return $this;
}
}