/
model_host_config_resource.go
1576 lines (1356 loc) · 48.9 KB
/
model_host_config_resource.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
/*
Radarr
Radarr API docs
API version: v5.3.6.8612
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package radarr
import (
"encoding/json"
)
// checks if the HostConfigResource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HostConfigResource{}
// HostConfigResource struct for HostConfigResource
type HostConfigResource struct {
Id *int32 `json:"id,omitempty"`
BindAddress NullableString `json:"bindAddress,omitempty"`
Port *int32 `json:"port,omitempty"`
SslPort *int32 `json:"sslPort,omitempty"`
EnableSsl *bool `json:"enableSsl,omitempty"`
LaunchBrowser *bool `json:"launchBrowser,omitempty"`
AuthenticationMethod *AuthenticationType `json:"authenticationMethod,omitempty"`
AuthenticationRequired *AuthenticationRequiredType `json:"authenticationRequired,omitempty"`
AnalyticsEnabled *bool `json:"analyticsEnabled,omitempty"`
Username NullableString `json:"username,omitempty"`
Password NullableString `json:"password,omitempty"`
PasswordConfirmation NullableString `json:"passwordConfirmation,omitempty"`
LogLevel NullableString `json:"logLevel,omitempty"`
ConsoleLogLevel NullableString `json:"consoleLogLevel,omitempty"`
Branch NullableString `json:"branch,omitempty"`
ApiKey NullableString `json:"apiKey,omitempty"`
SslCertPath NullableString `json:"sslCertPath,omitempty"`
SslCertPassword NullableString `json:"sslCertPassword,omitempty"`
UrlBase NullableString `json:"urlBase,omitempty"`
InstanceName NullableString `json:"instanceName,omitempty"`
ApplicationUrl NullableString `json:"applicationUrl,omitempty"`
UpdateAutomatically *bool `json:"updateAutomatically,omitempty"`
UpdateMechanism *UpdateMechanism `json:"updateMechanism,omitempty"`
UpdateScriptPath NullableString `json:"updateScriptPath,omitempty"`
ProxyEnabled *bool `json:"proxyEnabled,omitempty"`
ProxyType *ProxyType `json:"proxyType,omitempty"`
ProxyHostname NullableString `json:"proxyHostname,omitempty"`
ProxyPort *int32 `json:"proxyPort,omitempty"`
ProxyUsername NullableString `json:"proxyUsername,omitempty"`
ProxyPassword NullableString `json:"proxyPassword,omitempty"`
ProxyBypassFilter NullableString `json:"proxyBypassFilter,omitempty"`
ProxyBypassLocalAddresses *bool `json:"proxyBypassLocalAddresses,omitempty"`
CertificateValidation *CertificateValidationType `json:"certificateValidation,omitempty"`
BackupFolder NullableString `json:"backupFolder,omitempty"`
BackupInterval *int32 `json:"backupInterval,omitempty"`
BackupRetention *int32 `json:"backupRetention,omitempty"`
}
// NewHostConfigResource instantiates a new HostConfigResource 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 NewHostConfigResource() *HostConfigResource {
this := HostConfigResource{}
return &this
}
// NewHostConfigResourceWithDefaults instantiates a new HostConfigResource 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 NewHostConfigResourceWithDefaults() *HostConfigResource {
this := HostConfigResource{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *HostConfigResource) GetId() int32 {
if o == nil || IsNil(o.Id) {
var ret int32
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetIdOk() (*int32, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *HostConfigResource) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *HostConfigResource) SetId(v int32) {
o.Id = &v
}
// GetBindAddress returns the BindAddress field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetBindAddress() string {
if o == nil || IsNil(o.BindAddress.Get()) {
var ret string
return ret
}
return *o.BindAddress.Get()
}
// GetBindAddressOk returns a tuple with the BindAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetBindAddressOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.BindAddress.Get(), o.BindAddress.IsSet()
}
// HasBindAddress returns a boolean if a field has been set.
func (o *HostConfigResource) HasBindAddress() bool {
if o != nil && o.BindAddress.IsSet() {
return true
}
return false
}
// SetBindAddress gets a reference to the given NullableString and assigns it to the BindAddress field.
func (o *HostConfigResource) SetBindAddress(v string) {
o.BindAddress.Set(&v)
}
// SetBindAddressNil sets the value for BindAddress to be an explicit nil
func (o *HostConfigResource) SetBindAddressNil() {
o.BindAddress.Set(nil)
}
// UnsetBindAddress ensures that no value is present for BindAddress, not even an explicit nil
func (o *HostConfigResource) UnsetBindAddress() {
o.BindAddress.Unset()
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *HostConfigResource) GetPort() int32 {
if o == nil || IsNil(o.Port) {
var ret int32
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetPortOk() (*int32, bool) {
if o == nil || IsNil(o.Port) {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *HostConfigResource) HasPort() bool {
if o != nil && !IsNil(o.Port) {
return true
}
return false
}
// SetPort gets a reference to the given int32 and assigns it to the Port field.
func (o *HostConfigResource) SetPort(v int32) {
o.Port = &v
}
// GetSslPort returns the SslPort field value if set, zero value otherwise.
func (o *HostConfigResource) GetSslPort() int32 {
if o == nil || IsNil(o.SslPort) {
var ret int32
return ret
}
return *o.SslPort
}
// GetSslPortOk returns a tuple with the SslPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetSslPortOk() (*int32, bool) {
if o == nil || IsNil(o.SslPort) {
return nil, false
}
return o.SslPort, true
}
// HasSslPort returns a boolean if a field has been set.
func (o *HostConfigResource) HasSslPort() bool {
if o != nil && !IsNil(o.SslPort) {
return true
}
return false
}
// SetSslPort gets a reference to the given int32 and assigns it to the SslPort field.
func (o *HostConfigResource) SetSslPort(v int32) {
o.SslPort = &v
}
// GetEnableSsl returns the EnableSsl field value if set, zero value otherwise.
func (o *HostConfigResource) GetEnableSsl() bool {
if o == nil || IsNil(o.EnableSsl) {
var ret bool
return ret
}
return *o.EnableSsl
}
// GetEnableSslOk returns a tuple with the EnableSsl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetEnableSslOk() (*bool, bool) {
if o == nil || IsNil(o.EnableSsl) {
return nil, false
}
return o.EnableSsl, true
}
// HasEnableSsl returns a boolean if a field has been set.
func (o *HostConfigResource) HasEnableSsl() bool {
if o != nil && !IsNil(o.EnableSsl) {
return true
}
return false
}
// SetEnableSsl gets a reference to the given bool and assigns it to the EnableSsl field.
func (o *HostConfigResource) SetEnableSsl(v bool) {
o.EnableSsl = &v
}
// GetLaunchBrowser returns the LaunchBrowser field value if set, zero value otherwise.
func (o *HostConfigResource) GetLaunchBrowser() bool {
if o == nil || IsNil(o.LaunchBrowser) {
var ret bool
return ret
}
return *o.LaunchBrowser
}
// GetLaunchBrowserOk returns a tuple with the LaunchBrowser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetLaunchBrowserOk() (*bool, bool) {
if o == nil || IsNil(o.LaunchBrowser) {
return nil, false
}
return o.LaunchBrowser, true
}
// HasLaunchBrowser returns a boolean if a field has been set.
func (o *HostConfigResource) HasLaunchBrowser() bool {
if o != nil && !IsNil(o.LaunchBrowser) {
return true
}
return false
}
// SetLaunchBrowser gets a reference to the given bool and assigns it to the LaunchBrowser field.
func (o *HostConfigResource) SetLaunchBrowser(v bool) {
o.LaunchBrowser = &v
}
// GetAuthenticationMethod returns the AuthenticationMethod field value if set, zero value otherwise.
func (o *HostConfigResource) GetAuthenticationMethod() AuthenticationType {
if o == nil || IsNil(o.AuthenticationMethod) {
var ret AuthenticationType
return ret
}
return *o.AuthenticationMethod
}
// GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetAuthenticationMethodOk() (*AuthenticationType, bool) {
if o == nil || IsNil(o.AuthenticationMethod) {
return nil, false
}
return o.AuthenticationMethod, true
}
// HasAuthenticationMethod returns a boolean if a field has been set.
func (o *HostConfigResource) HasAuthenticationMethod() bool {
if o != nil && !IsNil(o.AuthenticationMethod) {
return true
}
return false
}
// SetAuthenticationMethod gets a reference to the given AuthenticationType and assigns it to the AuthenticationMethod field.
func (o *HostConfigResource) SetAuthenticationMethod(v AuthenticationType) {
o.AuthenticationMethod = &v
}
// GetAuthenticationRequired returns the AuthenticationRequired field value if set, zero value otherwise.
func (o *HostConfigResource) GetAuthenticationRequired() AuthenticationRequiredType {
if o == nil || IsNil(o.AuthenticationRequired) {
var ret AuthenticationRequiredType
return ret
}
return *o.AuthenticationRequired
}
// GetAuthenticationRequiredOk returns a tuple with the AuthenticationRequired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetAuthenticationRequiredOk() (*AuthenticationRequiredType, bool) {
if o == nil || IsNil(o.AuthenticationRequired) {
return nil, false
}
return o.AuthenticationRequired, true
}
// HasAuthenticationRequired returns a boolean if a field has been set.
func (o *HostConfigResource) HasAuthenticationRequired() bool {
if o != nil && !IsNil(o.AuthenticationRequired) {
return true
}
return false
}
// SetAuthenticationRequired gets a reference to the given AuthenticationRequiredType and assigns it to the AuthenticationRequired field.
func (o *HostConfigResource) SetAuthenticationRequired(v AuthenticationRequiredType) {
o.AuthenticationRequired = &v
}
// GetAnalyticsEnabled returns the AnalyticsEnabled field value if set, zero value otherwise.
func (o *HostConfigResource) GetAnalyticsEnabled() bool {
if o == nil || IsNil(o.AnalyticsEnabled) {
var ret bool
return ret
}
return *o.AnalyticsEnabled
}
// GetAnalyticsEnabledOk returns a tuple with the AnalyticsEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetAnalyticsEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.AnalyticsEnabled) {
return nil, false
}
return o.AnalyticsEnabled, true
}
// HasAnalyticsEnabled returns a boolean if a field has been set.
func (o *HostConfigResource) HasAnalyticsEnabled() bool {
if o != nil && !IsNil(o.AnalyticsEnabled) {
return true
}
return false
}
// SetAnalyticsEnabled gets a reference to the given bool and assigns it to the AnalyticsEnabled field.
func (o *HostConfigResource) SetAnalyticsEnabled(v bool) {
o.AnalyticsEnabled = &v
}
// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetUsername() string {
if o == nil || IsNil(o.Username.Get()) {
var ret string
return ret
}
return *o.Username.Get()
}
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetUsernameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Username.Get(), o.Username.IsSet()
}
// HasUsername returns a boolean if a field has been set.
func (o *HostConfigResource) HasUsername() bool {
if o != nil && o.Username.IsSet() {
return true
}
return false
}
// SetUsername gets a reference to the given NullableString and assigns it to the Username field.
func (o *HostConfigResource) SetUsername(v string) {
o.Username.Set(&v)
}
// SetUsernameNil sets the value for Username to be an explicit nil
func (o *HostConfigResource) SetUsernameNil() {
o.Username.Set(nil)
}
// UnsetUsername ensures that no value is present for Username, not even an explicit nil
func (o *HostConfigResource) UnsetUsername() {
o.Username.Unset()
}
// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetPassword() string {
if o == nil || IsNil(o.Password.Get()) {
var ret string
return ret
}
return *o.Password.Get()
}
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetPasswordOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Password.Get(), o.Password.IsSet()
}
// HasPassword returns a boolean if a field has been set.
func (o *HostConfigResource) HasPassword() bool {
if o != nil && o.Password.IsSet() {
return true
}
return false
}
// SetPassword gets a reference to the given NullableString and assigns it to the Password field.
func (o *HostConfigResource) SetPassword(v string) {
o.Password.Set(&v)
}
// SetPasswordNil sets the value for Password to be an explicit nil
func (o *HostConfigResource) SetPasswordNil() {
o.Password.Set(nil)
}
// UnsetPassword ensures that no value is present for Password, not even an explicit nil
func (o *HostConfigResource) UnsetPassword() {
o.Password.Unset()
}
// GetPasswordConfirmation returns the PasswordConfirmation field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetPasswordConfirmation() string {
if o == nil || IsNil(o.PasswordConfirmation.Get()) {
var ret string
return ret
}
return *o.PasswordConfirmation.Get()
}
// GetPasswordConfirmationOk returns a tuple with the PasswordConfirmation field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetPasswordConfirmationOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PasswordConfirmation.Get(), o.PasswordConfirmation.IsSet()
}
// HasPasswordConfirmation returns a boolean if a field has been set.
func (o *HostConfigResource) HasPasswordConfirmation() bool {
if o != nil && o.PasswordConfirmation.IsSet() {
return true
}
return false
}
// SetPasswordConfirmation gets a reference to the given NullableString and assigns it to the PasswordConfirmation field.
func (o *HostConfigResource) SetPasswordConfirmation(v string) {
o.PasswordConfirmation.Set(&v)
}
// SetPasswordConfirmationNil sets the value for PasswordConfirmation to be an explicit nil
func (o *HostConfigResource) SetPasswordConfirmationNil() {
o.PasswordConfirmation.Set(nil)
}
// UnsetPasswordConfirmation ensures that no value is present for PasswordConfirmation, not even an explicit nil
func (o *HostConfigResource) UnsetPasswordConfirmation() {
o.PasswordConfirmation.Unset()
}
// GetLogLevel returns the LogLevel field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetLogLevel() string {
if o == nil || IsNil(o.LogLevel.Get()) {
var ret string
return ret
}
return *o.LogLevel.Get()
}
// GetLogLevelOk returns a tuple with the LogLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetLogLevelOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.LogLevel.Get(), o.LogLevel.IsSet()
}
// HasLogLevel returns a boolean if a field has been set.
func (o *HostConfigResource) HasLogLevel() bool {
if o != nil && o.LogLevel.IsSet() {
return true
}
return false
}
// SetLogLevel gets a reference to the given NullableString and assigns it to the LogLevel field.
func (o *HostConfigResource) SetLogLevel(v string) {
o.LogLevel.Set(&v)
}
// SetLogLevelNil sets the value for LogLevel to be an explicit nil
func (o *HostConfigResource) SetLogLevelNil() {
o.LogLevel.Set(nil)
}
// UnsetLogLevel ensures that no value is present for LogLevel, not even an explicit nil
func (o *HostConfigResource) UnsetLogLevel() {
o.LogLevel.Unset()
}
// GetConsoleLogLevel returns the ConsoleLogLevel field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetConsoleLogLevel() string {
if o == nil || IsNil(o.ConsoleLogLevel.Get()) {
var ret string
return ret
}
return *o.ConsoleLogLevel.Get()
}
// GetConsoleLogLevelOk returns a tuple with the ConsoleLogLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetConsoleLogLevelOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ConsoleLogLevel.Get(), o.ConsoleLogLevel.IsSet()
}
// HasConsoleLogLevel returns a boolean if a field has been set.
func (o *HostConfigResource) HasConsoleLogLevel() bool {
if o != nil && o.ConsoleLogLevel.IsSet() {
return true
}
return false
}
// SetConsoleLogLevel gets a reference to the given NullableString and assigns it to the ConsoleLogLevel field.
func (o *HostConfigResource) SetConsoleLogLevel(v string) {
o.ConsoleLogLevel.Set(&v)
}
// SetConsoleLogLevelNil sets the value for ConsoleLogLevel to be an explicit nil
func (o *HostConfigResource) SetConsoleLogLevelNil() {
o.ConsoleLogLevel.Set(nil)
}
// UnsetConsoleLogLevel ensures that no value is present for ConsoleLogLevel, not even an explicit nil
func (o *HostConfigResource) UnsetConsoleLogLevel() {
o.ConsoleLogLevel.Unset()
}
// GetBranch returns the Branch field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetBranch() string {
if o == nil || IsNil(o.Branch.Get()) {
var ret string
return ret
}
return *o.Branch.Get()
}
// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetBranchOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Branch.Get(), o.Branch.IsSet()
}
// HasBranch returns a boolean if a field has been set.
func (o *HostConfigResource) HasBranch() bool {
if o != nil && o.Branch.IsSet() {
return true
}
return false
}
// SetBranch gets a reference to the given NullableString and assigns it to the Branch field.
func (o *HostConfigResource) SetBranch(v string) {
o.Branch.Set(&v)
}
// SetBranchNil sets the value for Branch to be an explicit nil
func (o *HostConfigResource) SetBranchNil() {
o.Branch.Set(nil)
}
// UnsetBranch ensures that no value is present for Branch, not even an explicit nil
func (o *HostConfigResource) UnsetBranch() {
o.Branch.Unset()
}
// GetApiKey returns the ApiKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetApiKey() string {
if o == nil || IsNil(o.ApiKey.Get()) {
var ret string
return ret
}
return *o.ApiKey.Get()
}
// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetApiKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApiKey.Get(), o.ApiKey.IsSet()
}
// HasApiKey returns a boolean if a field has been set.
func (o *HostConfigResource) HasApiKey() bool {
if o != nil && o.ApiKey.IsSet() {
return true
}
return false
}
// SetApiKey gets a reference to the given NullableString and assigns it to the ApiKey field.
func (o *HostConfigResource) SetApiKey(v string) {
o.ApiKey.Set(&v)
}
// SetApiKeyNil sets the value for ApiKey to be an explicit nil
func (o *HostConfigResource) SetApiKeyNil() {
o.ApiKey.Set(nil)
}
// UnsetApiKey ensures that no value is present for ApiKey, not even an explicit nil
func (o *HostConfigResource) UnsetApiKey() {
o.ApiKey.Unset()
}
// GetSslCertPath returns the SslCertPath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetSslCertPath() string {
if o == nil || IsNil(o.SslCertPath.Get()) {
var ret string
return ret
}
return *o.SslCertPath.Get()
}
// GetSslCertPathOk returns a tuple with the SslCertPath field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetSslCertPathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SslCertPath.Get(), o.SslCertPath.IsSet()
}
// HasSslCertPath returns a boolean if a field has been set.
func (o *HostConfigResource) HasSslCertPath() bool {
if o != nil && o.SslCertPath.IsSet() {
return true
}
return false
}
// SetSslCertPath gets a reference to the given NullableString and assigns it to the SslCertPath field.
func (o *HostConfigResource) SetSslCertPath(v string) {
o.SslCertPath.Set(&v)
}
// SetSslCertPathNil sets the value for SslCertPath to be an explicit nil
func (o *HostConfigResource) SetSslCertPathNil() {
o.SslCertPath.Set(nil)
}
// UnsetSslCertPath ensures that no value is present for SslCertPath, not even an explicit nil
func (o *HostConfigResource) UnsetSslCertPath() {
o.SslCertPath.Unset()
}
// GetSslCertPassword returns the SslCertPassword field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetSslCertPassword() string {
if o == nil || IsNil(o.SslCertPassword.Get()) {
var ret string
return ret
}
return *o.SslCertPassword.Get()
}
// GetSslCertPasswordOk returns a tuple with the SslCertPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetSslCertPasswordOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SslCertPassword.Get(), o.SslCertPassword.IsSet()
}
// HasSslCertPassword returns a boolean if a field has been set.
func (o *HostConfigResource) HasSslCertPassword() bool {
if o != nil && o.SslCertPassword.IsSet() {
return true
}
return false
}
// SetSslCertPassword gets a reference to the given NullableString and assigns it to the SslCertPassword field.
func (o *HostConfigResource) SetSslCertPassword(v string) {
o.SslCertPassword.Set(&v)
}
// SetSslCertPasswordNil sets the value for SslCertPassword to be an explicit nil
func (o *HostConfigResource) SetSslCertPasswordNil() {
o.SslCertPassword.Set(nil)
}
// UnsetSslCertPassword ensures that no value is present for SslCertPassword, not even an explicit nil
func (o *HostConfigResource) UnsetSslCertPassword() {
o.SslCertPassword.Unset()
}
// GetUrlBase returns the UrlBase field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetUrlBase() string {
if o == nil || IsNil(o.UrlBase.Get()) {
var ret string
return ret
}
return *o.UrlBase.Get()
}
// GetUrlBaseOk returns a tuple with the UrlBase field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetUrlBaseOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UrlBase.Get(), o.UrlBase.IsSet()
}
// HasUrlBase returns a boolean if a field has been set.
func (o *HostConfigResource) HasUrlBase() bool {
if o != nil && o.UrlBase.IsSet() {
return true
}
return false
}
// SetUrlBase gets a reference to the given NullableString and assigns it to the UrlBase field.
func (o *HostConfigResource) SetUrlBase(v string) {
o.UrlBase.Set(&v)
}
// SetUrlBaseNil sets the value for UrlBase to be an explicit nil
func (o *HostConfigResource) SetUrlBaseNil() {
o.UrlBase.Set(nil)
}
// UnsetUrlBase ensures that no value is present for UrlBase, not even an explicit nil
func (o *HostConfigResource) UnsetUrlBase() {
o.UrlBase.Unset()
}
// GetInstanceName returns the InstanceName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetInstanceName() string {
if o == nil || IsNil(o.InstanceName.Get()) {
var ret string
return ret
}
return *o.InstanceName.Get()
}
// GetInstanceNameOk returns a tuple with the InstanceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetInstanceNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.InstanceName.Get(), o.InstanceName.IsSet()
}
// HasInstanceName returns a boolean if a field has been set.
func (o *HostConfigResource) HasInstanceName() bool {
if o != nil && o.InstanceName.IsSet() {
return true
}
return false
}
// SetInstanceName gets a reference to the given NullableString and assigns it to the InstanceName field.
func (o *HostConfigResource) SetInstanceName(v string) {
o.InstanceName.Set(&v)
}
// SetInstanceNameNil sets the value for InstanceName to be an explicit nil
func (o *HostConfigResource) SetInstanceNameNil() {
o.InstanceName.Set(nil)
}
// UnsetInstanceName ensures that no value is present for InstanceName, not even an explicit nil
func (o *HostConfigResource) UnsetInstanceName() {
o.InstanceName.Unset()
}
// GetApplicationUrl returns the ApplicationUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetApplicationUrl() string {
if o == nil || IsNil(o.ApplicationUrl.Get()) {
var ret string
return ret
}
return *o.ApplicationUrl.Get()
}
// GetApplicationUrlOk returns a tuple with the ApplicationUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetApplicationUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApplicationUrl.Get(), o.ApplicationUrl.IsSet()
}
// HasApplicationUrl returns a boolean if a field has been set.
func (o *HostConfigResource) HasApplicationUrl() bool {
if o != nil && o.ApplicationUrl.IsSet() {
return true
}
return false
}
// SetApplicationUrl gets a reference to the given NullableString and assigns it to the ApplicationUrl field.
func (o *HostConfigResource) SetApplicationUrl(v string) {
o.ApplicationUrl.Set(&v)
}
// SetApplicationUrlNil sets the value for ApplicationUrl to be an explicit nil
func (o *HostConfigResource) SetApplicationUrlNil() {
o.ApplicationUrl.Set(nil)
}
// UnsetApplicationUrl ensures that no value is present for ApplicationUrl, not even an explicit nil
func (o *HostConfigResource) UnsetApplicationUrl() {
o.ApplicationUrl.Unset()
}
// GetUpdateAutomatically returns the UpdateAutomatically field value if set, zero value otherwise.
func (o *HostConfigResource) GetUpdateAutomatically() bool {
if o == nil || IsNil(o.UpdateAutomatically) {
var ret bool
return ret
}
return *o.UpdateAutomatically
}
// GetUpdateAutomaticallyOk returns a tuple with the UpdateAutomatically field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetUpdateAutomaticallyOk() (*bool, bool) {
if o == nil || IsNil(o.UpdateAutomatically) {
return nil, false
}
return o.UpdateAutomatically, true
}
// HasUpdateAutomatically returns a boolean if a field has been set.
func (o *HostConfigResource) HasUpdateAutomatically() bool {
if o != nil && !IsNil(o.UpdateAutomatically) {
return true
}
return false
}
// SetUpdateAutomatically gets a reference to the given bool and assigns it to the UpdateAutomatically field.
func (o *HostConfigResource) SetUpdateAutomatically(v bool) {
o.UpdateAutomatically = &v
}
// GetUpdateMechanism returns the UpdateMechanism field value if set, zero value otherwise.
func (o *HostConfigResource) GetUpdateMechanism() UpdateMechanism {
if o == nil || IsNil(o.UpdateMechanism) {
var ret UpdateMechanism
return ret
}
return *o.UpdateMechanism
}
// GetUpdateMechanismOk returns a tuple with the UpdateMechanism field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetUpdateMechanismOk() (*UpdateMechanism, bool) {
if o == nil || IsNil(o.UpdateMechanism) {
return nil, false
}
return o.UpdateMechanism, true
}
// HasUpdateMechanism returns a boolean if a field has been set.
func (o *HostConfigResource) HasUpdateMechanism() bool {
if o != nil && !IsNil(o.UpdateMechanism) {
return true
}
return false
}
// SetUpdateMechanism gets a reference to the given UpdateMechanism and assigns it to the UpdateMechanism field.
func (o *HostConfigResource) SetUpdateMechanism(v UpdateMechanism) {
o.UpdateMechanism = &v
}
// GetUpdateScriptPath returns the UpdateScriptPath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HostConfigResource) GetUpdateScriptPath() string {
if o == nil || IsNil(o.UpdateScriptPath.Get()) {
var ret string
return ret
}
return *o.UpdateScriptPath.Get()
}
// GetUpdateScriptPathOk returns a tuple with the UpdateScriptPath field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *HostConfigResource) GetUpdateScriptPathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UpdateScriptPath.Get(), o.UpdateScriptPath.IsSet()
}
// HasUpdateScriptPath returns a boolean if a field has been set.
func (o *HostConfigResource) HasUpdateScriptPath() bool {
if o != nil && o.UpdateScriptPath.IsSet() {
return true
}
return false
}
// SetUpdateScriptPath gets a reference to the given NullableString and assigns it to the UpdateScriptPath field.
func (o *HostConfigResource) SetUpdateScriptPath(v string) {
o.UpdateScriptPath.Set(&v)
}
// SetUpdateScriptPathNil sets the value for UpdateScriptPath to be an explicit nil
func (o *HostConfigResource) SetUpdateScriptPathNil() {
o.UpdateScriptPath.Set(nil)
}
// UnsetUpdateScriptPath ensures that no value is present for UpdateScriptPath, not even an explicit nil
func (o *HostConfigResource) UnsetUpdateScriptPath() {
o.UpdateScriptPath.Unset()
}
// GetProxyEnabled returns the ProxyEnabled field value if set, zero value otherwise.
func (o *HostConfigResource) GetProxyEnabled() bool {
if o == nil || IsNil(o.ProxyEnabled) {
var ret bool
return ret
}
return *o.ProxyEnabled
}
// GetProxyEnabledOk returns a tuple with the ProxyEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HostConfigResource) GetProxyEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.ProxyEnabled) {
return nil, false
}
return o.ProxyEnabled, true