195 lines
5.2 KiB
Go
195 lines
5.2 KiB
Go
/*
|
|
Garage Administration API v0+garage-v0.8.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.8.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package garage
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// GetNodes200Response struct for GetNodes200Response
|
|
type GetNodes200Response struct {
|
|
Node string `json:"node"`
|
|
GarageVersion string `json:"garageVersion"`
|
|
KnownNodes map[string]NodeNetworkInfo `json:"knownNodes"`
|
|
Layout ClusterLayout `json:"layout"`
|
|
}
|
|
|
|
// NewGetNodes200Response instantiates a new GetNodes200Response 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 NewGetNodes200Response(node string, garageVersion string, knownNodes map[string]NodeNetworkInfo, layout ClusterLayout) *GetNodes200Response {
|
|
this := GetNodes200Response{}
|
|
this.Node = node
|
|
this.GarageVersion = garageVersion
|
|
this.KnownNodes = knownNodes
|
|
this.Layout = layout
|
|
return &this
|
|
}
|
|
|
|
// NewGetNodes200ResponseWithDefaults instantiates a new GetNodes200Response 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 NewGetNodes200ResponseWithDefaults() *GetNodes200Response {
|
|
this := GetNodes200Response{}
|
|
return &this
|
|
}
|
|
|
|
// GetNode returns the Node field value
|
|
func (o *GetNodes200Response) GetNode() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Node
|
|
}
|
|
|
|
// GetNodeOk returns a tuple with the Node field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GetNodes200Response) GetNodeOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Node, true
|
|
}
|
|
|
|
// SetNode sets field value
|
|
func (o *GetNodes200Response) SetNode(v string) {
|
|
o.Node = v
|
|
}
|
|
|
|
// GetGarageVersion returns the GarageVersion field value
|
|
func (o *GetNodes200Response) GetGarageVersion() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.GarageVersion
|
|
}
|
|
|
|
// GetGarageVersionOk returns a tuple with the GarageVersion field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GetNodes200Response) GetGarageVersionOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.GarageVersion, true
|
|
}
|
|
|
|
// SetGarageVersion sets field value
|
|
func (o *GetNodes200Response) SetGarageVersion(v string) {
|
|
o.GarageVersion = v
|
|
}
|
|
|
|
// GetKnownNodes returns the KnownNodes field value
|
|
func (o *GetNodes200Response) GetKnownNodes() map[string]NodeNetworkInfo {
|
|
if o == nil {
|
|
var ret map[string]NodeNetworkInfo
|
|
return ret
|
|
}
|
|
|
|
return o.KnownNodes
|
|
}
|
|
|
|
// GetKnownNodesOk returns a tuple with the KnownNodes field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *GetNodes200Response) GetKnownNodesOk() (*map[string]NodeNetworkInfo, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.KnownNodes, true
|
|
}
|
|
|
|
// SetKnownNodes sets field value
|
|
func (o *GetNodes200Response) SetKnownNodes(v map[string]NodeNetworkInfo) {
|
|
o.KnownNodes = v
|
|
}
|
|
|
|
// GetLayout returns the Layout field value
|
|
func (o *GetNodes200Response) 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 *GetNodes200Response) GetLayoutOk() (*ClusterLayout, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Layout, true
|
|
}
|
|
|
|
// SetLayout sets field value
|
|
func (o *GetNodes200Response) SetLayout(v ClusterLayout) {
|
|
o.Layout = v
|
|
}
|
|
|
|
func (o GetNodes200Response) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if true {
|
|
toSerialize["node"] = o.Node
|
|
}
|
|
if true {
|
|
toSerialize["garageVersion"] = o.GarageVersion
|
|
}
|
|
if true {
|
|
toSerialize["knownNodes"] = o.KnownNodes
|
|
}
|
|
if true {
|
|
toSerialize["layout"] = o.Layout
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableGetNodes200Response struct {
|
|
value *GetNodes200Response
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableGetNodes200Response) Get() *GetNodes200Response {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableGetNodes200Response) Set(val *GetNodes200Response) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableGetNodes200Response) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableGetNodes200Response) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableGetNodes200Response(val *GetNodes200Response) *NullableGetNodes200Response {
|
|
return &NullableGetNodes200Response{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableGetNodes200Response) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableGetNodes200Response) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|