223 lines
5.3 KiB
Go
223 lines
5.3 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"
|
|
)
|
|
|
|
// TemplateSummary struct for TemplateSummary
|
|
type TemplateSummary struct {
|
|
Sources []string `json:"sources" yaml:"sources"`
|
|
StackID string `json:"stackID" yaml:"stackID"`
|
|
Summary TemplateSummaryResources `json:"summary" yaml:"summary"`
|
|
Diff TemplateSummaryDiff `json:"diff" yaml:"diff"`
|
|
Errors []TemplateSummaryError `json:"errors" yaml:"errors"`
|
|
}
|
|
|
|
// NewTemplateSummary instantiates a new TemplateSummary 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 NewTemplateSummary(sources []string, stackID string, summary TemplateSummaryResources, diff TemplateSummaryDiff, errors []TemplateSummaryError) *TemplateSummary {
|
|
this := TemplateSummary{}
|
|
this.Sources = sources
|
|
this.StackID = stackID
|
|
this.Summary = summary
|
|
this.Diff = diff
|
|
this.Errors = errors
|
|
return &this
|
|
}
|
|
|
|
// NewTemplateSummaryWithDefaults instantiates a new TemplateSummary 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 NewTemplateSummaryWithDefaults() *TemplateSummary {
|
|
this := TemplateSummary{}
|
|
return &this
|
|
}
|
|
|
|
// GetSources returns the Sources field value
|
|
func (o *TemplateSummary) GetSources() []string {
|
|
if o == nil {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
|
|
return o.Sources
|
|
}
|
|
|
|
// GetSourcesOk returns a tuple with the Sources field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TemplateSummary) GetSourcesOk() (*[]string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Sources, true
|
|
}
|
|
|
|
// SetSources sets field value
|
|
func (o *TemplateSummary) SetSources(v []string) {
|
|
o.Sources = v
|
|
}
|
|
|
|
// GetStackID returns the StackID field value
|
|
func (o *TemplateSummary) GetStackID() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.StackID
|
|
}
|
|
|
|
// GetStackIDOk returns a tuple with the StackID field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TemplateSummary) GetStackIDOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.StackID, true
|
|
}
|
|
|
|
// SetStackID sets field value
|
|
func (o *TemplateSummary) SetStackID(v string) {
|
|
o.StackID = v
|
|
}
|
|
|
|
// GetSummary returns the Summary field value
|
|
func (o *TemplateSummary) GetSummary() TemplateSummaryResources {
|
|
if o == nil {
|
|
var ret TemplateSummaryResources
|
|
return ret
|
|
}
|
|
|
|
return o.Summary
|
|
}
|
|
|
|
// GetSummaryOk returns a tuple with the Summary field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TemplateSummary) GetSummaryOk() (*TemplateSummaryResources, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Summary, true
|
|
}
|
|
|
|
// SetSummary sets field value
|
|
func (o *TemplateSummary) SetSummary(v TemplateSummaryResources) {
|
|
o.Summary = v
|
|
}
|
|
|
|
// GetDiff returns the Diff field value
|
|
func (o *TemplateSummary) GetDiff() TemplateSummaryDiff {
|
|
if o == nil {
|
|
var ret TemplateSummaryDiff
|
|
return ret
|
|
}
|
|
|
|
return o.Diff
|
|
}
|
|
|
|
// GetDiffOk returns a tuple with the Diff field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TemplateSummary) GetDiffOk() (*TemplateSummaryDiff, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Diff, true
|
|
}
|
|
|
|
// SetDiff sets field value
|
|
func (o *TemplateSummary) SetDiff(v TemplateSummaryDiff) {
|
|
o.Diff = v
|
|
}
|
|
|
|
// GetErrors returns the Errors field value
|
|
func (o *TemplateSummary) GetErrors() []TemplateSummaryError {
|
|
if o == nil {
|
|
var ret []TemplateSummaryError
|
|
return ret
|
|
}
|
|
|
|
return o.Errors
|
|
}
|
|
|
|
// GetErrorsOk returns a tuple with the Errors field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TemplateSummary) GetErrorsOk() (*[]TemplateSummaryError, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Errors, true
|
|
}
|
|
|
|
// SetErrors sets field value
|
|
func (o *TemplateSummary) SetErrors(v []TemplateSummaryError) {
|
|
o.Errors = v
|
|
}
|
|
|
|
func (o TemplateSummary) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if true {
|
|
toSerialize["sources"] = o.Sources
|
|
}
|
|
if true {
|
|
toSerialize["stackID"] = o.StackID
|
|
}
|
|
if true {
|
|
toSerialize["summary"] = o.Summary
|
|
}
|
|
if true {
|
|
toSerialize["diff"] = o.Diff
|
|
}
|
|
if true {
|
|
toSerialize["errors"] = o.Errors
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableTemplateSummary struct {
|
|
value *TemplateSummary
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableTemplateSummary) Get() *TemplateSummary {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableTemplateSummary) Set(val *TemplateSummary) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableTemplateSummary) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableTemplateSummary) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableTemplateSummary(val *TemplateSummary) *NullableTemplateSummary {
|
|
return &NullableTemplateSummary{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableTemplateSummary) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableTemplateSummary) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|