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] |
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
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
func (o *Device) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *Device) SetId(v string)
SetId sets Id field to given value.
func (o *Device) GetUrl() string
GetUrl returns the Url field if non-nil, zero value otherwise.
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.
func (o *Device) SetUrl(v string)
SetUrl sets Url field to given value.
func (o *Device) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *Device) SetName(v string)
SetName sets Name field to given value.
func (o *Device) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Device) SetNameNil(b bool)
SetNameNil sets the value for Name to be an explicit nil
func (o *Device) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *Device) GetDeviceType() NestedDeviceType
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
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.
func (o *Device) SetDeviceType(v NestedDeviceType)
SetDeviceType sets DeviceType field to given value.
func (o *Device) GetDeviceRole() NestedDeviceRole
GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise.
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.
func (o *Device) SetDeviceRole(v NestedDeviceRole)
SetDeviceRole sets DeviceRole field to given value.
func (o *Device) GetTenant() AggregateTenant
GetTenant returns the Tenant field if non-nil, zero value otherwise.
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.
func (o *Device) SetTenant(v AggregateTenant)
SetTenant sets Tenant field to given value.
func (o *Device) HasTenant() bool
HasTenant returns a boolean if a field has been set.
func (o *Device) SetTenantNil(b bool)
SetTenantNil sets the value for Tenant to be an explicit nil
func (o *Device) UnsetTenant()
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
func (o *Device) GetPlatform() DevicePlatform
GetPlatform returns the Platform field if non-nil, zero value otherwise.
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.
func (o *Device) SetPlatform(v DevicePlatform)
SetPlatform sets Platform field to given value.
func (o *Device) HasPlatform() bool
HasPlatform returns a boolean if a field has been set.
func (o *Device) SetPlatformNil(b bool)
SetPlatformNil sets the value for Platform to be an explicit nil
func (o *Device) UnsetPlatform()
UnsetPlatform ensures that no value is present for Platform, not even an explicit nil
func (o *Device) GetSerial() string
GetSerial returns the Serial field if non-nil, zero value otherwise.
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.
func (o *Device) SetSerial(v string)
SetSerial sets Serial field to given value.
func (o *Device) HasSerial() bool
HasSerial returns a boolean if a field has been set.
func (o *Device) GetAssetTag() string
GetAssetTag returns the AssetTag field if non-nil, zero value otherwise.
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.
func (o *Device) SetAssetTag(v string)
SetAssetTag sets AssetTag field to given value.
func (o *Device) HasAssetTag() bool
HasAssetTag returns a boolean if a field has been set.
func (o *Device) SetAssetTagNil(b bool)
SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *Device) UnsetAssetTag()
UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil
func (o *Device) GetSite() NestedSite
GetSite returns the Site field if non-nil, zero value otherwise.
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.
func (o *Device) SetSite(v NestedSite)
SetSite sets Site field to given value.
func (o *Device) GetRack() DeviceRack
GetRack returns the Rack field if non-nil, zero value otherwise.
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.
func (o *Device) SetRack(v DeviceRack)
SetRack sets Rack field to given value.
func (o *Device) HasRack() bool
HasRack returns a boolean if a field has been set.
func (o *Device) SetRackNil(b bool)
SetRackNil sets the value for Rack to be an explicit nil
func (o *Device) UnsetRack()
UnsetRack ensures that no value is present for Rack, not even an explicit nil
func (o *Device) GetPosition() int32
GetPosition returns the Position field if non-nil, zero value otherwise.
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.
func (o *Device) SetPosition(v int32)
SetPosition sets Position field to given value.
func (o *Device) HasPosition() bool
HasPosition returns a boolean if a field has been set.
func (o *Device) SetPositionNil(b bool)
SetPositionNil sets the value for Position to be an explicit nil
func (o *Device) UnsetPosition()
UnsetPosition ensures that no value is present for Position, not even an explicit nil
func (o *Device) GetFace() DeviceFace
GetFace returns the Face field if non-nil, zero value otherwise.
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.
func (o *Device) SetFace(v DeviceFace)
SetFace sets Face field to given value.
func (o *Device) HasFace() bool
HasFace returns a boolean if a field has been set.
func (o *Device) GetParentDevice() DeviceParentDevice
GetParentDevice returns the ParentDevice field if non-nil, zero value otherwise.
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.
func (o *Device) SetParentDevice(v DeviceParentDevice)
SetParentDevice sets ParentDevice field to given value.
func (o *Device) GetStatus() DeviceStatus
GetStatus returns the Status field if non-nil, zero value otherwise.
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.
func (o *Device) SetStatus(v DeviceStatus)
SetStatus sets Status field to given value.
func (o *Device) GetPrimaryIp() DevicePrimaryIp
GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise.
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.
func (o *Device) SetPrimaryIp(v DevicePrimaryIp)
SetPrimaryIp sets PrimaryIp field to given value.
func (o *Device) GetPrimaryIp4() DevicePrimaryIp4
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
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.
func (o *Device) SetPrimaryIp4(v DevicePrimaryIp4)
SetPrimaryIp4 sets PrimaryIp4 field to given value.
func (o *Device) HasPrimaryIp4() bool
HasPrimaryIp4 returns a boolean if a field has been set.
func (o *Device) SetPrimaryIp4Nil(b bool)
SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *Device) UnsetPrimaryIp4()
UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil
func (o *Device) GetPrimaryIp6() DevicePrimaryIp4
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
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.
func (o *Device) SetPrimaryIp6(v DevicePrimaryIp4)
SetPrimaryIp6 sets PrimaryIp6 field to given value.
func (o *Device) HasPrimaryIp6() bool
HasPrimaryIp6 returns a boolean if a field has been set.
func (o *Device) SetPrimaryIp6Nil(b bool)
SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *Device) UnsetPrimaryIp6()
UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil
func (o *Device) GetSecretsGroup() DeviceSecretsGroup
GetSecretsGroup returns the SecretsGroup field if non-nil, zero value otherwise.
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.
func (o *Device) SetSecretsGroup(v DeviceSecretsGroup)
SetSecretsGroup sets SecretsGroup field to given value.
func (o *Device) HasSecretsGroup() bool
HasSecretsGroup returns a boolean if a field has been set.
func (o *Device) SetSecretsGroupNil(b bool)
SetSecretsGroupNil sets the value for SecretsGroup to be an explicit nil
func (o *Device) UnsetSecretsGroup()
UnsetSecretsGroup ensures that no value is present for SecretsGroup, not even an explicit nil
func (o *Device) GetCluster() DeviceCluster
GetCluster returns the Cluster field if non-nil, zero value otherwise.
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.
func (o *Device) SetCluster(v DeviceCluster)
SetCluster sets Cluster field to given value.
func (o *Device) HasCluster() bool
HasCluster returns a boolean if a field has been set.
func (o *Device) SetClusterNil(b bool)
SetClusterNil sets the value for Cluster to be an explicit nil
func (o *Device) UnsetCluster()
UnsetCluster ensures that no value is present for Cluster, not even an explicit nil
func (o *Device) GetVirtualChassis() DeviceVirtualChassis
GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.
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.
func (o *Device) SetVirtualChassis(v DeviceVirtualChassis)
SetVirtualChassis sets VirtualChassis field to given value.
func (o *Device) HasVirtualChassis() bool
HasVirtualChassis returns a boolean if a field has been set.
func (o *Device) SetVirtualChassisNil(b bool)
SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *Device) UnsetVirtualChassis()
UnsetVirtualChassis ensures that no value is present for VirtualChassis, not even an explicit nil
func (o *Device) GetVcPosition() int32
GetVcPosition returns the VcPosition field if non-nil, zero value otherwise.
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.
func (o *Device) SetVcPosition(v int32)
SetVcPosition sets VcPosition field to given value.
func (o *Device) HasVcPosition() bool
HasVcPosition returns a boolean if a field has been set.
func (o *Device) SetVcPositionNil(b bool)
SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *Device) UnsetVcPosition()
UnsetVcPosition ensures that no value is present for VcPosition, not even an explicit nil
func (o *Device) GetVcPriority() int32
GetVcPriority returns the VcPriority field if non-nil, zero value otherwise.
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.
func (o *Device) SetVcPriority(v int32)
SetVcPriority sets VcPriority field to given value.
func (o *Device) HasVcPriority() bool
HasVcPriority returns a boolean if a field has been set.
func (o *Device) SetVcPriorityNil(b bool)
SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *Device) UnsetVcPriority()
UnsetVcPriority ensures that no value is present for VcPriority, not even an explicit nil
func (o *Device) GetComments() string
GetComments returns the Comments field if non-nil, zero value otherwise.
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.
func (o *Device) SetComments(v string)
SetComments sets Comments field to given value.
func (o *Device) HasComments() bool
HasComments returns a boolean if a field has been set.
func (o *Device) GetLocalContextSchema() ConfigContextSchema
GetLocalContextSchema returns the LocalContextSchema field if non-nil, zero value otherwise.
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.
func (o *Device) SetLocalContextSchema(v ConfigContextSchema)
SetLocalContextSchema sets LocalContextSchema field to given value.
func (o *Device) HasLocalContextSchema() bool
HasLocalContextSchema returns a boolean if a field has been set.
func (o *Device) SetLocalContextSchemaNil(b bool)
SetLocalContextSchemaNil sets the value for LocalContextSchema to be an explicit nil
func (o *Device) UnsetLocalContextSchema()
UnsetLocalContextSchema ensures that no value is present for LocalContextSchema, not even an explicit nil
func (o *Device) GetLocalContextData() map[string]interface{}
GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise.
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.
func (o *Device) SetLocalContextData(v map[string]interface{})
SetLocalContextData sets LocalContextData field to given value.
func (o *Device) HasLocalContextData() bool
HasLocalContextData returns a boolean if a field has been set.
func (o *Device) SetLocalContextDataNil(b bool)
SetLocalContextDataNil sets the value for LocalContextData to be an explicit nil
func (o *Device) UnsetLocalContextData()
UnsetLocalContextData ensures that no value is present for LocalContextData, not even an explicit nil
func (o *Device) GetTags() []TagSerializerField
GetTags returns the Tags field if non-nil, zero value otherwise.
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.
func (o *Device) SetTags(v []TagSerializerField)
SetTags sets Tags field to given value.
func (o *Device) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *Device) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
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.
func (o *Device) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *Device) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.
func (o *Device) GetCreated() string
GetCreated returns the Created field if non-nil, zero value otherwise.
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.
func (o *Device) SetCreated(v string)
SetCreated sets Created field to given value.
func (o *Device) GetLastUpdated() time.Time
GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
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.
func (o *Device) SetLastUpdated(v time.Time)
SetLastUpdated sets LastUpdated field to given value.
func (o *Device) GetComputedFields() map[string]interface{}
GetComputedFields returns the ComputedFields field if non-nil, zero value otherwise.
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.
func (o *Device) SetComputedFields(v map[string]interface{})
SetComputedFields sets ComputedFields field to given value.
func (o *Device) GetDisplay() string
GetDisplay returns the Display field if non-nil, zero value otherwise.
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.
func (o *Device) SetDisplay(v string)
SetDisplay sets Display field to given value.