169 lines
5.4 KiB
Go
169 lines
5.4 KiB
Go
/*
|
|
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 ListBackupResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ListBackupResponse{}
|
|
|
|
/*
|
|
types and functions for backups
|
|
*/
|
|
|
|
// isArray
|
|
type ListBackupResponseGetBackupsAttributeType = *[]ListBackupsResponse
|
|
type ListBackupResponseGetBackupsArgType = []ListBackupsResponse
|
|
type ListBackupResponseGetBackupsRetType = []ListBackupsResponse
|
|
|
|
func getListBackupResponseGetBackupsAttributeTypeOk(arg ListBackupResponseGetBackupsAttributeType) (ret ListBackupResponseGetBackupsRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setListBackupResponseGetBackupsAttributeType(arg *ListBackupResponseGetBackupsAttributeType, val ListBackupResponseGetBackupsRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for pagination
|
|
*/
|
|
|
|
// isModel
|
|
type ListBackupResponseGetPaginationAttributeType = *Pagination
|
|
type ListBackupResponseGetPaginationArgType = Pagination
|
|
type ListBackupResponseGetPaginationRetType = Pagination
|
|
|
|
func getListBackupResponseGetPaginationAttributeTypeOk(arg ListBackupResponseGetPaginationAttributeType) (ret ListBackupResponseGetPaginationRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setListBackupResponseGetPaginationAttributeType(arg *ListBackupResponseGetPaginationAttributeType, val ListBackupResponseGetPaginationRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
// ListBackupResponse struct for ListBackupResponse
|
|
type ListBackupResponse struct {
|
|
// The list containing the information about the backups.
|
|
// REQUIRED
|
|
Backups ListBackupResponseGetBackupsAttributeType `json:"backups" required:"true"`
|
|
// REQUIRED
|
|
Pagination ListBackupResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
|
}
|
|
|
|
type _ListBackupResponse ListBackupResponse
|
|
|
|
// NewListBackupResponse instantiates a new ListBackupResponse 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 NewListBackupResponse(backups ListBackupResponseGetBackupsArgType, pagination ListBackupResponseGetPaginationArgType) *ListBackupResponse {
|
|
this := ListBackupResponse{}
|
|
setListBackupResponseGetBackupsAttributeType(&this.Backups, backups)
|
|
setListBackupResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
|
return &this
|
|
}
|
|
|
|
// NewListBackupResponseWithDefaults instantiates a new ListBackupResponse 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 NewListBackupResponseWithDefaults() *ListBackupResponse {
|
|
this := ListBackupResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetBackups returns the Backups field value
|
|
func (o *ListBackupResponse) GetBackups() (ret ListBackupResponseGetBackupsRetType) {
|
|
ret, _ = o.GetBackupsOk()
|
|
return ret
|
|
}
|
|
|
|
// GetBackupsOk returns a tuple with the Backups field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ListBackupResponse) GetBackupsOk() (ret ListBackupResponseGetBackupsRetType, ok bool) {
|
|
return getListBackupResponseGetBackupsAttributeTypeOk(o.Backups)
|
|
}
|
|
|
|
// SetBackups sets field value
|
|
func (o *ListBackupResponse) SetBackups(v ListBackupResponseGetBackupsRetType) {
|
|
setListBackupResponseGetBackupsAttributeType(&o.Backups, v)
|
|
}
|
|
|
|
// GetPagination returns the Pagination field value
|
|
func (o *ListBackupResponse) GetPagination() (ret ListBackupResponseGetPaginationRetType) {
|
|
ret, _ = o.GetPaginationOk()
|
|
return ret
|
|
}
|
|
|
|
// GetPaginationOk returns a tuple with the Pagination field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ListBackupResponse) GetPaginationOk() (ret ListBackupResponseGetPaginationRetType, ok bool) {
|
|
return getListBackupResponseGetPaginationAttributeTypeOk(o.Pagination)
|
|
}
|
|
|
|
// SetPagination sets field value
|
|
func (o *ListBackupResponse) SetPagination(v ListBackupResponseGetPaginationRetType) {
|
|
setListBackupResponseGetPaginationAttributeType(&o.Pagination, v)
|
|
}
|
|
|
|
func (o ListBackupResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getListBackupResponseGetBackupsAttributeTypeOk(o.Backups); ok {
|
|
toSerialize["Backups"] = val
|
|
}
|
|
if val, ok := getListBackupResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
|
toSerialize["Pagination"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableListBackupResponse struct {
|
|
value *ListBackupResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableListBackupResponse) Get() *ListBackupResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableListBackupResponse) Set(val *ListBackupResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableListBackupResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableListBackupResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableListBackupResponse(val *ListBackupResponse) *NullableListBackupResponse {
|
|
return &NullableListBackupResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableListBackupResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableListBackupResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|