forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessReviewInstance.php
More file actions
245 lines (227 loc) · 9.02 KB
/
AccessReviewInstance.php
File metadata and controls
245 lines (227 loc) · 9.02 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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AccessReviewInstance 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;
/**
* AccessReviewInstance 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 AccessReviewInstance extends Entity
{
/**
* Gets the endDateTime
* DateTime when review instance is scheduled to end.The DatetimeOffset 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. Supports $select. Read-only.
*
* @return \DateTime|null The endDateTime
*/
public function getEndDateTime()
{
if (array_key_exists("endDateTime", $this->_propDict)) {
if (is_a($this->_propDict["endDateTime"], "\DateTime") || is_null($this->_propDict["endDateTime"])) {
return $this->_propDict["endDateTime"];
} else {
$this->_propDict["endDateTime"] = new \DateTime($this->_propDict["endDateTime"]);
return $this->_propDict["endDateTime"];
}
}
return null;
}
/**
* Sets the endDateTime
* DateTime when review instance is scheduled to end.The DatetimeOffset 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. Supports $select. Read-only.
*
* @param \DateTime $val The endDateTime
*
* @return AccessReviewInstance
*/
public function setEndDateTime($val)
{
$this->_propDict["endDateTime"] = $val;
return $this;
}
/**
* Gets the fallbackReviewers
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. Supports $select.
*
* @return array|null The fallbackReviewers
*/
public function getFallbackReviewers()
{
if (array_key_exists("fallbackReviewers", $this->_propDict)) {
return $this->_propDict["fallbackReviewers"];
} else {
return null;
}
}
/**
* Sets the fallbackReviewers
* This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. Supports $select.
*
* @param AccessReviewReviewerScope $val The fallbackReviewers
*
* @return AccessReviewInstance
*/
public function setFallbackReviewers($val)
{
$this->_propDict["fallbackReviewers"] = $val;
return $this;
}
/**
* Gets the reviewers
* This collection of access review scopes is used to define who the reviewers are. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
*
* @return array|null The reviewers
*/
public function getReviewers()
{
if (array_key_exists("reviewers", $this->_propDict)) {
return $this->_propDict["reviewers"];
} else {
return null;
}
}
/**
* Sets the reviewers
* This collection of access review scopes is used to define who the reviewers are. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
*
* @param AccessReviewReviewerScope $val The reviewers
*
* @return AccessReviewInstance
*/
public function setReviewers($val)
{
$this->_propDict["reviewers"] = $val;
return $this;
}
/**
* Gets the scope
* Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. Supports $select and $filter (contains only). Read-only.
*
* @return AccessReviewScope|null The scope
*/
public function getScope()
{
if (array_key_exists("scope", $this->_propDict)) {
if (is_a($this->_propDict["scope"], "\Microsoft\Graph\Model\AccessReviewScope") || is_null($this->_propDict["scope"])) {
return $this->_propDict["scope"];
} else {
$this->_propDict["scope"] = new AccessReviewScope($this->_propDict["scope"]);
return $this->_propDict["scope"];
}
}
return null;
}
/**
* Sets the scope
* Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. Supports $select and $filter (contains only). Read-only.
*
* @param AccessReviewScope $val The scope
*
* @return AccessReviewInstance
*/
public function setScope($val)
{
$this->_propDict["scope"] = $val;
return $this;
}
/**
* Gets the startDateTime
* DateTime when review instance is scheduled to start. May be in the future. The DateTimeOffset 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. Supports $select. Read-only.
*
* @return \DateTime|null The startDateTime
*/
public function getStartDateTime()
{
if (array_key_exists("startDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) {
return $this->_propDict["startDateTime"];
} else {
$this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]);
return $this->_propDict["startDateTime"];
}
}
return null;
}
/**
* Sets the startDateTime
* DateTime when review instance is scheduled to start. May be in the future. The DateTimeOffset 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. Supports $select. Read-only.
*
* @param \DateTime $val The startDateTime
*
* @return AccessReviewInstance
*/
public function setStartDateTime($val)
{
$this->_propDict["startDateTime"] = $val;
return $this;
}
/**
* Gets the status
* Specifies the status of an accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter (eq only). 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
* Specifies the status of an accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter (eq only). Read-only.
*
* @param string $val The status
*
* @return AccessReviewInstance
*/
public function setStatus($val)
{
$this->_propDict["status"] = $val;
return $this;
}
/**
* Gets the decisions
* Each principal reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed.
*
* @return array|null The decisions
*/
public function getDecisions()
{
if (array_key_exists("decisions", $this->_propDict)) {
return $this->_propDict["decisions"];
} else {
return null;
}
}
/**
* Sets the decisions
* Each principal reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed.
*
* @param AccessReviewInstanceDecisionItem $val The decisions
*
* @return AccessReviewInstance
*/
public function setDecisions($val)
{
$this->_propDict["decisions"] = $val;
return $this;
}
}