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,19 +16,19 @@ import (
// TaskUpdateRequest struct for TaskUpdateRequest
type TaskUpdateRequest struct {
Status *TaskStatusType `json:"status,omitempty"`
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
// The Flux script to run for this task.
Flux *string `json:"flux,omitempty"`
Flux *string `json:"flux,omitempty" yaml:"flux,omitempty"`
// Override the 'name' option in the flux script.
Name *string `json:"name,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
// Override the 'every' option in the flux script.
Every *string `json:"every,omitempty"`
Every *string `json:"every,omitempty" yaml:"every,omitempty"`
// Override the 'cron' option in the flux script.
Cron *string `json:"cron,omitempty"`
Cron *string `json:"cron,omitempty" yaml:"cron,omitempty"`
// Override the 'offset' option in the flux script.
Offset *string `json:"offset,omitempty"`
Offset *string `json:"offset,omitempty" yaml:"offset,omitempty"`
// An optional description of the task.
Description *string `json:"description,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
// NewTaskUpdateRequest instantiates a new TaskUpdateRequest object