Skip to content

Latest commit

 

History

History
213 lines (114 loc) · 5.31 KB

DeviceRole.md

File metadata and controls

213 lines (114 loc) · 5.31 KB

DeviceRole

Properties

Name Type Description Notes
Id int32 [readonly]
Url string [readonly]
Display string [readonly]
Name string
Slug string
Description Pointer to string [optional]
DeviceCount Pointer to int64 [optional] [readonly]
VirtualmachineCount Pointer to int64 [optional] [readonly]

Methods

NewDeviceRole

func NewDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceRole

NewDeviceRole instantiates a new DeviceRole 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

NewDeviceRoleWithDefaults

func NewDeviceRoleWithDefaults() *DeviceRole

NewDeviceRoleWithDefaults instantiates a new DeviceRole 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 *DeviceRole) GetId() int32

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

GetIdOk

func (o *DeviceRole) GetIdOk() (*int32, 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 *DeviceRole) SetId(v int32)

SetId sets Id field to given value.

GetUrl

func (o *DeviceRole) GetUrl() string

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

GetUrlOk

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

SetUrl sets Url field to given value.

GetDisplay

func (o *DeviceRole) GetDisplay() string

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

GetDisplayOk

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

SetDisplay sets Display field to given value.

GetName

func (o *DeviceRole) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

GetSlug

func (o *DeviceRole) GetSlug() string

GetSlug returns the Slug field if non-nil, zero value otherwise.

GetSlugOk

func (o *DeviceRole) GetSlugOk() (*string, bool)

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

SetSlug

func (o *DeviceRole) SetSlug(v string)

SetSlug sets Slug field to given value.

GetDescription

func (o *DeviceRole) GetDescription() string

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

GetDescriptionOk

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

SetDescription sets Description field to given value.

HasDescription

func (o *DeviceRole) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetDeviceCount

func (o *DeviceRole) GetDeviceCount() int64

GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.

GetDeviceCountOk

func (o *DeviceRole) GetDeviceCountOk() (*int64, bool)

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

SetDeviceCount

func (o *DeviceRole) SetDeviceCount(v int64)

SetDeviceCount sets DeviceCount field to given value.

HasDeviceCount

func (o *DeviceRole) HasDeviceCount() bool

HasDeviceCount returns a boolean if a field has been set.

GetVirtualmachineCount

func (o *DeviceRole) GetVirtualmachineCount() int64

GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.

GetVirtualmachineCountOk

func (o *DeviceRole) GetVirtualmachineCountOk() (*int64, bool)

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

SetVirtualmachineCount

func (o *DeviceRole) SetVirtualmachineCount(v int64)

SetVirtualmachineCount sets VirtualmachineCount field to given value.

HasVirtualmachineCount

func (o *DeviceRole) HasVirtualmachineCount() bool

HasVirtualmachineCount returns a boolean if a field has been set.

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