138 lines
3.7 KiB
Go
138 lines
3.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"
|
|
)
|
|
|
|
// TemplateSummaryVariableArgs struct for TemplateSummaryVariableArgs
|
|
type TemplateSummaryVariableArgs struct {
|
|
Type string `json:"type" yaml:"type"`
|
|
Values interface{} `json:"values" yaml:"values"`
|
|
}
|
|
|
|
// NewTemplateSummaryVariableArgs instantiates a new TemplateSummaryVariableArgs 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 NewTemplateSummaryVariableArgs(type_ string, values interface{}) *TemplateSummaryVariableArgs {
|
|
this := TemplateSummaryVariableArgs{}
|
|
this.Type = type_
|
|
this.Values = values
|
|
return &this
|
|
}
|
|
|
|
// NewTemplateSummaryVariableArgsWithDefaults instantiates a new TemplateSummaryVariableArgs 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 NewTemplateSummaryVariableArgsWithDefaults() *TemplateSummaryVariableArgs {
|
|
this := TemplateSummaryVariableArgs{}
|
|
return &this
|
|
}
|
|
|
|
// GetType returns the Type field value
|
|
func (o *TemplateSummaryVariableArgs) GetType() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TemplateSummaryVariableArgs) GetTypeOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Type, true
|
|
}
|
|
|
|
// SetType sets field value
|
|
func (o *TemplateSummaryVariableArgs) SetType(v string) {
|
|
o.Type = v
|
|
}
|
|
|
|
// GetValues returns the Values field value
|
|
// If the value is explicit nil, the zero value for interface{} will be returned
|
|
func (o *TemplateSummaryVariableArgs) GetValues() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
|
|
return o.Values
|
|
}
|
|
|
|
// GetValuesOk returns a tuple with the Values field value
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *TemplateSummaryVariableArgs) GetValuesOk() (*interface{}, bool) {
|
|
if o == nil || o.Values == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Values, true
|
|
}
|
|
|
|
// SetValues sets field value
|
|
func (o *TemplateSummaryVariableArgs) SetValues(v interface{}) {
|
|
o.Values = v
|
|
}
|
|
|
|
func (o TemplateSummaryVariableArgs) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if true {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if o.Values != nil {
|
|
toSerialize["values"] = o.Values
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableTemplateSummaryVariableArgs struct {
|
|
value *TemplateSummaryVariableArgs
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableTemplateSummaryVariableArgs) Get() *TemplateSummaryVariableArgs {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableTemplateSummaryVariableArgs) Set(val *TemplateSummaryVariableArgs) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableTemplateSummaryVariableArgs) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableTemplateSummaryVariableArgs) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableTemplateSummaryVariableArgs(val *TemplateSummaryVariableArgs) *NullableTemplateSummaryVariableArgs {
|
|
return &NullableTemplateSummaryVariableArgs{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableTemplateSummaryVariableArgs) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableTemplateSummaryVariableArgs) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|