forked from okta/okta-sdk-golang
/
model_dtc_windows_.go
838 lines (715 loc) · 27.4 KB
/
model_dtc_windows_.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
/*
Okta Admin Management
Allows customers to easily access the Okta Management APIs
Copyright 2018 - Present Okta, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
API version: 5.1.0
Contact: devex-public@okta.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package okta
import (
"encoding/json"
)
// DTCWindows Google Chrome Device Trust Connector provider
type DTCWindows struct {
BrowserVersion *ChromeBrowserVersion `json:"browserVersion,omitempty"`
// Indicates if a software stack is used to communicate with the DNS server
BuiltInDnsClientEnabled *bool `json:"builtInDnsClientEnabled,omitempty"`
// Indicates whether access to the Chrome Remote Desktop application is blocked through a policy
ChromeRemoteDesktopAppBlocked *bool `json:"chromeRemoteDesktopAppBlocked,omitempty"`
// Agent ID of an installed CrowdStrike agent
CrowdStrikeAgentId *string `json:"crowdStrikeAgentId,omitempty"`
// Customer ID of an installed CrowdStrike agent
CrowdStrikeCustomerId *string `json:"crowdStrikeCustomerId,omitempty"`
// Enrollment domain of the customer that is currently managing the device
DeviceEnrollmentDomain *string `json:"deviceEnrollmentDomain,omitempty"`
// Indicates whether the main disk is encrypted
DiskEncrypted *bool `json:"diskEncrypted,omitempty"`
KeyTrustLevel *KeyTrustLevelBrowserKey `json:"keyTrustLevel,omitempty"`
// Indicates whether a firewall is enabled at the OS-level on the device
OsFirewall *bool `json:"osFirewall,omitempty"`
OsVersion *OSVersionFourComponents `json:"osVersion,omitempty"`
PasswordProtectionWarningTrigger *PasswordProtectionWarningTrigger `json:"passwordProtectionWarningTrigger,omitempty"`
// Indicates whether enterprise-grade (custom) unsafe URL scanning is enabled
RealtimeUrlCheckMode *bool `json:"realtimeUrlCheckMode,omitempty"`
SafeBrowsingProtectionLevel *SafeBrowsingProtectionLevel `json:"safeBrowsingProtectionLevel,omitempty"`
// Indicates whether the device is password-protected
ScreenLockSecured *bool `json:"screenLockSecured,omitempty"`
// Indicates whether the device's startup software has its Secure Boot feature enabled
SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
// Indicates whether the Site Isolation (also known as **Site Per Process**) setting is enabled
SiteIsolationEnabled *bool `json:"siteIsolationEnabled,omitempty"`
// Indicates whether Chrome is blocking third-party software injection
ThirdPartyBlockingEnabled *bool `json:"thirdPartyBlockingEnabled,omitempty"`
// Windows domain that the current machine has joined
WindowsMachineDomain *string `json:"windowsMachineDomain,omitempty"`
// Windows domain for the current OS user
WindowsUserDomain *string `json:"windowsUserDomain,omitempty"`
AdditionalProperties map[string]interface{}
}
type _DTCWindows DTCWindows
// NewDTCWindows instantiates a new DTCWindows 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 NewDTCWindows() *DTCWindows {
this := DTCWindows{}
return &this
}
// NewDTCWindowsWithDefaults instantiates a new DTCWindows 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 NewDTCWindowsWithDefaults() *DTCWindows {
this := DTCWindows{}
return &this
}
// GetBrowserVersion returns the BrowserVersion field value if set, zero value otherwise.
func (o *DTCWindows) GetBrowserVersion() ChromeBrowserVersion {
if o == nil || o.BrowserVersion == nil {
var ret ChromeBrowserVersion
return ret
}
return *o.BrowserVersion
}
// GetBrowserVersionOk returns a tuple with the BrowserVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetBrowserVersionOk() (*ChromeBrowserVersion, bool) {
if o == nil || o.BrowserVersion == nil {
return nil, false
}
return o.BrowserVersion, true
}
// HasBrowserVersion returns a boolean if a field has been set.
func (o *DTCWindows) HasBrowserVersion() bool {
if o != nil && o.BrowserVersion != nil {
return true
}
return false
}
// SetBrowserVersion gets a reference to the given ChromeBrowserVersion and assigns it to the BrowserVersion field.
func (o *DTCWindows) SetBrowserVersion(v ChromeBrowserVersion) {
o.BrowserVersion = &v
}
// GetBuiltInDnsClientEnabled returns the BuiltInDnsClientEnabled field value if set, zero value otherwise.
func (o *DTCWindows) GetBuiltInDnsClientEnabled() bool {
if o == nil || o.BuiltInDnsClientEnabled == nil {
var ret bool
return ret
}
return *o.BuiltInDnsClientEnabled
}
// GetBuiltInDnsClientEnabledOk returns a tuple with the BuiltInDnsClientEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetBuiltInDnsClientEnabledOk() (*bool, bool) {
if o == nil || o.BuiltInDnsClientEnabled == nil {
return nil, false
}
return o.BuiltInDnsClientEnabled, true
}
// HasBuiltInDnsClientEnabled returns a boolean if a field has been set.
func (o *DTCWindows) HasBuiltInDnsClientEnabled() bool {
if o != nil && o.BuiltInDnsClientEnabled != nil {
return true
}
return false
}
// SetBuiltInDnsClientEnabled gets a reference to the given bool and assigns it to the BuiltInDnsClientEnabled field.
func (o *DTCWindows) SetBuiltInDnsClientEnabled(v bool) {
o.BuiltInDnsClientEnabled = &v
}
// GetChromeRemoteDesktopAppBlocked returns the ChromeRemoteDesktopAppBlocked field value if set, zero value otherwise.
func (o *DTCWindows) GetChromeRemoteDesktopAppBlocked() bool {
if o == nil || o.ChromeRemoteDesktopAppBlocked == nil {
var ret bool
return ret
}
return *o.ChromeRemoteDesktopAppBlocked
}
// GetChromeRemoteDesktopAppBlockedOk returns a tuple with the ChromeRemoteDesktopAppBlocked field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetChromeRemoteDesktopAppBlockedOk() (*bool, bool) {
if o == nil || o.ChromeRemoteDesktopAppBlocked == nil {
return nil, false
}
return o.ChromeRemoteDesktopAppBlocked, true
}
// HasChromeRemoteDesktopAppBlocked returns a boolean if a field has been set.
func (o *DTCWindows) HasChromeRemoteDesktopAppBlocked() bool {
if o != nil && o.ChromeRemoteDesktopAppBlocked != nil {
return true
}
return false
}
// SetChromeRemoteDesktopAppBlocked gets a reference to the given bool and assigns it to the ChromeRemoteDesktopAppBlocked field.
func (o *DTCWindows) SetChromeRemoteDesktopAppBlocked(v bool) {
o.ChromeRemoteDesktopAppBlocked = &v
}
// GetCrowdStrikeAgentId returns the CrowdStrikeAgentId field value if set, zero value otherwise.
func (o *DTCWindows) GetCrowdStrikeAgentId() string {
if o == nil || o.CrowdStrikeAgentId == nil {
var ret string
return ret
}
return *o.CrowdStrikeAgentId
}
// GetCrowdStrikeAgentIdOk returns a tuple with the CrowdStrikeAgentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetCrowdStrikeAgentIdOk() (*string, bool) {
if o == nil || o.CrowdStrikeAgentId == nil {
return nil, false
}
return o.CrowdStrikeAgentId, true
}
// HasCrowdStrikeAgentId returns a boolean if a field has been set.
func (o *DTCWindows) HasCrowdStrikeAgentId() bool {
if o != nil && o.CrowdStrikeAgentId != nil {
return true
}
return false
}
// SetCrowdStrikeAgentId gets a reference to the given string and assigns it to the CrowdStrikeAgentId field.
func (o *DTCWindows) SetCrowdStrikeAgentId(v string) {
o.CrowdStrikeAgentId = &v
}
// GetCrowdStrikeCustomerId returns the CrowdStrikeCustomerId field value if set, zero value otherwise.
func (o *DTCWindows) GetCrowdStrikeCustomerId() string {
if o == nil || o.CrowdStrikeCustomerId == nil {
var ret string
return ret
}
return *o.CrowdStrikeCustomerId
}
// GetCrowdStrikeCustomerIdOk returns a tuple with the CrowdStrikeCustomerId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetCrowdStrikeCustomerIdOk() (*string, bool) {
if o == nil || o.CrowdStrikeCustomerId == nil {
return nil, false
}
return o.CrowdStrikeCustomerId, true
}
// HasCrowdStrikeCustomerId returns a boolean if a field has been set.
func (o *DTCWindows) HasCrowdStrikeCustomerId() bool {
if o != nil && o.CrowdStrikeCustomerId != nil {
return true
}
return false
}
// SetCrowdStrikeCustomerId gets a reference to the given string and assigns it to the CrowdStrikeCustomerId field.
func (o *DTCWindows) SetCrowdStrikeCustomerId(v string) {
o.CrowdStrikeCustomerId = &v
}
// GetDeviceEnrollmentDomain returns the DeviceEnrollmentDomain field value if set, zero value otherwise.
func (o *DTCWindows) GetDeviceEnrollmentDomain() string {
if o == nil || o.DeviceEnrollmentDomain == nil {
var ret string
return ret
}
return *o.DeviceEnrollmentDomain
}
// GetDeviceEnrollmentDomainOk returns a tuple with the DeviceEnrollmentDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetDeviceEnrollmentDomainOk() (*string, bool) {
if o == nil || o.DeviceEnrollmentDomain == nil {
return nil, false
}
return o.DeviceEnrollmentDomain, true
}
// HasDeviceEnrollmentDomain returns a boolean if a field has been set.
func (o *DTCWindows) HasDeviceEnrollmentDomain() bool {
if o != nil && o.DeviceEnrollmentDomain != nil {
return true
}
return false
}
// SetDeviceEnrollmentDomain gets a reference to the given string and assigns it to the DeviceEnrollmentDomain field.
func (o *DTCWindows) SetDeviceEnrollmentDomain(v string) {
o.DeviceEnrollmentDomain = &v
}
// GetDiskEncrypted returns the DiskEncrypted field value if set, zero value otherwise.
func (o *DTCWindows) GetDiskEncrypted() bool {
if o == nil || o.DiskEncrypted == nil {
var ret bool
return ret
}
return *o.DiskEncrypted
}
// GetDiskEncryptedOk returns a tuple with the DiskEncrypted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetDiskEncryptedOk() (*bool, bool) {
if o == nil || o.DiskEncrypted == nil {
return nil, false
}
return o.DiskEncrypted, true
}
// HasDiskEncrypted returns a boolean if a field has been set.
func (o *DTCWindows) HasDiskEncrypted() bool {
if o != nil && o.DiskEncrypted != nil {
return true
}
return false
}
// SetDiskEncrypted gets a reference to the given bool and assigns it to the DiskEncrypted field.
func (o *DTCWindows) SetDiskEncrypted(v bool) {
o.DiskEncrypted = &v
}
// GetKeyTrustLevel returns the KeyTrustLevel field value if set, zero value otherwise.
func (o *DTCWindows) GetKeyTrustLevel() KeyTrustLevelBrowserKey {
if o == nil || o.KeyTrustLevel == nil {
var ret KeyTrustLevelBrowserKey
return ret
}
return *o.KeyTrustLevel
}
// GetKeyTrustLevelOk returns a tuple with the KeyTrustLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetKeyTrustLevelOk() (*KeyTrustLevelBrowserKey, bool) {
if o == nil || o.KeyTrustLevel == nil {
return nil, false
}
return o.KeyTrustLevel, true
}
// HasKeyTrustLevel returns a boolean if a field has been set.
func (o *DTCWindows) HasKeyTrustLevel() bool {
if o != nil && o.KeyTrustLevel != nil {
return true
}
return false
}
// SetKeyTrustLevel gets a reference to the given KeyTrustLevelBrowserKey and assigns it to the KeyTrustLevel field.
func (o *DTCWindows) SetKeyTrustLevel(v KeyTrustLevelBrowserKey) {
o.KeyTrustLevel = &v
}
// GetOsFirewall returns the OsFirewall field value if set, zero value otherwise.
func (o *DTCWindows) GetOsFirewall() bool {
if o == nil || o.OsFirewall == nil {
var ret bool
return ret
}
return *o.OsFirewall
}
// GetOsFirewallOk returns a tuple with the OsFirewall field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetOsFirewallOk() (*bool, bool) {
if o == nil || o.OsFirewall == nil {
return nil, false
}
return o.OsFirewall, true
}
// HasOsFirewall returns a boolean if a field has been set.
func (o *DTCWindows) HasOsFirewall() bool {
if o != nil && o.OsFirewall != nil {
return true
}
return false
}
// SetOsFirewall gets a reference to the given bool and assigns it to the OsFirewall field.
func (o *DTCWindows) SetOsFirewall(v bool) {
o.OsFirewall = &v
}
// GetOsVersion returns the OsVersion field value if set, zero value otherwise.
func (o *DTCWindows) GetOsVersion() OSVersionFourComponents {
if o == nil || o.OsVersion == nil {
var ret OSVersionFourComponents
return ret
}
return *o.OsVersion
}
// GetOsVersionOk returns a tuple with the OsVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetOsVersionOk() (*OSVersionFourComponents, bool) {
if o == nil || o.OsVersion == nil {
return nil, false
}
return o.OsVersion, true
}
// HasOsVersion returns a boolean if a field has been set.
func (o *DTCWindows) HasOsVersion() bool {
if o != nil && o.OsVersion != nil {
return true
}
return false
}
// SetOsVersion gets a reference to the given OSVersionFourComponents and assigns it to the OsVersion field.
func (o *DTCWindows) SetOsVersion(v OSVersionFourComponents) {
o.OsVersion = &v
}
// GetPasswordProtectionWarningTrigger returns the PasswordProtectionWarningTrigger field value if set, zero value otherwise.
func (o *DTCWindows) GetPasswordProtectionWarningTrigger() PasswordProtectionWarningTrigger {
if o == nil || o.PasswordProtectionWarningTrigger == nil {
var ret PasswordProtectionWarningTrigger
return ret
}
return *o.PasswordProtectionWarningTrigger
}
// GetPasswordProtectionWarningTriggerOk returns a tuple with the PasswordProtectionWarningTrigger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetPasswordProtectionWarningTriggerOk() (*PasswordProtectionWarningTrigger, bool) {
if o == nil || o.PasswordProtectionWarningTrigger == nil {
return nil, false
}
return o.PasswordProtectionWarningTrigger, true
}
// HasPasswordProtectionWarningTrigger returns a boolean if a field has been set.
func (o *DTCWindows) HasPasswordProtectionWarningTrigger() bool {
if o != nil && o.PasswordProtectionWarningTrigger != nil {
return true
}
return false
}
// SetPasswordProtectionWarningTrigger gets a reference to the given PasswordProtectionWarningTrigger and assigns it to the PasswordProtectionWarningTrigger field.
func (o *DTCWindows) SetPasswordProtectionWarningTrigger(v PasswordProtectionWarningTrigger) {
o.PasswordProtectionWarningTrigger = &v
}
// GetRealtimeUrlCheckMode returns the RealtimeUrlCheckMode field value if set, zero value otherwise.
func (o *DTCWindows) GetRealtimeUrlCheckMode() bool {
if o == nil || o.RealtimeUrlCheckMode == nil {
var ret bool
return ret
}
return *o.RealtimeUrlCheckMode
}
// GetRealtimeUrlCheckModeOk returns a tuple with the RealtimeUrlCheckMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetRealtimeUrlCheckModeOk() (*bool, bool) {
if o == nil || o.RealtimeUrlCheckMode == nil {
return nil, false
}
return o.RealtimeUrlCheckMode, true
}
// HasRealtimeUrlCheckMode returns a boolean if a field has been set.
func (o *DTCWindows) HasRealtimeUrlCheckMode() bool {
if o != nil && o.RealtimeUrlCheckMode != nil {
return true
}
return false
}
// SetRealtimeUrlCheckMode gets a reference to the given bool and assigns it to the RealtimeUrlCheckMode field.
func (o *DTCWindows) SetRealtimeUrlCheckMode(v bool) {
o.RealtimeUrlCheckMode = &v
}
// GetSafeBrowsingProtectionLevel returns the SafeBrowsingProtectionLevel field value if set, zero value otherwise.
func (o *DTCWindows) GetSafeBrowsingProtectionLevel() SafeBrowsingProtectionLevel {
if o == nil || o.SafeBrowsingProtectionLevel == nil {
var ret SafeBrowsingProtectionLevel
return ret
}
return *o.SafeBrowsingProtectionLevel
}
// GetSafeBrowsingProtectionLevelOk returns a tuple with the SafeBrowsingProtectionLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetSafeBrowsingProtectionLevelOk() (*SafeBrowsingProtectionLevel, bool) {
if o == nil || o.SafeBrowsingProtectionLevel == nil {
return nil, false
}
return o.SafeBrowsingProtectionLevel, true
}
// HasSafeBrowsingProtectionLevel returns a boolean if a field has been set.
func (o *DTCWindows) HasSafeBrowsingProtectionLevel() bool {
if o != nil && o.SafeBrowsingProtectionLevel != nil {
return true
}
return false
}
// SetSafeBrowsingProtectionLevel gets a reference to the given SafeBrowsingProtectionLevel and assigns it to the SafeBrowsingProtectionLevel field.
func (o *DTCWindows) SetSafeBrowsingProtectionLevel(v SafeBrowsingProtectionLevel) {
o.SafeBrowsingProtectionLevel = &v
}
// GetScreenLockSecured returns the ScreenLockSecured field value if set, zero value otherwise.
func (o *DTCWindows) GetScreenLockSecured() bool {
if o == nil || o.ScreenLockSecured == nil {
var ret bool
return ret
}
return *o.ScreenLockSecured
}
// GetScreenLockSecuredOk returns a tuple with the ScreenLockSecured field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetScreenLockSecuredOk() (*bool, bool) {
if o == nil || o.ScreenLockSecured == nil {
return nil, false
}
return o.ScreenLockSecured, true
}
// HasScreenLockSecured returns a boolean if a field has been set.
func (o *DTCWindows) HasScreenLockSecured() bool {
if o != nil && o.ScreenLockSecured != nil {
return true
}
return false
}
// SetScreenLockSecured gets a reference to the given bool and assigns it to the ScreenLockSecured field.
func (o *DTCWindows) SetScreenLockSecured(v bool) {
o.ScreenLockSecured = &v
}
// GetSecureBootEnabled returns the SecureBootEnabled field value if set, zero value otherwise.
func (o *DTCWindows) GetSecureBootEnabled() bool {
if o == nil || o.SecureBootEnabled == nil {
var ret bool
return ret
}
return *o.SecureBootEnabled
}
// GetSecureBootEnabledOk returns a tuple with the SecureBootEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetSecureBootEnabledOk() (*bool, bool) {
if o == nil || o.SecureBootEnabled == nil {
return nil, false
}
return o.SecureBootEnabled, true
}
// HasSecureBootEnabled returns a boolean if a field has been set.
func (o *DTCWindows) HasSecureBootEnabled() bool {
if o != nil && o.SecureBootEnabled != nil {
return true
}
return false
}
// SetSecureBootEnabled gets a reference to the given bool and assigns it to the SecureBootEnabled field.
func (o *DTCWindows) SetSecureBootEnabled(v bool) {
o.SecureBootEnabled = &v
}
// GetSiteIsolationEnabled returns the SiteIsolationEnabled field value if set, zero value otherwise.
func (o *DTCWindows) GetSiteIsolationEnabled() bool {
if o == nil || o.SiteIsolationEnabled == nil {
var ret bool
return ret
}
return *o.SiteIsolationEnabled
}
// GetSiteIsolationEnabledOk returns a tuple with the SiteIsolationEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetSiteIsolationEnabledOk() (*bool, bool) {
if o == nil || o.SiteIsolationEnabled == nil {
return nil, false
}
return o.SiteIsolationEnabled, true
}
// HasSiteIsolationEnabled returns a boolean if a field has been set.
func (o *DTCWindows) HasSiteIsolationEnabled() bool {
if o != nil && o.SiteIsolationEnabled != nil {
return true
}
return false
}
// SetSiteIsolationEnabled gets a reference to the given bool and assigns it to the SiteIsolationEnabled field.
func (o *DTCWindows) SetSiteIsolationEnabled(v bool) {
o.SiteIsolationEnabled = &v
}
// GetThirdPartyBlockingEnabled returns the ThirdPartyBlockingEnabled field value if set, zero value otherwise.
func (o *DTCWindows) GetThirdPartyBlockingEnabled() bool {
if o == nil || o.ThirdPartyBlockingEnabled == nil {
var ret bool
return ret
}
return *o.ThirdPartyBlockingEnabled
}
// GetThirdPartyBlockingEnabledOk returns a tuple with the ThirdPartyBlockingEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetThirdPartyBlockingEnabledOk() (*bool, bool) {
if o == nil || o.ThirdPartyBlockingEnabled == nil {
return nil, false
}
return o.ThirdPartyBlockingEnabled, true
}
// HasThirdPartyBlockingEnabled returns a boolean if a field has been set.
func (o *DTCWindows) HasThirdPartyBlockingEnabled() bool {
if o != nil && o.ThirdPartyBlockingEnabled != nil {
return true
}
return false
}
// SetThirdPartyBlockingEnabled gets a reference to the given bool and assigns it to the ThirdPartyBlockingEnabled field.
func (o *DTCWindows) SetThirdPartyBlockingEnabled(v bool) {
o.ThirdPartyBlockingEnabled = &v
}
// GetWindowsMachineDomain returns the WindowsMachineDomain field value if set, zero value otherwise.
func (o *DTCWindows) GetWindowsMachineDomain() string {
if o == nil || o.WindowsMachineDomain == nil {
var ret string
return ret
}
return *o.WindowsMachineDomain
}
// GetWindowsMachineDomainOk returns a tuple with the WindowsMachineDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetWindowsMachineDomainOk() (*string, bool) {
if o == nil || o.WindowsMachineDomain == nil {
return nil, false
}
return o.WindowsMachineDomain, true
}
// HasWindowsMachineDomain returns a boolean if a field has been set.
func (o *DTCWindows) HasWindowsMachineDomain() bool {
if o != nil && o.WindowsMachineDomain != nil {
return true
}
return false
}
// SetWindowsMachineDomain gets a reference to the given string and assigns it to the WindowsMachineDomain field.
func (o *DTCWindows) SetWindowsMachineDomain(v string) {
o.WindowsMachineDomain = &v
}
// GetWindowsUserDomain returns the WindowsUserDomain field value if set, zero value otherwise.
func (o *DTCWindows) GetWindowsUserDomain() string {
if o == nil || o.WindowsUserDomain == nil {
var ret string
return ret
}
return *o.WindowsUserDomain
}
// GetWindowsUserDomainOk returns a tuple with the WindowsUserDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DTCWindows) GetWindowsUserDomainOk() (*string, bool) {
if o == nil || o.WindowsUserDomain == nil {
return nil, false
}
return o.WindowsUserDomain, true
}
// HasWindowsUserDomain returns a boolean if a field has been set.
func (o *DTCWindows) HasWindowsUserDomain() bool {
if o != nil && o.WindowsUserDomain != nil {
return true
}
return false
}
// SetWindowsUserDomain gets a reference to the given string and assigns it to the WindowsUserDomain field.
func (o *DTCWindows) SetWindowsUserDomain(v string) {
o.WindowsUserDomain = &v
}
func (o DTCWindows) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.BrowserVersion != nil {
toSerialize["browserVersion"] = o.BrowserVersion
}
if o.BuiltInDnsClientEnabled != nil {
toSerialize["builtInDnsClientEnabled"] = o.BuiltInDnsClientEnabled
}
if o.ChromeRemoteDesktopAppBlocked != nil {
toSerialize["chromeRemoteDesktopAppBlocked"] = o.ChromeRemoteDesktopAppBlocked
}
if o.CrowdStrikeAgentId != nil {
toSerialize["crowdStrikeAgentId"] = o.CrowdStrikeAgentId
}
if o.CrowdStrikeCustomerId != nil {
toSerialize["crowdStrikeCustomerId"] = o.CrowdStrikeCustomerId
}
if o.DeviceEnrollmentDomain != nil {
toSerialize["deviceEnrollmentDomain"] = o.DeviceEnrollmentDomain
}
if o.DiskEncrypted != nil {
toSerialize["diskEncrypted"] = o.DiskEncrypted
}
if o.KeyTrustLevel != nil {
toSerialize["keyTrustLevel"] = o.KeyTrustLevel
}
if o.OsFirewall != nil {
toSerialize["osFirewall"] = o.OsFirewall
}
if o.OsVersion != nil {
toSerialize["osVersion"] = o.OsVersion
}
if o.PasswordProtectionWarningTrigger != nil {
toSerialize["passwordProtectionWarningTrigger"] = o.PasswordProtectionWarningTrigger
}
if o.RealtimeUrlCheckMode != nil {
toSerialize["realtimeUrlCheckMode"] = o.RealtimeUrlCheckMode
}
if o.SafeBrowsingProtectionLevel != nil {
toSerialize["safeBrowsingProtectionLevel"] = o.SafeBrowsingProtectionLevel
}
if o.ScreenLockSecured != nil {
toSerialize["screenLockSecured"] = o.ScreenLockSecured
}
if o.SecureBootEnabled != nil {
toSerialize["secureBootEnabled"] = o.SecureBootEnabled
}
if o.SiteIsolationEnabled != nil {
toSerialize["siteIsolationEnabled"] = o.SiteIsolationEnabled
}
if o.ThirdPartyBlockingEnabled != nil {
toSerialize["thirdPartyBlockingEnabled"] = o.ThirdPartyBlockingEnabled
}
if o.WindowsMachineDomain != nil {
toSerialize["windowsMachineDomain"] = o.WindowsMachineDomain
}
if o.WindowsUserDomain != nil {
toSerialize["windowsUserDomain"] = o.WindowsUserDomain
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *DTCWindows) UnmarshalJSON(bytes []byte) (err error) {
varDTCWindows := _DTCWindows{}
err = json.Unmarshal(bytes, &varDTCWindows)
if err == nil {
*o = DTCWindows(varDTCWindows)
} else {
return err
}
additionalProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &additionalProperties)
if err == nil {
delete(additionalProperties, "browserVersion")
delete(additionalProperties, "builtInDnsClientEnabled")
delete(additionalProperties, "chromeRemoteDesktopAppBlocked")
delete(additionalProperties, "crowdStrikeAgentId")
delete(additionalProperties, "crowdStrikeCustomerId")
delete(additionalProperties, "deviceEnrollmentDomain")
delete(additionalProperties, "diskEncrypted")
delete(additionalProperties, "keyTrustLevel")
delete(additionalProperties, "osFirewall")
delete(additionalProperties, "osVersion")
delete(additionalProperties, "passwordProtectionWarningTrigger")
delete(additionalProperties, "realtimeUrlCheckMode")
delete(additionalProperties, "safeBrowsingProtectionLevel")
delete(additionalProperties, "screenLockSecured")
delete(additionalProperties, "secureBootEnabled")
delete(additionalProperties, "siteIsolationEnabled")
delete(additionalProperties, "thirdPartyBlockingEnabled")
delete(additionalProperties, "windowsMachineDomain")
delete(additionalProperties, "windowsUserDomain")
o.AdditionalProperties = additionalProperties
} else {
return err
}
return err
}
type NullableDTCWindows struct {
value *DTCWindows
isSet bool
}
func (v NullableDTCWindows) Get() *DTCWindows {
return v.value
}
func (v *NullableDTCWindows) Set(val *DTCWindows) {
v.value = val
v.isSet = true
}
func (v NullableDTCWindows) IsSet() bool {
return v.isSet
}
func (v *NullableDTCWindows) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDTCWindows(val *DTCWindows) *NullableDTCWindows {
return &NullableDTCWindows{value: val, isSet: true}
}
func (v NullableDTCWindows) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDTCWindows) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}