fix: add yaml tags to models so we can unmarshal camelCase (#148)

This commit is contained in:
Daniel Moran
2021-06-28 10:18:41 -04:00
committed by GitHub
parent a1921e1e59
commit 7ea63d6a96
153 changed files with 1142 additions and 678 deletions

View File

@ -16,17 +16,17 @@ import (
// TemplateSummaryNotificationRule struct for TemplateSummaryNotificationRule
type TemplateSummaryNotificationRule struct {
Kind string `json:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty"`
EnvReferences []TemplateEnvReference `json:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
EndpointTemplateMetaName string `json:"endpointTemplateMetaName"`
EndpointID string `json:"endpointID"`
EndpointType string `json:"endpointType"`
Every string `json:"every"`
Offset string `json:"offset"`
Kind string `json:"kind" yaml:"kind"`
TemplateMetaName *string `json:"templateMetaName,omitempty" yaml:"templateMetaName,omitempty"`
EnvReferences []TemplateEnvReference `json:"envReferences" yaml:"envReferences"`
LabelAssociations []TemplateSummaryLabel `json:"labelAssociations" yaml:"labelAssociations"`
Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
EndpointTemplateMetaName string `json:"endpointTemplateMetaName" yaml:"endpointTemplateMetaName"`
EndpointID string `json:"endpointID" yaml:"endpointID"`
EndpointType string `json:"endpointType" yaml:"endpointType"`
Every string `json:"every" yaml:"every"`
Offset string `json:"offset" yaml:"offset"`
}
// NewTemplateSummaryNotificationRule instantiates a new TemplateSummaryNotificationRule object