138 lines
3.8 KiB
Go
138 lines
3.8 KiB
Go
|
/*
|
||
|
Garage Administration API v0+garage-v0.9.0
|
||
|
|
||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!*
|
||
|
|
||
|
API version: v0.9.0
|
||
|
*/
|
||
|
|
||
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||
|
|
||
|
package garage
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
)
|
||
|
|
||
|
// ApplyLayout200Response struct for ApplyLayout200Response
|
||
|
type ApplyLayout200Response struct {
|
||
|
Message []string `json:"message"`
|
||
|
Layout ClusterLayout `json:"layout"`
|
||
|
}
|
||
|
|
||
|
// NewApplyLayout200Response instantiates a new ApplyLayout200Response 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 NewApplyLayout200Response(message []string, layout ClusterLayout) *ApplyLayout200Response {
|
||
|
this := ApplyLayout200Response{}
|
||
|
this.Message = message
|
||
|
this.Layout = layout
|
||
|
return &this
|
||
|
}
|
||
|
|
||
|
// NewApplyLayout200ResponseWithDefaults instantiates a new ApplyLayout200Response 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 NewApplyLayout200ResponseWithDefaults() *ApplyLayout200Response {
|
||
|
this := ApplyLayout200Response{}
|
||
|
return &this
|
||
|
}
|
||
|
|
||
|
// GetMessage returns the Message field value
|
||
|
func (o *ApplyLayout200Response) GetMessage() []string {
|
||
|
if o == nil {
|
||
|
var ret []string
|
||
|
return ret
|
||
|
}
|
||
|
|
||
|
return o.Message
|
||
|
}
|
||
|
|
||
|
// GetMessageOk returns a tuple with the Message field value
|
||
|
// and a boolean to check if the value has been set.
|
||
|
func (o *ApplyLayout200Response) GetMessageOk() ([]string, bool) {
|
||
|
if o == nil {
|
||
|
return nil, false
|
||
|
}
|
||
|
return o.Message, true
|
||
|
}
|
||
|
|
||
|
// SetMessage sets field value
|
||
|
func (o *ApplyLayout200Response) SetMessage(v []string) {
|
||
|
o.Message = v
|
||
|
}
|
||
|
|
||
|
// GetLayout returns the Layout field value
|
||
|
func (o *ApplyLayout200Response) GetLayout() ClusterLayout {
|
||
|
if o == nil {
|
||
|
var ret ClusterLayout
|
||
|
return ret
|
||
|
}
|
||
|
|
||
|
return o.Layout
|
||
|
}
|
||
|
|
||
|
// GetLayoutOk returns a tuple with the Layout field value
|
||
|
// and a boolean to check if the value has been set.
|
||
|
func (o *ApplyLayout200Response) GetLayoutOk() (*ClusterLayout, bool) {
|
||
|
if o == nil {
|
||
|
return nil, false
|
||
|
}
|
||
|
return &o.Layout, true
|
||
|
}
|
||
|
|
||
|
// SetLayout sets field value
|
||
|
func (o *ApplyLayout200Response) SetLayout(v ClusterLayout) {
|
||
|
o.Layout = v
|
||
|
}
|
||
|
|
||
|
func (o ApplyLayout200Response) MarshalJSON() ([]byte, error) {
|
||
|
toSerialize := map[string]interface{}{}
|
||
|
if true {
|
||
|
toSerialize["message"] = o.Message
|
||
|
}
|
||
|
if true {
|
||
|
toSerialize["layout"] = o.Layout
|
||
|
}
|
||
|
return json.Marshal(toSerialize)
|
||
|
}
|
||
|
|
||
|
type NullableApplyLayout200Response struct {
|
||
|
value *ApplyLayout200Response
|
||
|
isSet bool
|
||
|
}
|
||
|
|
||
|
func (v NullableApplyLayout200Response) Get() *ApplyLayout200Response {
|
||
|
return v.value
|
||
|
}
|
||
|
|
||
|
func (v *NullableApplyLayout200Response) Set(val *ApplyLayout200Response) {
|
||
|
v.value = val
|
||
|
v.isSet = true
|
||
|
}
|
||
|
|
||
|
func (v NullableApplyLayout200Response) IsSet() bool {
|
||
|
return v.isSet
|
||
|
}
|
||
|
|
||
|
func (v *NullableApplyLayout200Response) Unset() {
|
||
|
v.value = nil
|
||
|
v.isSet = false
|
||
|
}
|
||
|
|
||
|
func NewNullableApplyLayout200Response(val *ApplyLayout200Response) *NullableApplyLayout200Response {
|
||
|
return &NullableApplyLayout200Response{value: val, isSet: true}
|
||
|
}
|
||
|
|
||
|
func (v NullableApplyLayout200Response) MarshalJSON() ([]byte, error) {
|
||
|
return json.Marshal(v.value)
|
||
|
}
|
||
|
|
||
|
func (v *NullableApplyLayout200Response) UnmarshalJSON(src []byte) error {
|
||
|
v.isSet = true
|
||
|
return json.Unmarshal(src, &v.value)
|
||
|
}
|
||
|
|
||
|
|