Skip to content

Latest commit

 

History

History
405 lines (218 loc) · 10.4 KB

DeviceRole.md

File metadata and controls

405 lines (218 loc) · 10.4 KB

DeviceRole

Properties

Name Type Description Notes
Id int32 [readonly]
Url string [readonly]
Display string [readonly]
Name string
Slug string
Color Pointer to string [optional]
VmRole Pointer to bool Virtual machines may be assigned to this role [optional]
ConfigTemplate Pointer to NullableNestedConfigTemplate [optional]
Description Pointer to string [optional]
Tags Pointer to []NestedTag [optional]
CustomFields Pointer to map[string]interface{} [optional]
Created NullableTime [readonly]
LastUpdated NullableTime [readonly]
DeviceCount int32 [readonly]
VirtualmachineCount int32 [readonly]

Methods

NewDeviceRole

func NewDeviceRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32, ) *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.

GetColor

func (o *DeviceRole) GetColor() string

GetColor returns the Color field if non-nil, zero value otherwise.

GetColorOk

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

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

SetColor

func (o *DeviceRole) SetColor(v string)

SetColor sets Color field to given value.

HasColor

func (o *DeviceRole) HasColor() bool

HasColor returns a boolean if a field has been set.

GetVmRole

func (o *DeviceRole) GetVmRole() bool

GetVmRole returns the VmRole field if non-nil, zero value otherwise.

GetVmRoleOk

func (o *DeviceRole) GetVmRoleOk() (*bool, bool)

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

SetVmRole

func (o *DeviceRole) SetVmRole(v bool)

SetVmRole sets VmRole field to given value.

HasVmRole

func (o *DeviceRole) HasVmRole() bool

HasVmRole returns a boolean if a field has been set.

GetConfigTemplate

func (o *DeviceRole) GetConfigTemplate() NestedConfigTemplate

GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.

GetConfigTemplateOk

func (o *DeviceRole) GetConfigTemplateOk() (*NestedConfigTemplate, bool)

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

SetConfigTemplate

func (o *DeviceRole) SetConfigTemplate(v NestedConfigTemplate)

SetConfigTemplate sets ConfigTemplate field to given value.

HasConfigTemplate

func (o *DeviceRole) HasConfigTemplate() bool

HasConfigTemplate returns a boolean if a field has been set.

SetConfigTemplateNil

func (o *DeviceRole) SetConfigTemplateNil(b bool)

SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil

UnsetConfigTemplate

func (o *DeviceRole) UnsetConfigTemplate()

UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil

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.

GetTags

func (o *DeviceRole) GetTags() []NestedTag

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

GetTagsOk

func (o *DeviceRole) GetTagsOk() (*[]NestedTag, 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 *DeviceRole) SetTags(v []NestedTag)

SetTags sets Tags field to given value.

HasTags

func (o *DeviceRole) HasTags() bool

HasTags returns a boolean if a field has been set.

GetCustomFields

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

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

GetCustomFieldsOk

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

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *DeviceRole) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

GetCreated

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

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

GetCreatedOk

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

SetCreated sets Created field to given value.

SetCreatedNil

func (o *DeviceRole) SetCreatedNil(b bool)

SetCreatedNil sets the value for Created to be an explicit nil

UnsetCreated

func (o *DeviceRole) UnsetCreated()

UnsetCreated ensures that no value is present for Created, not even an explicit nil

GetLastUpdated

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

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

GetLastUpdatedOk

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

SetLastUpdated sets LastUpdated field to given value.

SetLastUpdatedNil

func (o *DeviceRole) SetLastUpdatedNil(b bool)

SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil

UnsetLastUpdated

func (o *DeviceRole) UnsetLastUpdated()

UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil

GetDeviceCount

func (o *DeviceRole) GetDeviceCount() int32

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

GetDeviceCountOk

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

SetDeviceCount sets DeviceCount field to given value.

GetVirtualmachineCount

func (o *DeviceRole) GetVirtualmachineCount() int32

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

GetVirtualmachineCountOk

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

SetVirtualmachineCount sets VirtualmachineCount field to given value.

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