/* * 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" ) // TemplateSummaryVariable struct for TemplateSummaryVariable type TemplateSummaryVariable struct { Kind string `json:"kind" yaml:"kind"` TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"` EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"` LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"` Id uint64 `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Description *string `json:"description,omitempty" yaml:"description,omitempty"` Arguments *TemplateSummaryVariableArgs `json:"arguments,omitempty" yaml:"arguments,omitempty"` } // NewTemplateSummaryVariable instantiates a new TemplateSummaryVariable 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 NewTemplateSummaryVariable(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string) *TemplateSummaryVariable { this := TemplateSummaryVariable{} this.Kind = kind this.TemplateMetaName = templateMetaName this.EnvReferences = envReferences this.LabelAssociations = labelAssociations this.Id = id this.Name = name return &this } // NewTemplateSummaryVariableWithDefaults instantiates a new TemplateSummaryVariable 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 NewTemplateSummaryVariableWithDefaults() *TemplateSummaryVariable { this := TemplateSummaryVariable{} return &this } // GetKind returns the Kind field value func (o *TemplateSummaryVariable) GetKind() string { if o == nil { var ret string return ret } return o.Kind } // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetKindOk() (*string, bool) { if o == nil { return nil, false } return &o.Kind, true } // SetKind sets field value func (o *TemplateSummaryVariable) SetKind(v string) { o.Kind = v } // GetTemplateMetaName returns the TemplateMetaName field value func (o *TemplateSummaryVariable) GetTemplateMetaName() string { if o == nil { var ret string return ret } return o.TemplateMetaName } // GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetTemplateMetaNameOk() (*string, bool) { if o == nil { return nil, false } return &o.TemplateMetaName, true } // SetTemplateMetaName sets field value func (o *TemplateSummaryVariable) SetTemplateMetaName(v string) { o.TemplateMetaName = v } // GetEnvReferences returns the EnvReferences field value func (o *TemplateSummaryVariable) GetEnvReferences() []TemplateEnvReference { if o == nil { var ret []TemplateEnvReference return ret } return o.EnvReferences } // GetEnvReferencesOk returns a tuple with the EnvReferences field value // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetEnvReferencesOk() (*[]TemplateEnvReference, bool) { if o == nil { return nil, false } return &o.EnvReferences, true } // SetEnvReferences sets field value func (o *TemplateSummaryVariable) SetEnvReferences(v []TemplateEnvReference) { o.EnvReferences = v } // GetLabelAssociations returns the LabelAssociations field value func (o *TemplateSummaryVariable) GetLabelAssociations() []TemplateSummaryLabel { if o == nil { var ret []TemplateSummaryLabel return ret } return o.LabelAssociations } // GetLabelAssociationsOk returns a tuple with the LabelAssociations field value // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetLabelAssociationsOk() (*[]TemplateSummaryLabel, bool) { if o == nil { return nil, false } return &o.LabelAssociations, true } // SetLabelAssociations sets field value func (o *TemplateSummaryVariable) SetLabelAssociations(v []TemplateSummaryLabel) { o.LabelAssociations = v } // GetId returns the Id field value func (o *TemplateSummaryVariable) GetId() uint64 { if o == nil { var ret uint64 return ret } return o.Id } // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetIdOk() (*uint64, bool) { if o == nil { return nil, false } return &o.Id, true } // SetId sets field value func (o *TemplateSummaryVariable) SetId(v uint64) { o.Id = v } // GetName returns the Name field value func (o *TemplateSummaryVariable) GetName() string { if o == nil { var ret string return ret } return o.Name } // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetNameOk() (*string, bool) { if o == nil { return nil, false } return &o.Name, true } // SetName sets field value func (o *TemplateSummaryVariable) SetName(v string) { o.Name = v } // GetDescription returns the Description field value if set, zero value otherwise. func (o *TemplateSummaryVariable) GetDescription() string { if o == nil || o.Description == nil { var ret string return ret } return *o.Description } // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetDescriptionOk() (*string, bool) { if o == nil || o.Description == nil { return nil, false } return o.Description, true } // HasDescription returns a boolean if a field has been set. func (o *TemplateSummaryVariable) HasDescription() bool { if o != nil && o.Description != nil { return true } return false } // SetDescription gets a reference to the given string and assigns it to the Description field. func (o *TemplateSummaryVariable) SetDescription(v string) { o.Description = &v } // GetArguments returns the Arguments field value if set, zero value otherwise. func (o *TemplateSummaryVariable) GetArguments() TemplateSummaryVariableArgs { if o == nil || o.Arguments == nil { var ret TemplateSummaryVariableArgs return ret } return *o.Arguments } // GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TemplateSummaryVariable) GetArgumentsOk() (*TemplateSummaryVariableArgs, bool) { if o == nil || o.Arguments == nil { return nil, false } return o.Arguments, true } // HasArguments returns a boolean if a field has been set. func (o *TemplateSummaryVariable) HasArguments() bool { if o != nil && o.Arguments != nil { return true } return false } // SetArguments gets a reference to the given TemplateSummaryVariableArgs and assigns it to the Arguments field. func (o *TemplateSummaryVariable) SetArguments(v TemplateSummaryVariableArgs) { o.Arguments = &v } func (o TemplateSummaryVariable) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["kind"] = o.Kind } if true { toSerialize["templateMetaName"] = o.TemplateMetaName } if true { toSerialize["envReferences"] = o.EnvReferences } if true { toSerialize["labelAssociations"] = o.LabelAssociations } if true { toSerialize["id"] = o.Id } if true { toSerialize["name"] = o.Name } if o.Description != nil { toSerialize["description"] = o.Description } if o.Arguments != nil { toSerialize["arguments"] = o.Arguments } return json.Marshal(toSerialize) } type NullableTemplateSummaryVariable struct { value *TemplateSummaryVariable isSet bool } func (v NullableTemplateSummaryVariable) Get() *TemplateSummaryVariable { return v.value } func (v *NullableTemplateSummaryVariable) Set(val *TemplateSummaryVariable) { v.value = val v.isSet = true } func (v NullableTemplateSummaryVariable) IsSet() bool { return v.isSet } func (v *NullableTemplateSummaryVariable) Unset() { v.value = nil v.isSet = false } func NewNullableTemplateSummaryVariable(val *TemplateSummaryVariable) *NullableTemplateSummaryVariable { return &NullableTemplateSummaryVariable{value: val, isSet: true} } func (v NullableTemplateSummaryVariable) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTemplateSummaryVariable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }