Skip to content

Latest commit

 

History

History
135 lines (72 loc) · 3.29 KB

RackUnit.md

File metadata and controls

135 lines (72 loc) · 3.29 KB

RackUnit

Properties

Name Type Description Notes
Id int32 [readonly]
Name string [readonly]
Face RackUnitFace
Device DeviceParentDevice
Occupied bool [readonly]

Methods

NewRackUnit

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

NewRackUnitWithDefaults

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

GetId

func (o *RackUnit) GetId() int32

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

GetIdOk

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.

SetId

func (o *RackUnit) SetId(v int32)

SetId sets Id field to given value.

GetName

func (o *RackUnit) GetName() string

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

GetNameOk

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.

SetName

func (o *RackUnit) SetName(v string)

SetName sets Name field to given value.

GetFace

func (o *RackUnit) GetFace() RackUnitFace

GetFace returns the Face field if non-nil, zero value otherwise.

GetFaceOk

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.

SetFace

func (o *RackUnit) SetFace(v RackUnitFace)

SetFace sets Face field to given value.

GetDevice

func (o *RackUnit) GetDevice() DeviceParentDevice

GetDevice returns the Device field if non-nil, zero value otherwise.

GetDeviceOk

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.

SetDevice

func (o *RackUnit) SetDevice(v DeviceParentDevice)

SetDevice sets Device field to given value.

GetOccupied

func (o *RackUnit) GetOccupied() bool

GetOccupied returns the Occupied field if non-nil, zero value otherwise.

GetOccupiedOk

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.

SetOccupied

func (o *RackUnit) SetOccupied(v bool)

SetOccupied sets Occupied field to given value.

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