How to use Set method of service Package

Best Selenoid code snippet using service.Set

model_service.go

Source:model_service.go Github

copy

Full Screen

...103 return nil, false104 }105 return &o.ServiceId, true106}107// SetServiceId sets field value108func (o *Service) SetServiceId(v string) {109 o.ServiceId = v110}111// GetServiceAssetId returns the ServiceAssetId field value if set, zero value otherwise.112func (o *Service) GetServiceAssetId() string {113 if o == nil || o.ServiceAssetId == nil {114 var ret string115 return ret116 }117 return *o.ServiceAssetId118}119// GetServiceAssetIdOk returns a tuple with the ServiceAssetId field value if set, nil otherwise120// and a boolean to check if the value has been set.121func (o *Service) GetServiceAssetIdOk() (*string, bool) {122 if o == nil || o.ServiceAssetId == nil {123 return nil, false124 }125 return o.ServiceAssetId, true126}127// HasServiceAssetId returns a boolean if a field has been set.128func (o *Service) HasServiceAssetId() bool {129 if o != nil && o.ServiceAssetId != nil {130 return true131 }132 return false133}134// SetServiceAssetId gets a reference to the given string and assigns it to the ServiceAssetId field.135func (o *Service) SetServiceAssetId(v string) {136 o.ServiceAssetId = &v137}138// GetServiceCreatedAt returns the ServiceCreatedAt field value if set, zero value otherwise.139func (o *Service) GetServiceCreatedAt() int64 {140 if o == nil || o.ServiceCreatedAt == nil {141 var ret int64142 return ret143 }144 return *o.ServiceCreatedAt145}146// GetServiceCreatedAtOk returns a tuple with the ServiceCreatedAt field value if set, nil otherwise147// and a boolean to check if the value has been set.148func (o *Service) GetServiceCreatedAtOk() (*int64, bool) {149 if o == nil || o.ServiceCreatedAt == nil {150 return nil, false151 }152 return o.ServiceCreatedAt, true153}154// HasServiceCreatedAt returns a boolean if a field has been set.155func (o *Service) HasServiceCreatedAt() bool {156 if o != nil && o.ServiceCreatedAt != nil {157 return true158 }159 return false160}161// SetServiceCreatedAt gets a reference to the given int64 and assigns it to the ServiceCreatedAt field.162func (o *Service) SetServiceCreatedAt(v int64) {163 o.ServiceCreatedAt = &v164}165// GetServiceUpdatedAt returns the ServiceUpdatedAt field value if set, zero value otherwise.166func (o *Service) GetServiceUpdatedAt() int64 {167 if o == nil || o.ServiceUpdatedAt == nil {168 var ret int64169 return ret170 }171 return *o.ServiceUpdatedAt172}173// GetServiceUpdatedAtOk returns a tuple with the ServiceUpdatedAt field value if set, nil otherwise174// and a boolean to check if the value has been set.175func (o *Service) GetServiceUpdatedAtOk() (*int64, bool) {176 if o == nil || o.ServiceUpdatedAt == nil {177 return nil, false178 }179 return o.ServiceUpdatedAt, true180}181// HasServiceUpdatedAt returns a boolean if a field has been set.182func (o *Service) HasServiceUpdatedAt() bool {183 if o != nil && o.ServiceUpdatedAt != nil {184 return true185 }186 return false187}188// SetServiceUpdatedAt gets a reference to the given int64 and assigns it to the ServiceUpdatedAt field.189func (o *Service) SetServiceUpdatedAt(v int64) {190 o.ServiceUpdatedAt = &v191}192// GetServiceAddress returns the ServiceAddress field value if set, zero value otherwise.193func (o *Service) GetServiceAddress() string {194 if o == nil || o.ServiceAddress == nil {195 var ret string196 return ret197 }198 return *o.ServiceAddress199}200// GetServiceAddressOk returns a tuple with the ServiceAddress field value if set, nil otherwise201// and a boolean to check if the value has been set.202func (o *Service) GetServiceAddressOk() (*string, bool) {203 if o == nil || o.ServiceAddress == nil {204 return nil, false205 }206 return o.ServiceAddress, true207}208// HasServiceAddress returns a boolean if a field has been set.209func (o *Service) HasServiceAddress() bool {210 if o != nil && o.ServiceAddress != nil {211 return true212 }213 return false214}215// SetServiceAddress gets a reference to the given string and assigns it to the ServiceAddress field.216func (o *Service) SetServiceAddress(v string) {217 o.ServiceAddress = &v218}219// GetServiceTransport returns the ServiceTransport field value if set, zero value otherwise.220func (o *Service) GetServiceTransport() string {221 if o == nil || o.ServiceTransport == nil {222 var ret string223 return ret224 }225 return *o.ServiceTransport226}227// GetServiceTransportOk returns a tuple with the ServiceTransport field value if set, nil otherwise228// and a boolean to check if the value has been set.229func (o *Service) GetServiceTransportOk() (*string, bool) {230 if o == nil || o.ServiceTransport == nil {231 return nil, false232 }233 return o.ServiceTransport, true234}235// HasServiceTransport returns a boolean if a field has been set.236func (o *Service) HasServiceTransport() bool {237 if o != nil && o.ServiceTransport != nil {238 return true239 }240 return false241}242// SetServiceTransport gets a reference to the given string and assigns it to the ServiceTransport field.243func (o *Service) SetServiceTransport(v string) {244 o.ServiceTransport = &v245}246// GetServiceVhost returns the ServiceVhost field value if set, zero value otherwise.247func (o *Service) GetServiceVhost() string {248 if o == nil || o.ServiceVhost == nil {249 var ret string250 return ret251 }252 return *o.ServiceVhost253}254// GetServiceVhostOk returns a tuple with the ServiceVhost field value if set, nil otherwise255// and a boolean to check if the value has been set.256func (o *Service) GetServiceVhostOk() (*string, bool) {257 if o == nil || o.ServiceVhost == nil {258 return nil, false259 }260 return o.ServiceVhost, true261}262// HasServiceVhost returns a boolean if a field has been set.263func (o *Service) HasServiceVhost() bool {264 if o != nil && o.ServiceVhost != nil {265 return true266 }267 return false268}269// SetServiceVhost gets a reference to the given string and assigns it to the ServiceVhost field.270func (o *Service) SetServiceVhost(v string) {271 o.ServiceVhost = &v272}273// GetServicePort returns the ServicePort field value if set, zero value otherwise.274func (o *Service) GetServicePort() string {275 if o == nil || o.ServicePort == nil {276 var ret string277 return ret278 }279 return *o.ServicePort280}281// GetServicePortOk returns a tuple with the ServicePort field value if set, nil otherwise282// and a boolean to check if the value has been set.283func (o *Service) GetServicePortOk() (*string, bool) {284 if o == nil || o.ServicePort == nil {285 return nil, false286 }287 return o.ServicePort, true288}289// HasServicePort returns a boolean if a field has been set.290func (o *Service) HasServicePort() bool {291 if o != nil && o.ServicePort != nil {292 return true293 }294 return false295}296// SetServicePort gets a reference to the given string and assigns it to the ServicePort field.297func (o *Service) SetServicePort(v string) {298 o.ServicePort = &v299}300// GetServiceData returns the ServiceData field value if set, zero value otherwise.301func (o *Service) GetServiceData() map[string]string {302 if o == nil || o.ServiceData == nil {303 var ret map[string]string304 return ret305 }306 return *o.ServiceData307}308// GetServiceDataOk returns a tuple with the ServiceData field value if set, nil otherwise309// and a boolean to check if the value has been set.310func (o *Service) GetServiceDataOk() (*map[string]string, bool) {311 if o == nil || o.ServiceData == nil {312 return nil, false313 }314 return o.ServiceData, true315}316// HasServiceData returns a boolean if a field has been set.317func (o *Service) HasServiceData() bool {318 if o != nil && o.ServiceData != nil {319 return true320 }321 return false322}323// SetServiceData gets a reference to the given map[string]string and assigns it to the ServiceData field.324func (o *Service) SetServiceData(v map[string]string) {325 o.ServiceData = &v326}327// GetServiceProtocol returns the ServiceProtocol field value if set, zero value otherwise.328func (o *Service) GetServiceProtocol() string {329 if o == nil || o.ServiceProtocol == nil {330 var ret string331 return ret332 }333 return *o.ServiceProtocol334}335// GetServiceProtocolOk returns a tuple with the ServiceProtocol field value if set, nil otherwise336// and a boolean to check if the value has been set.337func (o *Service) GetServiceProtocolOk() (*string, bool) {338 if o == nil || o.ServiceProtocol == nil {339 return nil, false340 }341 return o.ServiceProtocol, true342}343// HasServiceProtocol returns a boolean if a field has been set.344func (o *Service) HasServiceProtocol() bool {345 if o != nil && o.ServiceProtocol != nil {346 return true347 }348 return false349}350// SetServiceProtocol gets a reference to the given string and assigns it to the ServiceProtocol field.351func (o *Service) SetServiceProtocol(v string) {352 o.ServiceProtocol = &v353}354// GetServiceSummary returns the ServiceSummary field value if set, zero value otherwise.355func (o *Service) GetServiceSummary() string {356 if o == nil || o.ServiceSummary == nil {357 var ret string358 return ret359 }360 return *o.ServiceSummary361}362// GetServiceSummaryOk returns a tuple with the ServiceSummary field value if set, nil otherwise363// and a boolean to check if the value has been set.364func (o *Service) GetServiceSummaryOk() (*string, bool) {365 if o == nil || o.ServiceSummary == nil {366 return nil, false367 }368 return o.ServiceSummary, true369}370// HasServiceSummary returns a boolean if a field has been set.371func (o *Service) HasServiceSummary() bool {372 if o != nil && o.ServiceSummary != nil {373 return true374 }375 return false376}377// SetServiceSummary gets a reference to the given string and assigns it to the ServiceSummary field.378func (o *Service) SetServiceSummary(v string) {379 o.ServiceSummary = &v380}381// GetServiceScreenshotLink returns the ServiceScreenshotLink field value if set, zero value otherwise.382func (o *Service) GetServiceScreenshotLink() string {383 if o == nil || o.ServiceScreenshotLink == nil {384 var ret string385 return ret386 }387 return *o.ServiceScreenshotLink388}389// GetServiceScreenshotLinkOk returns a tuple with the ServiceScreenshotLink field value if set, nil otherwise390// and a boolean to check if the value has been set.391func (o *Service) GetServiceScreenshotLinkOk() (*string, bool) {392 if o == nil || o.ServiceScreenshotLink == nil {393 return nil, false394 }395 return o.ServiceScreenshotLink, true396}397// HasServiceScreenshotLink returns a boolean if a field has been set.398func (o *Service) HasServiceScreenshotLink() bool {399 if o != nil && o.ServiceScreenshotLink != nil {400 return true401 }402 return false403}404// SetServiceScreenshotLink gets a reference to the given string and assigns it to the ServiceScreenshotLink field.405func (o *Service) SetServiceScreenshotLink(v string) {406 o.ServiceScreenshotLink = &v407}408// GetServiceLink returns the ServiceLink field value if set, zero value otherwise.409func (o *Service) GetServiceLink() string {410 if o == nil || o.ServiceLink == nil {411 var ret string412 return ret413 }414 return *o.ServiceLink415}416// GetServiceLinkOk returns a tuple with the ServiceLink field value if set, nil otherwise417// and a boolean to check if the value has been set.418func (o *Service) GetServiceLinkOk() (*string, bool) {419 if o == nil || o.ServiceLink == nil {420 return nil, false421 }422 return o.ServiceLink, true423}424// HasServiceLink returns a boolean if a field has been set.425func (o *Service) HasServiceLink() bool {426 if o != nil && o.ServiceLink != nil {427 return true428 }429 return false430}431// SetServiceLink gets a reference to the given string and assigns it to the ServiceLink field.432func (o *Service) SetServiceLink(v string) {433 o.ServiceLink = &v434}435// GetId returns the Id field value436func (o *Service) GetId() string {437 if o == nil {438 var ret string439 return ret440 }441 return o.Id442}443// GetIdOk returns a tuple with the Id field value444// and a boolean to check if the value has been set.445func (o *Service) GetIdOk() (*string, bool) {446 if o == nil {447 return nil, false448 }449 return &o.Id, true450}451// SetId sets field value452func (o *Service) SetId(v string) {453 o.Id = v454}455// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.456func (o *Service) GetCreatedAt() int64 {457 if o == nil || o.CreatedAt == nil {458 var ret int64459 return ret460 }461 return *o.CreatedAt462}463// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise464// and a boolean to check if the value has been set.465func (o *Service) GetCreatedAtOk() (*int64, bool) {466 if o == nil || o.CreatedAt == nil {467 return nil, false468 }469 return o.CreatedAt, true470}471// HasCreatedAt returns a boolean if a field has been set.472func (o *Service) HasCreatedAt() bool {473 if o != nil && o.CreatedAt != nil {474 return true475 }476 return false477}478// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.479func (o *Service) SetCreatedAt(v int64) {480 o.CreatedAt = &v481}482// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.483func (o *Service) GetUpdatedAt() int64 {484 if o == nil || o.UpdatedAt == nil {485 var ret int64486 return ret487 }488 return *o.UpdatedAt489}490// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise491// and a boolean to check if the value has been set.492func (o *Service) GetUpdatedAtOk() (*int64, bool) {493 if o == nil || o.UpdatedAt == nil {494 return nil, false495 }496 return o.UpdatedAt, true497}498// HasUpdatedAt returns a boolean if a field has been set.499func (o *Service) HasUpdatedAt() bool {500 if o != nil && o.UpdatedAt != nil {501 return true502 }503 return false504}505// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.506func (o *Service) SetUpdatedAt(v int64) {507 o.UpdatedAt = &v508}509// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.510func (o *Service) GetOrganizationId() string {511 if o == nil || o.OrganizationId == nil {512 var ret string513 return ret514 }515 return *o.OrganizationId516}517// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise518// and a boolean to check if the value has been set.519func (o *Service) GetOrganizationIdOk() (*string, bool) {520 if o == nil || o.OrganizationId == nil {521 return nil, false522 }523 return o.OrganizationId, true524}525// HasOrganizationId returns a boolean if a field has been set.526func (o *Service) HasOrganizationId() bool {527 if o != nil && o.OrganizationId != nil {528 return true529 }530 return false531}532// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.533func (o *Service) SetOrganizationId(v string) {534 o.OrganizationId = &v535}536// GetSiteId returns the SiteId field value if set, zero value otherwise.537func (o *Service) GetSiteId() string {538 if o == nil || o.SiteId == nil {539 var ret string540 return ret541 }542 return *o.SiteId543}544// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise545// and a boolean to check if the value has been set.546func (o *Service) GetSiteIdOk() (*string, bool) {547 if o == nil || o.SiteId == nil {548 return nil, false549 }550 return o.SiteId, true551}552// HasSiteId returns a boolean if a field has been set.553func (o *Service) HasSiteId() bool {554 if o != nil && o.SiteId != nil {555 return true556 }557 return false558}559// SetSiteId gets a reference to the given string and assigns it to the SiteId field.560func (o *Service) SetSiteId(v string) {561 o.SiteId = &v562}563// GetAlive returns the Alive field value if set, zero value otherwise.564func (o *Service) GetAlive() bool {565 if o == nil || o.Alive == nil {566 var ret bool567 return ret568 }569 return *o.Alive570}571// GetAliveOk returns a tuple with the Alive field value if set, nil otherwise572// and a boolean to check if the value has been set.573func (o *Service) GetAliveOk() (*bool, bool) {574 if o == nil || o.Alive == nil {575 return nil, false576 }577 return o.Alive, true578}579// HasAlive returns a boolean if a field has been set.580func (o *Service) HasAlive() bool {581 if o != nil && o.Alive != nil {582 return true583 }584 return false585}586// SetAlive gets a reference to the given bool and assigns it to the Alive field.587func (o *Service) SetAlive(v bool) {588 o.Alive = &v589}590// GetFirstSeen returns the FirstSeen field value if set, zero value otherwise.591func (o *Service) GetFirstSeen() int64 {592 if o == nil || o.FirstSeen == nil {593 var ret int64594 return ret595 }596 return *o.FirstSeen597}598// GetFirstSeenOk returns a tuple with the FirstSeen field value if set, nil otherwise599// and a boolean to check if the value has been set.600func (o *Service) GetFirstSeenOk() (*int64, bool) {601 if o == nil || o.FirstSeen == nil {602 return nil, false603 }604 return o.FirstSeen, true605}606// HasFirstSeen returns a boolean if a field has been set.607func (o *Service) HasFirstSeen() bool {608 if o != nil && o.FirstSeen != nil {609 return true610 }611 return false612}613// SetFirstSeen gets a reference to the given int64 and assigns it to the FirstSeen field.614func (o *Service) SetFirstSeen(v int64) {615 o.FirstSeen = &v616}617// GetLastSeen returns the LastSeen field value if set, zero value otherwise.618func (o *Service) GetLastSeen() int64 {619 if o == nil || o.LastSeen == nil {620 var ret int64621 return ret622 }623 return *o.LastSeen624}625// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise626// and a boolean to check if the value has been set.627func (o *Service) GetLastSeenOk() (*int64, bool) {628 if o == nil || o.LastSeen == nil {629 return nil, false630 }631 return o.LastSeen, true632}633// HasLastSeen returns a boolean if a field has been set.634func (o *Service) HasLastSeen() bool {635 if o != nil && o.LastSeen != nil {636 return true637 }638 return false639}640// SetLastSeen gets a reference to the given int64 and assigns it to the LastSeen field.641func (o *Service) SetLastSeen(v int64) {642 o.LastSeen = &v643}644// GetDetectedBy returns the DetectedBy field value if set, zero value otherwise.645func (o *Service) GetDetectedBy() string {646 if o == nil || o.DetectedBy == nil {647 var ret string648 return ret649 }650 return *o.DetectedBy651}652// GetDetectedByOk returns a tuple with the DetectedBy field value if set, nil otherwise653// and a boolean to check if the value has been set.654func (o *Service) GetDetectedByOk() (*string, bool) {655 if o == nil || o.DetectedBy == nil {656 return nil, false657 }658 return o.DetectedBy, true659}660// HasDetectedBy returns a boolean if a field has been set.661func (o *Service) HasDetectedBy() bool {662 if o != nil && o.DetectedBy != nil {663 return true664 }665 return false666}667// SetDetectedBy gets a reference to the given string and assigns it to the DetectedBy field.668func (o *Service) SetDetectedBy(v string) {669 o.DetectedBy = &v670}671// GetType returns the Type field value if set, zero value otherwise.672func (o *Service) GetType() string {673 if o == nil || o.Type == nil {674 var ret string675 return ret676 }677 return *o.Type678}679// GetTypeOk returns a tuple with the Type field value if set, nil otherwise680// and a boolean to check if the value has been set.681func (o *Service) GetTypeOk() (*string, bool) {682 if o == nil || o.Type == nil {683 return nil, false684 }685 return o.Type, true686}687// HasType returns a boolean if a field has been set.688func (o *Service) HasType() bool {689 if o != nil && o.Type != nil {690 return true691 }692 return false693}694// SetType gets a reference to the given string and assigns it to the Type field.695func (o *Service) SetType(v string) {696 o.Type = &v697}698// GetOs returns the Os field value if set, zero value otherwise.699func (o *Service) GetOs() string {700 if o == nil || o.Os == nil {701 var ret string702 return ret703 }704 return *o.Os705}706// GetOsOk returns a tuple with the Os field value if set, nil otherwise707// and a boolean to check if the value has been set.708func (o *Service) GetOsOk() (*string, bool) {709 if o == nil || o.Os == nil {710 return nil, false711 }712 return o.Os, true713}714// HasOs returns a boolean if a field has been set.715func (o *Service) HasOs() bool {716 if o != nil && o.Os != nil {717 return true718 }719 return false720}721// SetOs gets a reference to the given string and assigns it to the Os field.722func (o *Service) SetOs(v string) {723 o.Os = &v724}725// GetOsVersion returns the OsVersion field value if set, zero value otherwise.726func (o *Service) GetOsVersion() string {727 if o == nil || o.OsVersion == nil {728 var ret string729 return ret730 }731 return *o.OsVersion732}733// GetOsVersionOk returns a tuple with the OsVersion field value if set, nil otherwise734// and a boolean to check if the value has been set.735func (o *Service) GetOsVersionOk() (*string, bool) {736 if o == nil || o.OsVersion == nil {737 return nil, false738 }739 return o.OsVersion, true740}741// HasOsVersion returns a boolean if a field has been set.742func (o *Service) HasOsVersion() bool {743 if o != nil && o.OsVersion != nil {744 return true745 }746 return false747}748// SetOsVersion gets a reference to the given string and assigns it to the OsVersion field.749func (o *Service) SetOsVersion(v string) {750 o.OsVersion = &v751}752// GetHw returns the Hw field value if set, zero value otherwise.753func (o *Service) GetHw() string {754 if o == nil || o.Hw == nil {755 var ret string756 return ret757 }758 return *o.Hw759}760// GetHwOk returns a tuple with the Hw field value if set, nil otherwise761// and a boolean to check if the value has been set.762func (o *Service) GetHwOk() (*string, bool) {763 if o == nil || o.Hw == nil {764 return nil, false765 }766 return o.Hw, true767}768// HasHw returns a boolean if a field has been set.769func (o *Service) HasHw() bool {770 if o != nil && o.Hw != nil {771 return true772 }773 return false774}775// SetHw gets a reference to the given string and assigns it to the Hw field.776func (o *Service) SetHw(v string) {777 o.Hw = &v778}779// GetAddresses returns the Addresses field value if set, zero value otherwise.780func (o *Service) GetAddresses() []string {781 if o == nil || o.Addresses == nil {782 var ret []string783 return ret784 }785 return *o.Addresses786}787// GetAddressesOk returns a tuple with the Addresses field value if set, nil otherwise788// and a boolean to check if the value has been set.789func (o *Service) GetAddressesOk() (*[]string, bool) {790 if o == nil || o.Addresses == nil {791 return nil, false792 }793 return o.Addresses, true794}795// HasAddresses returns a boolean if a field has been set.796func (o *Service) HasAddresses() bool {797 if o != nil && o.Addresses != nil {798 return true799 }800 return false801}802// SetAddresses gets a reference to the given []string and assigns it to the Addresses field.803func (o *Service) SetAddresses(v []string) {804 o.Addresses = &v805}806// GetAddressesExtra returns the AddressesExtra field value if set, zero value otherwise.807func (o *Service) GetAddressesExtra() []string {808 if o == nil || o.AddressesExtra == nil {809 var ret []string810 return ret811 }812 return *o.AddressesExtra813}814// GetAddressesExtraOk returns a tuple with the AddressesExtra field value if set, nil otherwise815// and a boolean to check if the value has been set.816func (o *Service) GetAddressesExtraOk() (*[]string, bool) {817 if o == nil || o.AddressesExtra == nil {818 return nil, false819 }820 return o.AddressesExtra, true821}822// HasAddressesExtra returns a boolean if a field has been set.823func (o *Service) HasAddressesExtra() bool {824 if o != nil && o.AddressesExtra != nil {825 return true826 }827 return false828}829// SetAddressesExtra gets a reference to the given []string and assigns it to the AddressesExtra field.830func (o *Service) SetAddressesExtra(v []string) {831 o.AddressesExtra = &v832}833// GetMacs returns the Macs field value if set, zero value otherwise.834func (o *Service) GetMacs() []string {835 if o == nil || o.Macs == nil {836 var ret []string837 return ret838 }839 return *o.Macs840}841// GetMacsOk returns a tuple with the Macs field value if set, nil otherwise842// and a boolean to check if the value has been set.843func (o *Service) GetMacsOk() (*[]string, bool) {844 if o == nil || o.Macs == nil {845 return nil, false846 }847 return o.Macs, true848}849// HasMacs returns a boolean if a field has been set.850func (o *Service) HasMacs() bool {851 if o != nil && o.Macs != nil {852 return true853 }854 return false855}856// SetMacs gets a reference to the given []string and assigns it to the Macs field.857func (o *Service) SetMacs(v []string) {858 o.Macs = &v859}860// GetMacVendors returns the MacVendors field value if set, zero value otherwise.861func (o *Service) GetMacVendors() []string {862 if o == nil || o.MacVendors == nil {863 var ret []string864 return ret865 }866 return *o.MacVendors867}868// GetMacVendorsOk returns a tuple with the MacVendors field value if set, nil otherwise869// and a boolean to check if the value has been set.870func (o *Service) GetMacVendorsOk() (*[]string, bool) {871 if o == nil || o.MacVendors == nil {872 return nil, false873 }874 return o.MacVendors, true875}876// HasMacVendors returns a boolean if a field has been set.877func (o *Service) HasMacVendors() bool {878 if o != nil && o.MacVendors != nil {879 return true880 }881 return false882}883// SetMacVendors gets a reference to the given []string and assigns it to the MacVendors field.884func (o *Service) SetMacVendors(v []string) {885 o.MacVendors = &v886}887// GetNames returns the Names field value if set, zero value otherwise.888func (o *Service) GetNames() []string {889 if o == nil || o.Names == nil {890 var ret []string891 return ret892 }893 return *o.Names894}895// GetNamesOk returns a tuple with the Names field value if set, nil otherwise896// and a boolean to check if the value has been set.897func (o *Service) GetNamesOk() (*[]string, bool) {898 if o == nil || o.Names == nil {899 return nil, false900 }901 return o.Names, true902}903// HasNames returns a boolean if a field has been set.904func (o *Service) HasNames() bool {905 if o != nil && o.Names != nil {906 return true907 }908 return false909}910// SetNames gets a reference to the given []string and assigns it to the Names field.911func (o *Service) SetNames(v []string) {912 o.Names = &v913}914// GetDomains returns the Domains field value if set, zero value otherwise.915func (o *Service) GetDomains() []string {916 if o == nil || o.Domains == nil {917 var ret []string918 return ret919 }920 return *o.Domains921}922// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise923// and a boolean to check if the value has been set.924func (o *Service) GetDomainsOk() (*[]string, bool) {925 if o == nil || o.Domains == nil {926 return nil, false927 }928 return o.Domains, true929}930// HasDomains returns a boolean if a field has been set.931func (o *Service) HasDomains() bool {932 if o != nil && o.Domains != nil {933 return true934 }935 return false936}937// SetDomains gets a reference to the given []string and assigns it to the Domains field.938func (o *Service) SetDomains(v []string) {939 o.Domains = &v940}941// GetServiceCount returns the ServiceCount field value if set, zero value otherwise.942func (o *Service) GetServiceCount() int64 {943 if o == nil || o.ServiceCount == nil {944 var ret int64945 return ret946 }947 return *o.ServiceCount948}949// GetServiceCountOk returns a tuple with the ServiceCount field value if set, nil otherwise950// and a boolean to check if the value has been set.951func (o *Service) GetServiceCountOk() (*int64, bool) {952 if o == nil || o.ServiceCount == nil {953 return nil, false954 }955 return o.ServiceCount, true956}957// HasServiceCount returns a boolean if a field has been set.958func (o *Service) HasServiceCount() bool {959 if o != nil && o.ServiceCount != nil {960 return true961 }962 return false963}964// SetServiceCount gets a reference to the given int64 and assigns it to the ServiceCount field.965func (o *Service) SetServiceCount(v int64) {966 o.ServiceCount = &v967}968// GetServiceCountTcp returns the ServiceCountTcp field value if set, zero value otherwise.969func (o *Service) GetServiceCountTcp() int64 {970 if o == nil || o.ServiceCountTcp == nil {971 var ret int64972 return ret973 }974 return *o.ServiceCountTcp975}976// GetServiceCountTcpOk returns a tuple with the ServiceCountTcp field value if set, nil otherwise977// and a boolean to check if the value has been set.978func (o *Service) GetServiceCountTcpOk() (*int64, bool) {979 if o == nil || o.ServiceCountTcp == nil {980 return nil, false981 }982 return o.ServiceCountTcp, true983}984// HasServiceCountTcp returns a boolean if a field has been set.985func (o *Service) HasServiceCountTcp() bool {986 if o != nil && o.ServiceCountTcp != nil {987 return true988 }989 return false990}991// SetServiceCountTcp gets a reference to the given int64 and assigns it to the ServiceCountTcp field.992func (o *Service) SetServiceCountTcp(v int64) {993 o.ServiceCountTcp = &v994}995// GetServiceCountUdp returns the ServiceCountUdp field value if set, zero value otherwise.996func (o *Service) GetServiceCountUdp() int64 {997 if o == nil || o.ServiceCountUdp == nil {998 var ret int64999 return ret1000 }1001 return *o.ServiceCountUdp1002}1003// GetServiceCountUdpOk returns a tuple with the ServiceCountUdp field value if set, nil otherwise1004// and a boolean to check if the value has been set.1005func (o *Service) GetServiceCountUdpOk() (*int64, bool) {1006 if o == nil || o.ServiceCountUdp == nil {1007 return nil, false1008 }1009 return o.ServiceCountUdp, true1010}1011// HasServiceCountUdp returns a boolean if a field has been set.1012func (o *Service) HasServiceCountUdp() bool {1013 if o != nil && o.ServiceCountUdp != nil {1014 return true1015 }1016 return false1017}1018// SetServiceCountUdp gets a reference to the given int64 and assigns it to the ServiceCountUdp field.1019func (o *Service) SetServiceCountUdp(v int64) {1020 o.ServiceCountUdp = &v1021}1022// GetServiceCountArp returns the ServiceCountArp field value if set, zero value otherwise.1023func (o *Service) GetServiceCountArp() int64 {1024 if o == nil || o.ServiceCountArp == nil {1025 var ret int641026 return ret1027 }1028 return *o.ServiceCountArp1029}1030// GetServiceCountArpOk returns a tuple with the ServiceCountArp field value if set, nil otherwise1031// and a boolean to check if the value has been set.1032func (o *Service) GetServiceCountArpOk() (*int64, bool) {1033 if o == nil || o.ServiceCountArp == nil {1034 return nil, false1035 }1036 return o.ServiceCountArp, true1037}1038// HasServiceCountArp returns a boolean if a field has been set.1039func (o *Service) HasServiceCountArp() bool {1040 if o != nil && o.ServiceCountArp != nil {1041 return true1042 }1043 return false1044}1045// SetServiceCountArp gets a reference to the given int64 and assigns it to the ServiceCountArp field.1046func (o *Service) SetServiceCountArp(v int64) {1047 o.ServiceCountArp = &v1048}1049// GetServiceCountIcmp returns the ServiceCountIcmp field value if set, zero value otherwise.1050func (o *Service) GetServiceCountIcmp() int64 {1051 if o == nil || o.ServiceCountIcmp == nil {1052 var ret int641053 return ret1054 }1055 return *o.ServiceCountIcmp1056}1057// GetServiceCountIcmpOk returns a tuple with the ServiceCountIcmp field value if set, nil otherwise1058// and a boolean to check if the value has been set.1059func (o *Service) GetServiceCountIcmpOk() (*int64, bool) {1060 if o == nil || o.ServiceCountIcmp == nil {1061 return nil, false1062 }1063 return o.ServiceCountIcmp, true1064}1065// HasServiceCountIcmp returns a boolean if a field has been set.1066func (o *Service) HasServiceCountIcmp() bool {1067 if o != nil && o.ServiceCountIcmp != nil {1068 return true1069 }1070 return false1071}1072// SetServiceCountIcmp gets a reference to the given int64 and assigns it to the ServiceCountIcmp field.1073func (o *Service) SetServiceCountIcmp(v int64) {1074 o.ServiceCountIcmp = &v1075}1076// GetLowestTtl returns the LowestTtl field value if set, zero value otherwise.1077func (o *Service) GetLowestTtl() int64 {1078 if o == nil || o.LowestTtl == nil {1079 var ret int641080 return ret1081 }1082 return *o.LowestTtl1083}1084// GetLowestTtlOk returns a tuple with the LowestTtl field value if set, nil otherwise1085// and a boolean to check if the value has been set.1086func (o *Service) GetLowestTtlOk() (*int64, bool) {1087 if o == nil || o.LowestTtl == nil {1088 return nil, false1089 }1090 return o.LowestTtl, true1091}1092// HasLowestTtl returns a boolean if a field has been set.1093func (o *Service) HasLowestTtl() bool {1094 if o != nil && o.LowestTtl != nil {1095 return true1096 }1097 return false1098}1099// SetLowestTtl gets a reference to the given int64 and assigns it to the LowestTtl field.1100func (o *Service) SetLowestTtl(v int64) {1101 o.LowestTtl = &v1102}1103// GetLowestRtt returns the LowestRtt field value if set, zero value otherwise.1104func (o *Service) GetLowestRtt() int64 {1105 if o == nil || o.LowestRtt == nil {1106 var ret int641107 return ret1108 }1109 return *o.LowestRtt1110}1111// GetLowestRttOk returns a tuple with the LowestRtt field value if set, nil otherwise1112// and a boolean to check if the value has been set.1113func (o *Service) GetLowestRttOk() (*int64, bool) {1114 if o == nil || o.LowestRtt == nil {1115 return nil, false1116 }1117 return o.LowestRtt, true1118}1119// HasLowestRtt returns a boolean if a field has been set.1120func (o *Service) HasLowestRtt() bool {1121 if o != nil && o.LowestRtt != nil {1122 return true1123 }1124 return false1125}1126// SetLowestRtt gets a reference to the given int64 and assigns it to the LowestRtt field.1127func (o *Service) SetLowestRtt(v int64) {1128 o.LowestRtt = &v1129}1130// GetLastAgentId returns the LastAgentId field value if set, zero value otherwise.1131func (o *Service) GetLastAgentId() string {1132 if o == nil || o.LastAgentId == nil {1133 var ret string1134 return ret1135 }1136 return *o.LastAgentId1137}1138// GetLastAgentIdOk returns a tuple with the LastAgentId field value if set, nil otherwise1139// and a boolean to check if the value has been set.1140func (o *Service) GetLastAgentIdOk() (*string, bool) {1141 if o == nil || o.LastAgentId == nil {1142 return nil, false1143 }1144 return o.LastAgentId, true1145}1146// HasLastAgentId returns a boolean if a field has been set.1147func (o *Service) HasLastAgentId() bool {1148 if o != nil && o.LastAgentId != nil {1149 return true1150 }1151 return false1152}1153// SetLastAgentId gets a reference to the given string and assigns it to the LastAgentId field.1154func (o *Service) SetLastAgentId(v string) {1155 o.LastAgentId = &v1156}1157// GetLastTaskId returns the LastTaskId field value if set, zero value otherwise.1158func (o *Service) GetLastTaskId() string {1159 if o == nil || o.LastTaskId == nil {1160 var ret string1161 return ret1162 }1163 return *o.LastTaskId1164}1165// GetLastTaskIdOk returns a tuple with the LastTaskId field value if set, nil otherwise1166// and a boolean to check if the value has been set.1167func (o *Service) GetLastTaskIdOk() (*string, bool) {1168 if o == nil || o.LastTaskId == nil {1169 return nil, false1170 }1171 return o.LastTaskId, true1172}1173// HasLastTaskId returns a boolean if a field has been set.1174func (o *Service) HasLastTaskId() bool {1175 if o != nil && o.LastTaskId != nil {1176 return true1177 }1178 return false1179}1180// SetLastTaskId gets a reference to the given string and assigns it to the LastTaskId field.1181func (o *Service) SetLastTaskId(v string) {1182 o.LastTaskId = &v1183}1184// GetNewestMac returns the NewestMac field value if set, zero value otherwise.1185func (o *Service) GetNewestMac() string {1186 if o == nil || o.NewestMac == nil {1187 var ret string1188 return ret1189 }1190 return *o.NewestMac1191}1192// GetNewestMacOk returns a tuple with the NewestMac field value if set, nil otherwise1193// and a boolean to check if the value has been set.1194func (o *Service) GetNewestMacOk() (*string, bool) {1195 if o == nil || o.NewestMac == nil {1196 return nil, false1197 }1198 return o.NewestMac, true1199}1200// HasNewestMac returns a boolean if a field has been set.1201func (o *Service) HasNewestMac() bool {1202 if o != nil && o.NewestMac != nil {1203 return true1204 }1205 return false1206}1207// SetNewestMac gets a reference to the given string and assigns it to the NewestMac field.1208func (o *Service) SetNewestMac(v string) {1209 o.NewestMac = &v1210}1211// GetNewestMacVendor returns the NewestMacVendor field value if set, zero value otherwise.1212func (o *Service) GetNewestMacVendor() string {1213 if o == nil || o.NewestMacVendor == nil {1214 var ret string1215 return ret1216 }1217 return *o.NewestMacVendor1218}1219// GetNewestMacVendorOk returns a tuple with the NewestMacVendor field value if set, nil otherwise1220// and a boolean to check if the value has been set.1221func (o *Service) GetNewestMacVendorOk() (*string, bool) {1222 if o == nil || o.NewestMacVendor == nil {1223 return nil, false1224 }1225 return o.NewestMacVendor, true1226}1227// HasNewestMacVendor returns a boolean if a field has been set.1228func (o *Service) HasNewestMacVendor() bool {1229 if o != nil && o.NewestMacVendor != nil {1230 return true1231 }1232 return false1233}1234// SetNewestMacVendor gets a reference to the given string and assigns it to the NewestMacVendor field.1235func (o *Service) SetNewestMacVendor(v string) {1236 o.NewestMacVendor = &v1237}1238// GetNewestMacAge returns the NewestMacAge field value if set, zero value otherwise.1239func (o *Service) GetNewestMacAge() int64 {1240 if o == nil || o.NewestMacAge == nil {1241 var ret int641242 return ret1243 }1244 return *o.NewestMacAge1245}1246// GetNewestMacAgeOk returns a tuple with the NewestMacAge field value if set, nil otherwise1247// and a boolean to check if the value has been set.1248func (o *Service) GetNewestMacAgeOk() (*int64, bool) {1249 if o == nil || o.NewestMacAge == nil {1250 return nil, false1251 }1252 return o.NewestMacAge, true1253}1254// HasNewestMacAge returns a boolean if a field has been set.1255func (o *Service) HasNewestMacAge() bool {1256 if o != nil && o.NewestMacAge != nil {1257 return true1258 }1259 return false1260}1261// SetNewestMacAge gets a reference to the given int64 and assigns it to the NewestMacAge field.1262func (o *Service) SetNewestMacAge(v int64) {1263 o.NewestMacAge = &v1264}1265// GetComments returns the Comments field value if set, zero value otherwise.1266func (o *Service) GetComments() string {1267 if o == nil || o.Comments == nil {1268 var ret string1269 return ret1270 }1271 return *o.Comments1272}1273// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise1274// and a boolean to check if the value has been set.1275func (o *Service) GetCommentsOk() (*string, bool) {1276 if o == nil || o.Comments == nil {1277 return nil, false1278 }1279 return o.Comments, true1280}1281// HasComments returns a boolean if a field has been set.1282func (o *Service) HasComments() bool {1283 if o != nil && o.Comments != nil {1284 return true1285 }1286 return false1287}1288// SetComments gets a reference to the given string and assigns it to the Comments field.1289func (o *Service) SetComments(v string) {1290 o.Comments = &v1291}1292// GetServicePortsTcp returns the ServicePortsTcp field value if set, zero value otherwise.1293func (o *Service) GetServicePortsTcp() []string {1294 if o == nil || o.ServicePortsTcp == nil {1295 var ret []string1296 return ret1297 }1298 return *o.ServicePortsTcp1299}1300// GetServicePortsTcpOk returns a tuple with the ServicePortsTcp field value if set, nil otherwise1301// and a boolean to check if the value has been set.1302func (o *Service) GetServicePortsTcpOk() (*[]string, bool) {1303 if o == nil || o.ServicePortsTcp == nil {1304 return nil, false1305 }1306 return o.ServicePortsTcp, true1307}1308// HasServicePortsTcp returns a boolean if a field has been set.1309func (o *Service) HasServicePortsTcp() bool {1310 if o != nil && o.ServicePortsTcp != nil {1311 return true1312 }1313 return false1314}1315// SetServicePortsTcp gets a reference to the given []string and assigns it to the ServicePortsTcp field.1316func (o *Service) SetServicePortsTcp(v []string) {1317 o.ServicePortsTcp = &v1318}1319// GetServicePortsUdp returns the ServicePortsUdp field value if set, zero value otherwise.1320func (o *Service) GetServicePortsUdp() []string {1321 if o == nil || o.ServicePortsUdp == nil {1322 var ret []string1323 return ret1324 }1325 return *o.ServicePortsUdp1326}1327// GetServicePortsUdpOk returns a tuple with the ServicePortsUdp field value if set, nil otherwise1328// and a boolean to check if the value has been set.1329func (o *Service) GetServicePortsUdpOk() (*[]string, bool) {1330 if o == nil || o.ServicePortsUdp == nil {1331 return nil, false1332 }1333 return o.ServicePortsUdp, true1334}1335// HasServicePortsUdp returns a boolean if a field has been set.1336func (o *Service) HasServicePortsUdp() bool {1337 if o != nil && o.ServicePortsUdp != nil {1338 return true1339 }1340 return false1341}1342// SetServicePortsUdp gets a reference to the given []string and assigns it to the ServicePortsUdp field.1343func (o *Service) SetServicePortsUdp(v []string) {1344 o.ServicePortsUdp = &v1345}1346// GetServicePortsProtocols returns the ServicePortsProtocols field value if set, zero value otherwise.1347func (o *Service) GetServicePortsProtocols() []string {1348 if o == nil || o.ServicePortsProtocols == nil {1349 var ret []string1350 return ret1351 }1352 return *o.ServicePortsProtocols1353}1354// GetServicePortsProtocolsOk returns a tuple with the ServicePortsProtocols field value if set, nil otherwise1355// and a boolean to check if the value has been set.1356func (o *Service) GetServicePortsProtocolsOk() (*[]string, bool) {1357 if o == nil || o.ServicePortsProtocols == nil {1358 return nil, false1359 }1360 return o.ServicePortsProtocols, true1361}1362// HasServicePortsProtocols returns a boolean if a field has been set.1363func (o *Service) HasServicePortsProtocols() bool {1364 if o != nil && o.ServicePortsProtocols != nil {1365 return true1366 }1367 return false1368}1369// SetServicePortsProtocols gets a reference to the given []string and assigns it to the ServicePortsProtocols field.1370func (o *Service) SetServicePortsProtocols(v []string) {1371 o.ServicePortsProtocols = &v1372}1373// GetServicePortsProducts returns the ServicePortsProducts field value if set, zero value otherwise.1374func (o *Service) GetServicePortsProducts() []string {1375 if o == nil || o.ServicePortsProducts == nil {1376 var ret []string1377 return ret1378 }1379 return *o.ServicePortsProducts1380}1381// GetServicePortsProductsOk returns a tuple with the ServicePortsProducts field value if set, nil otherwise1382// and a boolean to check if the value has been set.1383func (o *Service) GetServicePortsProductsOk() (*[]string, bool) {1384 if o == nil || o.ServicePortsProducts == nil {1385 return nil, false1386 }1387 return o.ServicePortsProducts, true1388}1389// HasServicePortsProducts returns a boolean if a field has been set.1390func (o *Service) HasServicePortsProducts() bool {1391 if o != nil && o.ServicePortsProducts != nil {1392 return true1393 }1394 return false1395}1396// SetServicePortsProducts gets a reference to the given []string and assigns it to the ServicePortsProducts field.1397func (o *Service) SetServicePortsProducts(v []string) {1398 o.ServicePortsProducts = &v1399}1400// GetOrgName returns the OrgName field value if set, zero value otherwise.1401func (o *Service) GetOrgName() string {1402 if o == nil || o.OrgName == nil {1403 var ret string1404 return ret1405 }1406 return *o.OrgName1407}1408// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise1409// and a boolean to check if the value has been set.1410func (o *Service) GetOrgNameOk() (*string, bool) {1411 if o == nil || o.OrgName == nil {1412 return nil, false1413 }1414 return o.OrgName, true1415}1416// HasOrgName returns a boolean if a field has been set.1417func (o *Service) HasOrgName() bool {1418 if o != nil && o.OrgName != nil {1419 return true1420 }1421 return false1422}1423// SetOrgName gets a reference to the given string and assigns it to the OrgName field.1424func (o *Service) SetOrgName(v string) {1425 o.OrgName = &v1426}1427// GetSiteName returns the SiteName field value if set, zero value otherwise.1428func (o *Service) GetSiteName() string {1429 if o == nil || o.SiteName == nil {1430 var ret string1431 return ret1432 }1433 return *o.SiteName1434}1435// GetSiteNameOk returns a tuple with the SiteName field value if set, nil otherwise1436// and a boolean to check if the value has been set.1437func (o *Service) GetSiteNameOk() (*string, bool) {1438 if o == nil || o.SiteName == nil {1439 return nil, false1440 }1441 return o.SiteName, true1442}1443// HasSiteName returns a boolean if a field has been set.1444func (o *Service) HasSiteName() bool {1445 if o != nil && o.SiteName != nil {1446 return true1447 }1448 return false1449}1450// SetSiteName gets a reference to the given string and assigns it to the SiteName field.1451func (o *Service) SetSiteName(v string) {1452 o.SiteName = &v1453}1454// GetAgentName returns the AgentName field value if set, zero value otherwise.1455func (o *Service) GetAgentName() string {1456 if o == nil || o.AgentName == nil {1457 var ret string1458 return ret1459 }1460 return *o.AgentName1461}1462// GetAgentNameOk returns a tuple with the AgentName field value if set, nil otherwise1463// and a boolean to check if the value has been set.1464func (o *Service) GetAgentNameOk() (*string, bool) {1465 if o == nil || o.AgentName == nil {1466 return nil, false1467 }1468 return o.AgentName, true1469}1470// HasAgentName returns a boolean if a field has been set.1471func (o *Service) HasAgentName() bool {1472 if o != nil && o.AgentName != nil {1473 return true1474 }1475 return false1476}1477// SetAgentName gets a reference to the given string and assigns it to the AgentName field.1478func (o *Service) SetAgentName(v string) {1479 o.AgentName = &v1480}1481// GetTags returns the Tags field value if set, zero value otherwise.1482func (o *Service) GetTags() map[string]string {1483 if o == nil || o.Tags == nil {1484 var ret map[string]string1485 return ret1486 }1487 return *o.Tags1488}1489// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise1490// and a boolean to check if the value has been set.1491func (o *Service) GetTagsOk() (*map[string]string, bool) {1492 if o == nil || o.Tags == nil {1493 return nil, false1494 }1495 return o.Tags, true1496}1497// HasTags returns a boolean if a field has been set.1498func (o *Service) HasTags() bool {1499 if o != nil && o.Tags != nil {1500 return true1501 }1502 return false1503}1504// SetTags gets a reference to the given map[string]string and assigns it to the Tags field.1505func (o *Service) SetTags(v map[string]string) {1506 o.Tags = &v1507}1508// GetServices returns the Services field value if set, zero value otherwise.1509func (o *Service) GetServices() map[string]map[string]string {1510 if o == nil || o.Services == nil {1511 var ret map[string]map[string]string1512 return ret1513 }1514 return *o.Services1515}1516// GetServicesOk returns a tuple with the Services field value if set, nil otherwise1517// and a boolean to check if the value has been set.1518func (o *Service) GetServicesOk() (*map[string]map[string]string, bool) {1519 if o == nil || o.Services == nil {1520 return nil, false1521 }1522 return o.Services, true1523}1524// HasServices returns a boolean if a field has been set.1525func (o *Service) HasServices() bool {1526 if o != nil && o.Services != nil {1527 return true1528 }1529 return false1530}1531// SetServices gets a reference to the given map[string]map[string]string and assigns it to the Services field.1532func (o *Service) SetServices(v map[string]map[string]string) {1533 o.Services = &v1534}1535// GetRtts returns the Rtts field value if set, zero value otherwise.1536func (o *Service) GetRtts() map[string]map[string]interface{} {1537 if o == nil || o.Rtts == nil {1538 var ret map[string]map[string]interface{}1539 return ret1540 }1541 return *o.Rtts1542}1543// GetRttsOk returns a tuple with the Rtts field value if set, nil otherwise1544// and a boolean to check if the value has been set.1545func (o *Service) GetRttsOk() (*map[string]map[string]interface{}, bool) {1546 if o == nil || o.Rtts == nil {1547 return nil, false1548 }1549 return o.Rtts, true1550}1551// HasRtts returns a boolean if a field has been set.1552func (o *Service) HasRtts() bool {1553 if o != nil && o.Rtts != nil {1554 return true1555 }1556 return false1557}1558// SetRtts gets a reference to the given map[string]map[string]interface{} and assigns it to the Rtts field.1559func (o *Service) SetRtts(v map[string]map[string]interface{}) {1560 o.Rtts = &v1561}1562// GetCredentials returns the Credentials field value if set, zero value otherwise.1563func (o *Service) GetCredentials() map[string]map[string]bool {1564 if o == nil || o.Credentials == nil {1565 var ret map[string]map[string]bool1566 return ret1567 }1568 return *o.Credentials1569}1570// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise1571// and a boolean to check if the value has been set.1572func (o *Service) GetCredentialsOk() (*map[string]map[string]bool, bool) {1573 if o == nil || o.Credentials == nil {1574 return nil, false1575 }1576 return o.Credentials, true1577}1578// HasCredentials returns a boolean if a field has been set.1579func (o *Service) HasCredentials() bool {1580 if o != nil && o.Credentials != nil {1581 return true1582 }1583 return false1584}1585// SetCredentials gets a reference to the given map[string]map[string]bool and assigns it to the Credentials field.1586func (o *Service) SetCredentials(v map[string]map[string]bool) {1587 o.Credentials = &v1588}1589// GetAttributes returns the Attributes field value if set, zero value otherwise.1590func (o *Service) GetAttributes() map[string]string {1591 if o == nil || o.Attributes == nil {1592 var ret map[string]string1593 return ret1594 }1595 return *o.Attributes1596}1597// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise1598// and a boolean to check if the value has been set.1599func (o *Service) GetAttributesOk() (*map[string]string, bool) {1600 if o == nil || o.Attributes == nil {1601 return nil, false1602 }1603 return o.Attributes, true1604}1605// HasAttributes returns a boolean if a field has been set.1606func (o *Service) HasAttributes() bool {1607 if o != nil && o.Attributes != nil {1608 return true1609 }1610 return false1611}1612// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field.1613func (o *Service) SetAttributes(v map[string]string) {1614 o.Attributes = &v1615}1616func (o Service) MarshalJSON() ([]byte, error) {1617 toSerialize := map[string]interface{}{}1618 if true {1619 toSerialize["service_id"] = o.ServiceId1620 }1621 if o.ServiceAssetId != nil {1622 toSerialize["service_asset_id"] = o.ServiceAssetId1623 }1624 if o.ServiceCreatedAt != nil {1625 toSerialize["service_created_at"] = o.ServiceCreatedAt1626 }1627 if o.ServiceUpdatedAt != nil {1628 toSerialize["service_updated_at"] = o.ServiceUpdatedAt1629 }1630 if o.ServiceAddress != nil {1631 toSerialize["service_address"] = o.ServiceAddress1632 }1633 if o.ServiceTransport != nil {1634 toSerialize["service_transport"] = o.ServiceTransport1635 }1636 if o.ServiceVhost != nil {1637 toSerialize["service_vhost"] = o.ServiceVhost1638 }1639 if o.ServicePort != nil {1640 toSerialize["service_port"] = o.ServicePort1641 }1642 if o.ServiceData != nil {1643 toSerialize["service_data"] = o.ServiceData1644 }1645 if o.ServiceProtocol != nil {1646 toSerialize["service_protocol"] = o.ServiceProtocol1647 }1648 if o.ServiceSummary != nil {1649 toSerialize["service_summary"] = o.ServiceSummary1650 }1651 if o.ServiceScreenshotLink != nil {1652 toSerialize["service_screenshot_link"] = o.ServiceScreenshotLink1653 }1654 if o.ServiceLink != nil {1655 toSerialize["service_link"] = o.ServiceLink1656 }1657 if true {1658 toSerialize["id"] = o.Id1659 }1660 if o.CreatedAt != nil {1661 toSerialize["created_at"] = o.CreatedAt1662 }1663 if o.UpdatedAt != nil {1664 toSerialize["updated_at"] = o.UpdatedAt1665 }1666 if o.OrganizationId != nil {1667 toSerialize["organization_id"] = o.OrganizationId1668 }1669 if o.SiteId != nil {1670 toSerialize["site_id"] = o.SiteId1671 }1672 if o.Alive != nil {1673 toSerialize["alive"] = o.Alive1674 }1675 if o.FirstSeen != nil {1676 toSerialize["first_seen"] = o.FirstSeen1677 }1678 if o.LastSeen != nil {1679 toSerialize["last_seen"] = o.LastSeen1680 }1681 if o.DetectedBy != nil {1682 toSerialize["detected_by"] = o.DetectedBy1683 }1684 if o.Type != nil {1685 toSerialize["type"] = o.Type1686 }1687 if o.Os != nil {1688 toSerialize["os"] = o.Os1689 }1690 if o.OsVersion != nil {1691 toSerialize["os_version"] = o.OsVersion1692 }1693 if o.Hw != nil {1694 toSerialize["hw"] = o.Hw1695 }1696 if o.Addresses != nil {1697 toSerialize["addresses"] = o.Addresses1698 }1699 if o.AddressesExtra != nil {1700 toSerialize["addresses_extra"] = o.AddressesExtra1701 }1702 if o.Macs != nil {1703 toSerialize["macs"] = o.Macs1704 }1705 if o.MacVendors != nil {1706 toSerialize["mac_vendors"] = o.MacVendors1707 }1708 if o.Names != nil {1709 toSerialize["names"] = o.Names1710 }1711 if o.Domains != nil {1712 toSerialize["domains"] = o.Domains1713 }1714 if o.ServiceCount != nil {1715 toSerialize["service_count"] = o.ServiceCount1716 }1717 if o.ServiceCountTcp != nil {1718 toSerialize["service_count_tcp"] = o.ServiceCountTcp1719 }1720 if o.ServiceCountUdp != nil {1721 toSerialize["service_count_udp"] = o.ServiceCountUdp1722 }1723 if o.ServiceCountArp != nil {1724 toSerialize["service_count_arp"] = o.ServiceCountArp1725 }1726 if o.ServiceCountIcmp != nil {1727 toSerialize["service_count_icmp"] = o.ServiceCountIcmp1728 }1729 if o.LowestTtl != nil {1730 toSerialize["lowest_ttl"] = o.LowestTtl1731 }1732 if o.LowestRtt != nil {1733 toSerialize["lowest_rtt"] = o.LowestRtt1734 }1735 if o.LastAgentId != nil {1736 toSerialize["last_agent_id"] = o.LastAgentId1737 }1738 if o.LastTaskId != nil {1739 toSerialize["last_task_id"] = o.LastTaskId1740 }1741 if o.NewestMac != nil {1742 toSerialize["newest_mac"] = o.NewestMac1743 }1744 if o.NewestMacVendor != nil {1745 toSerialize["newest_mac_vendor"] = o.NewestMacVendor1746 }1747 if o.NewestMacAge != nil {1748 toSerialize["newest_mac_age"] = o.NewestMacAge1749 }1750 if o.Comments != nil {1751 toSerialize["comments"] = o.Comments1752 }1753 if o.ServicePortsTcp != nil {1754 toSerialize["service_ports_tcp"] = o.ServicePortsTcp1755 }1756 if o.ServicePortsUdp != nil {1757 toSerialize["service_ports_udp"] = o.ServicePortsUdp1758 }1759 if o.ServicePortsProtocols != nil {1760 toSerialize["service_ports_protocols"] = o.ServicePortsProtocols1761 }1762 if o.ServicePortsProducts != nil {1763 toSerialize["service_ports_products"] = o.ServicePortsProducts1764 }1765 if o.OrgName != nil {1766 toSerialize["org_name"] = o.OrgName1767 }1768 if o.SiteName != nil {1769 toSerialize["site_name"] = o.SiteName1770 }1771 if o.AgentName != nil {1772 toSerialize["agent_name"] = o.AgentName1773 }1774 if o.Tags != nil {1775 toSerialize["tags"] = o.Tags1776 }1777 if o.Services != nil {1778 toSerialize["services"] = o.Services1779 }1780 if o.Rtts != nil {1781 toSerialize["rtts"] = o.Rtts1782 }1783 if o.Credentials != nil {1784 toSerialize["credentials"] = o.Credentials1785 }1786 if o.Attributes != nil {1787 toSerialize["attributes"] = o.Attributes1788 }1789 return json.Marshal(toSerialize)1790}1791type NullableService struct {1792 value *Service1793 isSet bool1794}1795func (v NullableService) Get() *Service {1796 return v.value1797}1798func (v *NullableService) Set(val *Service) {1799 v.value = val1800 v.isSet = true1801}1802func (v NullableService) IsSet() bool {1803 return v.isSet1804}1805func (v *NullableService) Unset() {1806 v.value = nil1807 v.isSet = false1808}1809func NewNullableService(val *Service) *NullableService {1810 return &NullableService{value: val, isSet: true}1811}1812func (v NullableService) MarshalJSON() ([]byte, error) {1813 return json.Marshal(v.value)1814}1815func (v *NullableService) UnmarshalJSON(src []byte) error {1816 v.isSet = true1817 return json.Unmarshal(src, &v.value)1818}...

Full Screen

Full Screen

model_asset.go

Source:model_asset.go Github

copy

Full Screen

...89 return nil, false90 }91 return &o.Id, true92}93// SetId sets field value94func (o *Asset) SetId(v string) {95 o.Id = v96}97// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.98func (o *Asset) GetCreatedAt() int64 {99 if o == nil || o.CreatedAt == nil {100 var ret int64101 return ret102 }103 return *o.CreatedAt104}105// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise106// and a boolean to check if the value has been set.107func (o *Asset) GetCreatedAtOk() (*int64, bool) {108 if o == nil || o.CreatedAt == nil {109 return nil, false110 }111 return o.CreatedAt, true112}113// HasCreatedAt returns a boolean if a field has been set.114func (o *Asset) HasCreatedAt() bool {115 if o != nil && o.CreatedAt != nil {116 return true117 }118 return false119}120// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.121func (o *Asset) SetCreatedAt(v int64) {122 o.CreatedAt = &v123}124// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.125func (o *Asset) GetUpdatedAt() int64 {126 if o == nil || o.UpdatedAt == nil {127 var ret int64128 return ret129 }130 return *o.UpdatedAt131}132// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise133// and a boolean to check if the value has been set.134func (o *Asset) GetUpdatedAtOk() (*int64, bool) {135 if o == nil || o.UpdatedAt == nil {136 return nil, false137 }138 return o.UpdatedAt, true139}140// HasUpdatedAt returns a boolean if a field has been set.141func (o *Asset) HasUpdatedAt() bool {142 if o != nil && o.UpdatedAt != nil {143 return true144 }145 return false146}147// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.148func (o *Asset) SetUpdatedAt(v int64) {149 o.UpdatedAt = &v150}151// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.152func (o *Asset) GetOrganizationId() string {153 if o == nil || o.OrganizationId == nil {154 var ret string155 return ret156 }157 return *o.OrganizationId158}159// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise160// and a boolean to check if the value has been set.161func (o *Asset) GetOrganizationIdOk() (*string, bool) {162 if o == nil || o.OrganizationId == nil {163 return nil, false164 }165 return o.OrganizationId, true166}167// HasOrganizationId returns a boolean if a field has been set.168func (o *Asset) HasOrganizationId() bool {169 if o != nil && o.OrganizationId != nil {170 return true171 }172 return false173}174// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.175func (o *Asset) SetOrganizationId(v string) {176 o.OrganizationId = &v177}178// GetSiteId returns the SiteId field value if set, zero value otherwise.179func (o *Asset) GetSiteId() string {180 if o == nil || o.SiteId == nil {181 var ret string182 return ret183 }184 return *o.SiteId185}186// GetSiteIdOk returns a tuple with the SiteId field value if set, nil otherwise187// and a boolean to check if the value has been set.188func (o *Asset) GetSiteIdOk() (*string, bool) {189 if o == nil || o.SiteId == nil {190 return nil, false191 }192 return o.SiteId, true193}194// HasSiteId returns a boolean if a field has been set.195func (o *Asset) HasSiteId() bool {196 if o != nil && o.SiteId != nil {197 return true198 }199 return false200}201// SetSiteId gets a reference to the given string and assigns it to the SiteId field.202func (o *Asset) SetSiteId(v string) {203 o.SiteId = &v204}205// GetAlive returns the Alive field value if set, zero value otherwise.206func (o *Asset) GetAlive() bool {207 if o == nil || o.Alive == nil {208 var ret bool209 return ret210 }211 return *o.Alive212}213// GetAliveOk returns a tuple with the Alive field value if set, nil otherwise214// and a boolean to check if the value has been set.215func (o *Asset) GetAliveOk() (*bool, bool) {216 if o == nil || o.Alive == nil {217 return nil, false218 }219 return o.Alive, true220}221// HasAlive returns a boolean if a field has been set.222func (o *Asset) HasAlive() bool {223 if o != nil && o.Alive != nil {224 return true225 }226 return false227}228// SetAlive gets a reference to the given bool and assigns it to the Alive field.229func (o *Asset) SetAlive(v bool) {230 o.Alive = &v231}232// GetFirstSeen returns the FirstSeen field value if set, zero value otherwise.233func (o *Asset) GetFirstSeen() int64 {234 if o == nil || o.FirstSeen == nil {235 var ret int64236 return ret237 }238 return *o.FirstSeen239}240// GetFirstSeenOk returns a tuple with the FirstSeen field value if set, nil otherwise241// and a boolean to check if the value has been set.242func (o *Asset) GetFirstSeenOk() (*int64, bool) {243 if o == nil || o.FirstSeen == nil {244 return nil, false245 }246 return o.FirstSeen, true247}248// HasFirstSeen returns a boolean if a field has been set.249func (o *Asset) HasFirstSeen() bool {250 if o != nil && o.FirstSeen != nil {251 return true252 }253 return false254}255// SetFirstSeen gets a reference to the given int64 and assigns it to the FirstSeen field.256func (o *Asset) SetFirstSeen(v int64) {257 o.FirstSeen = &v258}259// GetLastSeen returns the LastSeen field value if set, zero value otherwise.260func (o *Asset) GetLastSeen() int64 {261 if o == nil || o.LastSeen == nil {262 var ret int64263 return ret264 }265 return *o.LastSeen266}267// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise268// and a boolean to check if the value has been set.269func (o *Asset) GetLastSeenOk() (*int64, bool) {270 if o == nil || o.LastSeen == nil {271 return nil, false272 }273 return o.LastSeen, true274}275// HasLastSeen returns a boolean if a field has been set.276func (o *Asset) HasLastSeen() bool {277 if o != nil && o.LastSeen != nil {278 return true279 }280 return false281}282// SetLastSeen gets a reference to the given int64 and assigns it to the LastSeen field.283func (o *Asset) SetLastSeen(v int64) {284 o.LastSeen = &v285}286// GetDetectedBy returns the DetectedBy field value if set, zero value otherwise.287func (o *Asset) GetDetectedBy() string {288 if o == nil || o.DetectedBy == nil {289 var ret string290 return ret291 }292 return *o.DetectedBy293}294// GetDetectedByOk returns a tuple with the DetectedBy field value if set, nil otherwise295// and a boolean to check if the value has been set.296func (o *Asset) GetDetectedByOk() (*string, bool) {297 if o == nil || o.DetectedBy == nil {298 return nil, false299 }300 return o.DetectedBy, true301}302// HasDetectedBy returns a boolean if a field has been set.303func (o *Asset) HasDetectedBy() bool {304 if o != nil && o.DetectedBy != nil {305 return true306 }307 return false308}309// SetDetectedBy gets a reference to the given string and assigns it to the DetectedBy field.310func (o *Asset) SetDetectedBy(v string) {311 o.DetectedBy = &v312}313// GetType returns the Type field value if set, zero value otherwise.314func (o *Asset) GetType() string {315 if o == nil || o.Type == nil {316 var ret string317 return ret318 }319 return *o.Type320}321// GetTypeOk returns a tuple with the Type field value if set, nil otherwise322// and a boolean to check if the value has been set.323func (o *Asset) GetTypeOk() (*string, bool) {324 if o == nil || o.Type == nil {325 return nil, false326 }327 return o.Type, true328}329// HasType returns a boolean if a field has been set.330func (o *Asset) HasType() bool {331 if o != nil && o.Type != nil {332 return true333 }334 return false335}336// SetType gets a reference to the given string and assigns it to the Type field.337func (o *Asset) SetType(v string) {338 o.Type = &v339}340// GetOs returns the Os field value if set, zero value otherwise.341func (o *Asset) GetOs() string {342 if o == nil || o.Os == nil {343 var ret string344 return ret345 }346 return *o.Os347}348// GetOsOk returns a tuple with the Os field value if set, nil otherwise349// and a boolean to check if the value has been set.350func (o *Asset) GetOsOk() (*string, bool) {351 if o == nil || o.Os == nil {352 return nil, false353 }354 return o.Os, true355}356// HasOs returns a boolean if a field has been set.357func (o *Asset) HasOs() bool {358 if o != nil && o.Os != nil {359 return true360 }361 return false362}363// SetOs gets a reference to the given string and assigns it to the Os field.364func (o *Asset) SetOs(v string) {365 o.Os = &v366}367// GetOsVersion returns the OsVersion field value if set, zero value otherwise.368func (o *Asset) GetOsVersion() string {369 if o == nil || o.OsVersion == nil {370 var ret string371 return ret372 }373 return *o.OsVersion374}375// GetOsVersionOk returns a tuple with the OsVersion field value if set, nil otherwise376// and a boolean to check if the value has been set.377func (o *Asset) GetOsVersionOk() (*string, bool) {378 if o == nil || o.OsVersion == nil {379 return nil, false380 }381 return o.OsVersion, true382}383// HasOsVersion returns a boolean if a field has been set.384func (o *Asset) HasOsVersion() bool {385 if o != nil && o.OsVersion != nil {386 return true387 }388 return false389}390// SetOsVersion gets a reference to the given string and assigns it to the OsVersion field.391func (o *Asset) SetOsVersion(v string) {392 o.OsVersion = &v393}394// GetHw returns the Hw field value if set, zero value otherwise.395func (o *Asset) GetHw() string {396 if o == nil || o.Hw == nil {397 var ret string398 return ret399 }400 return *o.Hw401}402// GetHwOk returns a tuple with the Hw field value if set, nil otherwise403// and a boolean to check if the value has been set.404func (o *Asset) GetHwOk() (*string, bool) {405 if o == nil || o.Hw == nil {406 return nil, false407 }408 return o.Hw, true409}410// HasHw returns a boolean if a field has been set.411func (o *Asset) HasHw() bool {412 if o != nil && o.Hw != nil {413 return true414 }415 return false416}417// SetHw gets a reference to the given string and assigns it to the Hw field.418func (o *Asset) SetHw(v string) {419 o.Hw = &v420}421// GetAddresses returns the Addresses field value if set, zero value otherwise.422func (o *Asset) GetAddresses() []string {423 if o == nil || o.Addresses == nil {424 var ret []string425 return ret426 }427 return *o.Addresses428}429// GetAddressesOk returns a tuple with the Addresses field value if set, nil otherwise430// and a boolean to check if the value has been set.431func (o *Asset) GetAddressesOk() (*[]string, bool) {432 if o == nil || o.Addresses == nil {433 return nil, false434 }435 return o.Addresses, true436}437// HasAddresses returns a boolean if a field has been set.438func (o *Asset) HasAddresses() bool {439 if o != nil && o.Addresses != nil {440 return true441 }442 return false443}444// SetAddresses gets a reference to the given []string and assigns it to the Addresses field.445func (o *Asset) SetAddresses(v []string) {446 o.Addresses = &v447}448// GetAddressesExtra returns the AddressesExtra field value if set, zero value otherwise.449func (o *Asset) GetAddressesExtra() []string {450 if o == nil || o.AddressesExtra == nil {451 var ret []string452 return ret453 }454 return *o.AddressesExtra455}456// GetAddressesExtraOk returns a tuple with the AddressesExtra field value if set, nil otherwise457// and a boolean to check if the value has been set.458func (o *Asset) GetAddressesExtraOk() (*[]string, bool) {459 if o == nil || o.AddressesExtra == nil {460 return nil, false461 }462 return o.AddressesExtra, true463}464// HasAddressesExtra returns a boolean if a field has been set.465func (o *Asset) HasAddressesExtra() bool {466 if o != nil && o.AddressesExtra != nil {467 return true468 }469 return false470}471// SetAddressesExtra gets a reference to the given []string and assigns it to the AddressesExtra field.472func (o *Asset) SetAddressesExtra(v []string) {473 o.AddressesExtra = &v474}475// GetMacs returns the Macs field value if set, zero value otherwise.476func (o *Asset) GetMacs() []string {477 if o == nil || o.Macs == nil {478 var ret []string479 return ret480 }481 return *o.Macs482}483// GetMacsOk returns a tuple with the Macs field value if set, nil otherwise484// and a boolean to check if the value has been set.485func (o *Asset) GetMacsOk() (*[]string, bool) {486 if o == nil || o.Macs == nil {487 return nil, false488 }489 return o.Macs, true490}491// HasMacs returns a boolean if a field has been set.492func (o *Asset) HasMacs() bool {493 if o != nil && o.Macs != nil {494 return true495 }496 return false497}498// SetMacs gets a reference to the given []string and assigns it to the Macs field.499func (o *Asset) SetMacs(v []string) {500 o.Macs = &v501}502// GetMacVendors returns the MacVendors field value if set, zero value otherwise.503func (o *Asset) GetMacVendors() []string {504 if o == nil || o.MacVendors == nil {505 var ret []string506 return ret507 }508 return *o.MacVendors509}510// GetMacVendorsOk returns a tuple with the MacVendors field value if set, nil otherwise511// and a boolean to check if the value has been set.512func (o *Asset) GetMacVendorsOk() (*[]string, bool) {513 if o == nil || o.MacVendors == nil {514 return nil, false515 }516 return o.MacVendors, true517}518// HasMacVendors returns a boolean if a field has been set.519func (o *Asset) HasMacVendors() bool {520 if o != nil && o.MacVendors != nil {521 return true522 }523 return false524}525// SetMacVendors gets a reference to the given []string and assigns it to the MacVendors field.526func (o *Asset) SetMacVendors(v []string) {527 o.MacVendors = &v528}529// GetNames returns the Names field value if set, zero value otherwise.530func (o *Asset) GetNames() []string {531 if o == nil || o.Names == nil {532 var ret []string533 return ret534 }535 return *o.Names536}537// GetNamesOk returns a tuple with the Names field value if set, nil otherwise538// and a boolean to check if the value has been set.539func (o *Asset) GetNamesOk() (*[]string, bool) {540 if o == nil || o.Names == nil {541 return nil, false542 }543 return o.Names, true544}545// HasNames returns a boolean if a field has been set.546func (o *Asset) HasNames() bool {547 if o != nil && o.Names != nil {548 return true549 }550 return false551}552// SetNames gets a reference to the given []string and assigns it to the Names field.553func (o *Asset) SetNames(v []string) {554 o.Names = &v555}556// GetDomains returns the Domains field value if set, zero value otherwise.557func (o *Asset) GetDomains() []string {558 if o == nil || o.Domains == nil {559 var ret []string560 return ret561 }562 return *o.Domains563}564// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise565// and a boolean to check if the value has been set.566func (o *Asset) GetDomainsOk() (*[]string, bool) {567 if o == nil || o.Domains == nil {568 return nil, false569 }570 return o.Domains, true571}572// HasDomains returns a boolean if a field has been set.573func (o *Asset) HasDomains() bool {574 if o != nil && o.Domains != nil {575 return true576 }577 return false578}579// SetDomains gets a reference to the given []string and assigns it to the Domains field.580func (o *Asset) SetDomains(v []string) {581 o.Domains = &v582}583// GetServiceCount returns the ServiceCount field value if set, zero value otherwise.584func (o *Asset) GetServiceCount() int64 {585 if o == nil || o.ServiceCount == nil {586 var ret int64587 return ret588 }589 return *o.ServiceCount590}591// GetServiceCountOk returns a tuple with the ServiceCount field value if set, nil otherwise592// and a boolean to check if the value has been set.593func (o *Asset) GetServiceCountOk() (*int64, bool) {594 if o == nil || o.ServiceCount == nil {595 return nil, false596 }597 return o.ServiceCount, true598}599// HasServiceCount returns a boolean if a field has been set.600func (o *Asset) HasServiceCount() bool {601 if o != nil && o.ServiceCount != nil {602 return true603 }604 return false605}606// SetServiceCount gets a reference to the given int64 and assigns it to the ServiceCount field.607func (o *Asset) SetServiceCount(v int64) {608 o.ServiceCount = &v609}610// GetServiceCountTcp returns the ServiceCountTcp field value if set, zero value otherwise.611func (o *Asset) GetServiceCountTcp() int64 {612 if o == nil || o.ServiceCountTcp == nil {613 var ret int64614 return ret615 }616 return *o.ServiceCountTcp617}618// GetServiceCountTcpOk returns a tuple with the ServiceCountTcp field value if set, nil otherwise619// and a boolean to check if the value has been set.620func (o *Asset) GetServiceCountTcpOk() (*int64, bool) {621 if o == nil || o.ServiceCountTcp == nil {622 return nil, false623 }624 return o.ServiceCountTcp, true625}626// HasServiceCountTcp returns a boolean if a field has been set.627func (o *Asset) HasServiceCountTcp() bool {628 if o != nil && o.ServiceCountTcp != nil {629 return true630 }631 return false632}633// SetServiceCountTcp gets a reference to the given int64 and assigns it to the ServiceCountTcp field.634func (o *Asset) SetServiceCountTcp(v int64) {635 o.ServiceCountTcp = &v636}637// GetServiceCountUdp returns the ServiceCountUdp field value if set, zero value otherwise.638func (o *Asset) GetServiceCountUdp() int64 {639 if o == nil || o.ServiceCountUdp == nil {640 var ret int64641 return ret642 }643 return *o.ServiceCountUdp644}645// GetServiceCountUdpOk returns a tuple with the ServiceCountUdp field value if set, nil otherwise646// and a boolean to check if the value has been set.647func (o *Asset) GetServiceCountUdpOk() (*int64, bool) {648 if o == nil || o.ServiceCountUdp == nil {649 return nil, false650 }651 return o.ServiceCountUdp, true652}653// HasServiceCountUdp returns a boolean if a field has been set.654func (o *Asset) HasServiceCountUdp() bool {655 if o != nil && o.ServiceCountUdp != nil {656 return true657 }658 return false659}660// SetServiceCountUdp gets a reference to the given int64 and assigns it to the ServiceCountUdp field.661func (o *Asset) SetServiceCountUdp(v int64) {662 o.ServiceCountUdp = &v663}664// GetServiceCountArp returns the ServiceCountArp field value if set, zero value otherwise.665func (o *Asset) GetServiceCountArp() int64 {666 if o == nil || o.ServiceCountArp == nil {667 var ret int64668 return ret669 }670 return *o.ServiceCountArp671}672// GetServiceCountArpOk returns a tuple with the ServiceCountArp field value if set, nil otherwise673// and a boolean to check if the value has been set.674func (o *Asset) GetServiceCountArpOk() (*int64, bool) {675 if o == nil || o.ServiceCountArp == nil {676 return nil, false677 }678 return o.ServiceCountArp, true679}680// HasServiceCountArp returns a boolean if a field has been set.681func (o *Asset) HasServiceCountArp() bool {682 if o != nil && o.ServiceCountArp != nil {683 return true684 }685 return false686}687// SetServiceCountArp gets a reference to the given int64 and assigns it to the ServiceCountArp field.688func (o *Asset) SetServiceCountArp(v int64) {689 o.ServiceCountArp = &v690}691// GetServiceCountIcmp returns the ServiceCountIcmp field value if set, zero value otherwise.692func (o *Asset) GetServiceCountIcmp() int64 {693 if o == nil || o.ServiceCountIcmp == nil {694 var ret int64695 return ret696 }697 return *o.ServiceCountIcmp698}699// GetServiceCountIcmpOk returns a tuple with the ServiceCountIcmp field value if set, nil otherwise700// and a boolean to check if the value has been set.701func (o *Asset) GetServiceCountIcmpOk() (*int64, bool) {702 if o == nil || o.ServiceCountIcmp == nil {703 return nil, false704 }705 return o.ServiceCountIcmp, true706}707// HasServiceCountIcmp returns a boolean if a field has been set.708func (o *Asset) HasServiceCountIcmp() bool {709 if o != nil && o.ServiceCountIcmp != nil {710 return true711 }712 return false713}714// SetServiceCountIcmp gets a reference to the given int64 and assigns it to the ServiceCountIcmp field.715func (o *Asset) SetServiceCountIcmp(v int64) {716 o.ServiceCountIcmp = &v717}718// GetLowestTtl returns the LowestTtl field value if set, zero value otherwise.719func (o *Asset) GetLowestTtl() int64 {720 if o == nil || o.LowestTtl == nil {721 var ret int64722 return ret723 }724 return *o.LowestTtl725}726// GetLowestTtlOk returns a tuple with the LowestTtl field value if set, nil otherwise727// and a boolean to check if the value has been set.728func (o *Asset) GetLowestTtlOk() (*int64, bool) {729 if o == nil || o.LowestTtl == nil {730 return nil, false731 }732 return o.LowestTtl, true733}734// HasLowestTtl returns a boolean if a field has been set.735func (o *Asset) HasLowestTtl() bool {736 if o != nil && o.LowestTtl != nil {737 return true738 }739 return false740}741// SetLowestTtl gets a reference to the given int64 and assigns it to the LowestTtl field.742func (o *Asset) SetLowestTtl(v int64) {743 o.LowestTtl = &v744}745// GetLowestRtt returns the LowestRtt field value if set, zero value otherwise.746func (o *Asset) GetLowestRtt() int64 {747 if o == nil || o.LowestRtt == nil {748 var ret int64749 return ret750 }751 return *o.LowestRtt752}753// GetLowestRttOk returns a tuple with the LowestRtt field value if set, nil otherwise754// and a boolean to check if the value has been set.755func (o *Asset) GetLowestRttOk() (*int64, bool) {756 if o == nil || o.LowestRtt == nil {757 return nil, false758 }759 return o.LowestRtt, true760}761// HasLowestRtt returns a boolean if a field has been set.762func (o *Asset) HasLowestRtt() bool {763 if o != nil && o.LowestRtt != nil {764 return true765 }766 return false767}768// SetLowestRtt gets a reference to the given int64 and assigns it to the LowestRtt field.769func (o *Asset) SetLowestRtt(v int64) {770 o.LowestRtt = &v771}772// GetLastAgentId returns the LastAgentId field value if set, zero value otherwise.773func (o *Asset) GetLastAgentId() string {774 if o == nil || o.LastAgentId == nil {775 var ret string776 return ret777 }778 return *o.LastAgentId779}780// GetLastAgentIdOk returns a tuple with the LastAgentId field value if set, nil otherwise781// and a boolean to check if the value has been set.782func (o *Asset) GetLastAgentIdOk() (*string, bool) {783 if o == nil || o.LastAgentId == nil {784 return nil, false785 }786 return o.LastAgentId, true787}788// HasLastAgentId returns a boolean if a field has been set.789func (o *Asset) HasLastAgentId() bool {790 if o != nil && o.LastAgentId != nil {791 return true792 }793 return false794}795// SetLastAgentId gets a reference to the given string and assigns it to the LastAgentId field.796func (o *Asset) SetLastAgentId(v string) {797 o.LastAgentId = &v798}799// GetLastTaskId returns the LastTaskId field value if set, zero value otherwise.800func (o *Asset) GetLastTaskId() string {801 if o == nil || o.LastTaskId == nil {802 var ret string803 return ret804 }805 return *o.LastTaskId806}807// GetLastTaskIdOk returns a tuple with the LastTaskId field value if set, nil otherwise808// and a boolean to check if the value has been set.809func (o *Asset) GetLastTaskIdOk() (*string, bool) {810 if o == nil || o.LastTaskId == nil {811 return nil, false812 }813 return o.LastTaskId, true814}815// HasLastTaskId returns a boolean if a field has been set.816func (o *Asset) HasLastTaskId() bool {817 if o != nil && o.LastTaskId != nil {818 return true819 }820 return false821}822// SetLastTaskId gets a reference to the given string and assigns it to the LastTaskId field.823func (o *Asset) SetLastTaskId(v string) {824 o.LastTaskId = &v825}826// GetNewestMac returns the NewestMac field value if set, zero value otherwise.827func (o *Asset) GetNewestMac() string {828 if o == nil || o.NewestMac == nil {829 var ret string830 return ret831 }832 return *o.NewestMac833}834// GetNewestMacOk returns a tuple with the NewestMac field value if set, nil otherwise835// and a boolean to check if the value has been set.836func (o *Asset) GetNewestMacOk() (*string, bool) {837 if o == nil || o.NewestMac == nil {838 return nil, false839 }840 return o.NewestMac, true841}842// HasNewestMac returns a boolean if a field has been set.843func (o *Asset) HasNewestMac() bool {844 if o != nil && o.NewestMac != nil {845 return true846 }847 return false848}849// SetNewestMac gets a reference to the given string and assigns it to the NewestMac field.850func (o *Asset) SetNewestMac(v string) {851 o.NewestMac = &v852}853// GetNewestMacVendor returns the NewestMacVendor field value if set, zero value otherwise.854func (o *Asset) GetNewestMacVendor() string {855 if o == nil || o.NewestMacVendor == nil {856 var ret string857 return ret858 }859 return *o.NewestMacVendor860}861// GetNewestMacVendorOk returns a tuple with the NewestMacVendor field value if set, nil otherwise862// and a boolean to check if the value has been set.863func (o *Asset) GetNewestMacVendorOk() (*string, bool) {864 if o == nil || o.NewestMacVendor == nil {865 return nil, false866 }867 return o.NewestMacVendor, true868}869// HasNewestMacVendor returns a boolean if a field has been set.870func (o *Asset) HasNewestMacVendor() bool {871 if o != nil && o.NewestMacVendor != nil {872 return true873 }874 return false875}876// SetNewestMacVendor gets a reference to the given string and assigns it to the NewestMacVendor field.877func (o *Asset) SetNewestMacVendor(v string) {878 o.NewestMacVendor = &v879}880// GetNewestMacAge returns the NewestMacAge field value if set, zero value otherwise.881func (o *Asset) GetNewestMacAge() int64 {882 if o == nil || o.NewestMacAge == nil {883 var ret int64884 return ret885 }886 return *o.NewestMacAge887}888// GetNewestMacAgeOk returns a tuple with the NewestMacAge field value if set, nil otherwise889// and a boolean to check if the value has been set.890func (o *Asset) GetNewestMacAgeOk() (*int64, bool) {891 if o == nil || o.NewestMacAge == nil {892 return nil, false893 }894 return o.NewestMacAge, true895}896// HasNewestMacAge returns a boolean if a field has been set.897func (o *Asset) HasNewestMacAge() bool {898 if o != nil && o.NewestMacAge != nil {899 return true900 }901 return false902}903// SetNewestMacAge gets a reference to the given int64 and assigns it to the NewestMacAge field.904func (o *Asset) SetNewestMacAge(v int64) {905 o.NewestMacAge = &v906}907// GetComments returns the Comments field value if set, zero value otherwise.908func (o *Asset) GetComments() string {909 if o == nil || o.Comments == nil {910 var ret string911 return ret912 }913 return *o.Comments914}915// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise916// and a boolean to check if the value has been set.917func (o *Asset) GetCommentsOk() (*string, bool) {918 if o == nil || o.Comments == nil {919 return nil, false920 }921 return o.Comments, true922}923// HasComments returns a boolean if a field has been set.924func (o *Asset) HasComments() bool {925 if o != nil && o.Comments != nil {926 return true927 }928 return false929}930// SetComments gets a reference to the given string and assigns it to the Comments field.931func (o *Asset) SetComments(v string) {932 o.Comments = &v933}934// GetServicePortsTcp returns the ServicePortsTcp field value if set, zero value otherwise.935func (o *Asset) GetServicePortsTcp() []string {936 if o == nil || o.ServicePortsTcp == nil {937 var ret []string938 return ret939 }940 return *o.ServicePortsTcp941}942// GetServicePortsTcpOk returns a tuple with the ServicePortsTcp field value if set, nil otherwise943// and a boolean to check if the value has been set.944func (o *Asset) GetServicePortsTcpOk() (*[]string, bool) {945 if o == nil || o.ServicePortsTcp == nil {946 return nil, false947 }948 return o.ServicePortsTcp, true949}950// HasServicePortsTcp returns a boolean if a field has been set.951func (o *Asset) HasServicePortsTcp() bool {952 if o != nil && o.ServicePortsTcp != nil {953 return true954 }955 return false956}957// SetServicePortsTcp gets a reference to the given []string and assigns it to the ServicePortsTcp field.958func (o *Asset) SetServicePortsTcp(v []string) {959 o.ServicePortsTcp = &v960}961// GetServicePortsUdp returns the ServicePortsUdp field value if set, zero value otherwise.962func (o *Asset) GetServicePortsUdp() []string {963 if o == nil || o.ServicePortsUdp == nil {964 var ret []string965 return ret966 }967 return *o.ServicePortsUdp968}969// GetServicePortsUdpOk returns a tuple with the ServicePortsUdp field value if set, nil otherwise970// and a boolean to check if the value has been set.971func (o *Asset) GetServicePortsUdpOk() (*[]string, bool) {972 if o == nil || o.ServicePortsUdp == nil {973 return nil, false974 }975 return o.ServicePortsUdp, true976}977// HasServicePortsUdp returns a boolean if a field has been set.978func (o *Asset) HasServicePortsUdp() bool {979 if o != nil && o.ServicePortsUdp != nil {980 return true981 }982 return false983}984// SetServicePortsUdp gets a reference to the given []string and assigns it to the ServicePortsUdp field.985func (o *Asset) SetServicePortsUdp(v []string) {986 o.ServicePortsUdp = &v987}988// GetServicePortsProtocols returns the ServicePortsProtocols field value if set, zero value otherwise.989func (o *Asset) GetServicePortsProtocols() []string {990 if o == nil || o.ServicePortsProtocols == nil {991 var ret []string992 return ret993 }994 return *o.ServicePortsProtocols995}996// GetServicePortsProtocolsOk returns a tuple with the ServicePortsProtocols field value if set, nil otherwise997// and a boolean to check if the value has been set.998func (o *Asset) GetServicePortsProtocolsOk() (*[]string, bool) {999 if o == nil || o.ServicePortsProtocols == nil {1000 return nil, false1001 }1002 return o.ServicePortsProtocols, true1003}1004// HasServicePortsProtocols returns a boolean if a field has been set.1005func (o *Asset) HasServicePortsProtocols() bool {1006 if o != nil && o.ServicePortsProtocols != nil {1007 return true1008 }1009 return false1010}1011// SetServicePortsProtocols gets a reference to the given []string and assigns it to the ServicePortsProtocols field.1012func (o *Asset) SetServicePortsProtocols(v []string) {1013 o.ServicePortsProtocols = &v1014}1015// GetServicePortsProducts returns the ServicePortsProducts field value if set, zero value otherwise.1016func (o *Asset) GetServicePortsProducts() []string {1017 if o == nil || o.ServicePortsProducts == nil {1018 var ret []string1019 return ret1020 }1021 return *o.ServicePortsProducts1022}1023// GetServicePortsProductsOk returns a tuple with the ServicePortsProducts field value if set, nil otherwise1024// and a boolean to check if the value has been set.1025func (o *Asset) GetServicePortsProductsOk() (*[]string, bool) {1026 if o == nil || o.ServicePortsProducts == nil {1027 return nil, false1028 }1029 return o.ServicePortsProducts, true1030}1031// HasServicePortsProducts returns a boolean if a field has been set.1032func (o *Asset) HasServicePortsProducts() bool {1033 if o != nil && o.ServicePortsProducts != nil {1034 return true1035 }1036 return false1037}1038// SetServicePortsProducts gets a reference to the given []string and assigns it to the ServicePortsProducts field.1039func (o *Asset) SetServicePortsProducts(v []string) {1040 o.ServicePortsProducts = &v1041}1042// GetOrgName returns the OrgName field value if set, zero value otherwise.1043func (o *Asset) GetOrgName() string {1044 if o == nil || o.OrgName == nil {1045 var ret string1046 return ret1047 }1048 return *o.OrgName1049}1050// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise1051// and a boolean to check if the value has been set.1052func (o *Asset) GetOrgNameOk() (*string, bool) {1053 if o == nil || o.OrgName == nil {1054 return nil, false1055 }1056 return o.OrgName, true1057}1058// HasOrgName returns a boolean if a field has been set.1059func (o *Asset) HasOrgName() bool {1060 if o != nil && o.OrgName != nil {1061 return true1062 }1063 return false1064}1065// SetOrgName gets a reference to the given string and assigns it to the OrgName field.1066func (o *Asset) SetOrgName(v string) {1067 o.OrgName = &v1068}1069// GetSiteName returns the SiteName field value if set, zero value otherwise.1070func (o *Asset) GetSiteName() string {1071 if o == nil || o.SiteName == nil {1072 var ret string1073 return ret1074 }1075 return *o.SiteName1076}1077// GetSiteNameOk returns a tuple with the SiteName field value if set, nil otherwise1078// and a boolean to check if the value has been set.1079func (o *Asset) GetSiteNameOk() (*string, bool) {1080 if o == nil || o.SiteName == nil {1081 return nil, false1082 }1083 return o.SiteName, true1084}1085// HasSiteName returns a boolean if a field has been set.1086func (o *Asset) HasSiteName() bool {1087 if o != nil && o.SiteName != nil {1088 return true1089 }1090 return false1091}1092// SetSiteName gets a reference to the given string and assigns it to the SiteName field.1093func (o *Asset) SetSiteName(v string) {1094 o.SiteName = &v1095}1096// GetAgentName returns the AgentName field value if set, zero value otherwise.1097func (o *Asset) GetAgentName() string {1098 if o == nil || o.AgentName == nil {1099 var ret string1100 return ret1101 }1102 return *o.AgentName1103}1104// GetAgentNameOk returns a tuple with the AgentName field value if set, nil otherwise1105// and a boolean to check if the value has been set.1106func (o *Asset) GetAgentNameOk() (*string, bool) {1107 if o == nil || o.AgentName == nil {1108 return nil, false1109 }1110 return o.AgentName, true1111}1112// HasAgentName returns a boolean if a field has been set.1113func (o *Asset) HasAgentName() bool {1114 if o != nil && o.AgentName != nil {1115 return true1116 }1117 return false1118}1119// SetAgentName gets a reference to the given string and assigns it to the AgentName field.1120func (o *Asset) SetAgentName(v string) {1121 o.AgentName = &v1122}1123// GetTags returns the Tags field value if set, zero value otherwise.1124func (o *Asset) GetTags() map[string]string {1125 if o == nil || o.Tags == nil {1126 var ret map[string]string1127 return ret1128 }1129 return *o.Tags1130}1131// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise1132// and a boolean to check if the value has been set.1133func (o *Asset) GetTagsOk() (*map[string]string, bool) {1134 if o == nil || o.Tags == nil {1135 return nil, false1136 }1137 return o.Tags, true1138}1139// HasTags returns a boolean if a field has been set.1140func (o *Asset) HasTags() bool {1141 if o != nil && o.Tags != nil {1142 return true1143 }1144 return false1145}1146// SetTags gets a reference to the given map[string]string and assigns it to the Tags field.1147func (o *Asset) SetTags(v map[string]string) {1148 o.Tags = &v1149}1150// GetServices returns the Services field value if set, zero value otherwise.1151func (o *Asset) GetServices() map[string]map[string]string {1152 if o == nil || o.Services == nil {1153 var ret map[string]map[string]string1154 return ret1155 }1156 return *o.Services1157}1158// GetServicesOk returns a tuple with the Services field value if set, nil otherwise1159// and a boolean to check if the value has been set.1160func (o *Asset) GetServicesOk() (*map[string]map[string]string, bool) {1161 if o == nil || o.Services == nil {1162 return nil, false1163 }1164 return o.Services, true1165}1166// HasServices returns a boolean if a field has been set.1167func (o *Asset) HasServices() bool {1168 if o != nil && o.Services != nil {1169 return true1170 }1171 return false1172}1173// SetServices gets a reference to the given map[string]map[string]string and assigns it to the Services field.1174func (o *Asset) SetServices(v map[string]map[string]string) {1175 o.Services = &v1176}1177// GetRtts returns the Rtts field value if set, zero value otherwise.1178func (o *Asset) GetRtts() map[string]map[string]interface{} {1179 if o == nil || o.Rtts == nil {1180 var ret map[string]map[string]interface{}1181 return ret1182 }1183 return *o.Rtts1184}1185// GetRttsOk returns a tuple with the Rtts field value if set, nil otherwise1186// and a boolean to check if the value has been set.1187func (o *Asset) GetRttsOk() (*map[string]map[string]interface{}, bool) {1188 if o == nil || o.Rtts == nil {1189 return nil, false1190 }1191 return o.Rtts, true1192}1193// HasRtts returns a boolean if a field has been set.1194func (o *Asset) HasRtts() bool {1195 if o != nil && o.Rtts != nil {1196 return true1197 }1198 return false1199}1200// SetRtts gets a reference to the given map[string]map[string]interface{} and assigns it to the Rtts field.1201func (o *Asset) SetRtts(v map[string]map[string]interface{}) {1202 o.Rtts = &v1203}1204// GetCredentials returns the Credentials field value if set, zero value otherwise.1205func (o *Asset) GetCredentials() map[string]map[string]bool {1206 if o == nil || o.Credentials == nil {1207 var ret map[string]map[string]bool1208 return ret1209 }1210 return *o.Credentials1211}1212// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise1213// and a boolean to check if the value has been set.1214func (o *Asset) GetCredentialsOk() (*map[string]map[string]bool, bool) {1215 if o == nil || o.Credentials == nil {1216 return nil, false1217 }1218 return o.Credentials, true1219}1220// HasCredentials returns a boolean if a field has been set.1221func (o *Asset) HasCredentials() bool {1222 if o != nil && o.Credentials != nil {1223 return true1224 }1225 return false1226}1227// SetCredentials gets a reference to the given map[string]map[string]bool and assigns it to the Credentials field.1228func (o *Asset) SetCredentials(v map[string]map[string]bool) {1229 o.Credentials = &v1230}1231// GetAttributes returns the Attributes field value if set, zero value otherwise.1232func (o *Asset) GetAttributes() map[string]string {1233 if o == nil || o.Attributes == nil {1234 var ret map[string]string1235 return ret1236 }1237 return *o.Attributes1238}1239// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise1240// and a boolean to check if the value has been set.1241func (o *Asset) GetAttributesOk() (*map[string]string, bool) {1242 if o == nil || o.Attributes == nil {1243 return nil, false1244 }1245 return o.Attributes, true1246}1247// HasAttributes returns a boolean if a field has been set.1248func (o *Asset) HasAttributes() bool {1249 if o != nil && o.Attributes != nil {1250 return true1251 }1252 return false1253}1254// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field.1255func (o *Asset) SetAttributes(v map[string]string) {1256 o.Attributes = &v1257}1258func (o Asset) MarshalJSON() ([]byte, error) {1259 toSerialize := map[string]interface{}{}1260 if true {1261 toSerialize["id"] = o.Id1262 }1263 if o.CreatedAt != nil {1264 toSerialize["created_at"] = o.CreatedAt1265 }1266 if o.UpdatedAt != nil {1267 toSerialize["updated_at"] = o.UpdatedAt1268 }1269 if o.OrganizationId != nil {1270 toSerialize["organization_id"] = o.OrganizationId1271 }1272 if o.SiteId != nil {1273 toSerialize["site_id"] = o.SiteId1274 }1275 if o.Alive != nil {1276 toSerialize["alive"] = o.Alive1277 }1278 if o.FirstSeen != nil {1279 toSerialize["first_seen"] = o.FirstSeen1280 }1281 if o.LastSeen != nil {1282 toSerialize["last_seen"] = o.LastSeen1283 }1284 if o.DetectedBy != nil {1285 toSerialize["detected_by"] = o.DetectedBy1286 }1287 if o.Type != nil {1288 toSerialize["type"] = o.Type1289 }1290 if o.Os != nil {1291 toSerialize["os"] = o.Os1292 }1293 if o.OsVersion != nil {1294 toSerialize["os_version"] = o.OsVersion1295 }1296 if o.Hw != nil {1297 toSerialize["hw"] = o.Hw1298 }1299 if o.Addresses != nil {1300 toSerialize["addresses"] = o.Addresses1301 }1302 if o.AddressesExtra != nil {1303 toSerialize["addresses_extra"] = o.AddressesExtra1304 }1305 if o.Macs != nil {1306 toSerialize["macs"] = o.Macs1307 }1308 if o.MacVendors != nil {1309 toSerialize["mac_vendors"] = o.MacVendors1310 }1311 if o.Names != nil {1312 toSerialize["names"] = o.Names1313 }1314 if o.Domains != nil {1315 toSerialize["domains"] = o.Domains1316 }1317 if o.ServiceCount != nil {1318 toSerialize["service_count"] = o.ServiceCount1319 }1320 if o.ServiceCountTcp != nil {1321 toSerialize["service_count_tcp"] = o.ServiceCountTcp1322 }1323 if o.ServiceCountUdp != nil {1324 toSerialize["service_count_udp"] = o.ServiceCountUdp1325 }1326 if o.ServiceCountArp != nil {1327 toSerialize["service_count_arp"] = o.ServiceCountArp1328 }1329 if o.ServiceCountIcmp != nil {1330 toSerialize["service_count_icmp"] = o.ServiceCountIcmp1331 }1332 if o.LowestTtl != nil {1333 toSerialize["lowest_ttl"] = o.LowestTtl1334 }1335 if o.LowestRtt != nil {1336 toSerialize["lowest_rtt"] = o.LowestRtt1337 }1338 if o.LastAgentId != nil {1339 toSerialize["last_agent_id"] = o.LastAgentId1340 }1341 if o.LastTaskId != nil {1342 toSerialize["last_task_id"] = o.LastTaskId1343 }1344 if o.NewestMac != nil {1345 toSerialize["newest_mac"] = o.NewestMac1346 }1347 if o.NewestMacVendor != nil {1348 toSerialize["newest_mac_vendor"] = o.NewestMacVendor1349 }1350 if o.NewestMacAge != nil {1351 toSerialize["newest_mac_age"] = o.NewestMacAge1352 }1353 if o.Comments != nil {1354 toSerialize["comments"] = o.Comments1355 }1356 if o.ServicePortsTcp != nil {1357 toSerialize["service_ports_tcp"] = o.ServicePortsTcp1358 }1359 if o.ServicePortsUdp != nil {1360 toSerialize["service_ports_udp"] = o.ServicePortsUdp1361 }1362 if o.ServicePortsProtocols != nil {1363 toSerialize["service_ports_protocols"] = o.ServicePortsProtocols1364 }1365 if o.ServicePortsProducts != nil {1366 toSerialize["service_ports_products"] = o.ServicePortsProducts1367 }1368 if o.OrgName != nil {1369 toSerialize["org_name"] = o.OrgName1370 }1371 if o.SiteName != nil {1372 toSerialize["site_name"] = o.SiteName1373 }1374 if o.AgentName != nil {1375 toSerialize["agent_name"] = o.AgentName1376 }1377 if o.Tags != nil {1378 toSerialize["tags"] = o.Tags1379 }1380 if o.Services != nil {1381 toSerialize["services"] = o.Services1382 }1383 if o.Rtts != nil {1384 toSerialize["rtts"] = o.Rtts1385 }1386 if o.Credentials != nil {1387 toSerialize["credentials"] = o.Credentials1388 }1389 if o.Attributes != nil {1390 toSerialize["attributes"] = o.Attributes1391 }1392 return json.Marshal(toSerialize)1393}1394type NullableAsset struct {1395 value *Asset1396 isSet bool1397}1398func (v NullableAsset) Get() *Asset {1399 return v.value1400}1401func (v *NullableAsset) Set(val *Asset) {1402 v.value = val1403 v.isSet = true1404}1405func (v NullableAsset) IsSet() bool {1406 return v.isSet1407}1408func (v *NullableAsset) Unset() {1409 v.value = nil1410 v.isSet = false1411}1412func NewNullableAsset(val *Asset) *NullableAsset {1413 return &NullableAsset{value: val, isSet: true}1414}1415func (v NullableAsset) MarshalJSON() ([]byte, error) {1416 return json.Marshal(v.value)1417}1418func (v *NullableAsset) UnmarshalJSON(src []byte) error {1419 v.isSet = true1420 return json.Unmarshal(src, &v.value)1421}...

Full Screen

Full Screen

service.go

Source:service.go Github

copy

Full Screen

...20var Service ServiceView21var ServiceList []model.ServiceBasicInfo22func InitService() {23 Service.List = tview.NewList()24 Service.List.SetSelectedFunc(func(i int, s1, s2 string, r rune) {})25 Service.List.SetFocusFunc(func() { refreshServiceList() })26 Service.ButtonAdd = tview.NewButton("Add").SetSelectedFunc(func() { addService() })27 Service.ButtonDel = tview.NewButton("Del").SetSelectedFunc(func() { delService() })28 Service.ButtonEdit = tview.NewButton("Edit").SetSelectedFunc(func() { editService() })29 Service.Flex = tview.NewFlex().SetDirection(tview.FlexRow).30 AddItem(component.TopBar.TextView,31 1, 0, false).32 AddItem(tview.NewTextView().SetText("Service list in cluster").SetTextAlign(tview.AlignCenter),33 1, 0, false).34 AddItem(tview.NewTextView().SetText(fmt.Sprintf("%22s %-15s %-10s %-15s %-15s %-15s %-15s", "", "Name", "Type", "Cluster-IP", "External-IP", "Port(s)", "Age")).SetTextAlign(tview.AlignLeft),35 1, 0, false).36 AddItem(tview.NewFlex().SetDirection(tview.FlexColumn).37 AddItem(tview.NewBox().SetBorder(false).SetTitle("Left"), 0, 3, false).38 AddItem(Service.List, 0, 14, true).39 AddItem(tview.NewBox().SetBorder(false).SetTitle("Right"), 5, 1, false),40 0, 3, true).41 AddItem(tview.NewFlex().SetDirection(tview.FlexColumn).42 AddItem(tview.NewBox().SetBorder(false).SetTitle("Left"), 0, 2, false).43 AddItem(Service.ButtonAdd, 0, 1, true).44 AddItem(tview.NewBox().SetBorder(false).SetTitle("Middle"), 0, 1, false).45 AddItem(tview.NewBox().SetBorder(false).SetTitle("Middle"), 0, 1, false).46 AddItem(Service.ButtonDel, 0, 1, true).47 AddItem(tview.NewBox().SetBorder(false).SetTitle("Middle"), 0, 1, false).48 AddItem(tview.NewBox().SetBorder(false).SetTitle("Middle"), 0, 1, false).49 AddItem(Service.ButtonEdit, 0, 1, true).50 AddItem(tview.NewBox().SetBorder(false).SetTitle("Right"), 0, 2, false),51 3, 0, true).52 AddItem(component.Message.TextView, 1, 0, false)53 // Service.Flex.SetInputCapture(ServiceInputHandler)54 // AddItem()55 Service.SelectedList = []tview.Primitive{Service.Flex, Service.ButtonAdd, Service.ButtonDel, Service.ButtonEdit}56}57func addService() {58 SetType("service")59 SwitchToPage("yaml")60 refreshServiceList()61 app.App.SetFocus(Service.List)62}63func getCurrentServiceName() string {64 i := Service.List.GetCurrentItem()65 return ServiceList[i].Name66}67func delService() {68 err := cluster.DelService(getCurrentDeploymentName())69 if err != nil {70 log.Println(err.Error())71 // Service.Message.SetText("del Service failed: " + err.Error())72 }73 refreshServiceList()74 app.App.SetFocus(Service.List)75}76func refreshServiceList() {77 Service.List.Clear()78 var err error79 ServiceList, err = cluster.GetServiceList()80 if err != nil {81 // Service.Message.SetText(err.Error())82 ServiceList = []model.ServiceBasicInfo{}83 }84 for i, service := range ServiceList {85 Service.List.AddItem(service.String(), "", 'a'+rune(i), nil)86 }87}88func editService() {89 podName := getCurrentServiceName()90 fileName := podName + ".yaml"91 getYamlFile(fileName, "service")92 edit(filepath.Join("service/", fileName))93 updateYaml(fileName, "service")94 // fmt.Println(podName)95}...

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 beego.Get("/", func(ctx *context.Context) {4 ctx.Output.Body([]byte("hello world"))5 })6 beego.Run()7}8import (9func main() {10 beego.Get("/", func(ctx *context.Context) {11 ctx.Output.Body([]byte("hello world"))12 })13 beego.Run()14}15import (16func main() {17 beego.Get("/", func(ctx *context.Context) {18 ctx.Output.Body([]byte("hello world"))19 })20 beego.Run()21}22import (23func main() {24 beego.Get("/", func(ctx *context.Context) {25 ctx.Output.Body([]byte("hello world"))26 })27 beego.Run()28}29import (30func main() {31 beego.Get("/", func(ctx *context.Context) {32 ctx.Output.Body([]byte("hello world"))33 })34 beego.Run()35}36import (37func main() {38 beego.Get("/", func(ctx *context.Context) {39 ctx.Output.Body([]byte("hello world"))40 })41 beego.Run()42}43import (44func main() {45 beego.Get("/", func(ctx *context.Context) {46 ctx.Output.Body([]byte("hello world"))47 })48 beego.Run()49}50import (

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 beego.SetLevel(beego.LevelInformational)4 beego.SetLogFuncCall(true)5 beego.SetLogFuncCallDepth(3)6 fmt.Println(beego.GetLevel())7 fmt.Println(beego.GetLogFuncCall())8 fmt.Println(beego.GetLogFuncCallDepth())9}

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1s := service.New()2s.Set("name", "John Doe")3s := service.New()4fmt.Println(s.Get("name"))5s := service.New()6fmt.Println(s.Has("name"))7s := service.New()8s.Delete("name")9s := service.New()10s.Clear()11s := service.New()12fmt.Println(s.Keys())13s := service.New()14fmt.Println(s.Values())15s := service.New()16fmt.Println(s.Size())17s := service.New()18fmt.Println(s.IsEmpty())19s := service.New()20s.Each(func(key string, value interface{}) {21 fmt.Println(key, value)22})23s := service.New()24s.Merge(map[string]interface{}{25})26s := service.New()27clone := s.Clone()28s := service.New()29s.Set("name", "John Doe")30s.Set("age", 25)31json, _ := s.MarshalJSON()32fmt.Println(string(json))

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 fmt.Println("Enter the value of a:")4 fmt.Scanln(&a)5 services.Set(a)6}7import (8func main() {9 b = services.Get()10 fmt.Println("The value of b is:", b)11}

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 s.Set("My First Service")4 fmt.Println(s.Name)5}6import (7func main() {8 s.Set("My First Service")9 fmt.Println(s.Get())10}11import (12func main() {13 s.Set("My First Service")14 fmt.Println(s.Get())15}

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 s := service.NewService()4 s.Set("Hello")5 fmt.Println(s.Get())6}7import (8func main() {9 s := service.NewService()10 s.Set("Hello")11 fmt.Println(s.Get())12}13In the above example, we have made the package named service private. We have imported the package using the relative path. We can also import the package using the absolute path. For example, if we want to import the package named service in the package named 1, then we can import it as follows:14import (15In the above example, we have imported the package using the relative path. We can also import the package using the absolute path. For example, if we want to import the package named service in the package named 1, then we can import it as follows:16import (17In the above example, we have imported the package using the rel

Full Screen

Full Screen

Set

Using AI Code Generation

copy

Full Screen

1func main() {2 a.Set(10)3 fmt.Println(a)4}5{10}6func main() {7 a.Set(10)8 fmt.Println(a)9}10{10}11func main() {12 a.Set(10)13 fmt.Println(a)14}15{10}16func main() {17 a.Set(10)18 fmt.Println(a)19}20{10}21func main() {22 a.Set(10)23 fmt.Println(a)24}25{10}26func main() {27 a.Set(10)28 fmt.Println(a)29}30{10}31func main() {32 a.Set(10)33 fmt.Println(a)34}35{10}36func main() {37 a.Set(10)38 fmt.Println(a)39}40{10}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful