Skip to content

Latest commit

 

History

History
290 lines (157 loc) · 7.26 KB

File metadata and controls

290 lines (157 loc) · 7.26 KB

InstanceFlavorFields

Properties

Name Type Description Notes
Cpu Pointer to int32 [optional]
Disk Pointer to int32 [optional]
Ephemeral Pointer to int32 [optional]
Features Pointer to map[string]interface{} [optional]
Gpu Pointer to string [optional]
GpuCount Pointer to int32 [optional]
Id Pointer to int32 [optional]
Labels Pointer to []FlavorLabelFields [optional]
Name Pointer to string [optional]
Ram Pointer to float32 [optional]

Methods

NewInstanceFlavorFields

func NewInstanceFlavorFields() *InstanceFlavorFields

NewInstanceFlavorFields instantiates a new InstanceFlavorFields 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

NewInstanceFlavorFieldsWithDefaults

func NewInstanceFlavorFieldsWithDefaults() *InstanceFlavorFields

NewInstanceFlavorFieldsWithDefaults instantiates a new InstanceFlavorFields 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

GetCpu

func (o *InstanceFlavorFields) GetCpu() int32

GetCpu returns the Cpu field if non-nil, zero value otherwise.

GetCpuOk

func (o *InstanceFlavorFields) GetCpuOk() (*int32, bool)

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

SetCpu

func (o *InstanceFlavorFields) SetCpu(v int32)

SetCpu sets Cpu field to given value.

HasCpu

func (o *InstanceFlavorFields) HasCpu() bool

HasCpu returns a boolean if a field has been set.

GetDisk

func (o *InstanceFlavorFields) GetDisk() int32

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

GetDiskOk

func (o *InstanceFlavorFields) 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 *InstanceFlavorFields) SetDisk(v int32)

SetDisk sets Disk field to given value.

HasDisk

func (o *InstanceFlavorFields) HasDisk() bool

HasDisk returns a boolean if a field has been set.

GetEphemeral

func (o *InstanceFlavorFields) GetEphemeral() int32

GetEphemeral returns the Ephemeral field if non-nil, zero value otherwise.

GetEphemeralOk

func (o *InstanceFlavorFields) GetEphemeralOk() (*int32, bool)

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

SetEphemeral

func (o *InstanceFlavorFields) SetEphemeral(v int32)

SetEphemeral sets Ephemeral field to given value.

HasEphemeral

func (o *InstanceFlavorFields) HasEphemeral() bool

HasEphemeral returns a boolean if a field has been set.

GetFeatures

func (o *InstanceFlavorFields) GetFeatures() map[string]interface{}

GetFeatures returns the Features field if non-nil, zero value otherwise.

GetFeaturesOk

func (o *InstanceFlavorFields) GetFeaturesOk() (*map[string]interface{}, bool)

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

SetFeatures

func (o *InstanceFlavorFields) SetFeatures(v map[string]interface{})

SetFeatures sets Features field to given value.

HasFeatures

func (o *InstanceFlavorFields) HasFeatures() bool

HasFeatures returns a boolean if a field has been set.

GetGpu

func (o *InstanceFlavorFields) GetGpu() string

GetGpu returns the Gpu field if non-nil, zero value otherwise.

GetGpuOk

func (o *InstanceFlavorFields) GetGpuOk() (*string, bool)

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

SetGpu

func (o *InstanceFlavorFields) SetGpu(v string)

SetGpu sets Gpu field to given value.

HasGpu

func (o *InstanceFlavorFields) HasGpu() bool

HasGpu returns a boolean if a field has been set.

GetGpuCount

func (o *InstanceFlavorFields) GetGpuCount() int32

GetGpuCount returns the GpuCount field if non-nil, zero value otherwise.

GetGpuCountOk

func (o *InstanceFlavorFields) GetGpuCountOk() (*int32, bool)

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

SetGpuCount

func (o *InstanceFlavorFields) SetGpuCount(v int32)

SetGpuCount sets GpuCount field to given value.

HasGpuCount

func (o *InstanceFlavorFields) HasGpuCount() bool

HasGpuCount returns a boolean if a field has been set.

GetId

func (o *InstanceFlavorFields) GetId() int32

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

GetIdOk

func (o *InstanceFlavorFields) 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 *InstanceFlavorFields) SetId(v int32)

SetId sets Id field to given value.

HasId

func (o *InstanceFlavorFields) HasId() bool

HasId returns a boolean if a field has been set.

GetLabels

func (o *InstanceFlavorFields) GetLabels() []FlavorLabelFields

GetLabels returns the Labels field if non-nil, zero value otherwise.

GetLabelsOk

func (o *InstanceFlavorFields) GetLabelsOk() (*[]FlavorLabelFields, bool)

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

SetLabels

func (o *InstanceFlavorFields) SetLabels(v []FlavorLabelFields)

SetLabels sets Labels field to given value.

HasLabels

func (o *InstanceFlavorFields) HasLabels() bool

HasLabels returns a boolean if a field has been set.

GetName

func (o *InstanceFlavorFields) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

HasName

func (o *InstanceFlavorFields) HasName() bool

HasName returns a boolean if a field has been set.

GetRam

func (o *InstanceFlavorFields) GetRam() float32

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

GetRamOk

func (o *InstanceFlavorFields) GetRamOk() (*float32, 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 *InstanceFlavorFields) SetRam(v float32)

SetRam sets Ram field to given value.

HasRam

func (o *InstanceFlavorFields) HasRam() bool

HasRam returns a boolean if a field has been set.

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