Name | Type | Description | Notes |
---|---|---|---|
Id | int32 | [readonly] | |
Name | string | [readonly] | |
Face | RackUnitFace | ||
Device | DeviceParentDevice | ||
Occupied | bool | [readonly] |
func NewRackUnit(id int32, name string, face RackUnitFace, device DeviceParentDevice, occupied bool, ) *RackUnit
NewRackUnit instantiates a new RackUnit 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 NewRackUnitWithDefaults() *RackUnit
NewRackUnitWithDefaults instantiates a new RackUnit 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 *RackUnit) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *RackUnit) 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 *RackUnit) SetId(v int32)
SetId sets Id field to given value.
func (o *RackUnit) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *RackUnit) 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 *RackUnit) SetName(v string)
SetName sets Name field to given value.
func (o *RackUnit) GetFace() RackUnitFace
GetFace returns the Face field if non-nil, zero value otherwise.
func (o *RackUnit) GetFaceOk() (*RackUnitFace, bool)
GetFaceOk returns a tuple with the Face field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RackUnit) SetFace(v RackUnitFace)
SetFace sets Face field to given value.
func (o *RackUnit) GetDevice() DeviceParentDevice
GetDevice returns the Device field if non-nil, zero value otherwise.
func (o *RackUnit) GetDeviceOk() (*DeviceParentDevice, 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.
func (o *RackUnit) SetDevice(v DeviceParentDevice)
SetDevice sets Device field to given value.
func (o *RackUnit) GetOccupied() bool
GetOccupied returns the Occupied field if non-nil, zero value otherwise.
func (o *RackUnit) GetOccupiedOk() (*bool, bool)
GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RackUnit) SetOccupied(v bool)
SetOccupied sets Occupied field to given value.