/
model_appliance.go
1216 lines (1046 loc) · 38.2 KB
/
model_appliance.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
/*
* Appgate SDP Controller REST API
*
* # About This specification documents the REST API calls for the Appgate SDP Controller. Please refer to the Integration chapter in the manual or contact Appgate support with any questions about this functionality. # Getting Started Requirements for API scripting: - Access to the Admin/API TLS Connection (default port 8443) of a Controller appliance. (https://sdphelp.appgate.com/adminguide/appliance-functions-configure.html?anchor=admin-api) - An API user with relevant permissions. (https://sdphelp.appgate.com/adminguide/administrative-roles-configure.html) - In order to use the simple login API, Admin MFA must be disabled or the API user must be excluded. (https://sdphelp.appgate.com/adminguide/mfa-for-admins.html) # Base path HTTPS requests must be sent to the Admin Interface hostname and port, with **_/admin** path. For example: **https://appgate.company.com:8443/admin** All requests must have the **Accept** header as: **application/vnd.appgate.peer-v15+json** # API Conventions API conventions are important to understand and follow strictly. - While updating objects (via PUT), entire object must be sent with all fields. - For example, in order to add a remedy method to the condition below: ``` { \"id\": \"12699e27-b584-464a-81ee-5b4784b6d425\", \"name\": \"Test\", \"notes\": \"Making a point\", \"tags\": [\"test\", \"tag\"], \"expression\": \"return true;\", \"remedyMethods\": [] } ``` - send the entire object with updated and non-updated fields: ``` { \"id\": \"12699e27-b584-464a-81ee-5b4784b6d425\", \"name\": \"Test\", \"notes\": \"Making a point\", \"tags\": [\"test\", \"tag\"], \"expression\": \"return true;\", \"remedyMethods\": [{\"type\": \"DisplayMessage\", \"message\": \"test message\"}] } ``` - In case Controller returns an error (non-2xx HTTP status code), response body is JSON. The \"message\" field contains information about the error. HTTP 422 \"Unprocessable Entity\" has extra `errors` field to list all the issues with specific fields. - Empty string (\"\") is considered a different value than \"null\" or field being omitted from JSON. Omitting the field is recommend if no value is intended. Empty string (\"\") will be almost always rejected as invalid value. - There are common pattern between many objects: - **Configuration Objects**: There are many objects with common fields, namely \"id\", \"name\", \"notes\", \"created\" and \"updated\". These entities are listed, queried, created, updated and deleted in a similar fashion. - **Distinguished Name**: Users and Devices are identified with what is called Distinguished Names, as used in LDAP. The distinguished format that identifies a device and a user combination is \"CN=\\<Device ID\\>,CN=\\<username\\>,OU=\\<Identity Provider Name\\>\". Some objects have the \"userDistinguishedName\" field, which does not include the CN for Device ID. This identifies a user on every device.
*
* API version: API version 15
* Contact: appgatesdp.support@appgate.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// Appliance struct for Appliance
type Appliance struct {
// ID of the object.
Id string `json:"id"`
// Name of the object.
Name string `json:"name"`
// Notes for the object. Used for documentation purposes.
Notes *string `json:"notes,omitempty"`
// Create date.
Created *time.Time `json:"created,omitempty"`
// Last update date.
Updated *time.Time `json:"updated,omitempty"`
// Array of tags.
Tags *[]string `json:"tags,omitempty"`
// Whether the Appliance is activated or not. If it is not activated, it won't be accessible by the Clients.
Activated *bool `json:"activated,omitempty"`
// Whether the Appliance is pending certificate renewal or not. Should be true for a very short period on certificate renewal.
PendingCertificateRenewal *bool `json:"pendingCertificateRenewal,omitempty"`
// Peer version of the Appliance.
Version *int32 `json:"version,omitempty"`
// Generic hostname of the appliance. Used as linux hostname and to identify within logs. If peerInterface.hostname is changed, this field's value is cleared. When empty, peerInterface.hostname will be used to generate it.
Hostname *string `json:"hostname,omitempty"`
// Site served by the Appliance. Entitlements on this Site will be included in the Entitlement Token for this Appliance. Not useful if Gateway role is not enabled.
Site *string `json:"site,omitempty"`
// Name of the Site for this Appliance. For convenience only.
SiteName *string `json:"siteName,omitempty"`
// Customization assigned to this Appliance.
Customization *string `json:"customization,omitempty"`
// Makes the Appliance to connect to Controller/LogServer/LogForwarders using their clientInterface.httpsPort instead of peerInterface.httpsPort. The Appliance uses SPA to connect. This field is deprecated as of 5.4. It will always be enabled when the support for peerInterface is removed.
ConnectToPeersUsingClientPortWithSpa *bool `json:"connectToPeersUsingClientPortWithSpa,omitempty"`
ClientInterface ApplianceAllOfClientInterface `json:"clientInterface"`
PeerInterface ApplianceAllOfPeerInterface `json:"peerInterface"`
AdminInterface *ApplianceAllOfAdminInterface `json:"adminInterface,omitempty"`
Networking ApplianceAllOfNetworking `json:"networking"`
Ntp *ApplianceAllOfNtp `json:"ntp,omitempty"`
SshServer *ApplianceAllOfSshServer `json:"sshServer,omitempty"`
SnmpServer *ApplianceAllOfSnmpServer `json:"snmpServer,omitempty"`
HealthcheckServer *ApplianceAllOfHealthcheckServer `json:"healthcheckServer,omitempty"`
PrometheusExporter *ApplianceAllOfPrometheusExporter `json:"prometheusExporter,omitempty"`
Ping *ApplianceAllOfPing `json:"ping,omitempty"`
LogServer *ApplianceAllOfLogServer `json:"logServer,omitempty"`
Controller *ApplianceAllOfController `json:"controller,omitempty"`
Gateway *ApplianceAllOfGateway `json:"gateway,omitempty"`
LogForwarder *ApplianceAllOfLogForwarder `json:"logForwarder,omitempty"`
Connector *ApplianceAllOfConnector `json:"connector,omitempty"`
Portal *Portal `json:"portal,omitempty"`
// Rsyslog destination settings to forward appliance logs.
RsyslogDestinations *[]ApplianceAllOfRsyslogDestinations `json:"rsyslogDestinations,omitempty"`
// Hostname aliases. They are added to the Appliance certificate as Subject Alternative Names so it is trusted using different IPs or hostnames. Requires manual certificate renewal to apply changes to the certificate.
HostnameAliases *[]string `json:"hostnameAliases,omitempty"`
}
// NewAppliance instantiates a new Appliance 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 NewAppliance(id string, name string, clientInterface ApplianceAllOfClientInterface, peerInterface ApplianceAllOfPeerInterface, networking ApplianceAllOfNetworking) *Appliance {
this := Appliance{}
this.Id = id
this.Name = name
var connectToPeersUsingClientPortWithSpa bool = true
this.ConnectToPeersUsingClientPortWithSpa = &connectToPeersUsingClientPortWithSpa
this.ClientInterface = clientInterface
this.PeerInterface = peerInterface
this.Networking = networking
return &this
}
// NewApplianceWithDefaults instantiates a new Appliance 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 NewApplianceWithDefaults() *Appliance {
this := Appliance{}
var connectToPeersUsingClientPortWithSpa bool = true
this.ConnectToPeersUsingClientPortWithSpa = &connectToPeersUsingClientPortWithSpa
return &this
}
// GetId returns the Id field value
func (o *Appliance) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *Appliance) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *Appliance) SetId(v string) {
o.Id = v
}
// GetName returns the Name field value
func (o *Appliance) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *Appliance) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *Appliance) SetName(v string) {
o.Name = v
}
// GetNotes returns the Notes field value if set, zero value otherwise.
func (o *Appliance) GetNotes() string {
if o == nil || o.Notes == nil {
var ret string
return ret
}
return *o.Notes
}
// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetNotesOk() (*string, bool) {
if o == nil || o.Notes == nil {
return nil, false
}
return o.Notes, true
}
// HasNotes returns a boolean if a field has been set.
func (o *Appliance) HasNotes() bool {
if o != nil && o.Notes != nil {
return true
}
return false
}
// SetNotes gets a reference to the given string and assigns it to the Notes field.
func (o *Appliance) SetNotes(v string) {
o.Notes = &v
}
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *Appliance) GetCreated() time.Time {
if o == nil || o.Created == nil {
var ret time.Time
return ret
}
return *o.Created
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetCreatedOk() (*time.Time, bool) {
if o == nil || o.Created == nil {
return nil, false
}
return o.Created, true
}
// HasCreated returns a boolean if a field has been set.
func (o *Appliance) HasCreated() bool {
if o != nil && o.Created != nil {
return true
}
return false
}
// SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *Appliance) SetCreated(v time.Time) {
o.Created = &v
}
// GetUpdated returns the Updated field value if set, zero value otherwise.
func (o *Appliance) GetUpdated() time.Time {
if o == nil || o.Updated == nil {
var ret time.Time
return ret
}
return *o.Updated
}
// GetUpdatedOk returns a tuple with the Updated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetUpdatedOk() (*time.Time, bool) {
if o == nil || o.Updated == nil {
return nil, false
}
return o.Updated, true
}
// HasUpdated returns a boolean if a field has been set.
func (o *Appliance) HasUpdated() bool {
if o != nil && o.Updated != nil {
return true
}
return false
}
// SetUpdated gets a reference to the given time.Time and assigns it to the Updated field.
func (o *Appliance) SetUpdated(v time.Time) {
o.Updated = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *Appliance) GetTags() []string {
if o == nil || o.Tags == nil {
var ret []string
return ret
}
return *o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetTagsOk() (*[]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *Appliance) HasTags() bool {
if o != nil && o.Tags != nil {
return true
}
return false
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *Appliance) SetTags(v []string) {
o.Tags = &v
}
// GetActivated returns the Activated field value if set, zero value otherwise.
func (o *Appliance) GetActivated() bool {
if o == nil || o.Activated == nil {
var ret bool
return ret
}
return *o.Activated
}
// GetActivatedOk returns a tuple with the Activated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetActivatedOk() (*bool, bool) {
if o == nil || o.Activated == nil {
return nil, false
}
return o.Activated, true
}
// HasActivated returns a boolean if a field has been set.
func (o *Appliance) HasActivated() bool {
if o != nil && o.Activated != nil {
return true
}
return false
}
// SetActivated gets a reference to the given bool and assigns it to the Activated field.
func (o *Appliance) SetActivated(v bool) {
o.Activated = &v
}
// GetPendingCertificateRenewal returns the PendingCertificateRenewal field value if set, zero value otherwise.
func (o *Appliance) GetPendingCertificateRenewal() bool {
if o == nil || o.PendingCertificateRenewal == nil {
var ret bool
return ret
}
return *o.PendingCertificateRenewal
}
// GetPendingCertificateRenewalOk returns a tuple with the PendingCertificateRenewal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetPendingCertificateRenewalOk() (*bool, bool) {
if o == nil || o.PendingCertificateRenewal == nil {
return nil, false
}
return o.PendingCertificateRenewal, true
}
// HasPendingCertificateRenewal returns a boolean if a field has been set.
func (o *Appliance) HasPendingCertificateRenewal() bool {
if o != nil && o.PendingCertificateRenewal != nil {
return true
}
return false
}
// SetPendingCertificateRenewal gets a reference to the given bool and assigns it to the PendingCertificateRenewal field.
func (o *Appliance) SetPendingCertificateRenewal(v bool) {
o.PendingCertificateRenewal = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *Appliance) GetVersion() int32 {
if o == nil || o.Version == nil {
var ret int32
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetVersionOk() (*int32, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *Appliance) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
}
// SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *Appliance) SetVersion(v int32) {
o.Version = &v
}
// GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *Appliance) GetHostname() string {
if o == nil || o.Hostname == nil {
var ret string
return ret
}
return *o.Hostname
}
// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetHostnameOk() (*string, bool) {
if o == nil || o.Hostname == nil {
return nil, false
}
return o.Hostname, true
}
// HasHostname returns a boolean if a field has been set.
func (o *Appliance) HasHostname() bool {
if o != nil && o.Hostname != nil {
return true
}
return false
}
// SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *Appliance) SetHostname(v string) {
o.Hostname = &v
}
// GetSite returns the Site field value if set, zero value otherwise.
func (o *Appliance) GetSite() string {
if o == nil || o.Site == nil {
var ret string
return ret
}
return *o.Site
}
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetSiteOk() (*string, bool) {
if o == nil || o.Site == nil {
return nil, false
}
return o.Site, true
}
// HasSite returns a boolean if a field has been set.
func (o *Appliance) HasSite() bool {
if o != nil && o.Site != nil {
return true
}
return false
}
// SetSite gets a reference to the given string and assigns it to the Site field.
func (o *Appliance) SetSite(v string) {
o.Site = &v
}
// GetSiteName returns the SiteName field value if set, zero value otherwise.
func (o *Appliance) GetSiteName() string {
if o == nil || o.SiteName == nil {
var ret string
return ret
}
return *o.SiteName
}
// GetSiteNameOk returns a tuple with the SiteName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetSiteNameOk() (*string, bool) {
if o == nil || o.SiteName == nil {
return nil, false
}
return o.SiteName, true
}
// HasSiteName returns a boolean if a field has been set.
func (o *Appliance) HasSiteName() bool {
if o != nil && o.SiteName != nil {
return true
}
return false
}
// SetSiteName gets a reference to the given string and assigns it to the SiteName field.
func (o *Appliance) SetSiteName(v string) {
o.SiteName = &v
}
// GetCustomization returns the Customization field value if set, zero value otherwise.
func (o *Appliance) GetCustomization() string {
if o == nil || o.Customization == nil {
var ret string
return ret
}
return *o.Customization
}
// GetCustomizationOk returns a tuple with the Customization field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetCustomizationOk() (*string, bool) {
if o == nil || o.Customization == nil {
return nil, false
}
return o.Customization, true
}
// HasCustomization returns a boolean if a field has been set.
func (o *Appliance) HasCustomization() bool {
if o != nil && o.Customization != nil {
return true
}
return false
}
// SetCustomization gets a reference to the given string and assigns it to the Customization field.
func (o *Appliance) SetCustomization(v string) {
o.Customization = &v
}
// GetConnectToPeersUsingClientPortWithSpa returns the ConnectToPeersUsingClientPortWithSpa field value if set, zero value otherwise.
func (o *Appliance) GetConnectToPeersUsingClientPortWithSpa() bool {
if o == nil || o.ConnectToPeersUsingClientPortWithSpa == nil {
var ret bool
return ret
}
return *o.ConnectToPeersUsingClientPortWithSpa
}
// GetConnectToPeersUsingClientPortWithSpaOk returns a tuple with the ConnectToPeersUsingClientPortWithSpa field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetConnectToPeersUsingClientPortWithSpaOk() (*bool, bool) {
if o == nil || o.ConnectToPeersUsingClientPortWithSpa == nil {
return nil, false
}
return o.ConnectToPeersUsingClientPortWithSpa, true
}
// HasConnectToPeersUsingClientPortWithSpa returns a boolean if a field has been set.
func (o *Appliance) HasConnectToPeersUsingClientPortWithSpa() bool {
if o != nil && o.ConnectToPeersUsingClientPortWithSpa != nil {
return true
}
return false
}
// SetConnectToPeersUsingClientPortWithSpa gets a reference to the given bool and assigns it to the ConnectToPeersUsingClientPortWithSpa field.
func (o *Appliance) SetConnectToPeersUsingClientPortWithSpa(v bool) {
o.ConnectToPeersUsingClientPortWithSpa = &v
}
// GetClientInterface returns the ClientInterface field value
func (o *Appliance) GetClientInterface() ApplianceAllOfClientInterface {
if o == nil {
var ret ApplianceAllOfClientInterface
return ret
}
return o.ClientInterface
}
// GetClientInterfaceOk returns a tuple with the ClientInterface field value
// and a boolean to check if the value has been set.
func (o *Appliance) GetClientInterfaceOk() (*ApplianceAllOfClientInterface, bool) {
if o == nil {
return nil, false
}
return &o.ClientInterface, true
}
// SetClientInterface sets field value
func (o *Appliance) SetClientInterface(v ApplianceAllOfClientInterface) {
o.ClientInterface = v
}
// GetPeerInterface returns the PeerInterface field value
func (o *Appliance) GetPeerInterface() ApplianceAllOfPeerInterface {
if o == nil {
var ret ApplianceAllOfPeerInterface
return ret
}
return o.PeerInterface
}
// GetPeerInterfaceOk returns a tuple with the PeerInterface field value
// and a boolean to check if the value has been set.
func (o *Appliance) GetPeerInterfaceOk() (*ApplianceAllOfPeerInterface, bool) {
if o == nil {
return nil, false
}
return &o.PeerInterface, true
}
// SetPeerInterface sets field value
func (o *Appliance) SetPeerInterface(v ApplianceAllOfPeerInterface) {
o.PeerInterface = v
}
// GetAdminInterface returns the AdminInterface field value if set, zero value otherwise.
func (o *Appliance) GetAdminInterface() ApplianceAllOfAdminInterface {
if o == nil || o.AdminInterface == nil {
var ret ApplianceAllOfAdminInterface
return ret
}
return *o.AdminInterface
}
// GetAdminInterfaceOk returns a tuple with the AdminInterface field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetAdminInterfaceOk() (*ApplianceAllOfAdminInterface, bool) {
if o == nil || o.AdminInterface == nil {
return nil, false
}
return o.AdminInterface, true
}
// HasAdminInterface returns a boolean if a field has been set.
func (o *Appliance) HasAdminInterface() bool {
if o != nil && o.AdminInterface != nil {
return true
}
return false
}
// SetAdminInterface gets a reference to the given ApplianceAllOfAdminInterface and assigns it to the AdminInterface field.
func (o *Appliance) SetAdminInterface(v ApplianceAllOfAdminInterface) {
o.AdminInterface = &v
}
// GetNetworking returns the Networking field value
func (o *Appliance) GetNetworking() ApplianceAllOfNetworking {
if o == nil {
var ret ApplianceAllOfNetworking
return ret
}
return o.Networking
}
// GetNetworkingOk returns a tuple with the Networking field value
// and a boolean to check if the value has been set.
func (o *Appliance) GetNetworkingOk() (*ApplianceAllOfNetworking, bool) {
if o == nil {
return nil, false
}
return &o.Networking, true
}
// SetNetworking sets field value
func (o *Appliance) SetNetworking(v ApplianceAllOfNetworking) {
o.Networking = v
}
// GetNtp returns the Ntp field value if set, zero value otherwise.
func (o *Appliance) GetNtp() ApplianceAllOfNtp {
if o == nil || o.Ntp == nil {
var ret ApplianceAllOfNtp
return ret
}
return *o.Ntp
}
// GetNtpOk returns a tuple with the Ntp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetNtpOk() (*ApplianceAllOfNtp, bool) {
if o == nil || o.Ntp == nil {
return nil, false
}
return o.Ntp, true
}
// HasNtp returns a boolean if a field has been set.
func (o *Appliance) HasNtp() bool {
if o != nil && o.Ntp != nil {
return true
}
return false
}
// SetNtp gets a reference to the given ApplianceAllOfNtp and assigns it to the Ntp field.
func (o *Appliance) SetNtp(v ApplianceAllOfNtp) {
o.Ntp = &v
}
// GetSshServer returns the SshServer field value if set, zero value otherwise.
func (o *Appliance) GetSshServer() ApplianceAllOfSshServer {
if o == nil || o.SshServer == nil {
var ret ApplianceAllOfSshServer
return ret
}
return *o.SshServer
}
// GetSshServerOk returns a tuple with the SshServer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetSshServerOk() (*ApplianceAllOfSshServer, bool) {
if o == nil || o.SshServer == nil {
return nil, false
}
return o.SshServer, true
}
// HasSshServer returns a boolean if a field has been set.
func (o *Appliance) HasSshServer() bool {
if o != nil && o.SshServer != nil {
return true
}
return false
}
// SetSshServer gets a reference to the given ApplianceAllOfSshServer and assigns it to the SshServer field.
func (o *Appliance) SetSshServer(v ApplianceAllOfSshServer) {
o.SshServer = &v
}
// GetSnmpServer returns the SnmpServer field value if set, zero value otherwise.
func (o *Appliance) GetSnmpServer() ApplianceAllOfSnmpServer {
if o == nil || o.SnmpServer == nil {
var ret ApplianceAllOfSnmpServer
return ret
}
return *o.SnmpServer
}
// GetSnmpServerOk returns a tuple with the SnmpServer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetSnmpServerOk() (*ApplianceAllOfSnmpServer, bool) {
if o == nil || o.SnmpServer == nil {
return nil, false
}
return o.SnmpServer, true
}
// HasSnmpServer returns a boolean if a field has been set.
func (o *Appliance) HasSnmpServer() bool {
if o != nil && o.SnmpServer != nil {
return true
}
return false
}
// SetSnmpServer gets a reference to the given ApplianceAllOfSnmpServer and assigns it to the SnmpServer field.
func (o *Appliance) SetSnmpServer(v ApplianceAllOfSnmpServer) {
o.SnmpServer = &v
}
// GetHealthcheckServer returns the HealthcheckServer field value if set, zero value otherwise.
func (o *Appliance) GetHealthcheckServer() ApplianceAllOfHealthcheckServer {
if o == nil || o.HealthcheckServer == nil {
var ret ApplianceAllOfHealthcheckServer
return ret
}
return *o.HealthcheckServer
}
// GetHealthcheckServerOk returns a tuple with the HealthcheckServer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetHealthcheckServerOk() (*ApplianceAllOfHealthcheckServer, bool) {
if o == nil || o.HealthcheckServer == nil {
return nil, false
}
return o.HealthcheckServer, true
}
// HasHealthcheckServer returns a boolean if a field has been set.
func (o *Appliance) HasHealthcheckServer() bool {
if o != nil && o.HealthcheckServer != nil {
return true
}
return false
}
// SetHealthcheckServer gets a reference to the given ApplianceAllOfHealthcheckServer and assigns it to the HealthcheckServer field.
func (o *Appliance) SetHealthcheckServer(v ApplianceAllOfHealthcheckServer) {
o.HealthcheckServer = &v
}
// GetPrometheusExporter returns the PrometheusExporter field value if set, zero value otherwise.
func (o *Appliance) GetPrometheusExporter() ApplianceAllOfPrometheusExporter {
if o == nil || o.PrometheusExporter == nil {
var ret ApplianceAllOfPrometheusExporter
return ret
}
return *o.PrometheusExporter
}
// GetPrometheusExporterOk returns a tuple with the PrometheusExporter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetPrometheusExporterOk() (*ApplianceAllOfPrometheusExporter, bool) {
if o == nil || o.PrometheusExporter == nil {
return nil, false
}
return o.PrometheusExporter, true
}
// HasPrometheusExporter returns a boolean if a field has been set.
func (o *Appliance) HasPrometheusExporter() bool {
if o != nil && o.PrometheusExporter != nil {
return true
}
return false
}
// SetPrometheusExporter gets a reference to the given ApplianceAllOfPrometheusExporter and assigns it to the PrometheusExporter field.
func (o *Appliance) SetPrometheusExporter(v ApplianceAllOfPrometheusExporter) {
o.PrometheusExporter = &v
}
// GetPing returns the Ping field value if set, zero value otherwise.
func (o *Appliance) GetPing() ApplianceAllOfPing {
if o == nil || o.Ping == nil {
var ret ApplianceAllOfPing
return ret
}
return *o.Ping
}
// GetPingOk returns a tuple with the Ping field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetPingOk() (*ApplianceAllOfPing, bool) {
if o == nil || o.Ping == nil {
return nil, false
}
return o.Ping, true
}
// HasPing returns a boolean if a field has been set.
func (o *Appliance) HasPing() bool {
if o != nil && o.Ping != nil {
return true
}
return false
}
// SetPing gets a reference to the given ApplianceAllOfPing and assigns it to the Ping field.
func (o *Appliance) SetPing(v ApplianceAllOfPing) {
o.Ping = &v
}
// GetLogServer returns the LogServer field value if set, zero value otherwise.
func (o *Appliance) GetLogServer() ApplianceAllOfLogServer {
if o == nil || o.LogServer == nil {
var ret ApplianceAllOfLogServer
return ret
}
return *o.LogServer
}
// GetLogServerOk returns a tuple with the LogServer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetLogServerOk() (*ApplianceAllOfLogServer, bool) {
if o == nil || o.LogServer == nil {
return nil, false
}
return o.LogServer, true
}
// HasLogServer returns a boolean if a field has been set.
func (o *Appliance) HasLogServer() bool {
if o != nil && o.LogServer != nil {
return true
}
return false
}
// SetLogServer gets a reference to the given ApplianceAllOfLogServer and assigns it to the LogServer field.
func (o *Appliance) SetLogServer(v ApplianceAllOfLogServer) {
o.LogServer = &v
}
// GetController returns the Controller field value if set, zero value otherwise.
func (o *Appliance) GetController() ApplianceAllOfController {
if o == nil || o.Controller == nil {
var ret ApplianceAllOfController
return ret
}
return *o.Controller
}
// GetControllerOk returns a tuple with the Controller field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetControllerOk() (*ApplianceAllOfController, bool) {
if o == nil || o.Controller == nil {
return nil, false
}
return o.Controller, true
}
// HasController returns a boolean if a field has been set.
func (o *Appliance) HasController() bool {
if o != nil && o.Controller != nil {
return true
}
return false
}
// SetController gets a reference to the given ApplianceAllOfController and assigns it to the Controller field.
func (o *Appliance) SetController(v ApplianceAllOfController) {
o.Controller = &v
}
// GetGateway returns the Gateway field value if set, zero value otherwise.
func (o *Appliance) GetGateway() ApplianceAllOfGateway {
if o == nil || o.Gateway == nil {
var ret ApplianceAllOfGateway
return ret
}
return *o.Gateway
}
// GetGatewayOk returns a tuple with the Gateway field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetGatewayOk() (*ApplianceAllOfGateway, bool) {
if o == nil || o.Gateway == nil {
return nil, false
}
return o.Gateway, true
}
// HasGateway returns a boolean if a field has been set.
func (o *Appliance) HasGateway() bool {
if o != nil && o.Gateway != nil {
return true
}
return false
}
// SetGateway gets a reference to the given ApplianceAllOfGateway and assigns it to the Gateway field.
func (o *Appliance) SetGateway(v ApplianceAllOfGateway) {
o.Gateway = &v
}
// GetLogForwarder returns the LogForwarder field value if set, zero value otherwise.
func (o *Appliance) GetLogForwarder() ApplianceAllOfLogForwarder {
if o == nil || o.LogForwarder == nil {
var ret ApplianceAllOfLogForwarder
return ret
}
return *o.LogForwarder
}
// GetLogForwarderOk returns a tuple with the LogForwarder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetLogForwarderOk() (*ApplianceAllOfLogForwarder, bool) {
if o == nil || o.LogForwarder == nil {
return nil, false
}
return o.LogForwarder, true
}
// HasLogForwarder returns a boolean if a field has been set.
func (o *Appliance) HasLogForwarder() bool {
if o != nil && o.LogForwarder != nil {
return true
}
return false
}
// SetLogForwarder gets a reference to the given ApplianceAllOfLogForwarder and assigns it to the LogForwarder field.
func (o *Appliance) SetLogForwarder(v ApplianceAllOfLogForwarder) {
o.LogForwarder = &v
}
// GetConnector returns the Connector field value if set, zero value otherwise.
func (o *Appliance) GetConnector() ApplianceAllOfConnector {
if o == nil || o.Connector == nil {
var ret ApplianceAllOfConnector
return ret
}
return *o.Connector
}
// GetConnectorOk returns a tuple with the Connector field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetConnectorOk() (*ApplianceAllOfConnector, bool) {
if o == nil || o.Connector == nil {
return nil, false
}
return o.Connector, true
}
// HasConnector returns a boolean if a field has been set.
func (o *Appliance) HasConnector() bool {
if o != nil && o.Connector != nil {
return true
}
return false
}
// SetConnector gets a reference to the given ApplianceAllOfConnector and assigns it to the Connector field.
func (o *Appliance) SetConnector(v ApplianceAllOfConnector) {
o.Connector = &v
}
// GetPortal returns the Portal field value if set, zero value otherwise.
func (o *Appliance) GetPortal() Portal {
if o == nil || o.Portal == nil {
var ret Portal
return ret
}
return *o.Portal
}
// GetPortalOk returns a tuple with the Portal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Appliance) GetPortalOk() (*Portal, bool) {
if o == nil || o.Portal == nil {
return nil, false
}
return o.Portal, true