forked from Yohan460/go-jamf-api
/
model_put_computer_prestage_v2.go
1078 lines (921 loc) · 32.9 KB
/
model_put_computer_prestage_v2.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
/*
Jamf Pro API
## Overview The Jamf Pro API is a RESTful API for Jamf Pro built to enable consistent and efficient programmatic access to Jamf Pro.<br/><br/> The swagger schema can be found [here](/api/schema/).
API version: production
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// PutComputerPrestageV2 struct for PutComputerPrestageV2
type PutComputerPrestageV2 struct {
DisplayName string `json:"displayName"`
Mandatory bool `json:"mandatory"`
MdmRemovable bool `json:"mdmRemovable"`
SupportPhoneNumber string `json:"supportPhoneNumber"`
SupportEmailAddress string `json:"supportEmailAddress"`
Department string `json:"department"`
DefaultPrestage bool `json:"defaultPrestage"`
EnrollmentSiteId string `json:"enrollmentSiteId"`
KeepExistingSiteMembership bool `json:"keepExistingSiteMembership"`
KeepExistingLocationInformation bool `json:"keepExistingLocationInformation"`
RequireAuthentication bool `json:"requireAuthentication"`
AuthenticationPrompt string `json:"authenticationPrompt"`
PreventActivationLock bool `json:"preventActivationLock"`
EnableDeviceBasedActivationLock bool `json:"enableDeviceBasedActivationLock"`
DeviceEnrollmentProgramInstanceId string `json:"deviceEnrollmentProgramInstanceId"`
SkipSetupItems *map[string]bool `json:"skipSetupItems,omitempty"`
LocationInformation LocationInformationV2 `json:"locationInformation"`
PurchasingInformation PrestagePurchasingInformationV2 `json:"purchasingInformation"`
// The Base64 encoded PEM Certificate
AnchorCertificates []string `json:"anchorCertificates,omitempty"`
EnrollmentCustomizationId *string `json:"enrollmentCustomizationId,omitempty"`
Language *string `json:"language,omitempty"`
Region *string `json:"region,omitempty"`
AutoAdvanceSetup bool `json:"autoAdvanceSetup"`
InstallProfilesDuringSetup bool `json:"installProfilesDuringSetup"`
PrestageInstalledProfileIds []string `json:"prestageInstalledProfileIds"`
CustomPackageIds []string `json:"customPackageIds"`
CustomPackageDistributionPointId string `json:"customPackageDistributionPointId"`
EnableRecoveryLock *bool `json:"enableRecoveryLock,omitempty"`
RecoveryLockPasswordType *string `json:"recoveryLockPasswordType,omitempty"`
RotateRecoveryLockPassword *bool `json:"rotateRecoveryLockPassword,omitempty"`
RecoveryLockPassword *string `json:"recoveryLockPassword,omitempty"`
VersionLock *int32 `json:"versionLock,omitempty"`
}
// NewPutComputerPrestageV2 instantiates a new PutComputerPrestageV2 object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewPutComputerPrestageV2(displayName string, mandatory bool, mdmRemovable bool, supportPhoneNumber string, supportEmailAddress string, department string, defaultPrestage bool, enrollmentSiteId string, keepExistingSiteMembership bool, keepExistingLocationInformation bool, requireAuthentication bool, authenticationPrompt string, preventActivationLock bool, enableDeviceBasedActivationLock bool, deviceEnrollmentProgramInstanceId string, locationInformation LocationInformationV2, purchasingInformation PrestagePurchasingInformationV2, autoAdvanceSetup bool, installProfilesDuringSetup bool, prestageInstalledProfileIds []string, customPackageIds []string, customPackageDistributionPointId string) *PutComputerPrestageV2 {
this := PutComputerPrestageV2{}
this.DisplayName = displayName
this.Mandatory = mandatory
this.MdmRemovable = mdmRemovable
this.SupportPhoneNumber = supportPhoneNumber
this.SupportEmailAddress = supportEmailAddress
this.Department = department
this.DefaultPrestage = defaultPrestage
this.EnrollmentSiteId = enrollmentSiteId
this.KeepExistingSiteMembership = keepExistingSiteMembership
this.KeepExistingLocationInformation = keepExistingLocationInformation
this.RequireAuthentication = requireAuthentication
this.AuthenticationPrompt = authenticationPrompt
this.PreventActivationLock = preventActivationLock
this.EnableDeviceBasedActivationLock = enableDeviceBasedActivationLock
this.DeviceEnrollmentProgramInstanceId = deviceEnrollmentProgramInstanceId
this.LocationInformation = locationInformation
this.PurchasingInformation = purchasingInformation
this.AutoAdvanceSetup = autoAdvanceSetup
this.InstallProfilesDuringSetup = installProfilesDuringSetup
this.PrestageInstalledProfileIds = prestageInstalledProfileIds
this.CustomPackageIds = customPackageIds
this.CustomPackageDistributionPointId = customPackageDistributionPointId
return &this
}
// NewPutComputerPrestageV2WithDefaults instantiates a new PutComputerPrestageV2 object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewPutComputerPrestageV2WithDefaults() *PutComputerPrestageV2 {
this := PutComputerPrestageV2{}
return &this
}
// GetDisplayName returns the DisplayName field value
func (o *PutComputerPrestageV2) GetDisplayName() string {
if o == nil {
var ret string
return ret
}
return o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetDisplayNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DisplayName, true
}
// SetDisplayName sets field value
func (o *PutComputerPrestageV2) SetDisplayName(v string) {
o.DisplayName = v
}
// GetMandatory returns the Mandatory field value
func (o *PutComputerPrestageV2) GetMandatory() bool {
if o == nil {
var ret bool
return ret
}
return o.Mandatory
}
// GetMandatoryOk returns a tuple with the Mandatory field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetMandatoryOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.Mandatory, true
}
// SetMandatory sets field value
func (o *PutComputerPrestageV2) SetMandatory(v bool) {
o.Mandatory = v
}
// GetMdmRemovable returns the MdmRemovable field value
func (o *PutComputerPrestageV2) GetMdmRemovable() bool {
if o == nil {
var ret bool
return ret
}
return o.MdmRemovable
}
// GetMdmRemovableOk returns a tuple with the MdmRemovable field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetMdmRemovableOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.MdmRemovable, true
}
// SetMdmRemovable sets field value
func (o *PutComputerPrestageV2) SetMdmRemovable(v bool) {
o.MdmRemovable = v
}
// GetSupportPhoneNumber returns the SupportPhoneNumber field value
func (o *PutComputerPrestageV2) GetSupportPhoneNumber() string {
if o == nil {
var ret string
return ret
}
return o.SupportPhoneNumber
}
// GetSupportPhoneNumberOk returns a tuple with the SupportPhoneNumber field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetSupportPhoneNumberOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SupportPhoneNumber, true
}
// SetSupportPhoneNumber sets field value
func (o *PutComputerPrestageV2) SetSupportPhoneNumber(v string) {
o.SupportPhoneNumber = v
}
// GetSupportEmailAddress returns the SupportEmailAddress field value
func (o *PutComputerPrestageV2) GetSupportEmailAddress() string {
if o == nil {
var ret string
return ret
}
return o.SupportEmailAddress
}
// GetSupportEmailAddressOk returns a tuple with the SupportEmailAddress field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetSupportEmailAddressOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SupportEmailAddress, true
}
// SetSupportEmailAddress sets field value
func (o *PutComputerPrestageV2) SetSupportEmailAddress(v string) {
o.SupportEmailAddress = v
}
// GetDepartment returns the Department field value
func (o *PutComputerPrestageV2) GetDepartment() string {
if o == nil {
var ret string
return ret
}
return o.Department
}
// GetDepartmentOk returns a tuple with the Department field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetDepartmentOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Department, true
}
// SetDepartment sets field value
func (o *PutComputerPrestageV2) SetDepartment(v string) {
o.Department = v
}
// GetDefaultPrestage returns the DefaultPrestage field value
func (o *PutComputerPrestageV2) GetDefaultPrestage() bool {
if o == nil {
var ret bool
return ret
}
return o.DefaultPrestage
}
// GetDefaultPrestageOk returns a tuple with the DefaultPrestage field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetDefaultPrestageOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.DefaultPrestage, true
}
// SetDefaultPrestage sets field value
func (o *PutComputerPrestageV2) SetDefaultPrestage(v bool) {
o.DefaultPrestage = v
}
// GetEnrollmentSiteId returns the EnrollmentSiteId field value
func (o *PutComputerPrestageV2) GetEnrollmentSiteId() string {
if o == nil {
var ret string
return ret
}
return o.EnrollmentSiteId
}
// GetEnrollmentSiteIdOk returns a tuple with the EnrollmentSiteId field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetEnrollmentSiteIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EnrollmentSiteId, true
}
// SetEnrollmentSiteId sets field value
func (o *PutComputerPrestageV2) SetEnrollmentSiteId(v string) {
o.EnrollmentSiteId = v
}
// GetKeepExistingSiteMembership returns the KeepExistingSiteMembership field value
func (o *PutComputerPrestageV2) GetKeepExistingSiteMembership() bool {
if o == nil {
var ret bool
return ret
}
return o.KeepExistingSiteMembership
}
// GetKeepExistingSiteMembershipOk returns a tuple with the KeepExistingSiteMembership field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetKeepExistingSiteMembershipOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.KeepExistingSiteMembership, true
}
// SetKeepExistingSiteMembership sets field value
func (o *PutComputerPrestageV2) SetKeepExistingSiteMembership(v bool) {
o.KeepExistingSiteMembership = v
}
// GetKeepExistingLocationInformation returns the KeepExistingLocationInformation field value
func (o *PutComputerPrestageV2) GetKeepExistingLocationInformation() bool {
if o == nil {
var ret bool
return ret
}
return o.KeepExistingLocationInformation
}
// GetKeepExistingLocationInformationOk returns a tuple with the KeepExistingLocationInformation field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetKeepExistingLocationInformationOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.KeepExistingLocationInformation, true
}
// SetKeepExistingLocationInformation sets field value
func (o *PutComputerPrestageV2) SetKeepExistingLocationInformation(v bool) {
o.KeepExistingLocationInformation = v
}
// GetRequireAuthentication returns the RequireAuthentication field value
func (o *PutComputerPrestageV2) GetRequireAuthentication() bool {
if o == nil {
var ret bool
return ret
}
return o.RequireAuthentication
}
// GetRequireAuthenticationOk returns a tuple with the RequireAuthentication field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetRequireAuthenticationOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.RequireAuthentication, true
}
// SetRequireAuthentication sets field value
func (o *PutComputerPrestageV2) SetRequireAuthentication(v bool) {
o.RequireAuthentication = v
}
// GetAuthenticationPrompt returns the AuthenticationPrompt field value
func (o *PutComputerPrestageV2) GetAuthenticationPrompt() string {
if o == nil {
var ret string
return ret
}
return o.AuthenticationPrompt
}
// GetAuthenticationPromptOk returns a tuple with the AuthenticationPrompt field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetAuthenticationPromptOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AuthenticationPrompt, true
}
// SetAuthenticationPrompt sets field value
func (o *PutComputerPrestageV2) SetAuthenticationPrompt(v string) {
o.AuthenticationPrompt = v
}
// GetPreventActivationLock returns the PreventActivationLock field value
func (o *PutComputerPrestageV2) GetPreventActivationLock() bool {
if o == nil {
var ret bool
return ret
}
return o.PreventActivationLock
}
// GetPreventActivationLockOk returns a tuple with the PreventActivationLock field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetPreventActivationLockOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.PreventActivationLock, true
}
// SetPreventActivationLock sets field value
func (o *PutComputerPrestageV2) SetPreventActivationLock(v bool) {
o.PreventActivationLock = v
}
// GetEnableDeviceBasedActivationLock returns the EnableDeviceBasedActivationLock field value
func (o *PutComputerPrestageV2) GetEnableDeviceBasedActivationLock() bool {
if o == nil {
var ret bool
return ret
}
return o.EnableDeviceBasedActivationLock
}
// GetEnableDeviceBasedActivationLockOk returns a tuple with the EnableDeviceBasedActivationLock field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetEnableDeviceBasedActivationLockOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.EnableDeviceBasedActivationLock, true
}
// SetEnableDeviceBasedActivationLock sets field value
func (o *PutComputerPrestageV2) SetEnableDeviceBasedActivationLock(v bool) {
o.EnableDeviceBasedActivationLock = v
}
// GetDeviceEnrollmentProgramInstanceId returns the DeviceEnrollmentProgramInstanceId field value
func (o *PutComputerPrestageV2) GetDeviceEnrollmentProgramInstanceId() string {
if o == nil {
var ret string
return ret
}
return o.DeviceEnrollmentProgramInstanceId
}
// GetDeviceEnrollmentProgramInstanceIdOk returns a tuple with the DeviceEnrollmentProgramInstanceId field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetDeviceEnrollmentProgramInstanceIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DeviceEnrollmentProgramInstanceId, true
}
// SetDeviceEnrollmentProgramInstanceId sets field value
func (o *PutComputerPrestageV2) SetDeviceEnrollmentProgramInstanceId(v string) {
o.DeviceEnrollmentProgramInstanceId = v
}
// GetSkipSetupItems returns the SkipSetupItems field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetSkipSetupItems() map[string]bool {
if o == nil || o.SkipSetupItems == nil {
var ret map[string]bool
return ret
}
return *o.SkipSetupItems
}
// GetSkipSetupItemsOk returns a tuple with the SkipSetupItems field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetSkipSetupItemsOk() (*map[string]bool, bool) {
if o == nil || o.SkipSetupItems == nil {
return nil, false
}
return o.SkipSetupItems, true
}
// HasSkipSetupItems returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasSkipSetupItems() bool {
if o != nil && o.SkipSetupItems != nil {
return true
}
return false
}
// SetSkipSetupItems gets a reference to the given map[string]bool and assigns it to the SkipSetupItems field.
func (o *PutComputerPrestageV2) SetSkipSetupItems(v map[string]bool) {
o.SkipSetupItems = &v
}
// GetLocationInformation returns the LocationInformation field value
func (o *PutComputerPrestageV2) GetLocationInformation() LocationInformationV2 {
if o == nil {
var ret LocationInformationV2
return ret
}
return o.LocationInformation
}
// GetLocationInformationOk returns a tuple with the LocationInformation field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetLocationInformationOk() (*LocationInformationV2, bool) {
if o == nil {
return nil, false
}
return &o.LocationInformation, true
}
// SetLocationInformation sets field value
func (o *PutComputerPrestageV2) SetLocationInformation(v LocationInformationV2) {
o.LocationInformation = v
}
// GetPurchasingInformation returns the PurchasingInformation field value
func (o *PutComputerPrestageV2) GetPurchasingInformation() PrestagePurchasingInformationV2 {
if o == nil {
var ret PrestagePurchasingInformationV2
return ret
}
return o.PurchasingInformation
}
// GetPurchasingInformationOk returns a tuple with the PurchasingInformation field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetPurchasingInformationOk() (*PrestagePurchasingInformationV2, bool) {
if o == nil {
return nil, false
}
return &o.PurchasingInformation, true
}
// SetPurchasingInformation sets field value
func (o *PutComputerPrestageV2) SetPurchasingInformation(v PrestagePurchasingInformationV2) {
o.PurchasingInformation = v
}
// GetAnchorCertificates returns the AnchorCertificates field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetAnchorCertificates() []string {
if o == nil || o.AnchorCertificates == nil {
var ret []string
return ret
}
return o.AnchorCertificates
}
// GetAnchorCertificatesOk returns a tuple with the AnchorCertificates field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetAnchorCertificatesOk() ([]string, bool) {
if o == nil || o.AnchorCertificates == nil {
return nil, false
}
return o.AnchorCertificates, true
}
// HasAnchorCertificates returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasAnchorCertificates() bool {
if o != nil && o.AnchorCertificates != nil {
return true
}
return false
}
// SetAnchorCertificates gets a reference to the given []string and assigns it to the AnchorCertificates field.
func (o *PutComputerPrestageV2) SetAnchorCertificates(v []string) {
o.AnchorCertificates = v
}
// GetEnrollmentCustomizationId returns the EnrollmentCustomizationId field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetEnrollmentCustomizationId() string {
if o == nil || o.EnrollmentCustomizationId == nil {
var ret string
return ret
}
return *o.EnrollmentCustomizationId
}
// GetEnrollmentCustomizationIdOk returns a tuple with the EnrollmentCustomizationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetEnrollmentCustomizationIdOk() (*string, bool) {
if o == nil || o.EnrollmentCustomizationId == nil {
return nil, false
}
return o.EnrollmentCustomizationId, true
}
// HasEnrollmentCustomizationId returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasEnrollmentCustomizationId() bool {
if o != nil && o.EnrollmentCustomizationId != nil {
return true
}
return false
}
// SetEnrollmentCustomizationId gets a reference to the given string and assigns it to the EnrollmentCustomizationId field.
func (o *PutComputerPrestageV2) SetEnrollmentCustomizationId(v string) {
o.EnrollmentCustomizationId = &v
}
// GetLanguage returns the Language field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetLanguage() string {
if o == nil || o.Language == nil {
var ret string
return ret
}
return *o.Language
}
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetLanguageOk() (*string, bool) {
if o == nil || o.Language == nil {
return nil, false
}
return o.Language, true
}
// HasLanguage returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasLanguage() bool {
if o != nil && o.Language != nil {
return true
}
return false
}
// SetLanguage gets a reference to the given string and assigns it to the Language field.
func (o *PutComputerPrestageV2) SetLanguage(v string) {
o.Language = &v
}
// GetRegion returns the Region field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetRegion() string {
if o == nil || o.Region == nil {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetRegionOk() (*string, bool) {
if o == nil || o.Region == nil {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasRegion() bool {
if o != nil && o.Region != nil {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *PutComputerPrestageV2) SetRegion(v string) {
o.Region = &v
}
// GetAutoAdvanceSetup returns the AutoAdvanceSetup field value
func (o *PutComputerPrestageV2) GetAutoAdvanceSetup() bool {
if o == nil {
var ret bool
return ret
}
return o.AutoAdvanceSetup
}
// GetAutoAdvanceSetupOk returns a tuple with the AutoAdvanceSetup field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetAutoAdvanceSetupOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.AutoAdvanceSetup, true
}
// SetAutoAdvanceSetup sets field value
func (o *PutComputerPrestageV2) SetAutoAdvanceSetup(v bool) {
o.AutoAdvanceSetup = v
}
// GetInstallProfilesDuringSetup returns the InstallProfilesDuringSetup field value
func (o *PutComputerPrestageV2) GetInstallProfilesDuringSetup() bool {
if o == nil {
var ret bool
return ret
}
return o.InstallProfilesDuringSetup
}
// GetInstallProfilesDuringSetupOk returns a tuple with the InstallProfilesDuringSetup field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetInstallProfilesDuringSetupOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.InstallProfilesDuringSetup, true
}
// SetInstallProfilesDuringSetup sets field value
func (o *PutComputerPrestageV2) SetInstallProfilesDuringSetup(v bool) {
o.InstallProfilesDuringSetup = v
}
// GetPrestageInstalledProfileIds returns the PrestageInstalledProfileIds field value
func (o *PutComputerPrestageV2) GetPrestageInstalledProfileIds() []string {
if o == nil {
var ret []string
return ret
}
return o.PrestageInstalledProfileIds
}
// GetPrestageInstalledProfileIdsOk returns a tuple with the PrestageInstalledProfileIds field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetPrestageInstalledProfileIdsOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.PrestageInstalledProfileIds, true
}
// SetPrestageInstalledProfileIds sets field value
func (o *PutComputerPrestageV2) SetPrestageInstalledProfileIds(v []string) {
o.PrestageInstalledProfileIds = v
}
// GetCustomPackageIds returns the CustomPackageIds field value
func (o *PutComputerPrestageV2) GetCustomPackageIds() []string {
if o == nil {
var ret []string
return ret
}
return o.CustomPackageIds
}
// GetCustomPackageIdsOk returns a tuple with the CustomPackageIds field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetCustomPackageIdsOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.CustomPackageIds, true
}
// SetCustomPackageIds sets field value
func (o *PutComputerPrestageV2) SetCustomPackageIds(v []string) {
o.CustomPackageIds = v
}
// GetCustomPackageDistributionPointId returns the CustomPackageDistributionPointId field value
func (o *PutComputerPrestageV2) GetCustomPackageDistributionPointId() string {
if o == nil {
var ret string
return ret
}
return o.CustomPackageDistributionPointId
}
// GetCustomPackageDistributionPointIdOk returns a tuple with the CustomPackageDistributionPointId field value
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetCustomPackageDistributionPointIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CustomPackageDistributionPointId, true
}
// SetCustomPackageDistributionPointId sets field value
func (o *PutComputerPrestageV2) SetCustomPackageDistributionPointId(v string) {
o.CustomPackageDistributionPointId = v
}
// GetEnableRecoveryLock returns the EnableRecoveryLock field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetEnableRecoveryLock() bool {
if o == nil || o.EnableRecoveryLock == nil {
var ret bool
return ret
}
return *o.EnableRecoveryLock
}
// GetEnableRecoveryLockOk returns a tuple with the EnableRecoveryLock field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetEnableRecoveryLockOk() (*bool, bool) {
if o == nil || o.EnableRecoveryLock == nil {
return nil, false
}
return o.EnableRecoveryLock, true
}
// HasEnableRecoveryLock returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasEnableRecoveryLock() bool {
if o != nil && o.EnableRecoveryLock != nil {
return true
}
return false
}
// SetEnableRecoveryLock gets a reference to the given bool and assigns it to the EnableRecoveryLock field.
func (o *PutComputerPrestageV2) SetEnableRecoveryLock(v bool) {
o.EnableRecoveryLock = &v
}
// GetRecoveryLockPasswordType returns the RecoveryLockPasswordType field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetRecoveryLockPasswordType() string {
if o == nil || o.RecoveryLockPasswordType == nil {
var ret string
return ret
}
return *o.RecoveryLockPasswordType
}
// GetRecoveryLockPasswordTypeOk returns a tuple with the RecoveryLockPasswordType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetRecoveryLockPasswordTypeOk() (*string, bool) {
if o == nil || o.RecoveryLockPasswordType == nil {
return nil, false
}
return o.RecoveryLockPasswordType, true
}
// HasRecoveryLockPasswordType returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasRecoveryLockPasswordType() bool {
if o != nil && o.RecoveryLockPasswordType != nil {
return true
}
return false
}
// SetRecoveryLockPasswordType gets a reference to the given string and assigns it to the RecoveryLockPasswordType field.
func (o *PutComputerPrestageV2) SetRecoveryLockPasswordType(v string) {
o.RecoveryLockPasswordType = &v
}
// GetRotateRecoveryLockPassword returns the RotateRecoveryLockPassword field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetRotateRecoveryLockPassword() bool {
if o == nil || o.RotateRecoveryLockPassword == nil {
var ret bool
return ret
}
return *o.RotateRecoveryLockPassword
}
// GetRotateRecoveryLockPasswordOk returns a tuple with the RotateRecoveryLockPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetRotateRecoveryLockPasswordOk() (*bool, bool) {
if o == nil || o.RotateRecoveryLockPassword == nil {
return nil, false
}
return o.RotateRecoveryLockPassword, true
}
// HasRotateRecoveryLockPassword returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasRotateRecoveryLockPassword() bool {
if o != nil && o.RotateRecoveryLockPassword != nil {
return true
}
return false
}
// SetRotateRecoveryLockPassword gets a reference to the given bool and assigns it to the RotateRecoveryLockPassword field.
func (o *PutComputerPrestageV2) SetRotateRecoveryLockPassword(v bool) {
o.RotateRecoveryLockPassword = &v
}
// GetRecoveryLockPassword returns the RecoveryLockPassword field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetRecoveryLockPassword() string {
if o == nil || o.RecoveryLockPassword == nil {
var ret string
return ret
}
return *o.RecoveryLockPassword
}
// GetRecoveryLockPasswordOk returns a tuple with the RecoveryLockPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetRecoveryLockPasswordOk() (*string, bool) {
if o == nil || o.RecoveryLockPassword == nil {
return nil, false
}
return o.RecoveryLockPassword, true
}
// HasRecoveryLockPassword returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasRecoveryLockPassword() bool {
if o != nil && o.RecoveryLockPassword != nil {
return true
}
return false
}
// SetRecoveryLockPassword gets a reference to the given string and assigns it to the RecoveryLockPassword field.
func (o *PutComputerPrestageV2) SetRecoveryLockPassword(v string) {
o.RecoveryLockPassword = &v
}
// GetVersionLock returns the VersionLock field value if set, zero value otherwise.
func (o *PutComputerPrestageV2) GetVersionLock() int32 {
if o == nil || o.VersionLock == nil {
var ret int32
return ret
}
return *o.VersionLock
}
// GetVersionLockOk returns a tuple with the VersionLock field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PutComputerPrestageV2) GetVersionLockOk() (*int32, bool) {
if o == nil || o.VersionLock == nil {
return nil, false
}
return o.VersionLock, true
}
// HasVersionLock returns a boolean if a field has been set.
func (o *PutComputerPrestageV2) HasVersionLock() bool {
if o != nil && o.VersionLock != nil {
return true
}
return false
}
// SetVersionLock gets a reference to the given int32 and assigns it to the VersionLock field.
func (o *PutComputerPrestageV2) SetVersionLock(v int32) {
o.VersionLock = &v
}
func (o PutComputerPrestageV2) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["displayName"] = o.DisplayName
}
if true {
toSerialize["mandatory"] = o.Mandatory
}
if true {
toSerialize["mdmRemovable"] = o.MdmRemovable
}
if true {
toSerialize["supportPhoneNumber"] = o.SupportPhoneNumber
}
if true {
toSerialize["supportEmailAddress"] = o.SupportEmailAddress
}
if true {
toSerialize["department"] = o.Department
}
if true {
toSerialize["defaultPrestage"] = o.DefaultPrestage
}
if true {
toSerialize["enrollmentSiteId"] = o.EnrollmentSiteId
}
if true {
toSerialize["keepExistingSiteMembership"] = o.KeepExistingSiteMembership
}
if true {
toSerialize["keepExistingLocationInformation"] = o.KeepExistingLocationInformation
}
if true {
toSerialize["requireAuthentication"] = o.RequireAuthentication
}
if true {
toSerialize["authenticationPrompt"] = o.AuthenticationPrompt
}
if true {
toSerialize["preventActivationLock"] = o.PreventActivationLock
}
if true {
toSerialize["enableDeviceBasedActivationLock"] = o.EnableDeviceBasedActivationLock
}
if true {
toSerialize["deviceEnrollmentProgramInstanceId"] = o.DeviceEnrollmentProgramInstanceId
}
if o.SkipSetupItems != nil {
toSerialize["skipSetupItems"] = o.SkipSetupItems
}
if true {
toSerialize["locationInformation"] = o.LocationInformation
}
if true {
toSerialize["purchasingInformation"] = o.PurchasingInformation
}
if o.AnchorCertificates != nil {
toSerialize["anchorCertificates"] = o.AnchorCertificates
}
if o.EnrollmentCustomizationId != nil {