Skip to content

Latest commit

 

History

History
952 lines (519 loc) · 24.8 KB

Device.md

File metadata and controls

952 lines (519 loc) · 24.8 KB

Device

Properties

Name Type Description Notes
Id string [readonly]
Url string [readonly]
Name Pointer to NullableString [optional]
DeviceType NestedDeviceType
DeviceRole NestedDeviceRole
Tenant Pointer to NullableAggregateTenant [optional]
Platform Pointer to NullableDevicePlatform [optional]
Serial Pointer to string [optional]
AssetTag Pointer to NullableString A unique tag used to identify this device [optional]
Site NestedSite
Rack Pointer to NullableDeviceRack [optional]
Position Pointer to NullableInt32 The lowest-numbered unit occupied by the device [optional]
Face Pointer to DeviceFace [optional]
ParentDevice DeviceParentDevice
Status DeviceStatus
PrimaryIp DevicePrimaryIp
PrimaryIp4 Pointer to NullableDevicePrimaryIp4 [optional]
PrimaryIp6 Pointer to NullableDevicePrimaryIp4 [optional]
SecretsGroup Pointer to NullableDeviceSecretsGroup [optional]
Cluster Pointer to NullableDeviceCluster [optional]
VirtualChassis Pointer to NullableDeviceVirtualChassis [optional]
VcPosition Pointer to NullableInt32 [optional]
VcPriority Pointer to NullableInt32 [optional]
Comments Pointer to string [optional]
LocalContextSchema Pointer to NullableConfigContextSchema [optional]
LocalContextData Pointer to map[string]interface{} [optional]
Tags Pointer to []TagSerializerField [optional]
CustomFields Pointer to map[string]interface{} [optional]
Created string [readonly]
LastUpdated time.Time [readonly]
ComputedFields map[string]interface{} [readonly]
Display string Human friendly display value [readonly]

Methods

NewDevice

func NewDevice(id string, url string, deviceType NestedDeviceType, deviceRole NestedDeviceRole, site NestedSite, parentDevice DeviceParentDevice, status DeviceStatus, primaryIp DevicePrimaryIp, created string, lastUpdated time.Time, computedFields map[string]interface{}, display string, ) *Device

NewDevice instantiates a new Device 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

NewDeviceWithDefaults

func NewDeviceWithDefaults() *Device

NewDeviceWithDefaults instantiates a new Device 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 *Device) GetId() string

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

GetIdOk

func (o *Device) 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 *Device) SetId(v string)

SetId sets Id field to given value.

GetUrl

func (o *Device) GetUrl() string

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

GetUrlOk

func (o *Device) 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 *Device) SetUrl(v string)

SetUrl sets Url field to given value.

GetName

func (o *Device) GetName() string

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

GetNameOk

func (o *Device) 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 *Device) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *Device) HasName() bool

HasName returns a boolean if a field has been set.

SetNameNil

func (o *Device) SetNameNil(b bool)

SetNameNil sets the value for Name to be an explicit nil

UnsetName

func (o *Device) UnsetName()

UnsetName ensures that no value is present for Name, not even an explicit nil

GetDeviceType

func (o *Device) GetDeviceType() NestedDeviceType

GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.

GetDeviceTypeOk

func (o *Device) GetDeviceTypeOk() (*NestedDeviceType, bool)

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

SetDeviceType

func (o *Device) SetDeviceType(v NestedDeviceType)

SetDeviceType sets DeviceType field to given value.

GetDeviceRole

func (o *Device) GetDeviceRole() NestedDeviceRole

GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise.

GetDeviceRoleOk

func (o *Device) GetDeviceRoleOk() (*NestedDeviceRole, bool)

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

SetDeviceRole

func (o *Device) SetDeviceRole(v NestedDeviceRole)

SetDeviceRole sets DeviceRole field to given value.

GetTenant

func (o *Device) GetTenant() AggregateTenant

GetTenant returns the Tenant field if non-nil, zero value otherwise.

GetTenantOk

func (o *Device) GetTenantOk() (*AggregateTenant, bool)

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

SetTenant

func (o *Device) SetTenant(v AggregateTenant)

SetTenant sets Tenant field to given value.

HasTenant

func (o *Device) HasTenant() bool

HasTenant returns a boolean if a field has been set.

SetTenantNil

func (o *Device) SetTenantNil(b bool)

SetTenantNil sets the value for Tenant to be an explicit nil

UnsetTenant

func (o *Device) UnsetTenant()

UnsetTenant ensures that no value is present for Tenant, not even an explicit nil

GetPlatform

func (o *Device) GetPlatform() DevicePlatform

GetPlatform returns the Platform field if non-nil, zero value otherwise.

GetPlatformOk

func (o *Device) GetPlatformOk() (*DevicePlatform, bool)

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

SetPlatform

func (o *Device) SetPlatform(v DevicePlatform)

SetPlatform sets Platform field to given value.

HasPlatform

func (o *Device) HasPlatform() bool

HasPlatform returns a boolean if a field has been set.

SetPlatformNil

func (o *Device) SetPlatformNil(b bool)

SetPlatformNil sets the value for Platform to be an explicit nil

UnsetPlatform

func (o *Device) UnsetPlatform()

UnsetPlatform ensures that no value is present for Platform, not even an explicit nil

GetSerial

func (o *Device) GetSerial() string

GetSerial returns the Serial field if non-nil, zero value otherwise.

GetSerialOk

func (o *Device) GetSerialOk() (*string, bool)

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

SetSerial

func (o *Device) SetSerial(v string)

SetSerial sets Serial field to given value.

HasSerial

func (o *Device) HasSerial() bool

HasSerial returns a boolean if a field has been set.

GetAssetTag

func (o *Device) GetAssetTag() string

GetAssetTag returns the AssetTag field if non-nil, zero value otherwise.

GetAssetTagOk

func (o *Device) GetAssetTagOk() (*string, bool)

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

SetAssetTag

func (o *Device) SetAssetTag(v string)

SetAssetTag sets AssetTag field to given value.

HasAssetTag

func (o *Device) HasAssetTag() bool

HasAssetTag returns a boolean if a field has been set.

SetAssetTagNil

func (o *Device) SetAssetTagNil(b bool)

SetAssetTagNil sets the value for AssetTag to be an explicit nil

UnsetAssetTag

func (o *Device) UnsetAssetTag()

UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil

GetSite

func (o *Device) GetSite() NestedSite

GetSite returns the Site field if non-nil, zero value otherwise.

GetSiteOk

func (o *Device) GetSiteOk() (*NestedSite, bool)

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

SetSite

func (o *Device) SetSite(v NestedSite)

SetSite sets Site field to given value.

GetRack

func (o *Device) GetRack() DeviceRack

GetRack returns the Rack field if non-nil, zero value otherwise.

GetRackOk

func (o *Device) GetRackOk() (*DeviceRack, bool)

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

SetRack

func (o *Device) SetRack(v DeviceRack)

SetRack sets Rack field to given value.

HasRack

func (o *Device) HasRack() bool

HasRack returns a boolean if a field has been set.

SetRackNil

func (o *Device) SetRackNil(b bool)

SetRackNil sets the value for Rack to be an explicit nil

UnsetRack

func (o *Device) UnsetRack()

UnsetRack ensures that no value is present for Rack, not even an explicit nil

GetPosition

func (o *Device) GetPosition() int32

GetPosition returns the Position field if non-nil, zero value otherwise.

GetPositionOk

func (o *Device) GetPositionOk() (*int32, bool)

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

SetPosition

func (o *Device) SetPosition(v int32)

SetPosition sets Position field to given value.

HasPosition

func (o *Device) HasPosition() bool

HasPosition returns a boolean if a field has been set.

SetPositionNil

func (o *Device) SetPositionNil(b bool)

SetPositionNil sets the value for Position to be an explicit nil

UnsetPosition

func (o *Device) UnsetPosition()

UnsetPosition ensures that no value is present for Position, not even an explicit nil

GetFace

func (o *Device) GetFace() DeviceFace

GetFace returns the Face field if non-nil, zero value otherwise.

GetFaceOk

func (o *Device) GetFaceOk() (*DeviceFace, bool)

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

SetFace

func (o *Device) SetFace(v DeviceFace)

SetFace sets Face field to given value.

HasFace

func (o *Device) HasFace() bool

HasFace returns a boolean if a field has been set.

GetParentDevice

func (o *Device) GetParentDevice() DeviceParentDevice

GetParentDevice returns the ParentDevice field if non-nil, zero value otherwise.

GetParentDeviceOk

func (o *Device) GetParentDeviceOk() (*DeviceParentDevice, bool)

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

SetParentDevice

func (o *Device) SetParentDevice(v DeviceParentDevice)

SetParentDevice sets ParentDevice field to given value.

GetStatus

func (o *Device) GetStatus() DeviceStatus

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

func (o *Device) GetStatusOk() (*DeviceStatus, bool)

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

SetStatus

func (o *Device) SetStatus(v DeviceStatus)

SetStatus sets Status field to given value.

GetPrimaryIp

func (o *Device) GetPrimaryIp() DevicePrimaryIp

GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise.

GetPrimaryIpOk

func (o *Device) GetPrimaryIpOk() (*DevicePrimaryIp, bool)

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

SetPrimaryIp

func (o *Device) SetPrimaryIp(v DevicePrimaryIp)

SetPrimaryIp sets PrimaryIp field to given value.

GetPrimaryIp4

func (o *Device) GetPrimaryIp4() DevicePrimaryIp4

GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.

GetPrimaryIp4Ok

func (o *Device) GetPrimaryIp4Ok() (*DevicePrimaryIp4, bool)

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

SetPrimaryIp4

func (o *Device) SetPrimaryIp4(v DevicePrimaryIp4)

SetPrimaryIp4 sets PrimaryIp4 field to given value.

HasPrimaryIp4

func (o *Device) HasPrimaryIp4() bool

HasPrimaryIp4 returns a boolean if a field has been set.

SetPrimaryIp4Nil

func (o *Device) SetPrimaryIp4Nil(b bool)

SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil

UnsetPrimaryIp4

func (o *Device) UnsetPrimaryIp4()

UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil

GetPrimaryIp6

func (o *Device) GetPrimaryIp6() DevicePrimaryIp4

GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.

GetPrimaryIp6Ok

func (o *Device) GetPrimaryIp6Ok() (*DevicePrimaryIp4, bool)

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

SetPrimaryIp6

func (o *Device) SetPrimaryIp6(v DevicePrimaryIp4)

SetPrimaryIp6 sets PrimaryIp6 field to given value.

HasPrimaryIp6

func (o *Device) HasPrimaryIp6() bool

HasPrimaryIp6 returns a boolean if a field has been set.

SetPrimaryIp6Nil

func (o *Device) SetPrimaryIp6Nil(b bool)

SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil

UnsetPrimaryIp6

func (o *Device) UnsetPrimaryIp6()

UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil

GetSecretsGroup

func (o *Device) GetSecretsGroup() DeviceSecretsGroup

GetSecretsGroup returns the SecretsGroup field if non-nil, zero value otherwise.

GetSecretsGroupOk

func (o *Device) GetSecretsGroupOk() (*DeviceSecretsGroup, bool)

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

SetSecretsGroup

func (o *Device) SetSecretsGroup(v DeviceSecretsGroup)

SetSecretsGroup sets SecretsGroup field to given value.

HasSecretsGroup

func (o *Device) HasSecretsGroup() bool

HasSecretsGroup returns a boolean if a field has been set.

SetSecretsGroupNil

func (o *Device) SetSecretsGroupNil(b bool)

SetSecretsGroupNil sets the value for SecretsGroup to be an explicit nil

UnsetSecretsGroup

func (o *Device) UnsetSecretsGroup()

UnsetSecretsGroup ensures that no value is present for SecretsGroup, not even an explicit nil

GetCluster

func (o *Device) GetCluster() DeviceCluster

GetCluster returns the Cluster field if non-nil, zero value otherwise.

GetClusterOk

func (o *Device) GetClusterOk() (*DeviceCluster, bool)

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

SetCluster

func (o *Device) SetCluster(v DeviceCluster)

SetCluster sets Cluster field to given value.

HasCluster

func (o *Device) HasCluster() bool

HasCluster returns a boolean if a field has been set.

SetClusterNil

func (o *Device) SetClusterNil(b bool)

SetClusterNil sets the value for Cluster to be an explicit nil

UnsetCluster

func (o *Device) UnsetCluster()

UnsetCluster ensures that no value is present for Cluster, not even an explicit nil

GetVirtualChassis

func (o *Device) GetVirtualChassis() DeviceVirtualChassis

GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.

GetVirtualChassisOk

func (o *Device) GetVirtualChassisOk() (*DeviceVirtualChassis, bool)

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

SetVirtualChassis

func (o *Device) SetVirtualChassis(v DeviceVirtualChassis)

SetVirtualChassis sets VirtualChassis field to given value.

HasVirtualChassis

func (o *Device) HasVirtualChassis() bool

HasVirtualChassis returns a boolean if a field has been set.

SetVirtualChassisNil

func (o *Device) SetVirtualChassisNil(b bool)

SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil

UnsetVirtualChassis

func (o *Device) UnsetVirtualChassis()

UnsetVirtualChassis ensures that no value is present for VirtualChassis, not even an explicit nil

GetVcPosition

func (o *Device) GetVcPosition() int32

GetVcPosition returns the VcPosition field if non-nil, zero value otherwise.

GetVcPositionOk

func (o *Device) GetVcPositionOk() (*int32, bool)

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

SetVcPosition

func (o *Device) SetVcPosition(v int32)

SetVcPosition sets VcPosition field to given value.

HasVcPosition

func (o *Device) HasVcPosition() bool

HasVcPosition returns a boolean if a field has been set.

SetVcPositionNil

func (o *Device) SetVcPositionNil(b bool)

SetVcPositionNil sets the value for VcPosition to be an explicit nil

UnsetVcPosition

func (o *Device) UnsetVcPosition()

UnsetVcPosition ensures that no value is present for VcPosition, not even an explicit nil

GetVcPriority

func (o *Device) GetVcPriority() int32

GetVcPriority returns the VcPriority field if non-nil, zero value otherwise.

GetVcPriorityOk

func (o *Device) GetVcPriorityOk() (*int32, bool)

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

SetVcPriority

func (o *Device) SetVcPriority(v int32)

SetVcPriority sets VcPriority field to given value.

HasVcPriority

func (o *Device) HasVcPriority() bool

HasVcPriority returns a boolean if a field has been set.

SetVcPriorityNil

func (o *Device) SetVcPriorityNil(b bool)

SetVcPriorityNil sets the value for VcPriority to be an explicit nil

UnsetVcPriority

func (o *Device) UnsetVcPriority()

UnsetVcPriority ensures that no value is present for VcPriority, not even an explicit nil

GetComments

func (o *Device) GetComments() string

GetComments returns the Comments field if non-nil, zero value otherwise.

GetCommentsOk

func (o *Device) GetCommentsOk() (*string, bool)

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

SetComments

func (o *Device) SetComments(v string)

SetComments sets Comments field to given value.

HasComments

func (o *Device) HasComments() bool

HasComments returns a boolean if a field has been set.

GetLocalContextSchema

func (o *Device) GetLocalContextSchema() ConfigContextSchema

GetLocalContextSchema returns the LocalContextSchema field if non-nil, zero value otherwise.

GetLocalContextSchemaOk

func (o *Device) GetLocalContextSchemaOk() (*ConfigContextSchema, bool)

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

SetLocalContextSchema

func (o *Device) SetLocalContextSchema(v ConfigContextSchema)

SetLocalContextSchema sets LocalContextSchema field to given value.

HasLocalContextSchema

func (o *Device) HasLocalContextSchema() bool

HasLocalContextSchema returns a boolean if a field has been set.

SetLocalContextSchemaNil

func (o *Device) SetLocalContextSchemaNil(b bool)

SetLocalContextSchemaNil sets the value for LocalContextSchema to be an explicit nil

UnsetLocalContextSchema

func (o *Device) UnsetLocalContextSchema()

UnsetLocalContextSchema ensures that no value is present for LocalContextSchema, not even an explicit nil

GetLocalContextData

func (o *Device) GetLocalContextData() map[string]interface{}

GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.

GetLocalContextDataOk

func (o *Device) GetLocalContextDataOk() (*map[string]interface{}, bool)

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

SetLocalContextData

func (o *Device) SetLocalContextData(v map[string]interface{})

SetLocalContextData sets LocalContextData field to given value.

HasLocalContextData

func (o *Device) HasLocalContextData() bool

HasLocalContextData returns a boolean if a field has been set.

SetLocalContextDataNil

func (o *Device) SetLocalContextDataNil(b bool)

SetLocalContextDataNil sets the value for LocalContextData to be an explicit nil

UnsetLocalContextData

func (o *Device) UnsetLocalContextData()

UnsetLocalContextData ensures that no value is present for LocalContextData, not even an explicit nil

GetTags

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

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

GetTagsOk

func (o *Device) 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 *Device) SetTags(v []TagSerializerField)

SetTags sets Tags field to given value.

HasTags

func (o *Device) HasTags() bool

HasTags returns a boolean if a field has been set.

GetCustomFields

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

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

GetCustomFieldsOk

func (o *Device) 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 *Device) SetCustomFields(v map[string]interface{})

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *Device) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

GetCreated

func (o *Device) GetCreated() string

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

GetCreatedOk

func (o *Device) 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 *Device) SetCreated(v string)

SetCreated sets Created field to given value.

GetLastUpdated

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

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

GetLastUpdatedOk

func (o *Device) 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 *Device) SetLastUpdated(v time.Time)

SetLastUpdated sets LastUpdated field to given value.

GetComputedFields

func (o *Device) GetComputedFields() map[string]interface{}

GetComputedFields returns the ComputedFields field if non-nil, zero value otherwise.

GetComputedFieldsOk

func (o *Device) GetComputedFieldsOk() (*map[string]interface{}, bool)

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

SetComputedFields

func (o *Device) SetComputedFields(v map[string]interface{})

SetComputedFields sets ComputedFields field to given value.

GetDisplay

func (o *Device) GetDisplay() string

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

GetDisplayOk

func (o *Device) 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 *Device) SetDisplay(v string)

SetDisplay sets Display field to given value.

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