-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathAgreementAcceptance.php
More file actions
332 lines (299 loc) · 14.5 KB
/
AgreementAcceptance.php
File metadata and controls
332 lines (299 loc) · 14.5 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
<?php
namespace Microsoft\Graph\Generated\Models;
use DateTime;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
class AgreementAcceptance extends Entity implements Parsable
{
/**
* Instantiates a new AgreementAcceptance and sets the default values.
*/
public function __construct() {
parent::__construct();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return AgreementAcceptance
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): AgreementAcceptance {
return new AgreementAcceptance();
}
/**
* Gets the agreementFileId property value. The identifier of the agreement file accepted by the user.
* @return string|null
*/
public function getAgreementFileId(): ?string {
$val = $this->getBackingStore()->get('agreementFileId');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'agreementFileId'");
}
/**
* Gets the agreementId property value. The identifier of the agreement.
* @return string|null
*/
public function getAgreementId(): ?string {
$val = $this->getBackingStore()->get('agreementId');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'agreementId'");
}
/**
* Gets the deviceDisplayName property value. The display name of the device used for accepting the agreement.
* @return string|null
*/
public function getDeviceDisplayName(): ?string {
$val = $this->getBackingStore()->get('deviceDisplayName');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'deviceDisplayName'");
}
/**
* Gets the deviceId property value. The unique identifier of the device used for accepting the agreement. Supports $filter (eq) and eq for null values.
* @return string|null
*/
public function getDeviceId(): ?string {
$val = $this->getBackingStore()->get('deviceId');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'deviceId'");
}
/**
* Gets the deviceOSType property value. The operating system used to accept the agreement.
* @return string|null
*/
public function getDeviceOSType(): ?string {
$val = $this->getBackingStore()->get('deviceOSType');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'deviceOSType'");
}
/**
* Gets the deviceOSVersion property value. The operating system version of the device used to accept the agreement.
* @return string|null
*/
public function getDeviceOSVersion(): ?string {
$val = $this->getBackingStore()->get('deviceOSVersion');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'deviceOSVersion'");
}
/**
* Gets the expirationDateTime property value. The expiration date time of the acceptance. 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. Supports $filter (eq, ge, le) and eq for null values.
* @return DateTime|null
*/
public function getExpirationDateTime(): ?DateTime {
$val = $this->getBackingStore()->get('expirationDateTime');
if (is_null($val) || $val instanceof DateTime) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'expirationDateTime'");
}
/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'agreementFileId' => fn(ParseNode $n) => $o->setAgreementFileId($n->getStringValue()),
'agreementId' => fn(ParseNode $n) => $o->setAgreementId($n->getStringValue()),
'deviceDisplayName' => fn(ParseNode $n) => $o->setDeviceDisplayName($n->getStringValue()),
'deviceId' => fn(ParseNode $n) => $o->setDeviceId($n->getStringValue()),
'deviceOSType' => fn(ParseNode $n) => $o->setDeviceOSType($n->getStringValue()),
'deviceOSVersion' => fn(ParseNode $n) => $o->setDeviceOSVersion($n->getStringValue()),
'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()),
'recordedDateTime' => fn(ParseNode $n) => $o->setRecordedDateTime($n->getDateTimeValue()),
'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(AgreementAcceptanceState::class)),
'userDisplayName' => fn(ParseNode $n) => $o->setUserDisplayName($n->getStringValue()),
'userEmail' => fn(ParseNode $n) => $o->setUserEmail($n->getStringValue()),
'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),
'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()),
]);
}
/**
* Gets the recordedDateTime property value. 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.
* @return DateTime|null
*/
public function getRecordedDateTime(): ?DateTime {
$val = $this->getBackingStore()->get('recordedDateTime');
if (is_null($val) || $val instanceof DateTime) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'recordedDateTime'");
}
/**
* Gets the state property value. The state of the agreement acceptance. The possible values are: accepted, declined. Supports $filter (eq).
* @return AgreementAcceptanceState|null
*/
public function getState(): ?AgreementAcceptanceState {
$val = $this->getBackingStore()->get('state');
if (is_null($val) || $val instanceof AgreementAcceptanceState) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'state'");
}
/**
* Gets the userDisplayName property value. Display name of the user when the acceptance was recorded.
* @return string|null
*/
public function getUserDisplayName(): ?string {
$val = $this->getBackingStore()->get('userDisplayName');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'userDisplayName'");
}
/**
* Gets the userEmail property value. Email of the user when the acceptance was recorded.
* @return string|null
*/
public function getUserEmail(): ?string {
$val = $this->getBackingStore()->get('userEmail');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'userEmail'");
}
/**
* Gets the userId property value. The identifier of the user who accepted the agreement. Supports $filter (eq).
* @return string|null
*/
public function getUserId(): ?string {
$val = $this->getBackingStore()->get('userId');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'userId'");
}
/**
* Gets the userPrincipalName property value. UPN of the user when the acceptance was recorded.
* @return string|null
*/
public function getUserPrincipalName(): ?string {
$val = $this->getBackingStore()->get('userPrincipalName');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'userPrincipalName'");
}
/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeStringValue('agreementFileId', $this->getAgreementFileId());
$writer->writeStringValue('agreementId', $this->getAgreementId());
$writer->writeStringValue('deviceDisplayName', $this->getDeviceDisplayName());
$writer->writeStringValue('deviceId', $this->getDeviceId());
$writer->writeStringValue('deviceOSType', $this->getDeviceOSType());
$writer->writeStringValue('deviceOSVersion', $this->getDeviceOSVersion());
$writer->writeDateTimeValue('expirationDateTime', $this->getExpirationDateTime());
$writer->writeDateTimeValue('recordedDateTime', $this->getRecordedDateTime());
$writer->writeEnumValue('state', $this->getState());
$writer->writeStringValue('userDisplayName', $this->getUserDisplayName());
$writer->writeStringValue('userEmail', $this->getUserEmail());
$writer->writeStringValue('userId', $this->getUserId());
$writer->writeStringValue('userPrincipalName', $this->getUserPrincipalName());
}
/**
* Sets the agreementFileId property value. The identifier of the agreement file accepted by the user.
* @param string|null $value Value to set for the agreementFileId property.
*/
public function setAgreementFileId(?string $value): void {
$this->getBackingStore()->set('agreementFileId', $value);
}
/**
* Sets the agreementId property value. The identifier of the agreement.
* @param string|null $value Value to set for the agreementId property.
*/
public function setAgreementId(?string $value): void {
$this->getBackingStore()->set('agreementId', $value);
}
/**
* Sets the deviceDisplayName property value. The display name of the device used for accepting the agreement.
* @param string|null $value Value to set for the deviceDisplayName property.
*/
public function setDeviceDisplayName(?string $value): void {
$this->getBackingStore()->set('deviceDisplayName', $value);
}
/**
* Sets the deviceId property value. The unique identifier of the device used for accepting the agreement. Supports $filter (eq) and eq for null values.
* @param string|null $value Value to set for the deviceId property.
*/
public function setDeviceId(?string $value): void {
$this->getBackingStore()->set('deviceId', $value);
}
/**
* Sets the deviceOSType property value. The operating system used to accept the agreement.
* @param string|null $value Value to set for the deviceOSType property.
*/
public function setDeviceOSType(?string $value): void {
$this->getBackingStore()->set('deviceOSType', $value);
}
/**
* Sets the deviceOSVersion property value. The operating system version of the device used to accept the agreement.
* @param string|null $value Value to set for the deviceOSVersion property.
*/
public function setDeviceOSVersion(?string $value): void {
$this->getBackingStore()->set('deviceOSVersion', $value);
}
/**
* Sets the expirationDateTime property value. The expiration date time of the acceptance. 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. Supports $filter (eq, ge, le) and eq for null values.
* @param DateTime|null $value Value to set for the expirationDateTime property.
*/
public function setExpirationDateTime(?DateTime $value): void {
$this->getBackingStore()->set('expirationDateTime', $value);
}
/**
* Sets the recordedDateTime property value. 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.
* @param DateTime|null $value Value to set for the recordedDateTime property.
*/
public function setRecordedDateTime(?DateTime $value): void {
$this->getBackingStore()->set('recordedDateTime', $value);
}
/**
* Sets the state property value. The state of the agreement acceptance. The possible values are: accepted, declined. Supports $filter (eq).
* @param AgreementAcceptanceState|null $value Value to set for the state property.
*/
public function setState(?AgreementAcceptanceState $value): void {
$this->getBackingStore()->set('state', $value);
}
/**
* Sets the userDisplayName property value. Display name of the user when the acceptance was recorded.
* @param string|null $value Value to set for the userDisplayName property.
*/
public function setUserDisplayName(?string $value): void {
$this->getBackingStore()->set('userDisplayName', $value);
}
/**
* Sets the userEmail property value. Email of the user when the acceptance was recorded.
* @param string|null $value Value to set for the userEmail property.
*/
public function setUserEmail(?string $value): void {
$this->getBackingStore()->set('userEmail', $value);
}
/**
* Sets the userId property value. The identifier of the user who accepted the agreement. Supports $filter (eq).
* @param string|null $value Value to set for the userId property.
*/
public function setUserId(?string $value): void {
$this->getBackingStore()->set('userId', $value);
}
/**
* Sets the userPrincipalName property value. UPN of the user when the acceptance was recorded.
* @param string|null $value Value to set for the userPrincipalName property.
*/
public function setUserPrincipalName(?string $value): void {
$this->getBackingStore()->set('userPrincipalName', $value);
}
}