-
Notifications
You must be signed in to change notification settings - Fork 252
/
ManagedDevice.cs
863 lines (863 loc) · 44.7 KB
/
ManagedDevice.cs
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
using System;
namespace Microsoft.Graph.Models
{
/// <summary>
/// Devices that are managed or pre-enrolled through Intune
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class ManagedDevice : global::Microsoft.Graph.Models.Entity, IParsable
{
/// <summary>The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ActivationLockBypassCode
{
get { return BackingStore?.Get<string?>("activationLockBypassCode"); }
set { BackingStore?.Set("activationLockBypassCode", value); }
}
#nullable restore
#else
public string ActivationLockBypassCode
{
get { return BackingStore?.Get<string>("activationLockBypassCode"); }
set { BackingStore?.Set("activationLockBypassCode", value); }
}
#endif
/// <summary>Android security patch level. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? AndroidSecurityPatchLevel
{
get { return BackingStore?.Get<string?>("androidSecurityPatchLevel"); }
set { BackingStore?.Set("androidSecurityPatchLevel", value); }
}
#nullable restore
#else
public string AndroidSecurityPatchLevel
{
get { return BackingStore?.Get<string>("androidSecurityPatchLevel"); }
set { BackingStore?.Set("androidSecurityPatchLevel", value); }
}
#endif
/// <summary>The unique identifier for the Azure Active Directory device. Read only. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? AzureADDeviceId
{
get { return BackingStore?.Get<string?>("azureADDeviceId"); }
set { BackingStore?.Set("azureADDeviceId", value); }
}
#nullable restore
#else
public string AzureADDeviceId
{
get { return BackingStore?.Get<string>("azureADDeviceId"); }
set { BackingStore?.Set("azureADDeviceId", value); }
}
#endif
/// <summary>Whether the device is Azure Active Directory registered. This property is read-only.</summary>
public bool? AzureADRegistered
{
get { return BackingStore?.Get<bool?>("azureADRegistered"); }
set { BackingStore?.Set("azureADRegistered", value); }
}
/// <summary>The DateTime when device compliance grace period expires. This property is read-only.</summary>
public DateTimeOffset? ComplianceGracePeriodExpirationDateTime
{
get { return BackingStore?.Get<DateTimeOffset?>("complianceGracePeriodExpirationDateTime"); }
set { BackingStore?.Set("complianceGracePeriodExpirationDateTime", value); }
}
/// <summary>Compliance state.</summary>
public global::Microsoft.Graph.Models.ComplianceState? ComplianceState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ComplianceState?>("complianceState"); }
set { BackingStore?.Set("complianceState", value); }
}
/// <summary>ConfigrMgr client enabled features. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.ConfigurationManagerClientEnabledFeatures? ConfigurationManagerClientEnabledFeatures
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ConfigurationManagerClientEnabledFeatures?>("configurationManagerClientEnabledFeatures"); }
set { BackingStore?.Set("configurationManagerClientEnabledFeatures", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.ConfigurationManagerClientEnabledFeatures ConfigurationManagerClientEnabledFeatures
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ConfigurationManagerClientEnabledFeatures>("configurationManagerClientEnabledFeatures"); }
set { BackingStore?.Set("configurationManagerClientEnabledFeatures", value); }
}
#endif
/// <summary>List of ComplexType deviceActionResult objects. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::Microsoft.Graph.Models.DeviceActionResult>? DeviceActionResults
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceActionResult>?>("deviceActionResults"); }
set { BackingStore?.Set("deviceActionResults", value); }
}
#nullable restore
#else
public List<global::Microsoft.Graph.Models.DeviceActionResult> DeviceActionResults
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceActionResult>>("deviceActionResults"); }
set { BackingStore?.Set("deviceActionResults", value); }
}
#endif
/// <summary>Device category</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.DeviceCategory? DeviceCategory
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceCategory?>("deviceCategory"); }
set { BackingStore?.Set("deviceCategory", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.DeviceCategory DeviceCategory
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceCategory>("deviceCategory"); }
set { BackingStore?.Set("deviceCategory", value); }
}
#endif
/// <summary>Device category display name. Default is an empty string. Supports $filter operator 'eq' and 'or'. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? DeviceCategoryDisplayName
{
get { return BackingStore?.Get<string?>("deviceCategoryDisplayName"); }
set { BackingStore?.Set("deviceCategoryDisplayName", value); }
}
#nullable restore
#else
public string DeviceCategoryDisplayName
{
get { return BackingStore?.Get<string>("deviceCategoryDisplayName"); }
set { BackingStore?.Set("deviceCategoryDisplayName", value); }
}
#endif
/// <summary>Device compliance policy states for this device.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::Microsoft.Graph.Models.DeviceCompliancePolicyState>? DeviceCompliancePolicyStates
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceCompliancePolicyState>?>("deviceCompliancePolicyStates"); }
set { BackingStore?.Set("deviceCompliancePolicyStates", value); }
}
#nullable restore
#else
public List<global::Microsoft.Graph.Models.DeviceCompliancePolicyState> DeviceCompliancePolicyStates
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceCompliancePolicyState>>("deviceCompliancePolicyStates"); }
set { BackingStore?.Set("deviceCompliancePolicyStates", value); }
}
#endif
/// <summary>Device configuration states for this device.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::Microsoft.Graph.Models.DeviceConfigurationState>? DeviceConfigurationStates
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceConfigurationState>?>("deviceConfigurationStates"); }
set { BackingStore?.Set("deviceConfigurationStates", value); }
}
#nullable restore
#else
public List<global::Microsoft.Graph.Models.DeviceConfigurationState> DeviceConfigurationStates
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceConfigurationState>>("deviceConfigurationStates"); }
set { BackingStore?.Set("deviceConfigurationStates", value); }
}
#endif
/// <summary>Possible ways of adding a mobile device to management.</summary>
public global::Microsoft.Graph.Models.DeviceEnrollmentType? DeviceEnrollmentType
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceEnrollmentType?>("deviceEnrollmentType"); }
set { BackingStore?.Set("deviceEnrollmentType", value); }
}
/// <summary>The device health attestation state. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.DeviceHealthAttestationState? DeviceHealthAttestationState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceHealthAttestationState?>("deviceHealthAttestationState"); }
set { BackingStore?.Set("deviceHealthAttestationState", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.DeviceHealthAttestationState DeviceHealthAttestationState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceHealthAttestationState>("deviceHealthAttestationState"); }
set { BackingStore?.Set("deviceHealthAttestationState", value); }
}
#endif
/// <summary>Name of the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? DeviceName
{
get { return BackingStore?.Get<string?>("deviceName"); }
set { BackingStore?.Set("deviceName", value); }
}
#nullable restore
#else
public string DeviceName
{
get { return BackingStore?.Get<string>("deviceName"); }
set { BackingStore?.Set("deviceName", value); }
}
#endif
/// <summary>Device registration status.</summary>
public global::Microsoft.Graph.Models.DeviceRegistrationState? DeviceRegistrationState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceRegistrationState?>("deviceRegistrationState"); }
set { BackingStore?.Set("deviceRegistrationState", value); }
}
/// <summary>Whether the device is Exchange ActiveSync activated. This property is read-only.</summary>
public bool? EasActivated
{
get { return BackingStore?.Get<bool?>("easActivated"); }
set { BackingStore?.Set("easActivated", value); }
}
/// <summary>Exchange ActivationSync activation time of the device. This property is read-only.</summary>
public DateTimeOffset? EasActivationDateTime
{
get { return BackingStore?.Get<DateTimeOffset?>("easActivationDateTime"); }
set { BackingStore?.Set("easActivationDateTime", value); }
}
/// <summary>Exchange ActiveSync Id of the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? EasDeviceId
{
get { return BackingStore?.Get<string?>("easDeviceId"); }
set { BackingStore?.Set("easDeviceId", value); }
}
#nullable restore
#else
public string EasDeviceId
{
get { return BackingStore?.Get<string>("easDeviceId"); }
set { BackingStore?.Set("easDeviceId", value); }
}
#endif
/// <summary>Email(s) for the user associated with the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? EmailAddress
{
get { return BackingStore?.Get<string?>("emailAddress"); }
set { BackingStore?.Set("emailAddress", value); }
}
#nullable restore
#else
public string EmailAddress
{
get { return BackingStore?.Get<string>("emailAddress"); }
set { BackingStore?.Set("emailAddress", value); }
}
#endif
/// <summary>Enrollment time of the device. Supports $filter operator 'lt' and 'gt'. This property is read-only.</summary>
public DateTimeOffset? EnrolledDateTime
{
get { return BackingStore?.Get<DateTimeOffset?>("enrolledDateTime"); }
set { BackingStore?.Set("enrolledDateTime", value); }
}
/// <summary>Name of the enrollment profile assigned to the device. Default value is empty string, indicating no enrollment profile was assgined. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? EnrollmentProfileName
{
get { return BackingStore?.Get<string?>("enrollmentProfileName"); }
set { BackingStore?.Set("enrollmentProfileName", value); }
}
#nullable restore
#else
public string EnrollmentProfileName
{
get { return BackingStore?.Get<string>("enrollmentProfileName"); }
set { BackingStore?.Set("enrollmentProfileName", value); }
}
#endif
/// <summary>Indicates Ethernet MAC Address of the device. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity. Individual get call with select query options is needed to retrieve actual values. Example: deviceManagement/managedDevices({managedDeviceId})?$select=ethernetMacAddress Supports: $select. $Search is not supported. Read-only. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? EthernetMacAddress
{
get { return BackingStore?.Get<string?>("ethernetMacAddress"); }
set { BackingStore?.Set("ethernetMacAddress", value); }
}
#nullable restore
#else
public string EthernetMacAddress
{
get { return BackingStore?.Get<string>("ethernetMacAddress"); }
set { BackingStore?.Set("ethernetMacAddress", value); }
}
#endif
/// <summary>Device Exchange Access State.</summary>
public global::Microsoft.Graph.Models.DeviceManagementExchangeAccessState? ExchangeAccessState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceManagementExchangeAccessState?>("exchangeAccessState"); }
set { BackingStore?.Set("exchangeAccessState", value); }
}
/// <summary>Device Exchange Access State Reason.</summary>
public global::Microsoft.Graph.Models.DeviceManagementExchangeAccessStateReason? ExchangeAccessStateReason
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.DeviceManagementExchangeAccessStateReason?>("exchangeAccessStateReason"); }
set { BackingStore?.Set("exchangeAccessStateReason", value); }
}
/// <summary>Last time the device contacted Exchange. This property is read-only.</summary>
public DateTimeOffset? ExchangeLastSuccessfulSyncDateTime
{
get { return BackingStore?.Get<DateTimeOffset?>("exchangeLastSuccessfulSyncDateTime"); }
set { BackingStore?.Set("exchangeLastSuccessfulSyncDateTime", value); }
}
/// <summary>Free Storage in Bytes. Default value is 0. Read-only. This property is read-only.</summary>
public long? FreeStorageSpaceInBytes
{
get { return BackingStore?.Get<long?>("freeStorageSpaceInBytes"); }
set { BackingStore?.Set("freeStorageSpaceInBytes", value); }
}
/// <summary>Integrated Circuit Card Identifier, it is A SIM card's unique identification number. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Iccid
{
get { return BackingStore?.Get<string?>("iccid"); }
set { BackingStore?.Set("iccid", value); }
}
#nullable restore
#else
public string Iccid
{
get { return BackingStore?.Get<string>("iccid"); }
set { BackingStore?.Set("iccid", value); }
}
#endif
/// <summary>IMEI. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Imei
{
get { return BackingStore?.Get<string?>("imei"); }
set { BackingStore?.Set("imei", value); }
}
#nullable restore
#else
public string Imei
{
get { return BackingStore?.Get<string>("imei"); }
set { BackingStore?.Set("imei", value); }
}
#endif
/// <summary>Device encryption status. This property is read-only.</summary>
public bool? IsEncrypted
{
get { return BackingStore?.Get<bool?>("isEncrypted"); }
set { BackingStore?.Set("isEncrypted", value); }
}
/// <summary>Device supervised status. This property is read-only.</summary>
public bool? IsSupervised
{
get { return BackingStore?.Get<bool?>("isSupervised"); }
set { BackingStore?.Set("isSupervised", value); }
}
/// <summary>Whether the device is jail broken or rooted. Default is an empty string. Supports $filter operator 'eq' and 'or'. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? JailBroken
{
get { return BackingStore?.Get<string?>("jailBroken"); }
set { BackingStore?.Set("jailBroken", value); }
}
#nullable restore
#else
public string JailBroken
{
get { return BackingStore?.Get<string>("jailBroken"); }
set { BackingStore?.Set("jailBroken", value); }
}
#endif
/// <summary>The date and time that the device last completed a successful sync with Intune. Supports $filter operator 'lt' and 'gt'. This property is read-only.</summary>
public DateTimeOffset? LastSyncDateTime
{
get { return BackingStore?.Get<DateTimeOffset?>("lastSyncDateTime"); }
set { BackingStore?.Set("lastSyncDateTime", value); }
}
/// <summary>List of log collection requests</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::Microsoft.Graph.Models.DeviceLogCollectionResponse>? LogCollectionRequests
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceLogCollectionResponse>?>("logCollectionRequests"); }
set { BackingStore?.Set("logCollectionRequests", value); }
}
#nullable restore
#else
public List<global::Microsoft.Graph.Models.DeviceLogCollectionResponse> LogCollectionRequests
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.DeviceLogCollectionResponse>>("logCollectionRequests"); }
set { BackingStore?.Set("logCollectionRequests", value); }
}
#endif
/// <summary>Automatically generated name to identify a device. Can be overwritten to a user friendly name.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ManagedDeviceName
{
get { return BackingStore?.Get<string?>("managedDeviceName"); }
set { BackingStore?.Set("managedDeviceName", value); }
}
#nullable restore
#else
public string ManagedDeviceName
{
get { return BackingStore?.Get<string>("managedDeviceName"); }
set { BackingStore?.Set("managedDeviceName", value); }
}
#endif
/// <summary>Owner type of device.</summary>
public global::Microsoft.Graph.Models.ManagedDeviceOwnerType? ManagedDeviceOwnerType
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ManagedDeviceOwnerType?>("managedDeviceOwnerType"); }
set { BackingStore?.Set("managedDeviceOwnerType", value); }
}
/// <summary>The managementAgent property</summary>
public global::Microsoft.Graph.Models.ManagementAgentType? ManagementAgent
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ManagementAgentType?>("managementAgent"); }
set { BackingStore?.Set("managementAgent", value); }
}
/// <summary>Reports device management certificate expiration date. This property is read-only.</summary>
public DateTimeOffset? ManagementCertificateExpirationDate
{
get { return BackingStore?.Get<DateTimeOffset?>("managementCertificateExpirationDate"); }
set { BackingStore?.Set("managementCertificateExpirationDate", value); }
}
/// <summary>Manufacturer of the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Manufacturer
{
get { return BackingStore?.Get<string?>("manufacturer"); }
set { BackingStore?.Set("manufacturer", value); }
}
#nullable restore
#else
public string Manufacturer
{
get { return BackingStore?.Get<string>("manufacturer"); }
set { BackingStore?.Set("manufacturer", value); }
}
#endif
/// <summary>MEID. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Meid
{
get { return BackingStore?.Get<string?>("meid"); }
set { BackingStore?.Set("meid", value); }
}
#nullable restore
#else
public string Meid
{
get { return BackingStore?.Get<string>("meid"); }
set { BackingStore?.Set("meid", value); }
}
#endif
/// <summary>Model of the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Model
{
get { return BackingStore?.Get<string?>("model"); }
set { BackingStore?.Set("model", value); }
}
#nullable restore
#else
public string Model
{
get { return BackingStore?.Get<string>("model"); }
set { BackingStore?.Set("model", value); }
}
#endif
/// <summary>Notes on the device created by IT Admin. Default is null. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Notes
{
get { return BackingStore?.Get<string?>("notes"); }
set { BackingStore?.Set("notes", value); }
}
#nullable restore
#else
public string Notes
{
get { return BackingStore?.Get<string>("notes"); }
set { BackingStore?.Set("notes", value); }
}
#endif
/// <summary>Operating system of the device. Windows, iOS, etc. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OperatingSystem
{
get { return BackingStore?.Get<string?>("operatingSystem"); }
set { BackingStore?.Set("operatingSystem", value); }
}
#nullable restore
#else
public string OperatingSystem
{
get { return BackingStore?.Get<string>("operatingSystem"); }
set { BackingStore?.Set("operatingSystem", value); }
}
#endif
/// <summary>Operating system version of the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OsVersion
{
get { return BackingStore?.Get<string?>("osVersion"); }
set { BackingStore?.Set("osVersion", value); }
}
#nullable restore
#else
public string OsVersion
{
get { return BackingStore?.Get<string>("osVersion"); }
set { BackingStore?.Set("osVersion", value); }
}
#endif
/// <summary>Available health states for the Device Health API</summary>
public global::Microsoft.Graph.Models.ManagedDevicePartnerReportedHealthState? PartnerReportedThreatState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.ManagedDevicePartnerReportedHealthState?>("partnerReportedThreatState"); }
set { BackingStore?.Set("partnerReportedThreatState", value); }
}
/// <summary>Phone number of the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? PhoneNumber
{
get { return BackingStore?.Get<string?>("phoneNumber"); }
set { BackingStore?.Set("phoneNumber", value); }
}
#nullable restore
#else
public string PhoneNumber
{
get { return BackingStore?.Get<string>("phoneNumber"); }
set { BackingStore?.Set("phoneNumber", value); }
}
#endif
/// <summary>Total Memory in Bytes. Default is 0. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. Read-only. This property is read-only.</summary>
public long? PhysicalMemoryInBytes
{
get { return BackingStore?.Get<long?>("physicalMemoryInBytes"); }
set { BackingStore?.Set("physicalMemoryInBytes", value); }
}
/// <summary>An error string that identifies issues when creating Remote Assistance session objects. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? RemoteAssistanceSessionErrorDetails
{
get { return BackingStore?.Get<string?>("remoteAssistanceSessionErrorDetails"); }
set { BackingStore?.Set("remoteAssistanceSessionErrorDetails", value); }
}
#nullable restore
#else
public string RemoteAssistanceSessionErrorDetails
{
get { return BackingStore?.Get<string>("remoteAssistanceSessionErrorDetails"); }
set { BackingStore?.Set("remoteAssistanceSessionErrorDetails", value); }
}
#endif
/// <summary>Url that allows a Remote Assistance session to be established with the device. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? RemoteAssistanceSessionUrl
{
get { return BackingStore?.Get<string?>("remoteAssistanceSessionUrl"); }
set { BackingStore?.Set("remoteAssistanceSessionUrl", value); }
}
#nullable restore
#else
public string RemoteAssistanceSessionUrl
{
get { return BackingStore?.Get<string>("remoteAssistanceSessionUrl"); }
set { BackingStore?.Set("remoteAssistanceSessionUrl", value); }
}
#endif
/// <summary>Reports if the managed iOS device is user approval enrollment. This property is read-only.</summary>
public bool? RequireUserEnrollmentApproval
{
get { return BackingStore?.Get<bool?>("requireUserEnrollmentApproval"); }
set { BackingStore?.Set("requireUserEnrollmentApproval", value); }
}
/// <summary>SerialNumber. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SerialNumber
{
get { return BackingStore?.Get<string?>("serialNumber"); }
set { BackingStore?.Set("serialNumber", value); }
}
#nullable restore
#else
public string SerialNumber
{
get { return BackingStore?.Get<string>("serialNumber"); }
set { BackingStore?.Set("serialNumber", value); }
}
#endif
/// <summary>Subscriber Carrier. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? SubscriberCarrier
{
get { return BackingStore?.Get<string?>("subscriberCarrier"); }
set { BackingStore?.Set("subscriberCarrier", value); }
}
#nullable restore
#else
public string SubscriberCarrier
{
get { return BackingStore?.Get<string>("subscriberCarrier"); }
set { BackingStore?.Set("subscriberCarrier", value); }
}
#endif
/// <summary>Total Storage in Bytes. This property is read-only.</summary>
public long? TotalStorageSpaceInBytes
{
get { return BackingStore?.Get<long?>("totalStorageSpaceInBytes"); }
set { BackingStore?.Set("totalStorageSpaceInBytes", value); }
}
/// <summary>Unique Device Identifier for iOS and macOS devices. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Udid
{
get { return BackingStore?.Get<string?>("udid"); }
set { BackingStore?.Set("udid", value); }
}
#nullable restore
#else
public string Udid
{
get { return BackingStore?.Get<string>("udid"); }
set { BackingStore?.Set("udid", value); }
}
#endif
/// <summary>User display name. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UserDisplayName
{
get { return BackingStore?.Get<string?>("userDisplayName"); }
set { BackingStore?.Set("userDisplayName", value); }
}
#nullable restore
#else
public string UserDisplayName
{
get { return BackingStore?.Get<string>("userDisplayName"); }
set { BackingStore?.Set("userDisplayName", value); }
}
#endif
/// <summary>Unique Identifier for the user associated with the device. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UserId
{
get { return BackingStore?.Get<string?>("userId"); }
set { BackingStore?.Set("userId", value); }
}
#nullable restore
#else
public string UserId
{
get { return BackingStore?.Get<string>("userId"); }
set { BackingStore?.Set("userId", value); }
}
#endif
/// <summary>Device user principal name. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? UserPrincipalName
{
get { return BackingStore?.Get<string?>("userPrincipalName"); }
set { BackingStore?.Set("userPrincipalName", value); }
}
#nullable restore
#else
public string UserPrincipalName
{
get { return BackingStore?.Get<string>("userPrincipalName"); }
set { BackingStore?.Set("userPrincipalName", value); }
}
#endif
/// <summary>The primary users associated with the managed device.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public List<global::Microsoft.Graph.Models.User>? Users
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.User>?>("users"); }
set { BackingStore?.Set("users", value); }
}
#nullable restore
#else
public List<global::Microsoft.Graph.Models.User> Users
{
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.User>>("users"); }
set { BackingStore?.Set("users", value); }
}
#endif
/// <summary>Wi-Fi MAC. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? WiFiMacAddress
{
get { return BackingStore?.Get<string?>("wiFiMacAddress"); }
set { BackingStore?.Set("wiFiMacAddress", value); }
}
#nullable restore
#else
public string WiFiMacAddress
{
get { return BackingStore?.Get<string>("wiFiMacAddress"); }
set { BackingStore?.Set("wiFiMacAddress", value); }
}
#endif
/// <summary>The device protection status. This property is read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.WindowsProtectionState? WindowsProtectionState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.WindowsProtectionState?>("windowsProtectionState"); }
set { BackingStore?.Set("windowsProtectionState", value); }
}
#nullable restore
#else
public global::Microsoft.Graph.Models.WindowsProtectionState WindowsProtectionState
{
get { return BackingStore?.Get<global::Microsoft.Graph.Models.WindowsProtectionState>("windowsProtectionState"); }
set { BackingStore?.Set("windowsProtectionState", value); }
}
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Models.ManagedDevice"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static new global::Microsoft.Graph.Models.ManagedDevice CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.Models.ManagedDevice();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary<string, Action<IParseNode>></returns>
public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
{
{ "activationLockBypassCode", n => { ActivationLockBypassCode = n.GetStringValue(); } },
{ "androidSecurityPatchLevel", n => { AndroidSecurityPatchLevel = n.GetStringValue(); } },
{ "azureADDeviceId", n => { AzureADDeviceId = n.GetStringValue(); } },
{ "azureADRegistered", n => { AzureADRegistered = n.GetBoolValue(); } },
{ "complianceGracePeriodExpirationDateTime", n => { ComplianceGracePeriodExpirationDateTime = n.GetDateTimeOffsetValue(); } },
{ "complianceState", n => { ComplianceState = n.GetEnumValue<global::Microsoft.Graph.Models.ComplianceState>(); } },
{ "configurationManagerClientEnabledFeatures", n => { ConfigurationManagerClientEnabledFeatures = n.GetObjectValue<global::Microsoft.Graph.Models.ConfigurationManagerClientEnabledFeatures>(global::Microsoft.Graph.Models.ConfigurationManagerClientEnabledFeatures.CreateFromDiscriminatorValue); } },
{ "deviceActionResults", n => { DeviceActionResults = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceActionResult>(global::Microsoft.Graph.Models.DeviceActionResult.CreateFromDiscriminatorValue)?.AsList(); } },
{ "deviceCategory", n => { DeviceCategory = n.GetObjectValue<global::Microsoft.Graph.Models.DeviceCategory>(global::Microsoft.Graph.Models.DeviceCategory.CreateFromDiscriminatorValue); } },
{ "deviceCategoryDisplayName", n => { DeviceCategoryDisplayName = n.GetStringValue(); } },
{ "deviceCompliancePolicyStates", n => { DeviceCompliancePolicyStates = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceCompliancePolicyState>(global::Microsoft.Graph.Models.DeviceCompliancePolicyState.CreateFromDiscriminatorValue)?.AsList(); } },
{ "deviceConfigurationStates", n => { DeviceConfigurationStates = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceConfigurationState>(global::Microsoft.Graph.Models.DeviceConfigurationState.CreateFromDiscriminatorValue)?.AsList(); } },
{ "deviceEnrollmentType", n => { DeviceEnrollmentType = n.GetEnumValue<global::Microsoft.Graph.Models.DeviceEnrollmentType>(); } },
{ "deviceHealthAttestationState", n => { DeviceHealthAttestationState = n.GetObjectValue<global::Microsoft.Graph.Models.DeviceHealthAttestationState>(global::Microsoft.Graph.Models.DeviceHealthAttestationState.CreateFromDiscriminatorValue); } },
{ "deviceName", n => { DeviceName = n.GetStringValue(); } },
{ "deviceRegistrationState", n => { DeviceRegistrationState = n.GetEnumValue<global::Microsoft.Graph.Models.DeviceRegistrationState>(); } },
{ "easActivated", n => { EasActivated = n.GetBoolValue(); } },
{ "easActivationDateTime", n => { EasActivationDateTime = n.GetDateTimeOffsetValue(); } },
{ "easDeviceId", n => { EasDeviceId = n.GetStringValue(); } },
{ "emailAddress", n => { EmailAddress = n.GetStringValue(); } },
{ "enrolledDateTime", n => { EnrolledDateTime = n.GetDateTimeOffsetValue(); } },
{ "enrollmentProfileName", n => { EnrollmentProfileName = n.GetStringValue(); } },
{ "ethernetMacAddress", n => { EthernetMacAddress = n.GetStringValue(); } },
{ "exchangeAccessState", n => { ExchangeAccessState = n.GetEnumValue<global::Microsoft.Graph.Models.DeviceManagementExchangeAccessState>(); } },
{ "exchangeAccessStateReason", n => { ExchangeAccessStateReason = n.GetEnumValue<global::Microsoft.Graph.Models.DeviceManagementExchangeAccessStateReason>(); } },
{ "exchangeLastSuccessfulSyncDateTime", n => { ExchangeLastSuccessfulSyncDateTime = n.GetDateTimeOffsetValue(); } },
{ "freeStorageSpaceInBytes", n => { FreeStorageSpaceInBytes = n.GetLongValue(); } },
{ "iccid", n => { Iccid = n.GetStringValue(); } },
{ "imei", n => { Imei = n.GetStringValue(); } },
{ "isEncrypted", n => { IsEncrypted = n.GetBoolValue(); } },
{ "isSupervised", n => { IsSupervised = n.GetBoolValue(); } },
{ "jailBroken", n => { JailBroken = n.GetStringValue(); } },
{ "lastSyncDateTime", n => { LastSyncDateTime = n.GetDateTimeOffsetValue(); } },
{ "logCollectionRequests", n => { LogCollectionRequests = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceLogCollectionResponse>(global::Microsoft.Graph.Models.DeviceLogCollectionResponse.CreateFromDiscriminatorValue)?.AsList(); } },
{ "managedDeviceName", n => { ManagedDeviceName = n.GetStringValue(); } },
{ "managedDeviceOwnerType", n => { ManagedDeviceOwnerType = n.GetEnumValue<global::Microsoft.Graph.Models.ManagedDeviceOwnerType>(); } },
{ "managementAgent", n => { ManagementAgent = n.GetEnumValue<global::Microsoft.Graph.Models.ManagementAgentType>(); } },
{ "managementCertificateExpirationDate", n => { ManagementCertificateExpirationDate = n.GetDateTimeOffsetValue(); } },
{ "manufacturer", n => { Manufacturer = n.GetStringValue(); } },
{ "meid", n => { Meid = n.GetStringValue(); } },
{ "model", n => { Model = n.GetStringValue(); } },
{ "notes", n => { Notes = n.GetStringValue(); } },
{ "operatingSystem", n => { OperatingSystem = n.GetStringValue(); } },
{ "osVersion", n => { OsVersion = n.GetStringValue(); } },
{ "partnerReportedThreatState", n => { PartnerReportedThreatState = n.GetEnumValue<global::Microsoft.Graph.Models.ManagedDevicePartnerReportedHealthState>(); } },
{ "phoneNumber", n => { PhoneNumber = n.GetStringValue(); } },
{ "physicalMemoryInBytes", n => { PhysicalMemoryInBytes = n.GetLongValue(); } },
{ "remoteAssistanceSessionErrorDetails", n => { RemoteAssistanceSessionErrorDetails = n.GetStringValue(); } },
{ "remoteAssistanceSessionUrl", n => { RemoteAssistanceSessionUrl = n.GetStringValue(); } },
{ "requireUserEnrollmentApproval", n => { RequireUserEnrollmentApproval = n.GetBoolValue(); } },
{ "serialNumber", n => { SerialNumber = n.GetStringValue(); } },
{ "subscriberCarrier", n => { SubscriberCarrier = n.GetStringValue(); } },
{ "totalStorageSpaceInBytes", n => { TotalStorageSpaceInBytes = n.GetLongValue(); } },
{ "udid", n => { Udid = n.GetStringValue(); } },
{ "userDisplayName", n => { UserDisplayName = n.GetStringValue(); } },
{ "userId", n => { UserId = n.GetStringValue(); } },
{ "userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } },
{ "users", n => { Users = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.User>(global::Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.AsList(); } },
{ "wiFiMacAddress", n => { WiFiMacAddress = n.GetStringValue(); } },
{ "windowsProtectionState", n => { WindowsProtectionState = n.GetObjectValue<global::Microsoft.Graph.Models.WindowsProtectionState>(global::Microsoft.Graph.Models.WindowsProtectionState.CreateFromDiscriminatorValue); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public override void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteEnumValue<global::Microsoft.Graph.Models.ComplianceState>("complianceState", ComplianceState);
writer.WriteObjectValue<global::Microsoft.Graph.Models.DeviceCategory>("deviceCategory", DeviceCategory);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceCompliancePolicyState>("deviceCompliancePolicyStates", DeviceCompliancePolicyStates);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceConfigurationState>("deviceConfigurationStates", DeviceConfigurationStates);
writer.WriteEnumValue<global::Microsoft.Graph.Models.DeviceEnrollmentType>("deviceEnrollmentType", DeviceEnrollmentType);
writer.WriteEnumValue<global::Microsoft.Graph.Models.DeviceRegistrationState>("deviceRegistrationState", DeviceRegistrationState);
writer.WriteEnumValue<global::Microsoft.Graph.Models.DeviceManagementExchangeAccessState>("exchangeAccessState", ExchangeAccessState);
writer.WriteEnumValue<global::Microsoft.Graph.Models.DeviceManagementExchangeAccessStateReason>("exchangeAccessStateReason", ExchangeAccessStateReason);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.DeviceLogCollectionResponse>("logCollectionRequests", LogCollectionRequests);
writer.WriteStringValue("managedDeviceName", ManagedDeviceName);
writer.WriteEnumValue<global::Microsoft.Graph.Models.ManagedDeviceOwnerType>("managedDeviceOwnerType", ManagedDeviceOwnerType);
writer.WriteEnumValue<global::Microsoft.Graph.Models.ManagementAgentType>("managementAgent", ManagementAgent);
writer.WriteStringValue("notes", Notes);
writer.WriteEnumValue<global::Microsoft.Graph.Models.ManagedDevicePartnerReportedHealthState>("partnerReportedThreatState", PartnerReportedThreatState);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.User>("users", Users);
writer.WriteObjectValue<global::Microsoft.Graph.Models.WindowsProtectionState>("windowsProtectionState", WindowsProtectionState);
}
}
}
#pragma warning restore CS0618