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

@ -17,17 +17,17 @@ import (
// DBRPCreate struct for DBRPCreate
type DBRPCreate struct {
// the organization ID that owns this mapping.
OrgID *string `json:"orgID,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
// the organization that owns this mapping.
Org *string `json:"org,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
// the bucket ID used as target for the translation.
BucketID string `json:"bucketID"`
BucketID string `json:"bucketID" yaml:"bucketID"`
// InfluxDB v1 database
Database string `json:"database"`
Database string `json:"database" yaml:"database"`
// InfluxDB v1 retention policy
RetentionPolicy string `json:"retention_policy"`
RetentionPolicy string `json:"retention_policy" yaml:"retention_policy"`
// Specify if this mapping represents the default retention policy for the database specificed.
Default *bool `json:"default,omitempty"`
Default *bool `json:"default,omitempty" yaml:"default,omitempty"`
}
// NewDBRPCreate instantiates a new DBRPCreate object