Skip to content

Latest commit

 

History

History
379 lines (204 loc) · 9.69 KB

Service.md

File metadata and controls

379 lines (204 loc) · 9.69 KB

Service

Properties

Name Type Description Notes
Id string [readonly]
Url string [readonly]
Device Pointer to NullableDeviceBayInstalledDevice [optional]
VirtualMachine Pointer to NullableServiceVirtualMachine [optional]
Name string
Ports []int32
Protocol Pointer to ServiceProtocol [optional]
Ipaddresses Pointer to []ServiceIpaddressesInner [optional]
Description Pointer to string [optional]
Tags Pointer to []TagSerializerField [optional]
CustomFields Pointer to map[string]interface{} [optional]
Created string [readonly]
LastUpdated time.Time [readonly]
Display string Human friendly display value [readonly]

Methods

NewService

func NewService(id string, url string, name string, ports []int32, created string, lastUpdated time.Time, display string, ) *Service

NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewServiceWithDefaults

func NewServiceWithDefaults() *Service

NewServiceWithDefaults instantiates a new Service object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetId

func (o *Service) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *Service) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *Service) SetId(v string)

SetId sets Id field to given value.

GetUrl

func (o *Service) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

GetUrlOk

func (o *Service) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUrl

func (o *Service) SetUrl(v string)

SetUrl sets Url field to given value.

GetDevice

func (o *Service) GetDevice() DeviceBayInstalledDevice

GetDevice returns the Device field if non-nil, zero value otherwise.

GetDeviceOk

func (o *Service) GetDeviceOk() (*DeviceBayInstalledDevice, bool)

GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDevice

func (o *Service) SetDevice(v DeviceBayInstalledDevice)

SetDevice sets Device field to given value.

HasDevice

func (o *Service) HasDevice() bool

HasDevice returns a boolean if a field has been set.

SetDeviceNil

func (o *Service) SetDeviceNil(b bool)

SetDeviceNil sets the value for Device to be an explicit nil

UnsetDevice

func (o *Service) UnsetDevice()

UnsetDevice ensures that no value is present for Device, not even an explicit nil

GetVirtualMachine

func (o *Service) GetVirtualMachine() ServiceVirtualMachine

GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.

GetVirtualMachineOk

func (o *Service) GetVirtualMachineOk() (*ServiceVirtualMachine, bool)

GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVirtualMachine

func (o *Service) SetVirtualMachine(v ServiceVirtualMachine)

SetVirtualMachine sets VirtualMachine field to given value.

HasVirtualMachine

func (o *Service) HasVirtualMachine() bool

HasVirtualMachine returns a boolean if a field has been set.

SetVirtualMachineNil

func (o *Service) SetVirtualMachineNil(b bool)

SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil

UnsetVirtualMachine

func (o *Service) UnsetVirtualMachine()

UnsetVirtualMachine ensures that no value is present for VirtualMachine, not even an explicit nil

GetName

func (o *Service) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *Service) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *Service) SetName(v string)

SetName sets Name field to given value.

GetPorts

func (o *Service) GetPorts() []int32

GetPorts returns the Ports field if non-nil, zero value otherwise.

GetPortsOk

func (o *Service) GetPortsOk() (*[]int32, bool)

GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPorts

func (o *Service) SetPorts(v []int32)

SetPorts sets Ports field to given value.

GetProtocol

func (o *Service) GetProtocol() ServiceProtocol

GetProtocol returns the Protocol field if non-nil, zero value otherwise.

GetProtocolOk

func (o *Service) GetProtocolOk() (*ServiceProtocol, bool)

GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProtocol

func (o *Service) SetProtocol(v ServiceProtocol)

SetProtocol sets Protocol field to given value.

HasProtocol

func (o *Service) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

GetIpaddresses

func (o *Service) GetIpaddresses() []ServiceIpaddressesInner

GetIpaddresses returns the Ipaddresses field if non-nil, zero value otherwise.

GetIpaddressesOk

func (o *Service) GetIpaddressesOk() (*[]ServiceIpaddressesInner, bool)

GetIpaddressesOk returns a tuple with the Ipaddresses field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIpaddresses

func (o *Service) SetIpaddresses(v []ServiceIpaddressesInner)

SetIpaddresses sets Ipaddresses field to given value.

HasIpaddresses

func (o *Service) HasIpaddresses() bool

HasIpaddresses returns a boolean if a field has been set.

GetDescription

func (o *Service) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *Service) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *Service) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *Service) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetTags

func (o *Service) GetTags() []TagSerializerField

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *Service) GetTagsOk() (*[]TagSerializerField, bool)

GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTags

func (o *Service) SetTags(v []TagSerializerField)

SetTags sets Tags field to given value.

HasTags

func (o *Service) HasTags() bool

HasTags returns a boolean if a field has been set.

GetCustomFields

func (o *Service) GetCustomFields() map[string]interface{}

GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.

GetCustomFieldsOk

func (o *Service) GetCustomFieldsOk() (*map[string]interface{}, bool)

GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCustomFields

func (o *Service) SetCustomFields(v map[string]interface{})

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *Service) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

GetCreated

func (o *Service) GetCreated() string

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

func (o *Service) GetCreatedOk() (*string, bool)

GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreated

func (o *Service) SetCreated(v string)

SetCreated sets Created field to given value.

GetLastUpdated

func (o *Service) GetLastUpdated() time.Time

GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.

GetLastUpdatedOk

func (o *Service) GetLastUpdatedOk() (*time.Time, bool)

GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLastUpdated

func (o *Service) SetLastUpdated(v time.Time)

SetLastUpdated sets LastUpdated field to given value.

GetDisplay

func (o *Service) GetDisplay() string

GetDisplay returns the Display field if non-nil, zero value otherwise.

GetDisplayOk

func (o *Service) GetDisplayOk() (*string, bool)

GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDisplay

func (o *Service) SetDisplay(v string)

SetDisplay sets Display field to given value.

[Back to Model list] [Back to API list] [Back to README]