fix: correct more details in templates/apply API (#159)
This commit is contained in:
@ -17,7 +17,7 @@ import (
|
||||
// TemplateSummaryTelegraf struct for TemplateSummaryTelegraf
|
||||
type TemplateSummaryTelegraf struct {
|
||||
Kind string `json:"kind" yaml:"kind"`
|
||||
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"`
|
||||
TemplateMetaName string `json:"templateMetaName" yaml:"templateMetaName"`
|
||||
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
|
||||
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
|
||||
TelegrafConfig TemplateSummaryTelegrafConfig `json:"telegrafConfig" yaml:"telegrafConfig"`
|
||||
@ -27,9 +27,10 @@ type TemplateSummaryTelegraf struct {
|
||||
// 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 NewTemplateSummaryTelegraf(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, telegrafConfig TemplateSummaryTelegrafConfig) *TemplateSummaryTelegraf {
|
||||
func NewTemplateSummaryTelegraf(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, telegrafConfig TemplateSummaryTelegrafConfig) *TemplateSummaryTelegraf {
|
||||
this := TemplateSummaryTelegraf{}
|
||||
this.Kind = kind
|
||||
this.TemplateMetaName = templateMetaName
|
||||
this.EnvReferences = envReferences
|
||||
this.LabelAssociations = labelAssociations
|
||||
this.TelegrafConfig = telegrafConfig
|
||||
@ -68,36 +69,28 @@ func (o *TemplateSummaryTelegraf) SetKind(v string) {
|
||||
o.Kind = v
|
||||
}
|
||||
|
||||
// GetTemplateMetaName returns the TemplateMetaName field value if set, zero value otherwise.
|
||||
// GetTemplateMetaName returns the TemplateMetaName field value
|
||||
func (o *TemplateSummaryTelegraf) GetTemplateMetaName() string {
|
||||
if o == nil || o.TemplateMetaName == nil {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.TemplateMetaName
|
||||
|
||||
return o.TemplateMetaName
|
||||
}
|
||||
|
||||
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value if set, nil otherwise
|
||||
// GetTemplateMetaNameOk returns a tuple with the TemplateMetaName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TemplateSummaryTelegraf) GetTemplateMetaNameOk() (*string, bool) {
|
||||
if o == nil || o.TemplateMetaName == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TemplateMetaName, true
|
||||
return &o.TemplateMetaName, true
|
||||
}
|
||||
|
||||
// HasTemplateMetaName returns a boolean if a field has been set.
|
||||
func (o *TemplateSummaryTelegraf) HasTemplateMetaName() bool {
|
||||
if o != nil && o.TemplateMetaName != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTemplateMetaName gets a reference to the given string and assigns it to the TemplateMetaName field.
|
||||
// SetTemplateMetaName sets field value
|
||||
func (o *TemplateSummaryTelegraf) SetTemplateMetaName(v string) {
|
||||
o.TemplateMetaName = &v
|
||||
o.TemplateMetaName = v
|
||||
}
|
||||
|
||||
// GetEnvReferences returns the EnvReferences field value
|
||||
@ -177,7 +170,7 @@ func (o TemplateSummaryTelegraf) MarshalJSON() ([]byte, error) {
|
||||
if true {
|
||||
toSerialize["kind"] = o.Kind
|
||||
}
|
||||
if o.TemplateMetaName != nil {
|
||||
if true {
|
||||
toSerialize["templateMetaName"] = o.TemplateMetaName
|
||||
}
|
||||
if true {
|
||||
|
Reference in New Issue
Block a user