-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdevice_health_attestation_state.go
1298 lines (1296 loc) · 46.9 KB
/
device_health_attestation_state.go
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
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package models
import (
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store"
)
type DeviceHealthAttestationState struct {
// Stores model information.
backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore
}
// NewDeviceHealthAttestationState instantiates a new DeviceHealthAttestationState and sets the default values.
func NewDeviceHealthAttestationState()(*DeviceHealthAttestationState) {
m := &DeviceHealthAttestationState{
}
m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance();
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateDeviceHealthAttestationStateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateDeviceHealthAttestationStateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewDeviceHealthAttestationState(), nil
}
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
// returns a map[string]any when successful
func (m *DeviceHealthAttestationState) GetAdditionalData()(map[string]any) {
val , err := m.backingStore.Get("additionalData")
if err != nil {
panic(err)
}
if val == nil {
var value = make(map[string]any);
m.SetAdditionalData(value);
}
return val.(map[string]any)
}
// GetAttestationIdentityKey gets the attestationIdentityKey property value. TWhen an Attestation Identity Key (AIK) is present on a device, it indicates that the device has an endorsement key (EK) certificate.
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetAttestationIdentityKey()(*string) {
val, err := m.GetBackingStore().Get("attestationIdentityKey")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetBackingStore gets the BackingStore property value. Stores model information.
// returns a BackingStore when successful
func (m *DeviceHealthAttestationState) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {
return m.backingStore
}
// GetBitLockerStatus gets the bitLockerStatus property value. On or Off of BitLocker Drive Encryption
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetBitLockerStatus()(*string) {
val, err := m.GetBackingStore().Get("bitLockerStatus")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetBootAppSecurityVersion gets the bootAppSecurityVersion property value. The security version number of the Boot Application
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetBootAppSecurityVersion()(*string) {
val, err := m.GetBackingStore().Get("bootAppSecurityVersion")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetBootDebugging gets the bootDebugging property value. When bootDebugging is enabled, the device is used in development and testing
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetBootDebugging()(*string) {
val, err := m.GetBackingStore().Get("bootDebugging")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetBootManagerSecurityVersion gets the bootManagerSecurityVersion property value. The security version number of the Boot Application
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetBootManagerSecurityVersion()(*string) {
val, err := m.GetBackingStore().Get("bootManagerSecurityVersion")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetBootManagerVersion gets the bootManagerVersion property value. The version of the Boot Manager
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetBootManagerVersion()(*string) {
val, err := m.GetBackingStore().Get("bootManagerVersion")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetBootRevisionListInfo gets the bootRevisionListInfo property value. The Boot Revision List that was loaded during initial boot on the attested device
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetBootRevisionListInfo()(*string) {
val, err := m.GetBackingStore().Get("bootRevisionListInfo")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetCodeIntegrity gets the codeIntegrity property value. When code integrity is enabled, code execution is restricted to integrity verified code
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetCodeIntegrity()(*string) {
val, err := m.GetBackingStore().Get("codeIntegrity")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetCodeIntegrityCheckVersion gets the codeIntegrityCheckVersion property value. The version of the Boot Manager
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetCodeIntegrityCheckVersion()(*string) {
val, err := m.GetBackingStore().Get("codeIntegrityCheckVersion")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetCodeIntegrityPolicy gets the codeIntegrityPolicy property value. The Code Integrity policy that is controlling the security of the boot environment
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetCodeIntegrityPolicy()(*string) {
val, err := m.GetBackingStore().Get("codeIntegrityPolicy")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetContentNamespaceUrl gets the contentNamespaceUrl property value. The DHA report version. (Namespace version)
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetContentNamespaceUrl()(*string) {
val, err := m.GetBackingStore().Get("contentNamespaceUrl")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetContentVersion gets the contentVersion property value. The HealthAttestation state schema version
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetContentVersion()(*string) {
val, err := m.GetBackingStore().Get("contentVersion")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetDataExcutionPolicy gets the dataExcutionPolicy property value. DEP Policy defines a set of hardware and software technologies that perform additional checks on memory
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetDataExcutionPolicy()(*string) {
val, err := m.GetBackingStore().Get("dataExcutionPolicy")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetDeviceHealthAttestationStatus gets the deviceHealthAttestationStatus property value. The DHA report version. (Namespace version)
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetDeviceHealthAttestationStatus()(*string) {
val, err := m.GetBackingStore().Get("deviceHealthAttestationStatus")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetEarlyLaunchAntiMalwareDriverProtection gets the earlyLaunchAntiMalwareDriverProtection property value. ELAM provides protection for the computers in your network when they start up
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetEarlyLaunchAntiMalwareDriverProtection()(*string) {
val, err := m.GetBackingStore().Get("earlyLaunchAntiMalwareDriverProtection")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *DeviceHealthAttestationState) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["attestationIdentityKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetAttestationIdentityKey(val)
}
return nil
}
res["bitLockerStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetBitLockerStatus(val)
}
return nil
}
res["bootAppSecurityVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetBootAppSecurityVersion(val)
}
return nil
}
res["bootDebugging"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetBootDebugging(val)
}
return nil
}
res["bootManagerSecurityVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetBootManagerSecurityVersion(val)
}
return nil
}
res["bootManagerVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetBootManagerVersion(val)
}
return nil
}
res["bootRevisionListInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetBootRevisionListInfo(val)
}
return nil
}
res["codeIntegrity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCodeIntegrity(val)
}
return nil
}
res["codeIntegrityCheckVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCodeIntegrityCheckVersion(val)
}
return nil
}
res["codeIntegrityPolicy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCodeIntegrityPolicy(val)
}
return nil
}
res["contentNamespaceUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetContentNamespaceUrl(val)
}
return nil
}
res["contentVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetContentVersion(val)
}
return nil
}
res["dataExcutionPolicy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetDataExcutionPolicy(val)
}
return nil
}
res["deviceHealthAttestationStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetDeviceHealthAttestationStatus(val)
}
return nil
}
res["earlyLaunchAntiMalwareDriverProtection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetEarlyLaunchAntiMalwareDriverProtection(val)
}
return nil
}
res["healthAttestationSupportedStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetHealthAttestationSupportedStatus(val)
}
return nil
}
res["healthStatusMismatchInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetHealthStatusMismatchInfo(val)
}
return nil
}
res["issuedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetTimeValue()
if err != nil {
return err
}
if val != nil {
m.SetIssuedDateTime(val)
}
return nil
}
res["lastUpdateDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetLastUpdateDateTime(val)
}
return nil
}
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetOdataType(val)
}
return nil
}
res["operatingSystemKernelDebugging"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetOperatingSystemKernelDebugging(val)
}
return nil
}
res["operatingSystemRevListInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetOperatingSystemRevListInfo(val)
}
return nil
}
res["pcr0"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetPcr0(val)
}
return nil
}
res["pcrHashAlgorithm"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetPcrHashAlgorithm(val)
}
return nil
}
res["resetCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt64Value()
if err != nil {
return err
}
if val != nil {
m.SetResetCount(val)
}
return nil
}
res["restartCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt64Value()
if err != nil {
return err
}
if val != nil {
m.SetRestartCount(val)
}
return nil
}
res["safeMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetSafeMode(val)
}
return nil
}
res["secureBoot"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetSecureBoot(val)
}
return nil
}
res["secureBootConfigurationPolicyFingerPrint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetSecureBootConfigurationPolicyFingerPrint(val)
}
return nil
}
res["testSigning"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetTestSigning(val)
}
return nil
}
res["tpmVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetTpmVersion(val)
}
return nil
}
res["virtualSecureMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetVirtualSecureMode(val)
}
return nil
}
res["windowsPE"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetWindowsPE(val)
}
return nil
}
return res
}
// GetHealthAttestationSupportedStatus gets the healthAttestationSupportedStatus property value. This attribute indicates if DHA is supported for the device
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetHealthAttestationSupportedStatus()(*string) {
val, err := m.GetBackingStore().Get("healthAttestationSupportedStatus")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetHealthStatusMismatchInfo gets the healthStatusMismatchInfo property value. This attribute appears if DHA-Service detects an integrity issue
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetHealthStatusMismatchInfo()(*string) {
val, err := m.GetBackingStore().Get("healthStatusMismatchInfo")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetIssuedDateTime gets the issuedDateTime property value. The DateTime when device was evaluated or issued to MDM
// returns a *Time when successful
func (m *DeviceHealthAttestationState) GetIssuedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
val, err := m.GetBackingStore().Get("issuedDateTime")
if err != nil {
panic(err)
}
if val != nil {
return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
}
return nil
}
// GetLastUpdateDateTime gets the lastUpdateDateTime property value. The Timestamp of the last update.
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetLastUpdateDateTime()(*string) {
val, err := m.GetBackingStore().Get("lastUpdateDateTime")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetOdataType gets the @odata.type property value. The OdataType property
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetOdataType()(*string) {
val, err := m.GetBackingStore().Get("odataType")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetOperatingSystemKernelDebugging gets the operatingSystemKernelDebugging property value. When operatingSystemKernelDebugging is enabled, the device is used in development and testing
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetOperatingSystemKernelDebugging()(*string) {
val, err := m.GetBackingStore().Get("operatingSystemKernelDebugging")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetOperatingSystemRevListInfo gets the operatingSystemRevListInfo property value. The Operating System Revision List that was loaded during initial boot on the attested device
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetOperatingSystemRevListInfo()(*string) {
val, err := m.GetBackingStore().Get("operatingSystemRevListInfo")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetPcr0 gets the pcr0 property value. The measurement that is captured in PCR[0]
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetPcr0()(*string) {
val, err := m.GetBackingStore().Get("pcr0")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetPcrHashAlgorithm gets the pcrHashAlgorithm property value. Informational attribute that identifies the HASH algorithm that was used by TPM
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetPcrHashAlgorithm()(*string) {
val, err := m.GetBackingStore().Get("pcrHashAlgorithm")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetResetCount gets the resetCount property value. The number of times a PC device has hibernated or resumed
// returns a *int64 when successful
func (m *DeviceHealthAttestationState) GetResetCount()(*int64) {
val, err := m.GetBackingStore().Get("resetCount")
if err != nil {
panic(err)
}
if val != nil {
return val.(*int64)
}
return nil
}
// GetRestartCount gets the restartCount property value. The number of times a PC device has rebooted
// returns a *int64 when successful
func (m *DeviceHealthAttestationState) GetRestartCount()(*int64) {
val, err := m.GetBackingStore().Get("restartCount")
if err != nil {
panic(err)
}
if val != nil {
return val.(*int64)
}
return nil
}
// GetSafeMode gets the safeMode property value. Safe mode is a troubleshooting option for Windows that starts your computer in a limited state
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetSafeMode()(*string) {
val, err := m.GetBackingStore().Get("safeMode")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetSecureBoot gets the secureBoot property value. When Secure Boot is enabled, the core components must have the correct cryptographic signatures
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetSecureBoot()(*string) {
val, err := m.GetBackingStore().Get("secureBoot")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetSecureBootConfigurationPolicyFingerPrint gets the secureBootConfigurationPolicyFingerPrint property value. Fingerprint of the Custom Secure Boot Configuration Policy
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetSecureBootConfigurationPolicyFingerPrint()(*string) {
val, err := m.GetBackingStore().Get("secureBootConfigurationPolicyFingerPrint")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetTestSigning gets the testSigning property value. When test signing is allowed, the device does not enforce signature validation during boot
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetTestSigning()(*string) {
val, err := m.GetBackingStore().Get("testSigning")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetTpmVersion gets the tpmVersion property value. The security version number of the Boot Application
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetTpmVersion()(*string) {
val, err := m.GetBackingStore().Get("tpmVersion")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetVirtualSecureMode gets the virtualSecureMode property value. VSM is a container that protects high value assets from a compromised kernel
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetVirtualSecureMode()(*string) {
val, err := m.GetBackingStore().Get("virtualSecureMode")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// GetWindowsPE gets the windowsPE property value. Operating system running with limited services that is used to prepare a computer for Windows
// returns a *string when successful
func (m *DeviceHealthAttestationState) GetWindowsPE()(*string) {
val, err := m.GetBackingStore().Get("windowsPE")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// Serialize serializes information the current object
func (m *DeviceHealthAttestationState) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
err := writer.WriteStringValue("attestationIdentityKey", m.GetAttestationIdentityKey())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("bitLockerStatus", m.GetBitLockerStatus())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("bootAppSecurityVersion", m.GetBootAppSecurityVersion())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("bootDebugging", m.GetBootDebugging())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("bootManagerSecurityVersion", m.GetBootManagerSecurityVersion())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("bootManagerVersion", m.GetBootManagerVersion())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("bootRevisionListInfo", m.GetBootRevisionListInfo())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("codeIntegrity", m.GetCodeIntegrity())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("codeIntegrityCheckVersion", m.GetCodeIntegrityCheckVersion())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("codeIntegrityPolicy", m.GetCodeIntegrityPolicy())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("contentNamespaceUrl", m.GetContentNamespaceUrl())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("contentVersion", m.GetContentVersion())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("dataExcutionPolicy", m.GetDataExcutionPolicy())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("deviceHealthAttestationStatus", m.GetDeviceHealthAttestationStatus())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("earlyLaunchAntiMalwareDriverProtection", m.GetEarlyLaunchAntiMalwareDriverProtection())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("healthAttestationSupportedStatus", m.GetHealthAttestationSupportedStatus())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("healthStatusMismatchInfo", m.GetHealthStatusMismatchInfo())
if err != nil {
return err
}
}
{
err := writer.WriteTimeValue("issuedDateTime", m.GetIssuedDateTime())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("lastUpdateDateTime", m.GetLastUpdateDateTime())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("operatingSystemKernelDebugging", m.GetOperatingSystemKernelDebugging())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("operatingSystemRevListInfo", m.GetOperatingSystemRevListInfo())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("pcr0", m.GetPcr0())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("pcrHashAlgorithm", m.GetPcrHashAlgorithm())
if err != nil {
return err
}
}
{
err := writer.WriteInt64Value("resetCount", m.GetResetCount())
if err != nil {
return err
}
}
{
err := writer.WriteInt64Value("restartCount", m.GetRestartCount())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("safeMode", m.GetSafeMode())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("secureBoot", m.GetSecureBoot())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("secureBootConfigurationPolicyFingerPrint", m.GetSecureBootConfigurationPolicyFingerPrint())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("testSigning", m.GetTestSigning())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("tpmVersion", m.GetTpmVersion())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("virtualSecureMode", m.GetVirtualSecureMode())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("windowsPE", m.GetWindowsPE())
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *DeviceHealthAttestationState) SetAdditionalData(value map[string]any)() {
err := m.GetBackingStore().Set("additionalData", value)
if err != nil {
panic(err)
}
}
// SetAttestationIdentityKey sets the attestationIdentityKey property value. TWhen an Attestation Identity Key (AIK) is present on a device, it indicates that the device has an endorsement key (EK) certificate.
func (m *DeviceHealthAttestationState) SetAttestationIdentityKey(value *string)() {
err := m.GetBackingStore().Set("attestationIdentityKey", value)
if err != nil {
panic(err)
}
}
// SetBackingStore sets the BackingStore property value. Stores model information.
func (m *DeviceHealthAttestationState) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() {
m.backingStore = value