This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel_service.go
2115 lines (1818 loc) · 58.2 KB
/
model_service.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
/*
* runZero API
*
* runZero Network Discovery API
*
* API version: 1.0.4
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
import (
"encoding/json"
)
// Service struct for Service
type Service struct {
ServiceId string `json:"service_id"`
ServiceAssetId *string `json:"service_asset_id,omitempty"`
ServiceCreatedAt *int64 `json:"service_created_at,omitempty"`
ServiceUpdatedAt *int64 `json:"service_updated_at,omitempty"`
ServiceAddress *string `json:"service_address,omitempty"`
ServiceTransport *string `json:"service_transport,omitempty"`
ServiceVhost *string `json:"service_vhost,omitempty"`
ServicePort *string `json:"service_port,omitempty"`
ServiceData *map[string]string `json:"service_data,omitempty"`
ServiceProtocol *string `json:"service_protocol,omitempty"`
ServiceSummary *string `json:"service_summary,omitempty"`
ServiceScreenshotLink *string `json:"service_screenshot_link,omitempty"`
ServiceLink *string `json:"service_link,omitempty"`
Id string `json:"id"`
CreatedAt *int64 `json:"created_at,omitempty"`
UpdatedAt *int64 `json:"updated_at,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
SiteId *string `json:"site_id,omitempty"`
Alive *bool `json:"alive,omitempty"`
FirstSeen *int64 `json:"first_seen,omitempty"`
LastSeen *int64 `json:"last_seen,omitempty"`
DetectedBy *string `json:"detected_by,omitempty"`
Type *string `json:"type,omitempty"`
Os *string `json:"os,omitempty"`
OsVersion *string `json:"os_version,omitempty"`
Hw *string `json:"hw,omitempty"`
Addresses *[]string `json:"addresses,omitempty"`
AddressesExtra *[]string `json:"addresses_extra,omitempty"`
Macs *[]string `json:"macs,omitempty"`
MacVendors *[]string `json:"mac_vendors,omitempty"`
Names *[]string `json:"names,omitempty"`
Domains *[]string `json:"domains,omitempty"`
ServiceCount *int64 `json:"service_count,omitempty"`
ServiceCountTcp *int64 `json:"service_count_tcp,omitempty"`
ServiceCountUdp *int64 `json:"service_count_udp,omitempty"`
ServiceCountArp *int64 `json:"service_count_arp,omitempty"`
ServiceCountIcmp *int64 `json:"service_count_icmp,omitempty"`
LowestTtl *int64 `json:"lowest_ttl,omitempty"`
LowestRtt *int64 `json:"lowest_rtt,omitempty"`
LastAgentId *string `json:"last_agent_id,omitempty"`
LastTaskId *string `json:"last_task_id,omitempty"`
NewestMac *string `json:"newest_mac,omitempty"`
NewestMacVendor *string `json:"newest_mac_vendor,omitempty"`
NewestMacAge *int64 `json:"newest_mac_age,omitempty"`
Comments *string `json:"comments,omitempty"`
ServicePortsTcp *[]string `json:"service_ports_tcp,omitempty"`
ServicePortsUdp *[]string `json:"service_ports_udp,omitempty"`
ServicePortsProtocols *[]string `json:"service_ports_protocols,omitempty"`
ServicePortsProducts *[]string `json:"service_ports_products,omitempty"`
OrgName *string `json:"org_name,omitempty"`
SiteName *string `json:"site_name,omitempty"`
AgentName *string `json:"agent_name,omitempty"`
Tags *map[string]string `json:"tags,omitempty"`
Services *map[string]map[string]string `json:"services,omitempty"`
Rtts *map[string]map[string]interface{} `json:"rtts,omitempty"`
Credentials *map[string]map[string]bool `json:"credentials,omitempty"`
Attributes *map[string]string `json:"attributes,omitempty"`
}
// NewService instantiates a new Service 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 NewService(serviceId string, id string) *Service {
this := Service{}
this.ServiceId = serviceId
this.Id = id
return &this
}
// NewServiceWithDefaults instantiates a new Service 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 NewServiceWithDefaults() *Service {
this := Service{}
return &this
}
// GetServiceId returns the ServiceId field value
func (o *Service) GetServiceId() string {
if o == nil {
var ret string
return ret
}
return o.ServiceId
}
// GetServiceIdOk returns a tuple with the ServiceId field value
// and a boolean to check if the value has been set.
func (o *Service) GetServiceIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ServiceId, true
}
// SetServiceId sets field value
func (o *Service) SetServiceId(v string) {
o.ServiceId = v
}
// GetServiceAssetId returns the ServiceAssetId field value if set, zero value otherwise.
func (o *Service) GetServiceAssetId() string {
if o == nil || o.ServiceAssetId == nil {
var ret string
return ret
}
return *o.ServiceAssetId
}
// GetServiceAssetIdOk returns a tuple with the ServiceAssetId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceAssetIdOk() (*string, bool) {
if o == nil || o.ServiceAssetId == nil {
return nil, false
}
return o.ServiceAssetId, true
}
// HasServiceAssetId returns a boolean if a field has been set.
func (o *Service) HasServiceAssetId() bool {
if o != nil && o.ServiceAssetId != nil {
return true
}
return false
}
// SetServiceAssetId gets a reference to the given string and assigns it to the ServiceAssetId field.
func (o *Service) SetServiceAssetId(v string) {
o.ServiceAssetId = &v
}
// GetServiceCreatedAt returns the ServiceCreatedAt field value if set, zero value otherwise.
func (o *Service) GetServiceCreatedAt() int64 {
if o == nil || o.ServiceCreatedAt == nil {
var ret int64
return ret
}
return *o.ServiceCreatedAt
}
// GetServiceCreatedAtOk returns a tuple with the ServiceCreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceCreatedAtOk() (*int64, bool) {
if o == nil || o.ServiceCreatedAt == nil {
return nil, false
}
return o.ServiceCreatedAt, true
}
// HasServiceCreatedAt returns a boolean if a field has been set.
func (o *Service) HasServiceCreatedAt() bool {
if o != nil && o.ServiceCreatedAt != nil {
return true
}
return false
}
// SetServiceCreatedAt gets a reference to the given int64 and assigns it to the ServiceCreatedAt field.
func (o *Service) SetServiceCreatedAt(v int64) {
o.ServiceCreatedAt = &v
}
// GetServiceUpdatedAt returns the ServiceUpdatedAt field value if set, zero value otherwise.
func (o *Service) GetServiceUpdatedAt() int64 {
if o == nil || o.ServiceUpdatedAt == nil {
var ret int64
return ret
}
return *o.ServiceUpdatedAt
}
// GetServiceUpdatedAtOk returns a tuple with the ServiceUpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceUpdatedAtOk() (*int64, bool) {
if o == nil || o.ServiceUpdatedAt == nil {
return nil, false
}
return o.ServiceUpdatedAt, true
}
// HasServiceUpdatedAt returns a boolean if a field has been set.
func (o *Service) HasServiceUpdatedAt() bool {
if o != nil && o.ServiceUpdatedAt != nil {
return true
}
return false
}
// SetServiceUpdatedAt gets a reference to the given int64 and assigns it to the ServiceUpdatedAt field.
func (o *Service) SetServiceUpdatedAt(v int64) {
o.ServiceUpdatedAt = &v
}
// GetServiceAddress returns the ServiceAddress field value if set, zero value otherwise.
func (o *Service) GetServiceAddress() string {
if o == nil || o.ServiceAddress == nil {
var ret string
return ret
}
return *o.ServiceAddress
}
// GetServiceAddressOk returns a tuple with the ServiceAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceAddressOk() (*string, bool) {
if o == nil || o.ServiceAddress == nil {
return nil, false
}
return o.ServiceAddress, true
}
// HasServiceAddress returns a boolean if a field has been set.
func (o *Service) HasServiceAddress() bool {
if o != nil && o.ServiceAddress != nil {
return true
}
return false
}
// SetServiceAddress gets a reference to the given string and assigns it to the ServiceAddress field.
func (o *Service) SetServiceAddress(v string) {
o.ServiceAddress = &v
}
// GetServiceTransport returns the ServiceTransport field value if set, zero value otherwise.
func (o *Service) GetServiceTransport() string {
if o == nil || o.ServiceTransport == nil {
var ret string
return ret
}
return *o.ServiceTransport
}
// GetServiceTransportOk returns a tuple with the ServiceTransport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceTransportOk() (*string, bool) {
if o == nil || o.ServiceTransport == nil {
return nil, false
}
return o.ServiceTransport, true
}
// HasServiceTransport returns a boolean if a field has been set.
func (o *Service) HasServiceTransport() bool {
if o != nil && o.ServiceTransport != nil {
return true
}
return false
}
// SetServiceTransport gets a reference to the given string and assigns it to the ServiceTransport field.
func (o *Service) SetServiceTransport(v string) {
o.ServiceTransport = &v
}
// GetServiceVhost returns the ServiceVhost field value if set, zero value otherwise.
func (o *Service) GetServiceVhost() string {
if o == nil || o.ServiceVhost == nil {
var ret string
return ret
}
return *o.ServiceVhost
}
// GetServiceVhostOk returns a tuple with the ServiceVhost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceVhostOk() (*string, bool) {
if o == nil || o.ServiceVhost == nil {
return nil, false
}
return o.ServiceVhost, true
}
// HasServiceVhost returns a boolean if a field has been set.
func (o *Service) HasServiceVhost() bool {
if o != nil && o.ServiceVhost != nil {
return true
}
return false
}
// SetServiceVhost gets a reference to the given string and assigns it to the ServiceVhost field.
func (o *Service) SetServiceVhost(v string) {
o.ServiceVhost = &v
}
// GetServicePort returns the ServicePort field value if set, zero value otherwise.
func (o *Service) GetServicePort() string {
if o == nil || o.ServicePort == nil {
var ret string
return ret
}
return *o.ServicePort
}
// GetServicePortOk returns a tuple with the ServicePort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServicePortOk() (*string, bool) {
if o == nil || o.ServicePort == nil {
return nil, false
}
return o.ServicePort, true
}
// HasServicePort returns a boolean if a field has been set.
func (o *Service) HasServicePort() bool {
if o != nil && o.ServicePort != nil {
return true
}
return false
}
// SetServicePort gets a reference to the given string and assigns it to the ServicePort field.
func (o *Service) SetServicePort(v string) {
o.ServicePort = &v
}
// GetServiceData returns the ServiceData field value if set, zero value otherwise.
func (o *Service) GetServiceData() map[string]string {
if o == nil || o.ServiceData == nil {
var ret map[string]string
return ret
}
return *o.ServiceData
}
// GetServiceDataOk returns a tuple with the ServiceData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceDataOk() (*map[string]string, bool) {
if o == nil || o.ServiceData == nil {
return nil, false
}
return o.ServiceData, true
}
// HasServiceData returns a boolean if a field has been set.
func (o *Service) HasServiceData() bool {
if o != nil && o.ServiceData != nil {
return true
}
return false
}
// SetServiceData gets a reference to the given map[string]string and assigns it to the ServiceData field.
func (o *Service) SetServiceData(v map[string]string) {
o.ServiceData = &v
}
// GetServiceProtocol returns the ServiceProtocol field value if set, zero value otherwise.
func (o *Service) GetServiceProtocol() string {
if o == nil || o.ServiceProtocol == nil {
var ret string
return ret
}
return *o.ServiceProtocol
}
// GetServiceProtocolOk returns a tuple with the ServiceProtocol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceProtocolOk() (*string, bool) {
if o == nil || o.ServiceProtocol == nil {
return nil, false
}
return o.ServiceProtocol, true
}
// HasServiceProtocol returns a boolean if a field has been set.
func (o *Service) HasServiceProtocol() bool {
if o != nil && o.ServiceProtocol != nil {
return true
}
return false
}
// SetServiceProtocol gets a reference to the given string and assigns it to the ServiceProtocol field.
func (o *Service) SetServiceProtocol(v string) {
o.ServiceProtocol = &v
}
// GetServiceSummary returns the ServiceSummary field value if set, zero value otherwise.
func (o *Service) GetServiceSummary() string {
if o == nil || o.ServiceSummary == nil {
var ret string
return ret
}
return *o.ServiceSummary
}
// GetServiceSummaryOk returns a tuple with the ServiceSummary field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceSummaryOk() (*string, bool) {
if o == nil || o.ServiceSummary == nil {
return nil, false
}
return o.ServiceSummary, true
}
// HasServiceSummary returns a boolean if a field has been set.
func (o *Service) HasServiceSummary() bool {
if o != nil && o.ServiceSummary != nil {
return true
}
return false
}
// SetServiceSummary gets a reference to the given string and assigns it to the ServiceSummary field.
func (o *Service) SetServiceSummary(v string) {
o.ServiceSummary = &v
}
// GetServiceScreenshotLink returns the ServiceScreenshotLink field value if set, zero value otherwise.
func (o *Service) GetServiceScreenshotLink() string {
if o == nil || o.ServiceScreenshotLink == nil {
var ret string
return ret
}
return *o.ServiceScreenshotLink
}
// GetServiceScreenshotLinkOk returns a tuple with the ServiceScreenshotLink field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceScreenshotLinkOk() (*string, bool) {
if o == nil || o.ServiceScreenshotLink == nil {
return nil, false
}
return o.ServiceScreenshotLink, true
}
// HasServiceScreenshotLink returns a boolean if a field has been set.
func (o *Service) HasServiceScreenshotLink() bool {
if o != nil && o.ServiceScreenshotLink != nil {
return true
}
return false
}
// SetServiceScreenshotLink gets a reference to the given string and assigns it to the ServiceScreenshotLink field.
func (o *Service) SetServiceScreenshotLink(v string) {
o.ServiceScreenshotLink = &v
}
// GetServiceLink returns the ServiceLink field value if set, zero value otherwise.
func (o *Service) GetServiceLink() string {
if o == nil || o.ServiceLink == nil {
var ret string
return ret
}
return *o.ServiceLink
}
// GetServiceLinkOk returns a tuple with the ServiceLink field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetServiceLinkOk() (*string, bool) {
if o == nil || o.ServiceLink == nil {
return nil, false
}
return o.ServiceLink, true
}
// HasServiceLink returns a boolean if a field has been set.
func (o *Service) HasServiceLink() bool {
if o != nil && o.ServiceLink != nil {
return true
}
return false
}
// SetServiceLink gets a reference to the given string and assigns it to the ServiceLink field.
func (o *Service) SetServiceLink(v string) {
o.ServiceLink = &v
}
// GetId returns the Id field value
func (o *Service) 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 *Service) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *Service) SetId(v string) {
o.Id = v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *Service) GetCreatedAt() int64 {
if o == nil || o.CreatedAt == nil {
var ret int64
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetCreatedAtOk() (*int64, bool) {
if o == nil || o.CreatedAt == nil {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *Service) HasCreatedAt() bool {
if o != nil && o.CreatedAt != nil {
return true
}
return false
}
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *Service) SetCreatedAt(v int64) {
o.CreatedAt = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *Service) GetUpdatedAt() int64 {
if o == nil || o.UpdatedAt == nil {
var ret int64
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetUpdatedAtOk() (*int64, bool) {
if o == nil || o.UpdatedAt == nil {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *Service) HasUpdatedAt() bool {
if o != nil && o.UpdatedAt != nil {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
func (o *Service) SetUpdatedAt(v int64) {
o.UpdatedAt = &v
}
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
func (o *Service) GetOrganizationId() string {
if o == nil || o.OrganizationId == nil {
var ret string
return ret
}
return *o.OrganizationId
}
// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetOrganizationIdOk() (*string, bool) {
if o == nil || o.OrganizationId == nil {
return nil, false
}
return o.OrganizationId, true
}
// HasOrganizationId returns a boolean if a field has been set.
func (o *Service) HasOrganizationId() bool {
if o != nil && o.OrganizationId != nil {
return true
}
return false
}
// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
func (o *Service) SetOrganizationId(v string) {
o.OrganizationId = &v
}
// GetSiteId returns the SiteId field value if set, zero value otherwise.
func (o *Service) GetSiteId() string {
if o == nil || o.SiteId == nil {
var ret string
return ret
}
return *o.SiteId
}
// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetSiteIdOk() (*string, bool) {
if o == nil || o.SiteId == nil {
return nil, false
}
return o.SiteId, true
}
// HasSiteId returns a boolean if a field has been set.
func (o *Service) HasSiteId() bool {
if o != nil && o.SiteId != nil {
return true
}
return false
}
// SetSiteId gets a reference to the given string and assigns it to the SiteId field.
func (o *Service) SetSiteId(v string) {
o.SiteId = &v
}
// GetAlive returns the Alive field value if set, zero value otherwise.
func (o *Service) GetAlive() bool {
if o == nil || o.Alive == nil {
var ret bool
return ret
}
return *o.Alive
}
// GetAliveOk returns a tuple with the Alive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetAliveOk() (*bool, bool) {
if o == nil || o.Alive == nil {
return nil, false
}
return o.Alive, true
}
// HasAlive returns a boolean if a field has been set.
func (o *Service) HasAlive() bool {
if o != nil && o.Alive != nil {
return true
}
return false
}
// SetAlive gets a reference to the given bool and assigns it to the Alive field.
func (o *Service) SetAlive(v bool) {
o.Alive = &v
}
// GetFirstSeen returns the FirstSeen field value if set, zero value otherwise.
func (o *Service) GetFirstSeen() int64 {
if o == nil || o.FirstSeen == nil {
var ret int64
return ret
}
return *o.FirstSeen
}
// GetFirstSeenOk returns a tuple with the FirstSeen field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetFirstSeenOk() (*int64, bool) {
if o == nil || o.FirstSeen == nil {
return nil, false
}
return o.FirstSeen, true
}
// HasFirstSeen returns a boolean if a field has been set.
func (o *Service) HasFirstSeen() bool {
if o != nil && o.FirstSeen != nil {
return true
}
return false
}
// SetFirstSeen gets a reference to the given int64 and assigns it to the FirstSeen field.
func (o *Service) SetFirstSeen(v int64) {
o.FirstSeen = &v
}
// GetLastSeen returns the LastSeen field value if set, zero value otherwise.
func (o *Service) GetLastSeen() int64 {
if o == nil || o.LastSeen == nil {
var ret int64
return ret
}
return *o.LastSeen
}
// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetLastSeenOk() (*int64, bool) {
if o == nil || o.LastSeen == nil {
return nil, false
}
return o.LastSeen, true
}
// HasLastSeen returns a boolean if a field has been set.
func (o *Service) HasLastSeen() bool {
if o != nil && o.LastSeen != nil {
return true
}
return false
}
// SetLastSeen gets a reference to the given int64 and assigns it to the LastSeen field.
func (o *Service) SetLastSeen(v int64) {
o.LastSeen = &v
}
// GetDetectedBy returns the DetectedBy field value if set, zero value otherwise.
func (o *Service) GetDetectedBy() string {
if o == nil || o.DetectedBy == nil {
var ret string
return ret
}
return *o.DetectedBy
}
// GetDetectedByOk returns a tuple with the DetectedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetDetectedByOk() (*string, bool) {
if o == nil || o.DetectedBy == nil {
return nil, false
}
return o.DetectedBy, true
}
// HasDetectedBy returns a boolean if a field has been set.
func (o *Service) HasDetectedBy() bool {
if o != nil && o.DetectedBy != nil {
return true
}
return false
}
// SetDetectedBy gets a reference to the given string and assigns it to the DetectedBy field.
func (o *Service) SetDetectedBy(v string) {
o.DetectedBy = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *Service) GetType() string {
if o == nil || o.Type == nil {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetTypeOk() (*string, bool) {
if o == nil || o.Type == nil {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *Service) HasType() bool {
if o != nil && o.Type != nil {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *Service) SetType(v string) {
o.Type = &v
}
// GetOs returns the Os field value if set, zero value otherwise.
func (o *Service) GetOs() string {
if o == nil || o.Os == nil {
var ret string
return ret
}
return *o.Os
}
// GetOsOk returns a tuple with the Os field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetOsOk() (*string, bool) {
if o == nil || o.Os == nil {
return nil, false
}
return o.Os, true
}
// HasOs returns a boolean if a field has been set.
func (o *Service) HasOs() bool {
if o != nil && o.Os != nil {
return true
}
return false
}
// SetOs gets a reference to the given string and assigns it to the Os field.
func (o *Service) SetOs(v string) {
o.Os = &v
}
// GetOsVersion returns the OsVersion field value if set, zero value otherwise.
func (o *Service) GetOsVersion() string {
if o == nil || o.OsVersion == nil {
var ret string
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 *Service) GetOsVersionOk() (*string, 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 *Service) HasOsVersion() bool {
if o != nil && o.OsVersion != nil {
return true
}
return false
}
// SetOsVersion gets a reference to the given string and assigns it to the OsVersion field.
func (o *Service) SetOsVersion(v string) {
o.OsVersion = &v
}
// GetHw returns the Hw field value if set, zero value otherwise.
func (o *Service) GetHw() string {
if o == nil || o.Hw == nil {
var ret string
return ret
}
return *o.Hw
}
// GetHwOk returns a tuple with the Hw field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetHwOk() (*string, bool) {
if o == nil || o.Hw == nil {
return nil, false
}
return o.Hw, true
}
// HasHw returns a boolean if a field has been set.
func (o *Service) HasHw() bool {
if o != nil && o.Hw != nil {
return true
}
return false
}
// SetHw gets a reference to the given string and assigns it to the Hw field.
func (o *Service) SetHw(v string) {
o.Hw = &v
}
// GetAddresses returns the Addresses field value if set, zero value otherwise.
func (o *Service) GetAddresses() []string {
if o == nil || o.Addresses == nil {
var ret []string
return ret
}
return *o.Addresses
}
// GetAddressesOk returns a tuple with the Addresses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetAddressesOk() (*[]string, bool) {
if o == nil || o.Addresses == nil {
return nil, false
}
return o.Addresses, true
}
// HasAddresses returns a boolean if a field has been set.
func (o *Service) HasAddresses() bool {
if o != nil && o.Addresses != nil {
return true
}
return false
}
// SetAddresses gets a reference to the given []string and assigns it to the Addresses field.
func (o *Service) SetAddresses(v []string) {
o.Addresses = &v
}
// GetAddressesExtra returns the AddressesExtra field value if set, zero value otherwise.
func (o *Service) GetAddressesExtra() []string {
if o == nil || o.AddressesExtra == nil {
var ret []string
return ret
}
return *o.AddressesExtra
}
// GetAddressesExtraOk returns a tuple with the AddressesExtra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetAddressesExtraOk() (*[]string, bool) {
if o == nil || o.AddressesExtra == nil {
return nil, false
}
return o.AddressesExtra, true
}
// HasAddressesExtra returns a boolean if a field has been set.
func (o *Service) HasAddressesExtra() bool {
if o != nil && o.AddressesExtra != nil {
return true
}
return false
}
// SetAddressesExtra gets a reference to the given []string and assigns it to the AddressesExtra field.
func (o *Service) SetAddressesExtra(v []string) {
o.AddressesExtra = &v
}
// GetMacs returns the Macs field value if set, zero value otherwise.
func (o *Service) GetMacs() []string {
if o == nil || o.Macs == nil {
var ret []string
return ret
}
return *o.Macs
}
// GetMacsOk returns a tuple with the Macs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Service) GetMacsOk() (*[]string, bool) {
if o == nil || o.Macs == nil {
return nil, false
}
return o.Macs, true
}
// HasMacs returns a boolean if a field has been set.
func (o *Service) HasMacs() bool {
if o != nil && o.Macs != nil {
return true
}