fix: correct more details in templates/apply API (#159)

This commit is contained in:
Daniel Moran
2021-06-29 15:08:36 -04:00
committed by GitHub
parent eb99827966
commit 69dedbcaa9
32 changed files with 884 additions and 348 deletions

View File

@ -16,6 +16,7 @@ import (
// TemplateSummaryNotificationRuleAllOf struct for TemplateSummaryNotificationRuleAllOf
type TemplateSummaryNotificationRuleAllOf struct {
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"`
@ -29,8 +30,9 @@ type TemplateSummaryNotificationRuleAllOf 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 NewTemplateSummaryNotificationRuleAllOf(name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRuleAllOf {
func NewTemplateSummaryNotificationRuleAllOf(id uint64, name string, endpointTemplateMetaName string, endpointID uint64, endpointType string, every string, offset string) *TemplateSummaryNotificationRuleAllOf {
this := TemplateSummaryNotificationRuleAllOf{}
this.Id = id
this.Name = name
this.EndpointTemplateMetaName = endpointTemplateMetaName
this.EndpointID = endpointID
@ -48,6 +50,30 @@ func NewTemplateSummaryNotificationRuleAllOfWithDefaults() *TemplateSummaryNotif
return &this
}
// GetId returns the Id field value
func (o *TemplateSummaryNotificationRuleAllOf) 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 *TemplateSummaryNotificationRuleAllOf) GetIdOk() (*uint64, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *TemplateSummaryNotificationRuleAllOf) SetId(v uint64) {
o.Id = v
}
// GetName returns the Name field value
func (o *TemplateSummaryNotificationRuleAllOf) GetName() string {
if o == nil {
@ -226,6 +252,9 @@ func (o *TemplateSummaryNotificationRuleAllOf) SetOffset(v string) {
func (o TemplateSummaryNotificationRuleAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["id"] = o.Id
}
if true {
toSerialize["name"] = o.Name
}