forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminConsentRequestPolicy.php
More file actions
202 lines (188 loc) · 5.23 KB
/
Copy pathAdminConsentRequestPolicy.php
File metadata and controls
202 lines (188 loc) · 5.23 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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AdminConsentRequestPolicy 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;
/**
* AdminConsentRequestPolicy 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 AdminConsentRequestPolicy extends Entity
{
/**
* Gets the isEnabled
* Specifies whether the admin consent request feature is enabled or disabled. Required.
*
* @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
* Specifies whether the admin consent request feature is enabled or disabled. Required.
*
* @param bool $val The isEnabled
*
* @return AdminConsentRequestPolicy
*/
public function setIsEnabled($val)
{
$this->_propDict["isEnabled"] = boolval($val);
return $this;
}
/**
* Gets the notifyReviewers
* Specifies whether reviewers will receive notifications. Required.
*
* @return bool|null The notifyReviewers
*/
public function getNotifyReviewers()
{
if (array_key_exists("notifyReviewers", $this->_propDict)) {
return $this->_propDict["notifyReviewers"];
} else {
return null;
}
}
/**
* Sets the notifyReviewers
* Specifies whether reviewers will receive notifications. Required.
*
* @param bool $val The notifyReviewers
*
* @return AdminConsentRequestPolicy
*/
public function setNotifyReviewers($val)
{
$this->_propDict["notifyReviewers"] = boolval($val);
return $this;
}
/**
* Gets the remindersEnabled
* Specifies whether reviewers will receive reminder emails. Required.
*
* @return bool|null The remindersEnabled
*/
public function getRemindersEnabled()
{
if (array_key_exists("remindersEnabled", $this->_propDict)) {
return $this->_propDict["remindersEnabled"];
} else {
return null;
}
}
/**
* Sets the remindersEnabled
* Specifies whether reviewers will receive reminder emails. Required.
*
* @param bool $val The remindersEnabled
*
* @return AdminConsentRequestPolicy
*/
public function setRemindersEnabled($val)
{
$this->_propDict["remindersEnabled"] = boolval($val);
return $this;
}
/**
* Gets the requestDurationInDays
* Specifies the duration the request is active before it automatically expires if no decision is applied.
*
* @return int|null The requestDurationInDays
*/
public function getRequestDurationInDays()
{
if (array_key_exists("requestDurationInDays", $this->_propDict)) {
return $this->_propDict["requestDurationInDays"];
} else {
return null;
}
}
/**
* Sets the requestDurationInDays
* Specifies the duration the request is active before it automatically expires if no decision is applied.
*
* @param int $val The requestDurationInDays
*
* @return AdminConsentRequestPolicy
*/
public function setRequestDurationInDays($val)
{
$this->_propDict["requestDurationInDays"] = intval($val);
return $this;
}
/**
* Gets the reviewers
* The list of reviewers for the admin consent. Required.
*
* @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
* The list of reviewers for the admin consent. Required.
*
* @param AccessReviewReviewerScope[] $val The reviewers
*
* @return AdminConsentRequestPolicy
*/
public function setReviewers($val)
{
$this->_propDict["reviewers"] = $val;
return $this;
}
/**
* Gets the version
* Specifies the version of this policy. When the policy is updated, this version is updated. Read-only.
*
* @return int|null The version
*/
public function getVersion()
{
if (array_key_exists("version", $this->_propDict)) {
return $this->_propDict["version"];
} else {
return null;
}
}
/**
* Sets the version
* Specifies the version of this policy. When the policy is updated, this version is updated. Read-only.
*
* @param int $val The version
*
* @return AdminConsentRequestPolicy
*/
public function setVersion($val)
{
$this->_propDict["version"] = intval($val);
return $this;
}
}