178 lines
6.2 KiB
Go
178 lines
6.2 KiB
Go
/*
|
|
STACKIT Edge Cloud API
|
|
|
|
This API provides endpoints for managing STACKIT Edge Cloud instances.
|
|
|
|
API version: 1beta1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package edgebeta
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the UpdateInstanceByNamePayload type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &UpdateInstanceByNamePayload{}
|
|
|
|
/*
|
|
types and functions for description
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type UpdateInstanceByNamePayloadGetDescriptionAttributeType = *string
|
|
|
|
func getUpdateInstanceByNamePayloadGetDescriptionAttributeTypeOk(arg UpdateInstanceByNamePayloadGetDescriptionAttributeType) (ret UpdateInstanceByNamePayloadGetDescriptionRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setUpdateInstanceByNamePayloadGetDescriptionAttributeType(arg *UpdateInstanceByNamePayloadGetDescriptionAttributeType, val UpdateInstanceByNamePayloadGetDescriptionRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type UpdateInstanceByNamePayloadGetDescriptionArgType = string
|
|
type UpdateInstanceByNamePayloadGetDescriptionRetType = string
|
|
|
|
/*
|
|
types and functions for planId
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type UpdateInstanceByNamePayloadGetPlanIdAttributeType = *string
|
|
|
|
func getUpdateInstanceByNamePayloadGetPlanIdAttributeTypeOk(arg UpdateInstanceByNamePayloadGetPlanIdAttributeType) (ret UpdateInstanceByNamePayloadGetPlanIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setUpdateInstanceByNamePayloadGetPlanIdAttributeType(arg *UpdateInstanceByNamePayloadGetPlanIdAttributeType, val UpdateInstanceByNamePayloadGetPlanIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type UpdateInstanceByNamePayloadGetPlanIdArgType = string
|
|
type UpdateInstanceByNamePayloadGetPlanIdRetType = string
|
|
|
|
// UpdateInstanceByNamePayload struct for UpdateInstanceByNamePayload
|
|
type UpdateInstanceByNamePayload struct {
|
|
// A user chosen description to distinguish multiple instances.
|
|
Description UpdateInstanceByNamePayloadGetDescriptionAttributeType `json:"description,omitempty"`
|
|
// Service Plan configures the size of the Instance.
|
|
PlanId UpdateInstanceByNamePayloadGetPlanIdAttributeType `json:"planId,omitempty"`
|
|
}
|
|
|
|
// NewUpdateInstanceByNamePayload instantiates a new UpdateInstanceByNamePayload 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 NewUpdateInstanceByNamePayload() *UpdateInstanceByNamePayload {
|
|
this := UpdateInstanceByNamePayload{}
|
|
return &this
|
|
}
|
|
|
|
// NewUpdateInstanceByNamePayloadWithDefaults instantiates a new UpdateInstanceByNamePayload 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 NewUpdateInstanceByNamePayloadWithDefaults() *UpdateInstanceByNamePayload {
|
|
this := UpdateInstanceByNamePayload{}
|
|
return &this
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *UpdateInstanceByNamePayload) GetDescription() (res UpdateInstanceByNamePayloadGetDescriptionRetType) {
|
|
res, _ = o.GetDescriptionOk()
|
|
return
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *UpdateInstanceByNamePayload) GetDescriptionOk() (ret UpdateInstanceByNamePayloadGetDescriptionRetType, ok bool) {
|
|
return getUpdateInstanceByNamePayloadGetDescriptionAttributeTypeOk(o.Description)
|
|
}
|
|
|
|
// HasDescription returns a boolean if a field has been set.
|
|
func (o *UpdateInstanceByNamePayload) HasDescription() bool {
|
|
_, ok := o.GetDescriptionOk()
|
|
return ok
|
|
}
|
|
|
|
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
|
func (o *UpdateInstanceByNamePayload) SetDescription(v UpdateInstanceByNamePayloadGetDescriptionRetType) {
|
|
setUpdateInstanceByNamePayloadGetDescriptionAttributeType(&o.Description, v)
|
|
}
|
|
|
|
// GetPlanId returns the PlanId field value if set, zero value otherwise.
|
|
func (o *UpdateInstanceByNamePayload) GetPlanId() (res UpdateInstanceByNamePayloadGetPlanIdRetType) {
|
|
res, _ = o.GetPlanIdOk()
|
|
return
|
|
}
|
|
|
|
// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *UpdateInstanceByNamePayload) GetPlanIdOk() (ret UpdateInstanceByNamePayloadGetPlanIdRetType, ok bool) {
|
|
return getUpdateInstanceByNamePayloadGetPlanIdAttributeTypeOk(o.PlanId)
|
|
}
|
|
|
|
// HasPlanId returns a boolean if a field has been set.
|
|
func (o *UpdateInstanceByNamePayload) HasPlanId() bool {
|
|
_, ok := o.GetPlanIdOk()
|
|
return ok
|
|
}
|
|
|
|
// SetPlanId gets a reference to the given string and assigns it to the PlanId field.
|
|
func (o *UpdateInstanceByNamePayload) SetPlanId(v UpdateInstanceByNamePayloadGetPlanIdRetType) {
|
|
setUpdateInstanceByNamePayloadGetPlanIdAttributeType(&o.PlanId, v)
|
|
}
|
|
|
|
func (o UpdateInstanceByNamePayload) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getUpdateInstanceByNamePayloadGetDescriptionAttributeTypeOk(o.Description); ok {
|
|
toSerialize["Description"] = val
|
|
}
|
|
if val, ok := getUpdateInstanceByNamePayloadGetPlanIdAttributeTypeOk(o.PlanId); ok {
|
|
toSerialize["PlanId"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableUpdateInstanceByNamePayload struct {
|
|
value *UpdateInstanceByNamePayload
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableUpdateInstanceByNamePayload) Get() *UpdateInstanceByNamePayload {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableUpdateInstanceByNamePayload) Set(val *UpdateInstanceByNamePayload) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableUpdateInstanceByNamePayload) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableUpdateInstanceByNamePayload) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableUpdateInstanceByNamePayload(val *UpdateInstanceByNamePayload) *NullableUpdateInstanceByNamePayload {
|
|
return &NullableUpdateInstanceByNamePayload{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableUpdateInstanceByNamePayload) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableUpdateInstanceByNamePayload) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|