fix: add yaml tags to models so we can unmarshal camelCase (#148)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user