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] |
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
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
func (o *DeviceRole) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetId(v int32)
SetId sets Id field to given value.
func (o *DeviceRole) GetUrl() string
GetUrl returns the Url field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetUrl(v string)
SetUrl sets Url field to given value.
func (o *DeviceRole) GetDisplay() string
GetDisplay returns the Display field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetDisplay(v string)
SetDisplay sets Display field to given value.
func (o *DeviceRole) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetName(v string)
SetName sets Name field to given value.
func (o *DeviceRole) GetSlug() string
GetSlug returns the Slug field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetSlug(v string)
SetSlug sets Slug field to given value.
func (o *DeviceRole) GetColor() string
GetColor returns the Color field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetColor(v string)
SetColor sets Color field to given value.
func (o *DeviceRole) HasColor() bool
HasColor returns a boolean if a field has been set.
func (o *DeviceRole) GetVmRole() bool
GetVmRole returns the VmRole field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetVmRole(v bool)
SetVmRole sets VmRole field to given value.
func (o *DeviceRole) HasVmRole() bool
HasVmRole returns a boolean if a field has been set.
func (o *DeviceRole) GetConfigTemplate() NestedConfigTemplate
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetConfigTemplate(v NestedConfigTemplate)
SetConfigTemplate sets ConfigTemplate field to given value.
func (o *DeviceRole) HasConfigTemplate() bool
HasConfigTemplate returns a boolean if a field has been set.
func (o *DeviceRole) SetConfigTemplateNil(b bool)
SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
func (o *DeviceRole) UnsetConfigTemplate()
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
func (o *DeviceRole) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *DeviceRole) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *DeviceRole) GetTags() []NestedTag
GetTags returns the Tags field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetTags(v []NestedTag)
SetTags sets Tags field to given value.
func (o *DeviceRole) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *DeviceRole) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *DeviceRole) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.
func (o *DeviceRole) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetCreated(v time.Time)
SetCreated sets Created field to given value.
func (o *DeviceRole) SetCreatedNil(b bool)
SetCreatedNil sets the value for Created to be an explicit nil
func (o *DeviceRole) UnsetCreated()
UnsetCreated ensures that no value is present for Created, not even an explicit nil
func (o *DeviceRole) GetLastUpdated() time.Time
GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetLastUpdated(v time.Time)
SetLastUpdated sets LastUpdated field to given value.
func (o *DeviceRole) SetLastUpdatedNil(b bool)
SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *DeviceRole) UnsetLastUpdated()
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
func (o *DeviceRole) GetDeviceCount() int32
GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetDeviceCount(v int32)
SetDeviceCount sets DeviceCount field to given value.
func (o *DeviceRole) GetVirtualmachineCount() int32
GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.
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.
func (o *DeviceRole) SetVirtualmachineCount(v int32)
SetVirtualmachineCount sets VirtualmachineCount field to given value.