Skip to content

Latest commit

 

History

History
186 lines (101 loc) · 4.28 KB

ServerFlavor.md

File metadata and controls

186 lines (101 loc) · 4.28 KB

ServerFlavor

Properties

Name Type Description Notes
Disk Pointer to int32 [optional]
Id Pointer to string [optional]
Name Pointer to string [optional]
Ram Pointer to float64 [optional]
Swap Pointer to string [optional]
Vcpus Pointer to int32 [optional]

Methods

NewServerFlavor

func NewServerFlavor() *ServerFlavor

NewServerFlavor instantiates a new ServerFlavor 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

NewServerFlavorWithDefaults

func NewServerFlavorWithDefaults() *ServerFlavor

NewServerFlavorWithDefaults instantiates a new ServerFlavor 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

GetDisk

func (o *ServerFlavor) GetDisk() int32

GetDisk returns the Disk field if non-nil, zero value otherwise.

GetDiskOk

func (o *ServerFlavor) GetDiskOk() (*int32, bool)

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

SetDisk

func (o *ServerFlavor) SetDisk(v int32)

SetDisk sets Disk field to given value.

HasDisk

func (o *ServerFlavor) HasDisk() bool

HasDisk returns a boolean if a field has been set.

GetId

func (o *ServerFlavor) GetId() string

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

GetIdOk

func (o *ServerFlavor) GetIdOk() (*string, 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 *ServerFlavor) SetId(v string)

SetId sets Id field to given value.

HasId

func (o *ServerFlavor) HasId() bool

HasId returns a boolean if a field has been set.

GetName

func (o *ServerFlavor) GetName() string

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

GetNameOk

func (o *ServerFlavor) 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 *ServerFlavor) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *ServerFlavor) HasName() bool

HasName returns a boolean if a field has been set.

GetRam

func (o *ServerFlavor) GetRam() float64

GetRam returns the Ram field if non-nil, zero value otherwise.

GetRamOk

func (o *ServerFlavor) GetRamOk() (*float64, bool)

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

SetRam

func (o *ServerFlavor) SetRam(v float64)

SetRam sets Ram field to given value.

HasRam

func (o *ServerFlavor) HasRam() bool

HasRam returns a boolean if a field has been set.

GetSwap

func (o *ServerFlavor) GetSwap() string

GetSwap returns the Swap field if non-nil, zero value otherwise.

GetSwapOk

func (o *ServerFlavor) GetSwapOk() (*string, bool)

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

SetSwap

func (o *ServerFlavor) SetSwap(v string)

SetSwap sets Swap field to given value.

HasSwap

func (o *ServerFlavor) HasSwap() bool

HasSwap returns a boolean if a field has been set.

GetVcpus

func (o *ServerFlavor) GetVcpus() int32

GetVcpus returns the Vcpus field if non-nil, zero value otherwise.

GetVcpusOk

func (o *ServerFlavor) GetVcpusOk() (*int32, bool)

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

SetVcpus

func (o *ServerFlavor) SetVcpus(v int32)

SetVcpus sets Vcpus field to given value.

HasVcpus

func (o *ServerFlavor) HasVcpus() bool

HasVcpus returns a boolean if a field has been set.

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