114 lines
2.7 KiB
Go
114 lines
2.7 KiB
Go
/*
|
|
* Subset of Influx API covered by Influx CLI
|
|
*
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* API version: 2.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// Config struct for Config
|
|
type Config struct {
|
|
Config *map[string]interface{} `json:"config,omitempty" yaml:"config,omitempty"`
|
|
}
|
|
|
|
// NewConfig instantiates a new Config 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 NewConfig() *Config {
|
|
this := Config{}
|
|
return &this
|
|
}
|
|
|
|
// NewConfigWithDefaults instantiates a new Config 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 NewConfigWithDefaults() *Config {
|
|
this := Config{}
|
|
return &this
|
|
}
|
|
|
|
// GetConfig returns the Config field value if set, zero value otherwise.
|
|
func (o *Config) GetConfig() map[string]interface{} {
|
|
if o == nil || o.Config == nil {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return *o.Config
|
|
}
|
|
|
|
// GetConfigOk returns a tuple with the Config field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Config) GetConfigOk() (*map[string]interface{}, bool) {
|
|
if o == nil || o.Config == nil {
|
|
return nil, false
|
|
}
|
|
return o.Config, true
|
|
}
|
|
|
|
// HasConfig returns a boolean if a field has been set.
|
|
func (o *Config) HasConfig() bool {
|
|
if o != nil && o.Config != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field.
|
|
func (o *Config) SetConfig(v map[string]interface{}) {
|
|
o.Config = &v
|
|
}
|
|
|
|
func (o Config) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Config != nil {
|
|
toSerialize["config"] = o.Config
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableConfig struct {
|
|
value *Config
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableConfig) Get() *Config {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableConfig) Set(val *Config) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableConfig) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableConfig) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableConfig(val *Config) *NullableConfig {
|
|
return &NullableConfig{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableConfig) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableConfig) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|