## Description
<!-- **Please link some issue here describing what you are trying to achieve.**
In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->
relates to #1234
## Checklist
- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)
Reviewed-on: #4
Reviewed-by: Andre_Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
658 lines
24 KiB
Go
658 lines
24 KiB
Go
/*
|
|
PostgreSQL Flex API
|
|
|
|
This is the documentation for the STACKIT Postgres Flex service
|
|
|
|
API version: 3alpha1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package postgresflexalpha
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the GetInstanceResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &GetInstanceResponse{}
|
|
|
|
/*
|
|
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 connectionInfo
|
|
*/
|
|
|
|
// isModel
|
|
type GetInstanceResponseGetConnectionInfoAttributeType = *InstanceConnectionInfo
|
|
type GetInstanceResponseGetConnectionInfoArgType = InstanceConnectionInfo
|
|
type GetInstanceResponseGetConnectionInfoRetType = InstanceConnectionInfo
|
|
|
|
func getGetInstanceResponseGetConnectionInfoAttributeTypeOk(arg GetInstanceResponseGetConnectionInfoAttributeType) (ret GetInstanceResponseGetConnectionInfoRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setGetInstanceResponseGetConnectionInfoAttributeType(arg *GetInstanceResponseGetConnectionInfoAttributeType, val GetInstanceResponseGetConnectionInfoRetType) {
|
|
*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
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type GetInstanceResponseGetVersionAttributeType = *string
|
|
|
|
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
|
|
}
|
|
|
|
type GetInstanceResponseGetVersionArgType = string
|
|
type GetInstanceResponseGetVersionRetType = string
|
|
|
|
// GetInstanceResponse struct for GetInstanceResponse
|
|
type GetInstanceResponse struct {
|
|
// 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
|
|
ConnectionInfo GetInstanceResponseGetConnectionInfoAttributeType `json:"connectionInfo" 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"`
|
|
// How long backups are retained. The value can only be between 32 and 365 days.
|
|
// 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"`
|
|
// The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.
|
|
// 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(backupSchedule GetInstanceResponseGetBackupScheduleArgType, connectionInfo GetInstanceResponseGetConnectionInfoArgType, flavorId GetInstanceResponseGetFlavorIdArgType, id GetInstanceResponseGetIdArgType, isDeletable GetInstanceResponsegetIsDeletableArgType, name GetInstanceResponseGetNameArgType, network GetInstanceResponseGetNetworkArgType, replicas GetInstanceResponseGetReplicasArgType, retentionDays GetInstanceResponseGetRetentionDaysArgType, status GetInstanceResponseGetStatusArgType, storage GetInstanceResponseGetStorageArgType, version GetInstanceResponseGetVersionArgType) *GetInstanceResponse {
|
|
this := GetInstanceResponse{}
|
|
setGetInstanceResponseGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule)
|
|
setGetInstanceResponseGetConnectionInfoAttributeType(&this.ConnectionInfo, connectionInfo)
|
|
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
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
// GetConnectionInfo returns the ConnectionInfo field value
|
|
func (o *GetInstanceResponse) GetConnectionInfo() (ret GetInstanceResponseGetConnectionInfoRetType) {
|
|
ret, _ = o.GetConnectionInfoOk()
|
|
return ret
|
|
}
|
|
|
|
// GetConnectionInfoOk returns a tuple with the ConnectionInfo field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GetInstanceResponse) GetConnectionInfoOk() (ret GetInstanceResponseGetConnectionInfoRetType, ok bool) {
|
|
return getGetInstanceResponseGetConnectionInfoAttributeTypeOk(o.ConnectionInfo)
|
|
}
|
|
|
|
// SetConnectionInfo sets field value
|
|
func (o *GetInstanceResponse) SetConnectionInfo(v GetInstanceResponseGetConnectionInfoRetType) {
|
|
setGetInstanceResponseGetConnectionInfoAttributeType(&o.ConnectionInfo, 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 := getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok {
|
|
toSerialize["BackupSchedule"] = val
|
|
}
|
|
if val, ok := getGetInstanceResponseGetConnectionInfoAttributeTypeOk(o.ConnectionInfo); ok {
|
|
toSerialize["ConnectionInfo"] = 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)
|
|
}
|