forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageAssignmentRequest.php
More file actions
380 lines (355 loc) · 13.9 KB
/
Copy pathAccessPackageAssignmentRequest.php
File metadata and controls
380 lines (355 loc) · 13.9 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AccessPackageAssignmentRequest 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;
/**
* AccessPackageAssignmentRequest 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 AccessPackageAssignmentRequest extends Entity
{
/**
* Gets the answers
* Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.
*
* @return array|null The answers
*/
public function getAnswers()
{
if (array_key_exists("answers", $this->_propDict)) {
return $this->_propDict["answers"];
} else {
return null;
}
}
/**
* Sets the answers
* Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.
*
* @param AccessPackageAnswer[] $val The answers
*
* @return AccessPackageAssignmentRequest
*/
public function setAnswers($val)
{
$this->_propDict["answers"] = $val;
return $this;
}
/**
* Gets the completedDateTime
* The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
*
* @return \DateTime|null The completedDateTime
*/
public function getCompletedDateTime()
{
if (array_key_exists("completedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) {
return $this->_propDict["completedDateTime"];
} else {
$this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]);
return $this->_propDict["completedDateTime"];
}
}
return null;
}
/**
* Sets the completedDateTime
* The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
*
* @param \DateTime $val The completedDateTime
*
* @return AccessPackageAssignmentRequest
*/
public function setCompletedDateTime($val)
{
$this->_propDict["completedDateTime"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter.
*
* @param \DateTime $val The createdDateTime
*
* @return AccessPackageAssignmentRequest
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the customExtensionCalloutInstances
* Information about all the custom extension calls that were made during the access package assignment workflow.
*
* @return array|null The customExtensionCalloutInstances
*/
public function getCustomExtensionCalloutInstances()
{
if (array_key_exists("customExtensionCalloutInstances", $this->_propDict)) {
return $this->_propDict["customExtensionCalloutInstances"];
} else {
return null;
}
}
/**
* Sets the customExtensionCalloutInstances
* Information about all the custom extension calls that were made during the access package assignment workflow.
*
* @param CustomExtensionCalloutInstance[] $val The customExtensionCalloutInstances
*
* @return AccessPackageAssignmentRequest
*/
public function setCustomExtensionCalloutInstances($val)
{
$this->_propDict["customExtensionCalloutInstances"] = $val;
return $this;
}
/**
* Gets the requestType
* The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set.
*
* @return AccessPackageRequestType|null The requestType
*/
public function getRequestType()
{
if (array_key_exists("requestType", $this->_propDict)) {
if (is_a($this->_propDict["requestType"], "\Microsoft\Graph\Model\AccessPackageRequestType") || is_null($this->_propDict["requestType"])) {
return $this->_propDict["requestType"];
} else {
$this->_propDict["requestType"] = new AccessPackageRequestType($this->_propDict["requestType"]);
return $this->_propDict["requestType"];
}
}
return null;
}
/**
* Sets the requestType
* The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set.
*
* @param AccessPackageRequestType $val The requestType
*
* @return AccessPackageAssignmentRequest
*/
public function setRequestType($val)
{
$this->_propDict["requestType"] = $val;
return $this;
}
/**
* Gets the schedule
* The range of dates that access is to be assigned to the requestor. This property can't be changed once set.
*
* @return EntitlementManagementSchedule|null The schedule
*/
public function getSchedule()
{
if (array_key_exists("schedule", $this->_propDict)) {
if (is_a($this->_propDict["schedule"], "\Microsoft\Graph\Model\EntitlementManagementSchedule") || is_null($this->_propDict["schedule"])) {
return $this->_propDict["schedule"];
} else {
$this->_propDict["schedule"] = new EntitlementManagementSchedule($this->_propDict["schedule"]);
return $this->_propDict["schedule"];
}
}
return null;
}
/**
* Sets the schedule
* The range of dates that access is to be assigned to the requestor. This property can't be changed once set.
*
* @param EntitlementManagementSchedule $val The schedule
*
* @return AccessPackageAssignmentRequest
*/
public function setSchedule($val)
{
$this->_propDict["schedule"] = $val;
return $this;
}
/**
* Gets the state
* The state of the request. The possible values are: submitted, pendingApproval, delivering, delivered, deliveryFailed, denied, scheduled, canceled, partiallyDelivered, unknownFutureValue. Read-only. Supports $filter (eq).
*
* @return AccessPackageRequestState|null The state
*/
public function getState()
{
if (array_key_exists("state", $this->_propDict)) {
if (is_a($this->_propDict["state"], "\Microsoft\Graph\Model\AccessPackageRequestState") || is_null($this->_propDict["state"])) {
return $this->_propDict["state"];
} else {
$this->_propDict["state"] = new AccessPackageRequestState($this->_propDict["state"]);
return $this->_propDict["state"];
}
}
return null;
}
/**
* Sets the state
* The state of the request. The possible values are: submitted, pendingApproval, delivering, delivered, deliveryFailed, denied, scheduled, canceled, partiallyDelivered, unknownFutureValue. Read-only. Supports $filter (eq).
*
* @param AccessPackageRequestState $val The state
*
* @return AccessPackageAssignmentRequest
*/
public function setState($val)
{
$this->_propDict["state"] = $val;
return $this;
}
/**
* Gets the status
* More information on the request processing status. Read-only.
*
* @return string|null The status
*/
public function getStatus()
{
if (array_key_exists("status", $this->_propDict)) {
return $this->_propDict["status"];
} else {
return null;
}
}
/**
* Sets the status
* More information on the request processing status. Read-only.
*
* @param string $val The status
*
* @return AccessPackageAssignmentRequest
*/
public function setStatus($val)
{
$this->_propDict["status"] = $val;
return $this;
}
/**
* Gets the accessPackage
* The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.
*
* @return AccessPackage|null The accessPackage
*/
public function getAccessPackage()
{
if (array_key_exists("accessPackage", $this->_propDict)) {
if (is_a($this->_propDict["accessPackage"], "\Microsoft\Graph\Model\AccessPackage") || is_null($this->_propDict["accessPackage"])) {
return $this->_propDict["accessPackage"];
} else {
$this->_propDict["accessPackage"] = new AccessPackage($this->_propDict["accessPackage"]);
return $this->_propDict["accessPackage"];
}
}
return null;
}
/**
* Sets the accessPackage
* The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.
*
* @param AccessPackage $val The accessPackage
*
* @return AccessPackageAssignmentRequest
*/
public function setAccessPackage($val)
{
$this->_propDict["accessPackage"] = $val;
return $this;
}
/**
* Gets the assignment
* For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
*
* @return AccessPackageAssignment|null The assignment
*/
public function getAssignment()
{
if (array_key_exists("assignment", $this->_propDict)) {
if (is_a($this->_propDict["assignment"], "\Microsoft\Graph\Model\AccessPackageAssignment") || is_null($this->_propDict["assignment"])) {
return $this->_propDict["assignment"];
} else {
$this->_propDict["assignment"] = new AccessPackageAssignment($this->_propDict["assignment"]);
return $this->_propDict["assignment"];
}
}
return null;
}
/**
* Sets the assignment
* For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
*
* @param AccessPackageAssignment $val The assignment
*
* @return AccessPackageAssignmentRequest
*/
public function setAssignment($val)
{
$this->_propDict["assignment"] = $val;
return $this;
}
/**
* Gets the requestor
* The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.
*
* @return AccessPackageSubject|null The requestor
*/
public function getRequestor()
{
if (array_key_exists("requestor", $this->_propDict)) {
if (is_a($this->_propDict["requestor"], "\Microsoft\Graph\Model\AccessPackageSubject") || is_null($this->_propDict["requestor"])) {
return $this->_propDict["requestor"];
} else {
$this->_propDict["requestor"] = new AccessPackageSubject($this->_propDict["requestor"]);
return $this->_propDict["requestor"];
}
}
return null;
}
/**
* Sets the requestor
* The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.
*
* @param AccessPackageSubject $val The requestor
*
* @return AccessPackageAssignmentRequest
*/
public function setRequestor($val)
{
$this->_propDict["requestor"] = $val;
return $this;
}
}