chore: initial push to be able to work together
This commit is contained in:
parent
81e8d48cf6
commit
30070d8470
263 changed files with 45437 additions and 2 deletions
700
pkg/sqlserverflexalpha/model_get_instance_response.go
Normal file
700
pkg/sqlserverflexalpha/model_get_instance_response.go
Normal file
|
|
@ -0,0 +1,700 @@
|
|||
/*
|
||||
STACKIT MSSQL Service API
|
||||
|
||||
This is the documentation for the STACKIT MSSQL service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package sqlserverflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetInstanceResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetInstanceResponse{}
|
||||
|
||||
/*
|
||||
types and functions for acl
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetInstanceResponseGetAclAttributeType = *[]string
|
||||
type GetInstanceResponseGetAclArgType = []string
|
||||
type GetInstanceResponseGetAclRetType = []string
|
||||
|
||||
func getGetInstanceResponseGetAclAttributeTypeOk(arg GetInstanceResponseGetAclAttributeType) (ret GetInstanceResponseGetAclRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetAclAttributeType(arg *GetInstanceResponseGetAclAttributeType, val GetInstanceResponseGetAclRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for backupSchedule
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetBackupScheduleAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetBackupScheduleAttributeTypeOk(arg GetInstanceResponseGetBackupScheduleAttributeType) (ret GetInstanceResponseGetBackupScheduleRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetBackupScheduleAttributeType(arg *GetInstanceResponseGetBackupScheduleAttributeType, val GetInstanceResponseGetBackupScheduleRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetBackupScheduleArgType = string
|
||||
type GetInstanceResponseGetBackupScheduleRetType = string
|
||||
|
||||
/*
|
||||
types and functions for edition
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type GetInstanceResponseGetEditionAttributeType = *InstanceEdition
|
||||
type GetInstanceResponseGetEditionArgType = InstanceEdition
|
||||
type GetInstanceResponseGetEditionRetType = InstanceEdition
|
||||
|
||||
func getGetInstanceResponseGetEditionAttributeTypeOk(arg GetInstanceResponseGetEditionAttributeType) (ret GetInstanceResponseGetEditionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetEditionAttributeType(arg *GetInstanceResponseGetEditionAttributeType, val GetInstanceResponseGetEditionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for encryption
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type GetInstanceResponseGetEncryptionAttributeType = *InstanceEncryption
|
||||
type GetInstanceResponseGetEncryptionArgType = InstanceEncryption
|
||||
type GetInstanceResponseGetEncryptionRetType = InstanceEncryption
|
||||
|
||||
func getGetInstanceResponseGetEncryptionAttributeTypeOk(arg GetInstanceResponseGetEncryptionAttributeType) (ret GetInstanceResponseGetEncryptionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetEncryptionAttributeType(arg *GetInstanceResponseGetEncryptionAttributeType, val GetInstanceResponseGetEncryptionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for flavorId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetFlavorIdAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetFlavorIdAttributeTypeOk(arg GetInstanceResponseGetFlavorIdAttributeType) (ret GetInstanceResponseGetFlavorIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetFlavorIdAttributeType(arg *GetInstanceResponseGetFlavorIdAttributeType, val GetInstanceResponseGetFlavorIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetFlavorIdArgType = string
|
||||
type GetInstanceResponseGetFlavorIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetIdAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetIdAttributeTypeOk(arg GetInstanceResponseGetIdAttributeType) (ret GetInstanceResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetIdAttributeType(arg *GetInstanceResponseGetIdAttributeType, val GetInstanceResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetIdArgType = string
|
||||
type GetInstanceResponseGetIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for isDeletable
|
||||
*/
|
||||
|
||||
// isBoolean
|
||||
type GetInstanceResponsegetIsDeletableAttributeType = *bool
|
||||
type GetInstanceResponsegetIsDeletableArgType = bool
|
||||
type GetInstanceResponsegetIsDeletableRetType = bool
|
||||
|
||||
func getGetInstanceResponsegetIsDeletableAttributeTypeOk(arg GetInstanceResponsegetIsDeletableAttributeType) (ret GetInstanceResponsegetIsDeletableRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponsegetIsDeletableAttributeType(arg *GetInstanceResponsegetIsDeletableAttributeType, val GetInstanceResponsegetIsDeletableRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetNameAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetNameAttributeTypeOk(arg GetInstanceResponseGetNameAttributeType) (ret GetInstanceResponseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetNameAttributeType(arg *GetInstanceResponseGetNameAttributeType, val GetInstanceResponseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetNameArgType = string
|
||||
type GetInstanceResponseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for network
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type GetInstanceResponseGetNetworkAttributeType = *InstanceNetwork
|
||||
type GetInstanceResponseGetNetworkArgType = InstanceNetwork
|
||||
type GetInstanceResponseGetNetworkRetType = InstanceNetwork
|
||||
|
||||
func getGetInstanceResponseGetNetworkAttributeTypeOk(arg GetInstanceResponseGetNetworkAttributeType) (ret GetInstanceResponseGetNetworkRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetNetworkAttributeType(arg *GetInstanceResponseGetNetworkAttributeType, val GetInstanceResponseGetNetworkRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for replicas
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type GetInstanceResponseGetReplicasAttributeType = *Replicas
|
||||
type GetInstanceResponseGetReplicasArgType = Replicas
|
||||
type GetInstanceResponseGetReplicasRetType = Replicas
|
||||
|
||||
func getGetInstanceResponseGetReplicasAttributeTypeOk(arg GetInstanceResponseGetReplicasAttributeType) (ret GetInstanceResponseGetReplicasRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetReplicasAttributeType(arg *GetInstanceResponseGetReplicasAttributeType, val GetInstanceResponseGetReplicasRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for retentionDays
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type GetInstanceResponseGetRetentionDaysAttributeType = *int64
|
||||
type GetInstanceResponseGetRetentionDaysArgType = int64
|
||||
type GetInstanceResponseGetRetentionDaysRetType = int64
|
||||
|
||||
func getGetInstanceResponseGetRetentionDaysAttributeTypeOk(arg GetInstanceResponseGetRetentionDaysAttributeType) (ret GetInstanceResponseGetRetentionDaysRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetRetentionDaysAttributeType(arg *GetInstanceResponseGetRetentionDaysAttributeType, val GetInstanceResponseGetRetentionDaysRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for status
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type GetInstanceResponseGetStatusAttributeType = *Status
|
||||
type GetInstanceResponseGetStatusArgType = Status
|
||||
type GetInstanceResponseGetStatusRetType = Status
|
||||
|
||||
func getGetInstanceResponseGetStatusAttributeTypeOk(arg GetInstanceResponseGetStatusAttributeType) (ret GetInstanceResponseGetStatusRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetStatusAttributeType(arg *GetInstanceResponseGetStatusAttributeType, val GetInstanceResponseGetStatusRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for storage
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type GetInstanceResponseGetStorageAttributeType = *Storage
|
||||
type GetInstanceResponseGetStorageArgType = Storage
|
||||
type GetInstanceResponseGetStorageRetType = Storage
|
||||
|
||||
func getGetInstanceResponseGetStorageAttributeTypeOk(arg GetInstanceResponseGetStorageAttributeType) (ret GetInstanceResponseGetStorageRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetStorageAttributeType(arg *GetInstanceResponseGetStorageAttributeType, val GetInstanceResponseGetStorageRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for version
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type GetInstanceResponseGetVersionAttributeType = *InstanceVersion
|
||||
type GetInstanceResponseGetVersionArgType = InstanceVersion
|
||||
type GetInstanceResponseGetVersionRetType = InstanceVersion
|
||||
|
||||
func getGetInstanceResponseGetVersionAttributeTypeOk(arg GetInstanceResponseGetVersionAttributeType) (ret GetInstanceResponseGetVersionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetVersionAttributeType(arg *GetInstanceResponseGetVersionAttributeType, val GetInstanceResponseGetVersionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// GetInstanceResponse struct for GetInstanceResponse
|
||||
type GetInstanceResponse struct {
|
||||
// List of IPV4 cidr.
|
||||
// REQUIRED
|
||||
Acl GetInstanceResponseGetAclAttributeType `json:"acl" required:"true"`
|
||||
// The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.
|
||||
// REQUIRED
|
||||
BackupSchedule GetInstanceResponseGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"`
|
||||
// REQUIRED
|
||||
Edition GetInstanceResponseGetEditionAttributeType `json:"edition" required:"true"`
|
||||
Encryption GetInstanceResponseGetEncryptionAttributeType `json:"encryption,omitempty"`
|
||||
// The id of the instance flavor.
|
||||
// REQUIRED
|
||||
FlavorId GetInstanceResponseGetFlavorIdAttributeType `json:"flavorId" required:"true"`
|
||||
// The ID of the instance.
|
||||
// REQUIRED
|
||||
Id GetInstanceResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
// Whether the instance can be deleted or not.
|
||||
// REQUIRED
|
||||
IsDeletable GetInstanceResponsegetIsDeletableAttributeType `json:"isDeletable" required:"true"`
|
||||
// The name of the instance.
|
||||
// REQUIRED
|
||||
Name GetInstanceResponseGetNameAttributeType `json:"name" required:"true"`
|
||||
// REQUIRED
|
||||
Network GetInstanceResponseGetNetworkAttributeType `json:"network" required:"true"`
|
||||
// REQUIRED
|
||||
Replicas GetInstanceResponseGetReplicasAttributeType `json:"replicas" required:"true"`
|
||||
// The days for how long the backup files should be stored before cleaned up. 30 to 365
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
RetentionDays GetInstanceResponseGetRetentionDaysAttributeType `json:"retentionDays" required:"true"`
|
||||
// REQUIRED
|
||||
Status GetInstanceResponseGetStatusAttributeType `json:"status" required:"true"`
|
||||
// REQUIRED
|
||||
Storage GetInstanceResponseGetStorageAttributeType `json:"storage" required:"true"`
|
||||
// REQUIRED
|
||||
Version GetInstanceResponseGetVersionAttributeType `json:"version" required:"true"`
|
||||
}
|
||||
|
||||
type _GetInstanceResponse GetInstanceResponse
|
||||
|
||||
// NewGetInstanceResponse instantiates a new GetInstanceResponse 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 NewGetInstanceResponse(acl GetInstanceResponseGetAclArgType, backupSchedule GetInstanceResponseGetBackupScheduleArgType, edition GetInstanceResponseGetEditionArgType, flavorId GetInstanceResponseGetFlavorIdArgType, id GetInstanceResponseGetIdArgType, isDeletable GetInstanceResponsegetIsDeletableArgType, name GetInstanceResponseGetNameArgType, network GetInstanceResponseGetNetworkArgType, replicas GetInstanceResponseGetReplicasArgType, retentionDays GetInstanceResponseGetRetentionDaysArgType, status GetInstanceResponseGetStatusArgType, storage GetInstanceResponseGetStorageArgType, version GetInstanceResponseGetVersionArgType) *GetInstanceResponse {
|
||||
this := GetInstanceResponse{}
|
||||
setGetInstanceResponseGetAclAttributeType(&this.Acl, acl)
|
||||
setGetInstanceResponseGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule)
|
||||
setGetInstanceResponseGetEditionAttributeType(&this.Edition, edition)
|
||||
setGetInstanceResponseGetFlavorIdAttributeType(&this.FlavorId, flavorId)
|
||||
setGetInstanceResponseGetIdAttributeType(&this.Id, id)
|
||||
setGetInstanceResponsegetIsDeletableAttributeType(&this.IsDeletable, isDeletable)
|
||||
setGetInstanceResponseGetNameAttributeType(&this.Name, name)
|
||||
setGetInstanceResponseGetNetworkAttributeType(&this.Network, network)
|
||||
setGetInstanceResponseGetReplicasAttributeType(&this.Replicas, replicas)
|
||||
setGetInstanceResponseGetRetentionDaysAttributeType(&this.RetentionDays, retentionDays)
|
||||
setGetInstanceResponseGetStatusAttributeType(&this.Status, status)
|
||||
setGetInstanceResponseGetStorageAttributeType(&this.Storage, storage)
|
||||
setGetInstanceResponseGetVersionAttributeType(&this.Version, version)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetInstanceResponseWithDefaults instantiates a new GetInstanceResponse 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 NewGetInstanceResponseWithDefaults() *GetInstanceResponse {
|
||||
this := GetInstanceResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAcl returns the Acl field value
|
||||
func (o *GetInstanceResponse) GetAcl() (ret GetInstanceResponseGetAclRetType) {
|
||||
ret, _ = o.GetAclOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetAclOk returns a tuple with the Acl field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetAclOk() (ret GetInstanceResponseGetAclRetType, ok bool) {
|
||||
return getGetInstanceResponseGetAclAttributeTypeOk(o.Acl)
|
||||
}
|
||||
|
||||
// SetAcl sets field value
|
||||
func (o *GetInstanceResponse) SetAcl(v GetInstanceResponseGetAclRetType) {
|
||||
setGetInstanceResponseGetAclAttributeType(&o.Acl, v)
|
||||
}
|
||||
|
||||
// GetBackupSchedule returns the BackupSchedule field value
|
||||
func (o *GetInstanceResponse) GetBackupSchedule() (ret GetInstanceResponseGetBackupScheduleRetType) {
|
||||
ret, _ = o.GetBackupScheduleOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetBackupScheduleOk returns a tuple with the BackupSchedule field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetBackupScheduleOk() (ret GetInstanceResponseGetBackupScheduleRetType, ok bool) {
|
||||
return getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule)
|
||||
}
|
||||
|
||||
// SetBackupSchedule sets field value
|
||||
func (o *GetInstanceResponse) SetBackupSchedule(v GetInstanceResponseGetBackupScheduleRetType) {
|
||||
setGetInstanceResponseGetBackupScheduleAttributeType(&o.BackupSchedule, v)
|
||||
}
|
||||
|
||||
// GetEdition returns the Edition field value
|
||||
func (o *GetInstanceResponse) GetEdition() (ret GetInstanceResponseGetEditionRetType) {
|
||||
ret, _ = o.GetEditionOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetEditionOk returns a tuple with the Edition field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetEditionOk() (ret GetInstanceResponseGetEditionRetType, ok bool) {
|
||||
return getGetInstanceResponseGetEditionAttributeTypeOk(o.Edition)
|
||||
}
|
||||
|
||||
// SetEdition sets field value
|
||||
func (o *GetInstanceResponse) SetEdition(v GetInstanceResponseGetEditionRetType) {
|
||||
setGetInstanceResponseGetEditionAttributeType(&o.Edition, v)
|
||||
}
|
||||
|
||||
// GetEncryption returns the Encryption field value if set, zero value otherwise.
|
||||
func (o *GetInstanceResponse) GetEncryption() (res GetInstanceResponseGetEncryptionRetType) {
|
||||
res, _ = o.GetEncryptionOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncryptionOk returns a tuple with the Encryption field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetEncryptionOk() (ret GetInstanceResponseGetEncryptionRetType, ok bool) {
|
||||
return getGetInstanceResponseGetEncryptionAttributeTypeOk(o.Encryption)
|
||||
}
|
||||
|
||||
// HasEncryption returns a boolean if a field has been set.
|
||||
func (o *GetInstanceResponse) HasEncryption() bool {
|
||||
_, ok := o.GetEncryptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetEncryption gets a reference to the given InstanceEncryption and assigns it to the Encryption field.
|
||||
func (o *GetInstanceResponse) SetEncryption(v GetInstanceResponseGetEncryptionRetType) {
|
||||
setGetInstanceResponseGetEncryptionAttributeType(&o.Encryption, v)
|
||||
}
|
||||
|
||||
// GetFlavorId returns the FlavorId field value
|
||||
func (o *GetInstanceResponse) GetFlavorId() (ret GetInstanceResponseGetFlavorIdRetType) {
|
||||
ret, _ = o.GetFlavorIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetFlavorIdOk returns a tuple with the FlavorId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetFlavorIdOk() (ret GetInstanceResponseGetFlavorIdRetType, ok bool) {
|
||||
return getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId)
|
||||
}
|
||||
|
||||
// SetFlavorId sets field value
|
||||
func (o *GetInstanceResponse) SetFlavorId(v GetInstanceResponseGetFlavorIdRetType) {
|
||||
setGetInstanceResponseGetFlavorIdAttributeType(&o.FlavorId, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *GetInstanceResponse) GetId() (ret GetInstanceResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetIdOk() (ret GetInstanceResponseGetIdRetType, ok bool) {
|
||||
return getGetInstanceResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *GetInstanceResponse) SetId(v GetInstanceResponseGetIdRetType) {
|
||||
setGetInstanceResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetIsDeletable returns the IsDeletable field value
|
||||
func (o *GetInstanceResponse) GetIsDeletable() (ret GetInstanceResponsegetIsDeletableRetType) {
|
||||
ret, _ = o.GetIsDeletableOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIsDeletableOk returns a tuple with the IsDeletable field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetIsDeletableOk() (ret GetInstanceResponsegetIsDeletableRetType, ok bool) {
|
||||
return getGetInstanceResponsegetIsDeletableAttributeTypeOk(o.IsDeletable)
|
||||
}
|
||||
|
||||
// SetIsDeletable sets field value
|
||||
func (o *GetInstanceResponse) SetIsDeletable(v GetInstanceResponsegetIsDeletableRetType) {
|
||||
setGetInstanceResponsegetIsDeletableAttributeType(&o.IsDeletable, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *GetInstanceResponse) GetName() (ret GetInstanceResponseGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetNameOk() (ret GetInstanceResponseGetNameRetType, ok bool) {
|
||||
return getGetInstanceResponseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *GetInstanceResponse) SetName(v GetInstanceResponseGetNameRetType) {
|
||||
setGetInstanceResponseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetNetwork returns the Network field value
|
||||
func (o *GetInstanceResponse) GetNetwork() (ret GetInstanceResponseGetNetworkRetType) {
|
||||
ret, _ = o.GetNetworkOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNetworkOk returns a tuple with the Network field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetNetworkOk() (ret GetInstanceResponseGetNetworkRetType, ok bool) {
|
||||
return getGetInstanceResponseGetNetworkAttributeTypeOk(o.Network)
|
||||
}
|
||||
|
||||
// SetNetwork sets field value
|
||||
func (o *GetInstanceResponse) SetNetwork(v GetInstanceResponseGetNetworkRetType) {
|
||||
setGetInstanceResponseGetNetworkAttributeType(&o.Network, v)
|
||||
}
|
||||
|
||||
// GetReplicas returns the Replicas field value
|
||||
func (o *GetInstanceResponse) GetReplicas() (ret GetInstanceResponseGetReplicasRetType) {
|
||||
ret, _ = o.GetReplicasOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetReplicasOk returns a tuple with the Replicas field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetReplicasOk() (ret GetInstanceResponseGetReplicasRetType, ok bool) {
|
||||
return getGetInstanceResponseGetReplicasAttributeTypeOk(o.Replicas)
|
||||
}
|
||||
|
||||
// SetReplicas sets field value
|
||||
func (o *GetInstanceResponse) SetReplicas(v GetInstanceResponseGetReplicasRetType) {
|
||||
setGetInstanceResponseGetReplicasAttributeType(&o.Replicas, v)
|
||||
}
|
||||
|
||||
// GetRetentionDays returns the RetentionDays field value
|
||||
func (o *GetInstanceResponse) GetRetentionDays() (ret GetInstanceResponseGetRetentionDaysRetType) {
|
||||
ret, _ = o.GetRetentionDaysOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRetentionDaysOk returns a tuple with the RetentionDays field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetRetentionDaysOk() (ret GetInstanceResponseGetRetentionDaysRetType, ok bool) {
|
||||
return getGetInstanceResponseGetRetentionDaysAttributeTypeOk(o.RetentionDays)
|
||||
}
|
||||
|
||||
// SetRetentionDays sets field value
|
||||
func (o *GetInstanceResponse) SetRetentionDays(v GetInstanceResponseGetRetentionDaysRetType) {
|
||||
setGetInstanceResponseGetRetentionDaysAttributeType(&o.RetentionDays, v)
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value
|
||||
func (o *GetInstanceResponse) GetStatus() (ret GetInstanceResponseGetStatusRetType) {
|
||||
ret, _ = o.GetStatusOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetStatusOk() (ret GetInstanceResponseGetStatusRetType, ok bool) {
|
||||
return getGetInstanceResponseGetStatusAttributeTypeOk(o.Status)
|
||||
}
|
||||
|
||||
// SetStatus sets field value
|
||||
func (o *GetInstanceResponse) SetStatus(v GetInstanceResponseGetStatusRetType) {
|
||||
setGetInstanceResponseGetStatusAttributeType(&o.Status, v)
|
||||
}
|
||||
|
||||
// GetStorage returns the Storage field value
|
||||
func (o *GetInstanceResponse) GetStorage() (ret GetInstanceResponseGetStorageRetType) {
|
||||
ret, _ = o.GetStorageOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStorageOk returns a tuple with the Storage field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetStorageOk() (ret GetInstanceResponseGetStorageRetType, ok bool) {
|
||||
return getGetInstanceResponseGetStorageAttributeTypeOk(o.Storage)
|
||||
}
|
||||
|
||||
// SetStorage sets field value
|
||||
func (o *GetInstanceResponse) SetStorage(v GetInstanceResponseGetStorageRetType) {
|
||||
setGetInstanceResponseGetStorageAttributeType(&o.Storage, v)
|
||||
}
|
||||
|
||||
// GetVersion returns the Version field value
|
||||
func (o *GetInstanceResponse) GetVersion() (ret GetInstanceResponseGetVersionRetType) {
|
||||
ret, _ = o.GetVersionOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetVersionOk returns a tuple with the Version field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetVersionOk() (ret GetInstanceResponseGetVersionRetType, ok bool) {
|
||||
return getGetInstanceResponseGetVersionAttributeTypeOk(o.Version)
|
||||
}
|
||||
|
||||
// SetVersion sets field value
|
||||
func (o *GetInstanceResponse) SetVersion(v GetInstanceResponseGetVersionRetType) {
|
||||
setGetInstanceResponseGetVersionAttributeType(&o.Version, v)
|
||||
}
|
||||
|
||||
func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetInstanceResponseGetAclAttributeTypeOk(o.Acl); ok {
|
||||
toSerialize["Acl"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok {
|
||||
toSerialize["BackupSchedule"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetEditionAttributeTypeOk(o.Edition); ok {
|
||||
toSerialize["Edition"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetEncryptionAttributeTypeOk(o.Encryption); ok {
|
||||
toSerialize["Encryption"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId); ok {
|
||||
toSerialize["FlavorId"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponsegetIsDeletableAttributeTypeOk(o.IsDeletable); ok {
|
||||
toSerialize["IsDeletable"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetNetworkAttributeTypeOk(o.Network); ok {
|
||||
toSerialize["Network"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetReplicasAttributeTypeOk(o.Replicas); ok {
|
||||
toSerialize["Replicas"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok {
|
||||
toSerialize["RetentionDays"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetStatusAttributeTypeOk(o.Status); ok {
|
||||
toSerialize["Status"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetStorageAttributeTypeOk(o.Storage); ok {
|
||||
toSerialize["Storage"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetVersionAttributeTypeOk(o.Version); ok {
|
||||
toSerialize["Version"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetInstanceResponse struct {
|
||||
value *GetInstanceResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetInstanceResponse) Get() *GetInstanceResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetInstanceResponse) Set(val *GetInstanceResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetInstanceResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetInstanceResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetInstanceResponse(val *GetInstanceResponse) *NullableGetInstanceResponse {
|
||||
return &NullableGetInstanceResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetInstanceResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetInstanceResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue