Skip to content

Latest commit

 

History

History
446 lines (241 loc) · 11.4 KB

InventoryItem.md

File metadata and controls

446 lines (241 loc) · 11.4 KB

InventoryItem

Properties

Name Type Description Notes
Id string [readonly]
Url string [readonly]
Device NestedDevice
Parent Pointer to NullableString [optional]
Name string
Label Pointer to string Physical label [optional]
Manufacturer Pointer to NullableInventoryItemManufacturer [optional]
PartId Pointer to string Manufacturer-assigned part identifier [optional]
Serial Pointer to string [optional]
AssetTag Pointer to NullableString A unique tag used to identify this item [optional]
Discovered Pointer to bool This item was automatically discovered [optional]
Description Pointer to string [optional]
Tags Pointer to []TagSerializerField [optional]
Depth int32 [readonly]
CustomFields Pointer to map[string]interface{} [optional]
Display string Human friendly display value [readonly]

Methods

NewInventoryItem

func NewInventoryItem(id string, url string, device NestedDevice, name string, depth int32, display string, ) *InventoryItem

NewInventoryItem instantiates a new InventoryItem 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

NewInventoryItemWithDefaults

func NewInventoryItemWithDefaults() *InventoryItem

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

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

GetIdOk

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

SetId sets Id field to given value.

GetUrl

func (o *InventoryItem) GetUrl() string

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

GetUrlOk

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

SetUrl sets Url field to given value.

GetDevice

func (o *InventoryItem) GetDevice() NestedDevice

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

GetDeviceOk

func (o *InventoryItem) GetDeviceOk() (*NestedDevice, 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 *InventoryItem) SetDevice(v NestedDevice)

SetDevice sets Device field to given value.

GetParent

func (o *InventoryItem) GetParent() string

GetParent returns the Parent field if non-nil, zero value otherwise.

GetParentOk

func (o *InventoryItem) GetParentOk() (*string, bool)

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

SetParent

func (o *InventoryItem) SetParent(v string)

SetParent sets Parent field to given value.

HasParent

func (o *InventoryItem) HasParent() bool

HasParent returns a boolean if a field has been set.

SetParentNil

func (o *InventoryItem) SetParentNil(b bool)

SetParentNil sets the value for Parent to be an explicit nil

UnsetParent

func (o *InventoryItem) UnsetParent()

UnsetParent ensures that no value is present for Parent, not even an explicit nil

GetName

func (o *InventoryItem) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

GetLabel

func (o *InventoryItem) GetLabel() string

GetLabel returns the Label field if non-nil, zero value otherwise.

GetLabelOk

func (o *InventoryItem) GetLabelOk() (*string, bool)

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

SetLabel

func (o *InventoryItem) SetLabel(v string)

SetLabel sets Label field to given value.

HasLabel

func (o *InventoryItem) HasLabel() bool

HasLabel returns a boolean if a field has been set.

GetManufacturer

func (o *InventoryItem) GetManufacturer() InventoryItemManufacturer

GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.

GetManufacturerOk

func (o *InventoryItem) GetManufacturerOk() (*InventoryItemManufacturer, bool)

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

SetManufacturer

func (o *InventoryItem) SetManufacturer(v InventoryItemManufacturer)

SetManufacturer sets Manufacturer field to given value.

HasManufacturer

func (o *InventoryItem) HasManufacturer() bool

HasManufacturer returns a boolean if a field has been set.

SetManufacturerNil

func (o *InventoryItem) SetManufacturerNil(b bool)

SetManufacturerNil sets the value for Manufacturer to be an explicit nil

UnsetManufacturer

func (o *InventoryItem) UnsetManufacturer()

UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil

GetPartId

func (o *InventoryItem) GetPartId() string

GetPartId returns the PartId field if non-nil, zero value otherwise.

GetPartIdOk

func (o *InventoryItem) GetPartIdOk() (*string, bool)

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

SetPartId

func (o *InventoryItem) SetPartId(v string)

SetPartId sets PartId field to given value.

HasPartId

func (o *InventoryItem) HasPartId() bool

HasPartId returns a boolean if a field has been set.

GetSerial

func (o *InventoryItem) GetSerial() string

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

GetSerialOk

func (o *InventoryItem) 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 *InventoryItem) SetSerial(v string)

SetSerial sets Serial field to given value.

HasSerial

func (o *InventoryItem) HasSerial() bool

HasSerial returns a boolean if a field has been set.

GetAssetTag

func (o *InventoryItem) GetAssetTag() string

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

GetAssetTagOk

func (o *InventoryItem) 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 *InventoryItem) SetAssetTag(v string)

SetAssetTag sets AssetTag field to given value.

HasAssetTag

func (o *InventoryItem) HasAssetTag() bool

HasAssetTag returns a boolean if a field has been set.

SetAssetTagNil

func (o *InventoryItem) SetAssetTagNil(b bool)

SetAssetTagNil sets the value for AssetTag to be an explicit nil

UnsetAssetTag

func (o *InventoryItem) UnsetAssetTag()

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

GetDiscovered

func (o *InventoryItem) GetDiscovered() bool

GetDiscovered returns the Discovered field if non-nil, zero value otherwise.

GetDiscoveredOk

func (o *InventoryItem) GetDiscoveredOk() (*bool, bool)

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

SetDiscovered

func (o *InventoryItem) SetDiscovered(v bool)

SetDiscovered sets Discovered field to given value.

HasDiscovered

func (o *InventoryItem) HasDiscovered() bool

HasDiscovered returns a boolean if a field has been set.

GetDescription

func (o *InventoryItem) GetDescription() string

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

GetDescriptionOk

func (o *InventoryItem) 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 *InventoryItem) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *InventoryItem) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetTags

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

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

GetTagsOk

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

SetTags sets Tags field to given value.

HasTags

func (o *InventoryItem) HasTags() bool

HasTags returns a boolean if a field has been set.

GetDepth

func (o *InventoryItem) GetDepth() int32

GetDepth returns the Depth field if non-nil, zero value otherwise.

GetDepthOk

func (o *InventoryItem) GetDepthOk() (*int32, bool)

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

SetDepth

func (o *InventoryItem) SetDepth(v int32)

SetDepth sets Depth field to given value.

GetCustomFields

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

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

GetCustomFieldsOk

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

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *InventoryItem) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

GetDisplay

func (o *InventoryItem) GetDisplay() string

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

GetDisplayOk

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

SetDisplay sets Display field to given value.

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