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,7 +16,7 @@ import (
// TemplateSummaryTelegrafConfig struct for TemplateSummaryTelegrafConfig
type TemplateSummaryTelegrafConfig struct {
Id uint64 `json:"id" yaml:"id"`
Id string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
@ -25,7 +25,7 @@ type TemplateSummaryTelegrafConfig 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 NewTemplateSummaryTelegrafConfig(id uint64, name string) *TemplateSummaryTelegrafConfig {
func NewTemplateSummaryTelegrafConfig(id string, name string) *TemplateSummaryTelegrafConfig {
this := TemplateSummaryTelegrafConfig{}
this.Id = id
this.Name = name
@ -41,9 +41,9 @@ func NewTemplateSummaryTelegrafConfigWithDefaults() *TemplateSummaryTelegrafConf
}
// GetId returns the Id field value
func (o *TemplateSummaryTelegrafConfig) GetId() uint64 {
func (o *TemplateSummaryTelegrafConfig) GetId() string {
if o == nil {
var ret uint64
var ret string
return ret
}
@ -52,7 +52,7 @@ func (o *TemplateSummaryTelegrafConfig) GetId() uint64 {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *TemplateSummaryTelegrafConfig) GetIdOk() (*uint64, bool) {
func (o *TemplateSummaryTelegrafConfig) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@ -60,7 +60,7 @@ func (o *TemplateSummaryTelegrafConfig) GetIdOk() (*uint64, bool) {
}
// SetId sets field value
func (o *TemplateSummaryTelegrafConfig) SetId(v uint64) {
func (o *TemplateSummaryTelegrafConfig) SetId(v string) {
o.Id = v
}