forked from Yohan460/go-jamf-api
/
model_enrollment_settings_v2.go
1170 lines (1012 loc) · 42.3 KB
/
model_enrollment_settings_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"
)
// EnrollmentSettingsV2 struct for EnrollmentSettingsV2
type EnrollmentSettingsV2 struct {
InstallSingleProfile *bool `json:"installSingleProfile,omitempty"`
SigningMdmProfileEnabled *bool `json:"signingMdmProfileEnabled,omitempty"`
MdmSigningCertificate *CertificateIdentityV2 `json:"mdmSigningCertificate,omitempty"`
RestrictReenrollment *bool `json:"restrictReenrollment,omitempty"`
FlushLocationInformation *bool `json:"flushLocationInformation,omitempty"`
FlushLocationHistoryInformation *bool `json:"flushLocationHistoryInformation,omitempty"`
FlushPolicyHistory *bool `json:"flushPolicyHistory,omitempty"`
FlushExtensionAttributes *bool `json:"flushExtensionAttributes,omitempty"`
FlushMdmCommandsOnReenroll *string `json:"flushMdmCommandsOnReenroll,omitempty"`
MacOsEnterpriseEnrollmentEnabled *bool `json:"macOsEnterpriseEnrollmentEnabled,omitempty"`
ManagementUsername string `json:"managementUsername"`
ManagementPassword *string `json:"managementPassword,omitempty"`
ManagementPasswordSet *bool `json:"managementPasswordSet,omitempty"`
PasswordType *string `json:"passwordType,omitempty"`
RandomPasswordLength *int32 `json:"randomPasswordLength,omitempty"`
CreateManagementAccount *bool `json:"createManagementAccount,omitempty"`
HideManagementAccount *bool `json:"hideManagementAccount,omitempty"`
AllowSshOnlyManagementAccount *bool `json:"allowSshOnlyManagementAccount,omitempty"`
EnsureSshRunning *bool `json:"ensureSshRunning,omitempty"`
LaunchSelfService *bool `json:"launchSelfService,omitempty"`
SignQuickAdd *bool `json:"signQuickAdd,omitempty"`
DeveloperCertificateIdentity *CertificateIdentityV2 `json:"developerCertificateIdentity,omitempty"`
DeveloperCertificateIdentityDetails *CertificateDetails `json:"developerCertificateIdentityDetails,omitempty"`
MdmSigningCertificateDetails *CertificateDetails `json:"mdmSigningCertificateDetails,omitempty"`
IosEnterpriseEnrollmentEnabled *bool `json:"iosEnterpriseEnrollmentEnabled,omitempty"`
IosPersonalEnrollmentEnabled *bool `json:"iosPersonalEnrollmentEnabled,omitempty"`
PersonalDeviceEnrollmentType *string `json:"personalDeviceEnrollmentType,omitempty"`
AccountDrivenUserEnrollmentEnabled *bool `json:"accountDrivenUserEnrollmentEnabled,omitempty"`
}
// NewEnrollmentSettingsV2 instantiates a new EnrollmentSettingsV2 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 NewEnrollmentSettingsV2(managementUsername string) *EnrollmentSettingsV2 {
this := EnrollmentSettingsV2{}
var installSingleProfile bool = false
this.InstallSingleProfile = &installSingleProfile
var signingMdmProfileEnabled bool = false
this.SigningMdmProfileEnabled = &signingMdmProfileEnabled
var restrictReenrollment bool = false
this.RestrictReenrollment = &restrictReenrollment
var flushLocationInformation bool = false
this.FlushLocationInformation = &flushLocationInformation
var flushLocationHistoryInformation bool = false
this.FlushLocationHistoryInformation = &flushLocationHistoryInformation
var flushPolicyHistory bool = false
this.FlushPolicyHistory = &flushPolicyHistory
var flushExtensionAttributes bool = false
this.FlushExtensionAttributes = &flushExtensionAttributes
var flushMdmCommandsOnReenroll string = "DELETE_EVERYTHING_EXCEPT_ACKNOWLEDGED"
this.FlushMdmCommandsOnReenroll = &flushMdmCommandsOnReenroll
var macOsEnterpriseEnrollmentEnabled bool = false
this.MacOsEnterpriseEnrollmentEnabled = &macOsEnterpriseEnrollmentEnabled
this.ManagementUsername = managementUsername
var managementPassword string = "null"
this.ManagementPassword = &managementPassword
var passwordType string = "STATIC"
this.PasswordType = &passwordType
var randomPasswordLength int32 = 8
this.RandomPasswordLength = &randomPasswordLength
var createManagementAccount bool = true
this.CreateManagementAccount = &createManagementAccount
var hideManagementAccount bool = false
this.HideManagementAccount = &hideManagementAccount
var allowSshOnlyManagementAccount bool = false
this.AllowSshOnlyManagementAccount = &allowSshOnlyManagementAccount
var ensureSshRunning bool = true
this.EnsureSshRunning = &ensureSshRunning
var launchSelfService bool = false
this.LaunchSelfService = &launchSelfService
var signQuickAdd bool = false
this.SignQuickAdd = &signQuickAdd
var iosEnterpriseEnrollmentEnabled bool = true
this.IosEnterpriseEnrollmentEnabled = &iosEnterpriseEnrollmentEnabled
var iosPersonalEnrollmentEnabled bool = false
this.IosPersonalEnrollmentEnabled = &iosPersonalEnrollmentEnabled
var personalDeviceEnrollmentType string = "PERSONALDEVICEPROFILES"
this.PersonalDeviceEnrollmentType = &personalDeviceEnrollmentType
var accountDrivenUserEnrollmentEnabled bool = false
this.AccountDrivenUserEnrollmentEnabled = &accountDrivenUserEnrollmentEnabled
return &this
}
// NewEnrollmentSettingsV2WithDefaults instantiates a new EnrollmentSettingsV2 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 NewEnrollmentSettingsV2WithDefaults() *EnrollmentSettingsV2 {
this := EnrollmentSettingsV2{}
var installSingleProfile bool = false
this.InstallSingleProfile = &installSingleProfile
var signingMdmProfileEnabled bool = false
this.SigningMdmProfileEnabled = &signingMdmProfileEnabled
var restrictReenrollment bool = false
this.RestrictReenrollment = &restrictReenrollment
var flushLocationInformation bool = false
this.FlushLocationInformation = &flushLocationInformation
var flushLocationHistoryInformation bool = false
this.FlushLocationHistoryInformation = &flushLocationHistoryInformation
var flushPolicyHistory bool = false
this.FlushPolicyHistory = &flushPolicyHistory
var flushExtensionAttributes bool = false
this.FlushExtensionAttributes = &flushExtensionAttributes
var flushMdmCommandsOnReenroll string = "DELETE_EVERYTHING_EXCEPT_ACKNOWLEDGED"
this.FlushMdmCommandsOnReenroll = &flushMdmCommandsOnReenroll
var macOsEnterpriseEnrollmentEnabled bool = false
this.MacOsEnterpriseEnrollmentEnabled = &macOsEnterpriseEnrollmentEnabled
var managementUsername string = ""
this.ManagementUsername = managementUsername
var managementPassword string = "null"
this.ManagementPassword = &managementPassword
var passwordType string = "STATIC"
this.PasswordType = &passwordType
var randomPasswordLength int32 = 8
this.RandomPasswordLength = &randomPasswordLength
var createManagementAccount bool = true
this.CreateManagementAccount = &createManagementAccount
var hideManagementAccount bool = false
this.HideManagementAccount = &hideManagementAccount
var allowSshOnlyManagementAccount bool = false
this.AllowSshOnlyManagementAccount = &allowSshOnlyManagementAccount
var ensureSshRunning bool = true
this.EnsureSshRunning = &ensureSshRunning
var launchSelfService bool = false
this.LaunchSelfService = &launchSelfService
var signQuickAdd bool = false
this.SignQuickAdd = &signQuickAdd
var iosEnterpriseEnrollmentEnabled bool = true
this.IosEnterpriseEnrollmentEnabled = &iosEnterpriseEnrollmentEnabled
var iosPersonalEnrollmentEnabled bool = false
this.IosPersonalEnrollmentEnabled = &iosPersonalEnrollmentEnabled
var personalDeviceEnrollmentType string = "PERSONALDEVICEPROFILES"
this.PersonalDeviceEnrollmentType = &personalDeviceEnrollmentType
var accountDrivenUserEnrollmentEnabled bool = false
this.AccountDrivenUserEnrollmentEnabled = &accountDrivenUserEnrollmentEnabled
return &this
}
// GetInstallSingleProfile returns the InstallSingleProfile field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetInstallSingleProfile() bool {
if o == nil || o.InstallSingleProfile == nil {
var ret bool
return ret
}
return *o.InstallSingleProfile
}
// GetInstallSingleProfileOk returns a tuple with the InstallSingleProfile field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetInstallSingleProfileOk() (*bool, bool) {
if o == nil || o.InstallSingleProfile == nil {
return nil, false
}
return o.InstallSingleProfile, true
}
// HasInstallSingleProfile returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasInstallSingleProfile() bool {
if o != nil && o.InstallSingleProfile != nil {
return true
}
return false
}
// SetInstallSingleProfile gets a reference to the given bool and assigns it to the InstallSingleProfile field.
func (o *EnrollmentSettingsV2) SetInstallSingleProfile(v bool) {
o.InstallSingleProfile = &v
}
// GetSigningMdmProfileEnabled returns the SigningMdmProfileEnabled field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetSigningMdmProfileEnabled() bool {
if o == nil || o.SigningMdmProfileEnabled == nil {
var ret bool
return ret
}
return *o.SigningMdmProfileEnabled
}
// GetSigningMdmProfileEnabledOk returns a tuple with the SigningMdmProfileEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetSigningMdmProfileEnabledOk() (*bool, bool) {
if o == nil || o.SigningMdmProfileEnabled == nil {
return nil, false
}
return o.SigningMdmProfileEnabled, true
}
// HasSigningMdmProfileEnabled returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasSigningMdmProfileEnabled() bool {
if o != nil && o.SigningMdmProfileEnabled != nil {
return true
}
return false
}
// SetSigningMdmProfileEnabled gets a reference to the given bool and assigns it to the SigningMdmProfileEnabled field.
func (o *EnrollmentSettingsV2) SetSigningMdmProfileEnabled(v bool) {
o.SigningMdmProfileEnabled = &v
}
// GetMdmSigningCertificate returns the MdmSigningCertificate field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetMdmSigningCertificate() CertificateIdentityV2 {
if o == nil || o.MdmSigningCertificate == nil {
var ret CertificateIdentityV2
return ret
}
return *o.MdmSigningCertificate
}
// GetMdmSigningCertificateOk returns a tuple with the MdmSigningCertificate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetMdmSigningCertificateOk() (*CertificateIdentityV2, bool) {
if o == nil || o.MdmSigningCertificate == nil {
return nil, false
}
return o.MdmSigningCertificate, true
}
// HasMdmSigningCertificate returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasMdmSigningCertificate() bool {
if o != nil && o.MdmSigningCertificate != nil {
return true
}
return false
}
// SetMdmSigningCertificate gets a reference to the given CertificateIdentityV2 and assigns it to the MdmSigningCertificate field.
func (o *EnrollmentSettingsV2) SetMdmSigningCertificate(v CertificateIdentityV2) {
o.MdmSigningCertificate = &v
}
// GetRestrictReenrollment returns the RestrictReenrollment field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetRestrictReenrollment() bool {
if o == nil || o.RestrictReenrollment == nil {
var ret bool
return ret
}
return *o.RestrictReenrollment
}
// GetRestrictReenrollmentOk returns a tuple with the RestrictReenrollment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetRestrictReenrollmentOk() (*bool, bool) {
if o == nil || o.RestrictReenrollment == nil {
return nil, false
}
return o.RestrictReenrollment, true
}
// HasRestrictReenrollment returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasRestrictReenrollment() bool {
if o != nil && o.RestrictReenrollment != nil {
return true
}
return false
}
// SetRestrictReenrollment gets a reference to the given bool and assigns it to the RestrictReenrollment field.
func (o *EnrollmentSettingsV2) SetRestrictReenrollment(v bool) {
o.RestrictReenrollment = &v
}
// GetFlushLocationInformation returns the FlushLocationInformation field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetFlushLocationInformation() bool {
if o == nil || o.FlushLocationInformation == nil {
var ret bool
return ret
}
return *o.FlushLocationInformation
}
// GetFlushLocationInformationOk returns a tuple with the FlushLocationInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetFlushLocationInformationOk() (*bool, bool) {
if o == nil || o.FlushLocationInformation == nil {
return nil, false
}
return o.FlushLocationInformation, true
}
// HasFlushLocationInformation returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasFlushLocationInformation() bool {
if o != nil && o.FlushLocationInformation != nil {
return true
}
return false
}
// SetFlushLocationInformation gets a reference to the given bool and assigns it to the FlushLocationInformation field.
func (o *EnrollmentSettingsV2) SetFlushLocationInformation(v bool) {
o.FlushLocationInformation = &v
}
// GetFlushLocationHistoryInformation returns the FlushLocationHistoryInformation field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetFlushLocationHistoryInformation() bool {
if o == nil || o.FlushLocationHistoryInformation == nil {
var ret bool
return ret
}
return *o.FlushLocationHistoryInformation
}
// GetFlushLocationHistoryInformationOk returns a tuple with the FlushLocationHistoryInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetFlushLocationHistoryInformationOk() (*bool, bool) {
if o == nil || o.FlushLocationHistoryInformation == nil {
return nil, false
}
return o.FlushLocationHistoryInformation, true
}
// HasFlushLocationHistoryInformation returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasFlushLocationHistoryInformation() bool {
if o != nil && o.FlushLocationHistoryInformation != nil {
return true
}
return false
}
// SetFlushLocationHistoryInformation gets a reference to the given bool and assigns it to the FlushLocationHistoryInformation field.
func (o *EnrollmentSettingsV2) SetFlushLocationHistoryInformation(v bool) {
o.FlushLocationHistoryInformation = &v
}
// GetFlushPolicyHistory returns the FlushPolicyHistory field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetFlushPolicyHistory() bool {
if o == nil || o.FlushPolicyHistory == nil {
var ret bool
return ret
}
return *o.FlushPolicyHistory
}
// GetFlushPolicyHistoryOk returns a tuple with the FlushPolicyHistory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetFlushPolicyHistoryOk() (*bool, bool) {
if o == nil || o.FlushPolicyHistory == nil {
return nil, false
}
return o.FlushPolicyHistory, true
}
// HasFlushPolicyHistory returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasFlushPolicyHistory() bool {
if o != nil && o.FlushPolicyHistory != nil {
return true
}
return false
}
// SetFlushPolicyHistory gets a reference to the given bool and assigns it to the FlushPolicyHistory field.
func (o *EnrollmentSettingsV2) SetFlushPolicyHistory(v bool) {
o.FlushPolicyHistory = &v
}
// GetFlushExtensionAttributes returns the FlushExtensionAttributes field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetFlushExtensionAttributes() bool {
if o == nil || o.FlushExtensionAttributes == nil {
var ret bool
return ret
}
return *o.FlushExtensionAttributes
}
// GetFlushExtensionAttributesOk returns a tuple with the FlushExtensionAttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetFlushExtensionAttributesOk() (*bool, bool) {
if o == nil || o.FlushExtensionAttributes == nil {
return nil, false
}
return o.FlushExtensionAttributes, true
}
// HasFlushExtensionAttributes returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasFlushExtensionAttributes() bool {
if o != nil && o.FlushExtensionAttributes != nil {
return true
}
return false
}
// SetFlushExtensionAttributes gets a reference to the given bool and assigns it to the FlushExtensionAttributes field.
func (o *EnrollmentSettingsV2) SetFlushExtensionAttributes(v bool) {
o.FlushExtensionAttributes = &v
}
// GetFlushMdmCommandsOnReenroll returns the FlushMdmCommandsOnReenroll field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetFlushMdmCommandsOnReenroll() string {
if o == nil || o.FlushMdmCommandsOnReenroll == nil {
var ret string
return ret
}
return *o.FlushMdmCommandsOnReenroll
}
// GetFlushMdmCommandsOnReenrollOk returns a tuple with the FlushMdmCommandsOnReenroll field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetFlushMdmCommandsOnReenrollOk() (*string, bool) {
if o == nil || o.FlushMdmCommandsOnReenroll == nil {
return nil, false
}
return o.FlushMdmCommandsOnReenroll, true
}
// HasFlushMdmCommandsOnReenroll returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasFlushMdmCommandsOnReenroll() bool {
if o != nil && o.FlushMdmCommandsOnReenroll != nil {
return true
}
return false
}
// SetFlushMdmCommandsOnReenroll gets a reference to the given string and assigns it to the FlushMdmCommandsOnReenroll field.
func (o *EnrollmentSettingsV2) SetFlushMdmCommandsOnReenroll(v string) {
o.FlushMdmCommandsOnReenroll = &v
}
// GetMacOsEnterpriseEnrollmentEnabled returns the MacOsEnterpriseEnrollmentEnabled field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetMacOsEnterpriseEnrollmentEnabled() bool {
if o == nil || o.MacOsEnterpriseEnrollmentEnabled == nil {
var ret bool
return ret
}
return *o.MacOsEnterpriseEnrollmentEnabled
}
// GetMacOsEnterpriseEnrollmentEnabledOk returns a tuple with the MacOsEnterpriseEnrollmentEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetMacOsEnterpriseEnrollmentEnabledOk() (*bool, bool) {
if o == nil || o.MacOsEnterpriseEnrollmentEnabled == nil {
return nil, false
}
return o.MacOsEnterpriseEnrollmentEnabled, true
}
// HasMacOsEnterpriseEnrollmentEnabled returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasMacOsEnterpriseEnrollmentEnabled() bool {
if o != nil && o.MacOsEnterpriseEnrollmentEnabled != nil {
return true
}
return false
}
// SetMacOsEnterpriseEnrollmentEnabled gets a reference to the given bool and assigns it to the MacOsEnterpriseEnrollmentEnabled field.
func (o *EnrollmentSettingsV2) SetMacOsEnterpriseEnrollmentEnabled(v bool) {
o.MacOsEnterpriseEnrollmentEnabled = &v
}
// GetManagementUsername returns the ManagementUsername field value
func (o *EnrollmentSettingsV2) GetManagementUsername() string {
if o == nil {
var ret string
return ret
}
return o.ManagementUsername
}
// GetManagementUsernameOk returns a tuple with the ManagementUsername field value
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetManagementUsernameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ManagementUsername, true
}
// SetManagementUsername sets field value
func (o *EnrollmentSettingsV2) SetManagementUsername(v string) {
o.ManagementUsername = v
}
// GetManagementPassword returns the ManagementPassword field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetManagementPassword() string {
if o == nil || o.ManagementPassword == nil {
var ret string
return ret
}
return *o.ManagementPassword
}
// GetManagementPasswordOk returns a tuple with the ManagementPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetManagementPasswordOk() (*string, bool) {
if o == nil || o.ManagementPassword == nil {
return nil, false
}
return o.ManagementPassword, true
}
// HasManagementPassword returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasManagementPassword() bool {
if o != nil && o.ManagementPassword != nil {
return true
}
return false
}
// SetManagementPassword gets a reference to the given string and assigns it to the ManagementPassword field.
func (o *EnrollmentSettingsV2) SetManagementPassword(v string) {
o.ManagementPassword = &v
}
// GetManagementPasswordSet returns the ManagementPasswordSet field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetManagementPasswordSet() bool {
if o == nil || o.ManagementPasswordSet == nil {
var ret bool
return ret
}
return *o.ManagementPasswordSet
}
// GetManagementPasswordSetOk returns a tuple with the ManagementPasswordSet field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetManagementPasswordSetOk() (*bool, bool) {
if o == nil || o.ManagementPasswordSet == nil {
return nil, false
}
return o.ManagementPasswordSet, true
}
// HasManagementPasswordSet returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasManagementPasswordSet() bool {
if o != nil && o.ManagementPasswordSet != nil {
return true
}
return false
}
// SetManagementPasswordSet gets a reference to the given bool and assigns it to the ManagementPasswordSet field.
func (o *EnrollmentSettingsV2) SetManagementPasswordSet(v bool) {
o.ManagementPasswordSet = &v
}
// GetPasswordType returns the PasswordType field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetPasswordType() string {
if o == nil || o.PasswordType == nil {
var ret string
return ret
}
return *o.PasswordType
}
// GetPasswordTypeOk returns a tuple with the PasswordType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetPasswordTypeOk() (*string, bool) {
if o == nil || o.PasswordType == nil {
return nil, false
}
return o.PasswordType, true
}
// HasPasswordType returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasPasswordType() bool {
if o != nil && o.PasswordType != nil {
return true
}
return false
}
// SetPasswordType gets a reference to the given string and assigns it to the PasswordType field.
func (o *EnrollmentSettingsV2) SetPasswordType(v string) {
o.PasswordType = &v
}
// GetRandomPasswordLength returns the RandomPasswordLength field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetRandomPasswordLength() int32 {
if o == nil || o.RandomPasswordLength == nil {
var ret int32
return ret
}
return *o.RandomPasswordLength
}
// GetRandomPasswordLengthOk returns a tuple with the RandomPasswordLength field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetRandomPasswordLengthOk() (*int32, bool) {
if o == nil || o.RandomPasswordLength == nil {
return nil, false
}
return o.RandomPasswordLength, true
}
// HasRandomPasswordLength returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasRandomPasswordLength() bool {
if o != nil && o.RandomPasswordLength != nil {
return true
}
return false
}
// SetRandomPasswordLength gets a reference to the given int32 and assigns it to the RandomPasswordLength field.
func (o *EnrollmentSettingsV2) SetRandomPasswordLength(v int32) {
o.RandomPasswordLength = &v
}
// GetCreateManagementAccount returns the CreateManagementAccount field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetCreateManagementAccount() bool {
if o == nil || o.CreateManagementAccount == nil {
var ret bool
return ret
}
return *o.CreateManagementAccount
}
// GetCreateManagementAccountOk returns a tuple with the CreateManagementAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetCreateManagementAccountOk() (*bool, bool) {
if o == nil || o.CreateManagementAccount == nil {
return nil, false
}
return o.CreateManagementAccount, true
}
// HasCreateManagementAccount returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasCreateManagementAccount() bool {
if o != nil && o.CreateManagementAccount != nil {
return true
}
return false
}
// SetCreateManagementAccount gets a reference to the given bool and assigns it to the CreateManagementAccount field.
func (o *EnrollmentSettingsV2) SetCreateManagementAccount(v bool) {
o.CreateManagementAccount = &v
}
// GetHideManagementAccount returns the HideManagementAccount field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetHideManagementAccount() bool {
if o == nil || o.HideManagementAccount == nil {
var ret bool
return ret
}
return *o.HideManagementAccount
}
// GetHideManagementAccountOk returns a tuple with the HideManagementAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetHideManagementAccountOk() (*bool, bool) {
if o == nil || o.HideManagementAccount == nil {
return nil, false
}
return o.HideManagementAccount, true
}
// HasHideManagementAccount returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasHideManagementAccount() bool {
if o != nil && o.HideManagementAccount != nil {
return true
}
return false
}
// SetHideManagementAccount gets a reference to the given bool and assigns it to the HideManagementAccount field.
func (o *EnrollmentSettingsV2) SetHideManagementAccount(v bool) {
o.HideManagementAccount = &v
}
// GetAllowSshOnlyManagementAccount returns the AllowSshOnlyManagementAccount field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetAllowSshOnlyManagementAccount() bool {
if o == nil || o.AllowSshOnlyManagementAccount == nil {
var ret bool
return ret
}
return *o.AllowSshOnlyManagementAccount
}
// GetAllowSshOnlyManagementAccountOk returns a tuple with the AllowSshOnlyManagementAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetAllowSshOnlyManagementAccountOk() (*bool, bool) {
if o == nil || o.AllowSshOnlyManagementAccount == nil {
return nil, false
}
return o.AllowSshOnlyManagementAccount, true
}
// HasAllowSshOnlyManagementAccount returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasAllowSshOnlyManagementAccount() bool {
if o != nil && o.AllowSshOnlyManagementAccount != nil {
return true
}
return false
}
// SetAllowSshOnlyManagementAccount gets a reference to the given bool and assigns it to the AllowSshOnlyManagementAccount field.
func (o *EnrollmentSettingsV2) SetAllowSshOnlyManagementAccount(v bool) {
o.AllowSshOnlyManagementAccount = &v
}
// GetEnsureSshRunning returns the EnsureSshRunning field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetEnsureSshRunning() bool {
if o == nil || o.EnsureSshRunning == nil {
var ret bool
return ret
}
return *o.EnsureSshRunning
}
// GetEnsureSshRunningOk returns a tuple with the EnsureSshRunning field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetEnsureSshRunningOk() (*bool, bool) {
if o == nil || o.EnsureSshRunning == nil {
return nil, false
}
return o.EnsureSshRunning, true
}
// HasEnsureSshRunning returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasEnsureSshRunning() bool {
if o != nil && o.EnsureSshRunning != nil {
return true
}
return false
}
// SetEnsureSshRunning gets a reference to the given bool and assigns it to the EnsureSshRunning field.
func (o *EnrollmentSettingsV2) SetEnsureSshRunning(v bool) {
o.EnsureSshRunning = &v
}
// GetLaunchSelfService returns the LaunchSelfService field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetLaunchSelfService() bool {
if o == nil || o.LaunchSelfService == nil {
var ret bool
return ret
}
return *o.LaunchSelfService
}
// GetLaunchSelfServiceOk returns a tuple with the LaunchSelfService field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetLaunchSelfServiceOk() (*bool, bool) {
if o == nil || o.LaunchSelfService == nil {
return nil, false
}
return o.LaunchSelfService, true
}
// HasLaunchSelfService returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasLaunchSelfService() bool {
if o != nil && o.LaunchSelfService != nil {
return true
}
return false
}
// SetLaunchSelfService gets a reference to the given bool and assigns it to the LaunchSelfService field.
func (o *EnrollmentSettingsV2) SetLaunchSelfService(v bool) {
o.LaunchSelfService = &v
}
// GetSignQuickAdd returns the SignQuickAdd field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetSignQuickAdd() bool {
if o == nil || o.SignQuickAdd == nil {
var ret bool
return ret
}
return *o.SignQuickAdd
}
// GetSignQuickAddOk returns a tuple with the SignQuickAdd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetSignQuickAddOk() (*bool, bool) {
if o == nil || o.SignQuickAdd == nil {
return nil, false
}
return o.SignQuickAdd, true
}
// HasSignQuickAdd returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasSignQuickAdd() bool {
if o != nil && o.SignQuickAdd != nil {
return true
}
return false
}
// SetSignQuickAdd gets a reference to the given bool and assigns it to the SignQuickAdd field.
func (o *EnrollmentSettingsV2) SetSignQuickAdd(v bool) {
o.SignQuickAdd = &v
}
// GetDeveloperCertificateIdentity returns the DeveloperCertificateIdentity field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetDeveloperCertificateIdentity() CertificateIdentityV2 {
if o == nil || o.DeveloperCertificateIdentity == nil {
var ret CertificateIdentityV2
return ret
}
return *o.DeveloperCertificateIdentity
}
// GetDeveloperCertificateIdentityOk returns a tuple with the DeveloperCertificateIdentity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetDeveloperCertificateIdentityOk() (*CertificateIdentityV2, bool) {
if o == nil || o.DeveloperCertificateIdentity == nil {
return nil, false
}
return o.DeveloperCertificateIdentity, true
}
// HasDeveloperCertificateIdentity returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasDeveloperCertificateIdentity() bool {
if o != nil && o.DeveloperCertificateIdentity != nil {
return true
}
return false
}
// SetDeveloperCertificateIdentity gets a reference to the given CertificateIdentityV2 and assigns it to the DeveloperCertificateIdentity field.
func (o *EnrollmentSettingsV2) SetDeveloperCertificateIdentity(v CertificateIdentityV2) {
o.DeveloperCertificateIdentity = &v
}
// GetDeveloperCertificateIdentityDetails returns the DeveloperCertificateIdentityDetails field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetDeveloperCertificateIdentityDetails() CertificateDetails {
if o == nil || o.DeveloperCertificateIdentityDetails == nil {
var ret CertificateDetails
return ret
}
return *o.DeveloperCertificateIdentityDetails
}
// GetDeveloperCertificateIdentityDetailsOk returns a tuple with the DeveloperCertificateIdentityDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetDeveloperCertificateIdentityDetailsOk() (*CertificateDetails, bool) {
if o == nil || o.DeveloperCertificateIdentityDetails == nil {
return nil, false
}
return o.DeveloperCertificateIdentityDetails, true
}
// HasDeveloperCertificateIdentityDetails returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasDeveloperCertificateIdentityDetails() bool {
if o != nil && o.DeveloperCertificateIdentityDetails != nil {
return true
}
return false
}
// SetDeveloperCertificateIdentityDetails gets a reference to the given CertificateDetails and assigns it to the DeveloperCertificateIdentityDetails field.
func (o *EnrollmentSettingsV2) SetDeveloperCertificateIdentityDetails(v CertificateDetails) {
o.DeveloperCertificateIdentityDetails = &v
}
// GetMdmSigningCertificateDetails returns the MdmSigningCertificateDetails field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetMdmSigningCertificateDetails() CertificateDetails {
if o == nil || o.MdmSigningCertificateDetails == nil {
var ret CertificateDetails
return ret
}
return *o.MdmSigningCertificateDetails
}
// GetMdmSigningCertificateDetailsOk returns a tuple with the MdmSigningCertificateDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetMdmSigningCertificateDetailsOk() (*CertificateDetails, bool) {
if o == nil || o.MdmSigningCertificateDetails == nil {
return nil, false
}
return o.MdmSigningCertificateDetails, true
}
// HasMdmSigningCertificateDetails returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasMdmSigningCertificateDetails() bool {
if o != nil && o.MdmSigningCertificateDetails != nil {
return true
}
return false
}
// SetMdmSigningCertificateDetails gets a reference to the given CertificateDetails and assigns it to the MdmSigningCertificateDetails field.
func (o *EnrollmentSettingsV2) SetMdmSigningCertificateDetails(v CertificateDetails) {
o.MdmSigningCertificateDetails = &v
}
// GetIosEnterpriseEnrollmentEnabled returns the IosEnterpriseEnrollmentEnabled field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetIosEnterpriseEnrollmentEnabled() bool {
if o == nil || o.IosEnterpriseEnrollmentEnabled == nil {
var ret bool
return ret
}
return *o.IosEnterpriseEnrollmentEnabled
}
// GetIosEnterpriseEnrollmentEnabledOk returns a tuple with the IosEnterpriseEnrollmentEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetIosEnterpriseEnrollmentEnabledOk() (*bool, bool) {
if o == nil || o.IosEnterpriseEnrollmentEnabled == nil {
return nil, false
}
return o.IosEnterpriseEnrollmentEnabled, true
}
// HasIosEnterpriseEnrollmentEnabled returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasIosEnterpriseEnrollmentEnabled() bool {
if o != nil && o.IosEnterpriseEnrollmentEnabled != nil {
return true
}
return false
}
// SetIosEnterpriseEnrollmentEnabled gets a reference to the given bool and assigns it to the IosEnterpriseEnrollmentEnabled field.
func (o *EnrollmentSettingsV2) SetIosEnterpriseEnrollmentEnabled(v bool) {
o.IosEnterpriseEnrollmentEnabled = &v
}
// GetIosPersonalEnrollmentEnabled returns the IosPersonalEnrollmentEnabled field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetIosPersonalEnrollmentEnabled() bool {
if o == nil || o.IosPersonalEnrollmentEnabled == nil {
var ret bool
return ret
}
return *o.IosPersonalEnrollmentEnabled
}
// GetIosPersonalEnrollmentEnabledOk returns a tuple with the IosPersonalEnrollmentEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetIosPersonalEnrollmentEnabledOk() (*bool, bool) {
if o == nil || o.IosPersonalEnrollmentEnabled == nil {
return nil, false
}
return o.IosPersonalEnrollmentEnabled, true
}
// HasIosPersonalEnrollmentEnabled returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasIosPersonalEnrollmentEnabled() bool {
if o != nil && o.IosPersonalEnrollmentEnabled != nil {
return true
}
return false
}
// SetIosPersonalEnrollmentEnabled gets a reference to the given bool and assigns it to the IosPersonalEnrollmentEnabled field.
func (o *EnrollmentSettingsV2) SetIosPersonalEnrollmentEnabled(v bool) {
o.IosPersonalEnrollmentEnabled = &v
}
// GetPersonalDeviceEnrollmentType returns the PersonalDeviceEnrollmentType field value if set, zero value otherwise.
func (o *EnrollmentSettingsV2) GetPersonalDeviceEnrollmentType() string {
if o == nil || o.PersonalDeviceEnrollmentType == nil {
var ret string
return ret
}
return *o.PersonalDeviceEnrollmentType
}
// GetPersonalDeviceEnrollmentTypeOk returns a tuple with the PersonalDeviceEnrollmentType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnrollmentSettingsV2) GetPersonalDeviceEnrollmentTypeOk() (*string, bool) {
if o == nil || o.PersonalDeviceEnrollmentType == nil {
return nil, false
}
return o.PersonalDeviceEnrollmentType, true
}
// HasPersonalDeviceEnrollmentType returns a boolean if a field has been set.
func (o *EnrollmentSettingsV2) HasPersonalDeviceEnrollmentType() bool {