Skip to content

Latest commit

 

History

History
228 lines (123 loc) · 6.44 KB

WritableRackReservationRequest.md

File metadata and controls

228 lines (123 loc) · 6.44 KB

WritableRackReservationRequest

Properties

Name Type Description Notes
Rack int32
Units []int32
User int32
Tenant Pointer to NullableInt32 [optional]
Description string
Comments Pointer to string [optional]
Tags Pointer to []NestedTagRequest [optional]
CustomFields Pointer to map[string]interface{} [optional]

Methods

NewWritableRackReservationRequest

func NewWritableRackReservationRequest(rack int32, units []int32, user int32, description string, ) *WritableRackReservationRequest

NewWritableRackReservationRequest instantiates a new WritableRackReservationRequest 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

NewWritableRackReservationRequestWithDefaults

func NewWritableRackReservationRequestWithDefaults() *WritableRackReservationRequest

NewWritableRackReservationRequestWithDefaults instantiates a new WritableRackReservationRequest 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

GetRack

func (o *WritableRackReservationRequest) GetRack() int32

GetRack returns the Rack field if non-nil, zero value otherwise.

GetRackOk

func (o *WritableRackReservationRequest) GetRackOk() (*int32, bool)

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

SetRack

func (o *WritableRackReservationRequest) SetRack(v int32)

SetRack sets Rack field to given value.

GetUnits

func (o *WritableRackReservationRequest) GetUnits() []int32

GetUnits returns the Units field if non-nil, zero value otherwise.

GetUnitsOk

func (o *WritableRackReservationRequest) GetUnitsOk() (*[]int32, bool)

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

SetUnits

func (o *WritableRackReservationRequest) SetUnits(v []int32)

SetUnits sets Units field to given value.

GetUser

func (o *WritableRackReservationRequest) GetUser() int32

GetUser returns the User field if non-nil, zero value otherwise.

GetUserOk

func (o *WritableRackReservationRequest) GetUserOk() (*int32, bool)

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

SetUser

func (o *WritableRackReservationRequest) SetUser(v int32)

SetUser sets User field to given value.

GetTenant

func (o *WritableRackReservationRequest) GetTenant() int32

GetTenant returns the Tenant field if non-nil, zero value otherwise.

GetTenantOk

func (o *WritableRackReservationRequest) GetTenantOk() (*int32, bool)

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

SetTenant

func (o *WritableRackReservationRequest) SetTenant(v int32)

SetTenant sets Tenant field to given value.

HasTenant

func (o *WritableRackReservationRequest) HasTenant() bool

HasTenant returns a boolean if a field has been set.

SetTenantNil

func (o *WritableRackReservationRequest) SetTenantNil(b bool)

SetTenantNil sets the value for Tenant to be an explicit nil

UnsetTenant

func (o *WritableRackReservationRequest) UnsetTenant()

UnsetTenant ensures that no value is present for Tenant, not even an explicit nil

GetDescription

func (o *WritableRackReservationRequest) GetDescription() string

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

GetDescriptionOk

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

SetDescription sets Description field to given value.

GetComments

func (o *WritableRackReservationRequest) GetComments() string

GetComments returns the Comments field if non-nil, zero value otherwise.

GetCommentsOk

func (o *WritableRackReservationRequest) GetCommentsOk() (*string, bool)

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

SetComments

func (o *WritableRackReservationRequest) SetComments(v string)

SetComments sets Comments field to given value.

HasComments

func (o *WritableRackReservationRequest) HasComments() bool

HasComments returns a boolean if a field has been set.

GetTags

func (o *WritableRackReservationRequest) GetTags() []NestedTagRequest

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

GetTagsOk

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

SetTags sets Tags field to given value.

HasTags

func (o *WritableRackReservationRequest) HasTags() bool

HasTags returns a boolean if a field has been set.

GetCustomFields

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

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

GetCustomFieldsOk

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

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *WritableRackReservationRequest) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

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