Skip to content

Latest commit

 

History

History
271 lines (144 loc) · 6.98 KB

Device.md

File metadata and controls

271 lines (144 loc) · 6.98 KB

Device

Properties

Name Type Description Notes
VerboseName string Return object's verbose_name [readonly]
VerboseNamePlural string Return object's plural verbose_name [readonly]
MetaModelName string Return internal model name [readonly]
Pk string
Name string
Type string Get type of device [readonly]
Confirmed bool
Created time.Time [readonly]
LastUpdated time.Time [readonly]
LastUsed NullableTime [readonly]
ExtraDescription string Get extra description [readonly]

Methods

NewDevice

func NewDevice(verboseName string, verboseNamePlural string, metaModelName string, pk string, name string, type_ string, confirmed bool, created time.Time, lastUpdated time.Time, lastUsed NullableTime, extraDescription 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

GetVerboseName

func (o *Device) GetVerboseName() string

GetVerboseName returns the VerboseName field if non-nil, zero value otherwise.

GetVerboseNameOk

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

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

SetVerboseName

func (o *Device) SetVerboseName(v string)

SetVerboseName sets VerboseName field to given value.

GetVerboseNamePlural

func (o *Device) GetVerboseNamePlural() string

GetVerboseNamePlural returns the VerboseNamePlural field if non-nil, zero value otherwise.

GetVerboseNamePluralOk

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

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

SetVerboseNamePlural

func (o *Device) SetVerboseNamePlural(v string)

SetVerboseNamePlural sets VerboseNamePlural field to given value.

GetMetaModelName

func (o *Device) GetMetaModelName() string

GetMetaModelName returns the MetaModelName field if non-nil, zero value otherwise.

GetMetaModelNameOk

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

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

SetMetaModelName

func (o *Device) SetMetaModelName(v string)

SetMetaModelName sets MetaModelName field to given value.

GetPk

func (o *Device) GetPk() string

GetPk returns the Pk field if non-nil, zero value otherwise.

GetPkOk

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

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

SetPk

func (o *Device) SetPk(v string)

SetPk sets Pk 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.

GetType

func (o *Device) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

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

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

SetType

func (o *Device) SetType(v string)

SetType sets Type field to given value.

GetConfirmed

func (o *Device) GetConfirmed() bool

GetConfirmed returns the Confirmed field if non-nil, zero value otherwise.

GetConfirmedOk

func (o *Device) GetConfirmedOk() (*bool, bool)

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

SetConfirmed

func (o *Device) SetConfirmed(v bool)

SetConfirmed sets Confirmed field to given value.

GetCreated

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

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

GetCreatedOk

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

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.

GetLastUsed

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

GetLastUsed returns the LastUsed field if non-nil, zero value otherwise.

GetLastUsedOk

func (o *Device) GetLastUsedOk() (*time.Time, bool)

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

SetLastUsed

func (o *Device) SetLastUsed(v time.Time)

SetLastUsed sets LastUsed field to given value.

SetLastUsedNil

func (o *Device) SetLastUsedNil(b bool)

SetLastUsedNil sets the value for LastUsed to be an explicit nil

UnsetLastUsed

func (o *Device) UnsetLastUsed()

UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil

GetExtraDescription

func (o *Device) GetExtraDescription() string

GetExtraDescription returns the ExtraDescription field if non-nil, zero value otherwise.

GetExtraDescriptionOk

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

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

SetExtraDescription

func (o *Device) SetExtraDescription(v string)

SetExtraDescription sets ExtraDescription field to given value.

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