fix: correct more details in templates/apply API (#159)
This commit is contained in:
@ -17,9 +17,10 @@ import (
|
||||
// TemplateSummaryNotificationRule struct for TemplateSummaryNotificationRule
|
||||
type TemplateSummaryNotificationRule 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"`
|
||||
Id uint64 `json:"id" yaml:"id"`
|
||||
Name string `json:"name" yaml:"name"`
|
||||
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||
EndpointTemplateMetaName string `json:"endpointTemplateMetaName" yaml:"endpointTemplateMetaName"`
|
||||
@ -33,11 +34,13 @@ type TemplateSummaryNotificationRule 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 NewTemplateSummaryNotificationRule(kind string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRule {
|
||||
func NewTemplateSummaryNotificationRule(kind string, templateMetaName string, envReferences []TemplateEnvReference, labelAssociations []TemplateSummaryLabel, id uint64, name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRule {
|
||||
this := TemplateSummaryNotificationRule{}
|
||||
this.Kind = kind
|
||||
this.TemplateMetaName = templateMetaName
|
||||
this.EnvReferences = envReferences
|
||||
this.LabelAssociations = labelAssociations
|
||||
this.Id = id
|
||||
this.Name = name
|
||||
this.EndpointTemplateMetaName = endpointTemplateMetaName
|
||||
this.EndpointID = endpointID
|
||||
@ -79,36 +82,28 @@ func (o *TemplateSummaryNotificationRule) 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 *TemplateSummaryNotificationRule) 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 *TemplateSummaryNotificationRule) 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 *TemplateSummaryNotificationRule) 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 *TemplateSummaryNotificationRule) SetTemplateMetaName(v string) {
|
||||
o.TemplateMetaName = &v
|
||||
o.TemplateMetaName = v
|
||||
}
|
||||
|
||||
// GetEnvReferences returns the EnvReferences field value
|
||||
@ -159,6 +154,30 @@ func (o *TemplateSummaryNotificationRule) SetLabelAssociations(v []TemplateSumma
|
||||
o.LabelAssociations = v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *TemplateSummaryNotificationRule) 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 *TemplateSummaryNotificationRule) GetIdOk() (*uint64, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Id, true
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *TemplateSummaryNotificationRule) SetId(v uint64) {
|
||||
o.Id = v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *TemplateSummaryNotificationRule) GetName() string {
|
||||
if o == nil {
|
||||
@ -340,7 +359,7 @@ func (o TemplateSummaryNotificationRule) MarshalJSON() ([]byte, error) {
|
||||
if true {
|
||||
toSerialize["kind"] = o.Kind
|
||||
}
|
||||
if o.TemplateMetaName != nil {
|
||||
if true {
|
||||
toSerialize["templateMetaName"] = o.TemplateMetaName
|
||||
}
|
||||
if true {
|
||||
@ -349,6 +368,9 @@ func (o TemplateSummaryNotificationRule) MarshalJSON() ([]byte, error) {
|
||||
if true {
|
||||
toSerialize["labelAssociations"] = o.LabelAssociations
|
||||
}
|
||||
if true {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if true {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
|
Reference in New Issue
Block a user