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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
153 changed files with 1142 additions and 678 deletions

View File

@ -12,6 +12,7 @@ package api
import (
_context "context"
_fmt "fmt"
_ioutil "io/ioutil"
_nethttp "net/http"
_neturl "net/url"
@ -104,11 +105,31 @@ type LegacyAuthorizationsApi interface {
* PostAuthorizationsIDPasswordExecute executes the request
*/
PostAuthorizationsIDPasswordExecute(r ApiPostAuthorizationsIDPasswordRequest) error
// Sets additional descriptive text in the error message if any request in
// this API fails, indicating that it is intended to be used only on OSS
// servers.
OnlyOSS() LegacyAuthorizationsApi
// Sets additional descriptive text in the error message if any request in
// this API fails, indicating that it is intended to be used only on cloud
// servers.
OnlyCloud() LegacyAuthorizationsApi
}
// LegacyAuthorizationsApiService LegacyAuthorizationsApi service
type LegacyAuthorizationsApiService service
func (a *LegacyAuthorizationsApiService) OnlyOSS() LegacyAuthorizationsApi {
a.isOnlyOSS = true
return a
}
func (a *LegacyAuthorizationsApiService) OnlyCloud() LegacyAuthorizationsApi {
a.isOnlyCloud = true
return a
}
type ApiDeleteAuthorizationsIDRequest struct {
ctx _context.Context
ApiService LegacyAuthorizationsApi
@ -204,28 +225,36 @@ func (a *LegacyAuthorizationsApiService) DeleteAuthorizationsIDExecute(r ApiDele
return err
}
var errorPrefix string
if a.isOnlyOSS {
errorPrefix = "InfluxDB OSS-only command failed: "
} else if a.isOnlyCloud {
errorPrefix = "InfluxDB Cloud-only command failed: "
}
if localVarHTTPResponse.StatusCode >= 300 {
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return err
return _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return err
return _fmt.Errorf("%s%w", errorPrefix, err)
}
newErr := GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
}
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return newErr
}
@ -389,46 +418,54 @@ func (a *LegacyAuthorizationsApiService) GetAuthorizationsExecute(r ApiGetAuthor
return localVarReturnValue, err
}
var errorPrefix string
if a.isOnlyOSS {
errorPrefix = "InfluxDB OSS-only command failed: "
} else if a.isOnlyCloud {
errorPrefix = "InfluxDB Cloud-only command failed: "
}
if localVarHTTPResponse.StatusCode >= 300 {
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
newErr := GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
}
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return localVarReturnValue, newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return localVarReturnValue, newErr
}
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
}
return localVarReturnValue, newErr
}
@ -533,46 +570,54 @@ func (a *LegacyAuthorizationsApiService) GetAuthorizationsIDExecute(r ApiGetAuth
return localVarReturnValue, err
}
var errorPrefix string
if a.isOnlyOSS {
errorPrefix = "InfluxDB OSS-only command failed: "
} else if a.isOnlyCloud {
errorPrefix = "InfluxDB Cloud-only command failed: "
}
if localVarHTTPResponse.StatusCode >= 300 {
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
newErr := GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
}
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return localVarReturnValue, newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return localVarReturnValue, newErr
}
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
}
return localVarReturnValue, newErr
}
@ -691,46 +736,54 @@ func (a *LegacyAuthorizationsApiService) PatchAuthorizationsIDExecute(r ApiPatch
return localVarReturnValue, err
}
var errorPrefix string
if a.isOnlyOSS {
errorPrefix = "InfluxDB OSS-only command failed: "
} else if a.isOnlyCloud {
errorPrefix = "InfluxDB Cloud-only command failed: "
}
if localVarHTTPResponse.StatusCode >= 300 {
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
newErr := GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
}
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return localVarReturnValue, newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return localVarReturnValue, newErr
}
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
}
return localVarReturnValue, newErr
}
@ -837,56 +890,65 @@ func (a *LegacyAuthorizationsApiService) PostAuthorizationsExecute(r ApiPostAuth
return localVarReturnValue, err
}
var errorPrefix string
if a.isOnlyOSS {
errorPrefix = "InfluxDB OSS-only command failed: "
} else if a.isOnlyCloud {
errorPrefix = "InfluxDB Cloud-only command failed: "
}
if localVarHTTPResponse.StatusCode >= 300 {
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
newErr := GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
}
if localVarHTTPResponse.StatusCode == 400 {
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return localVarReturnValue, newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return localVarReturnValue, newErr
}
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return localVarReturnValue, newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return localVarReturnValue, newErr
}
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return localVarReturnValue, err
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
}
return localVarReturnValue, newErr
}
@ -1003,28 +1065,36 @@ func (a *LegacyAuthorizationsApiService) PostAuthorizationsIDPasswordExecute(r A
return err
}
var errorPrefix string
if a.isOnlyOSS {
errorPrefix = "InfluxDB OSS-only command failed: "
} else if a.isOnlyCloud {
errorPrefix = "InfluxDB Cloud-only command failed: "
}
if localVarHTTPResponse.StatusCode >= 300 {
body, err := GunzipIfNeeded(localVarHTTPResponse)
if err != nil {
body.Close()
return err
return _fmt.Errorf("%s%w", errorPrefix, err)
}
localVarBody, err := _ioutil.ReadAll(body)
body.Close()
if err != nil {
return err
return _fmt.Errorf("%s%w", errorPrefix, err)
}
newErr := GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
}
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
return newErr
}
newErr.model = &v
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
return newErr
}

View File

@ -16,8 +16,8 @@ import (
// AddResourceMemberRequestBody struct for AddResourceMemberRequestBody
type AddResourceMemberRequestBody struct {
Id string `json:"id"`
Name *string `json:"name,omitempty"`
Id string `json:"id" yaml:"id"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
}
// NewAddResourceMemberRequestBody instantiates a new AddResourceMemberRequestBody object

View File

@ -18,25 +18,25 @@ import (
// Authorization struct for Authorization
type Authorization struct {
// If inactive the token is inactive and requests using the token will be rejected.
Status *string `json:"status,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// A description of the token.
Description *string `json:"description,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// ID of org that authorization is scoped to.
OrgID string `json:"orgID"`
OrgID string `json:"orgID" yaml:"orgID"`
// List of permissions for an auth. An auth must have at least one Permission.
Permissions []Permission `json:"permissions"`
Id *string `json:"id,omitempty"`
Permissions []Permission `json:"permissions" yaml:"permissions"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Passed via the Authorization Header and Token Authentication type.
Token *string `json:"token,omitempty"`
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
// ID of user that created and owns the token.
UserID *string `json:"userID,omitempty"`
UserID *string `json:"userID,omitempty" yaml:"userID,omitempty"`
// Name of user that created and owns the token.
User *string `json:"user,omitempty"`
User *string `json:"user,omitempty" yaml:"user,omitempty"`
// Name of the org token is scoped to.
Org *string `json:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewAuthorization instantiates a new Authorization object

View File

@ -17,22 +17,22 @@ import (
// AuthorizationAllOf struct for AuthorizationAllOf
type AuthorizationAllOf struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// ID of org that authorization is scoped to.
OrgID *string `json:"orgID,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
// List of permissions for an auth. An auth must have at least one Permission.
Permissions *[]Permission `json:"permissions,omitempty"`
Id *string `json:"id,omitempty"`
Permissions *[]Permission `json:"permissions,omitempty" yaml:"permissions,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Passed via the Authorization Header and Token Authentication type.
Token *string `json:"token,omitempty"`
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
// ID of user that created and owns the token.
UserID *string `json:"userID,omitempty"`
UserID *string `json:"userID,omitempty" yaml:"userID,omitempty"`
// Name of user that created and owns the token.
User *string `json:"user,omitempty"`
User *string `json:"user,omitempty" yaml:"user,omitempty"`
// Name of the org token is scoped to.
Org *string `json:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewAuthorizationAllOf instantiates a new AuthorizationAllOf object

View File

@ -17,9 +17,9 @@ import (
// AuthorizationAllOfLinks struct for AuthorizationAllOfLinks
type AuthorizationAllOfLinks struct {
// URI of resource.
Self *string `json:"self,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
// URI of resource.
User *string `json:"user,omitempty"`
User *string `json:"user,omitempty" yaml:"user,omitempty"`
}
// NewAuthorizationAllOfLinks instantiates a new AuthorizationAllOfLinks object

View File

@ -17,9 +17,9 @@ import (
// AuthorizationUpdateRequest struct for AuthorizationUpdateRequest
type AuthorizationUpdateRequest struct {
// If inactive the token is inactive and requests using the token will be rejected.
Status *string `json:"status,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// A description of the token.
Description *string `json:"description,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
// NewAuthorizationUpdateRequest instantiates a new AuthorizationUpdateRequest object

View File

@ -16,8 +16,8 @@ import (
// Authorizations struct for Authorizations
type Authorizations struct {
Links *Links `json:"links,omitempty"`
Authorizations *[]Authorization `json:"authorizations,omitempty"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
Authorizations *[]Authorization `json:"authorizations,omitempty" yaml:"authorizations,omitempty"`
}
// NewAuthorizations instantiates a new Authorizations object

View File

@ -17,19 +17,19 @@ import (
// Bucket struct for Bucket
type Bucket struct {
Links *BucketLinks `json:"links,omitempty"`
Id *string `json:"id,omitempty"`
Type *string `json:"type,omitempty"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
OrgID *string `json:"orgID,omitempty"`
Rp *string `json:"rp,omitempty"`
SchemaType *SchemaType `json:"schemaType,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Links *BucketLinks `json:"links,omitempty" yaml:"links,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
Rp *string `json:"rp,omitempty" yaml:"rp,omitempty"`
SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// Rules to expire or retain data. No rules means data never expires.
RetentionRules []RetentionRule `json:"retentionRules"`
Labels *[]Label `json:"labels,omitempty"`
RetentionRules []RetentionRule `json:"retentionRules" yaml:"retentionRules"`
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
}
// NewBucket instantiates a new Bucket object

View File

@ -17,17 +17,17 @@ import (
// BucketLinks struct for BucketLinks
type BucketLinks struct {
// URI of resource.
Labels *string `json:"labels,omitempty"`
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
// URI of resource.
Members *string `json:"members,omitempty"`
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
// URI of resource.
Org *string `json:"org,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
// URI of resource.
Owners *string `json:"owners,omitempty"`
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
// URI of resource.
Self *string `json:"self,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
// URI of resource.
Write *string `json:"write,omitempty"`
Write *string `json:"write,omitempty" yaml:"write,omitempty"`
}
// NewBucketLinks instantiates a new BucketLinks object

View File

@ -16,13 +16,13 @@ import (
// BucketMetadataManifest struct for BucketMetadataManifest
type BucketMetadataManifest struct {
OrganizationID string `json:"organizationID"`
OrganizationName string `json:"organizationName"`
BucketID string `json:"bucketID"`
BucketName string `json:"bucketName"`
Description *string `json:"description,omitempty"`
DefaultRetentionPolicy string `json:"defaultRetentionPolicy"`
RetentionPolicies []RetentionPolicyManifest `json:"retentionPolicies"`
OrganizationID string `json:"organizationID" yaml:"organizationID"`
OrganizationName string `json:"organizationName" yaml:"organizationName"`
BucketID string `json:"bucketID" yaml:"bucketID"`
BucketName string `json:"bucketName" yaml:"bucketName"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
DefaultRetentionPolicy string `json:"defaultRetentionPolicy" yaml:"defaultRetentionPolicy"`
RetentionPolicies []RetentionPolicyManifest `json:"retentionPolicies" yaml:"retentionPolicies"`
}
// NewBucketMetadataManifest instantiates a new BucketMetadataManifest object

View File

@ -16,8 +16,8 @@ import (
// BucketShardMapping struct for BucketShardMapping
type BucketShardMapping struct {
OldId int64 `json:"oldId"`
NewId int64 `json:"newId"`
OldId int64 `json:"oldId" yaml:"oldId"`
NewId int64 `json:"newId" yaml:"newId"`
}
// NewBucketShardMapping instantiates a new BucketShardMapping object

View File

@ -16,8 +16,8 @@ import (
// Buckets struct for Buckets
type Buckets struct {
Links *Links `json:"links,omitempty"`
Buckets *[]Bucket `json:"buckets,omitempty"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
Buckets *[]Bucket `json:"buckets,omitempty" yaml:"buckets,omitempty"`
}
// NewBuckets instantiates a new Buckets object

View File

@ -16,14 +16,14 @@ import (
// Cell struct for Cell
type Cell struct {
Id *string `json:"id,omitempty"`
Links *CellLinks `json:"links,omitempty"`
X *int32 `json:"x,omitempty"`
Y *int32 `json:"y,omitempty"`
W *int32 `json:"w,omitempty"`
H *int32 `json:"h,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Links *CellLinks `json:"links,omitempty" yaml:"links,omitempty"`
X *int32 `json:"x,omitempty" yaml:"x,omitempty"`
Y *int32 `json:"y,omitempty" yaml:"y,omitempty"`
W *int32 `json:"w,omitempty" yaml:"w,omitempty"`
H *int32 `json:"h,omitempty" yaml:"h,omitempty"`
// The reference to a view from the views API.
ViewID *string `json:"viewID,omitempty"`
ViewID *string `json:"viewID,omitempty" yaml:"viewID,omitempty"`
}
// NewCell instantiates a new Cell object

View File

@ -16,8 +16,8 @@ import (
// CellLinks struct for CellLinks
type CellLinks struct {
Self *string `json:"self,omitempty"`
View *string `json:"view,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
View *string `json:"view,omitempty" yaml:"view,omitempty"`
}
// NewCellLinks instantiates a new CellLinks object

View File

@ -17,11 +17,11 @@ import (
// CreateDashboardRequest struct for CreateDashboardRequest
type CreateDashboardRequest struct {
// The ID of the organization that owns the dashboard.
OrgID string `json:"orgID"`
OrgID string `json:"orgID" yaml:"orgID"`
// The user-facing name of the dashboard.
Name string `json:"name"`
Name string `json:"name" yaml:"name"`
// The user-facing description of the dashboard.
Description *string `json:"description,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
// NewCreateDashboardRequest instantiates a new CreateDashboardRequest object

View File

@ -17,16 +17,16 @@ import (
// Dashboard struct for Dashboard
type Dashboard struct {
// The ID of the organization that owns the dashboard.
OrgID string `json:"orgID"`
OrgID string `json:"orgID" yaml:"orgID"`
// The user-facing name of the dashboard.
Name string `json:"name"`
Name string `json:"name" yaml:"name"`
// The user-facing description of the dashboard.
Description *string `json:"description,omitempty"`
Links *DashboardAllOfLinks `json:"links,omitempty"`
Id *string `json:"id,omitempty"`
Meta *DashboardAllOfMeta `json:"meta,omitempty"`
Cells *[]Cell `json:"cells,omitempty"`
Labels *[]Label `json:"labels,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Links *DashboardAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Meta *DashboardAllOfMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
Cells *[]Cell `json:"cells,omitempty" yaml:"cells,omitempty"`
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
}
// NewDashboard instantiates a new Dashboard object

View File

@ -16,11 +16,11 @@ import (
// DashboardAllOf struct for DashboardAllOf
type DashboardAllOf struct {
Links *DashboardAllOfLinks `json:"links,omitempty"`
Id *string `json:"id,omitempty"`
Meta *DashboardAllOfMeta `json:"meta,omitempty"`
Cells *[]Cell `json:"cells,omitempty"`
Labels *[]Label `json:"labels,omitempty"`
Links *DashboardAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Meta *DashboardAllOfMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
Cells *[]Cell `json:"cells,omitempty" yaml:"cells,omitempty"`
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
}
// NewDashboardAllOf instantiates a new DashboardAllOf object

View File

@ -17,17 +17,17 @@ import (
// DashboardAllOfLinks struct for DashboardAllOfLinks
type DashboardAllOfLinks struct {
// URI of resource.
Self *string `json:"self,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
// URI of resource.
Cells *string `json:"cells,omitempty"`
Cells *string `json:"cells,omitempty" yaml:"cells,omitempty"`
// URI of resource.
Members *string `json:"members,omitempty"`
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
// URI of resource.
Owners *string `json:"owners,omitempty"`
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
// URI of resource.
Labels *string `json:"labels,omitempty"`
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
// URI of resource.
Org *string `json:"org,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
}
// NewDashboardAllOfLinks instantiates a new DashboardAllOfLinks object

View File

@ -17,8 +17,8 @@ import (
// DashboardAllOfMeta struct for DashboardAllOfMeta
type DashboardAllOfMeta struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
}
// NewDashboardAllOfMeta instantiates a new DashboardAllOfMeta object

View File

@ -16,8 +16,8 @@ import (
// Dashboards struct for Dashboards
type Dashboards struct {
Links *Links `json:"links,omitempty"`
Dashboards *[]Dashboard `json:"dashboards,omitempty"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
Dashboards *[]Dashboard `json:"dashboards,omitempty" yaml:"dashboards,omitempty"`
}
// NewDashboards instantiates a new Dashboards object

View File

@ -17,18 +17,18 @@ import (
// DBRP struct for DBRP
type DBRP struct {
// the mapping identifier
Id string `json:"id"`
Id string `json:"id" yaml:"id"`
// the organization ID that owns this mapping.
OrgID string `json:"orgID"`
OrgID string `json:"orgID" yaml:"orgID"`
// 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"`
Links *Links `json:"links,omitempty"`
Default bool `json:"default" yaml:"default"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewDBRP instantiates a new DBRP object

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

View File

@ -16,7 +16,7 @@ import (
// DBRPGet struct for DBRPGet
type DBRPGet struct {
Content *DBRP `json:"content,omitempty"`
Content *DBRP `json:"content,omitempty" yaml:"content,omitempty"`
}
// NewDBRPGet instantiates a new DBRPGet object

View File

@ -17,8 +17,8 @@ import (
// DBRPUpdate struct for DBRPUpdate
type DBRPUpdate struct {
// InfluxDB v1 retention policy
RetentionPolicy *string `json:"retention_policy,omitempty"`
Default *bool `json:"default,omitempty"`
RetentionPolicy *string `json:"retention_policy,omitempty" yaml:"retention_policy,omitempty"`
Default *bool `json:"default,omitempty" yaml:"default,omitempty"`
}
// NewDBRPUpdate instantiates a new DBRPUpdate object

View File

@ -16,7 +16,7 @@ import (
// DBRPs struct for DBRPs
type DBRPs struct {
Content *[]DBRP `json:"content,omitempty"`
Content *[]DBRP `json:"content,omitempty" yaml:"content,omitempty"`
}
// NewDBRPs instantiates a new DBRPs object

View File

@ -18,11 +18,11 @@ import (
// DeletePredicateRequest The delete predicate request.
type DeletePredicateRequest struct {
// RFC3339Nano
Start time.Time `json:"start"`
Start time.Time `json:"start" yaml:"start"`
// RFC3339Nano
Stop time.Time `json:"stop"`
Stop time.Time `json:"stop" yaml:"stop"`
// InfluxQL-like delete statement
Predicate *string `json:"predicate,omitempty"`
Predicate *string `json:"predicate,omitempty" yaml:"predicate,omitempty"`
}
// NewDeletePredicateRequest instantiates a new DeletePredicateRequest object

View File

@ -17,15 +17,15 @@ import (
// Dialect Dialect are options to change the default CSV output format; https://www.w3.org/TR/2015/REC-tabular-metadata-20151217/#dialect-descriptions
type Dialect struct {
// If true, the results will contain a header row
Header *bool `json:"header,omitempty"`
Header *bool `json:"header,omitempty" yaml:"header,omitempty"`
// Separator between cells; the default is ,
Delimiter *string `json:"delimiter,omitempty"`
Delimiter *string `json:"delimiter,omitempty" yaml:"delimiter,omitempty"`
// https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns
Annotations *[]string `json:"annotations,omitempty"`
Annotations *[]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
// Character prefixed to comment strings
CommentPrefix *string `json:"commentPrefix,omitempty"`
CommentPrefix *string `json:"commentPrefix,omitempty" yaml:"commentPrefix,omitempty"`
// Format of timestamps
DateTimeFormat *string `json:"dateTimeFormat,omitempty"`
DateTimeFormat *string `json:"dateTimeFormat,omitempty" yaml:"dateTimeFormat,omitempty"`
}
// NewDialect instantiates a new Dialect object

View File

@ -16,13 +16,13 @@ import (
// Error struct for Error
type Error struct {
Code ErrorCode `json:"code"`
Code ErrorCode `json:"code" yaml:"code"`
// message is a human-readable message.
Message string `json:"message"`
Message string `json:"message" yaml:"message"`
// op describes the logical code operation during error. Useful for debugging.
Op *string `json:"op,omitempty"`
Op *string `json:"op,omitempty" yaml:"op,omitempty"`
// err is a stack of errors that occurred during processing of the request. Useful for debugging.
Err *string `json:"err,omitempty"`
Err *string `json:"err,omitempty" yaml:"err,omitempty"`
}
// NewError instantiates a new Error object

View File

@ -16,7 +16,7 @@ import (
// Extern Free-form Flux AST to prepend to query requests
type Extern struct {
Type *string `json:"type,omitempty"`
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
AdditionalProperties map[string]interface{}
}

View File

@ -16,12 +16,12 @@ import (
// HealthCheck struct for HealthCheck
type HealthCheck struct {
Name string `json:"name"`
Message *string `json:"message,omitempty"`
Checks *[]HealthCheck `json:"checks,omitempty"`
Status HealthCheckStatus `json:"status"`
Version *string `json:"version,omitempty"`
Commit *string `json:"commit,omitempty"`
Name string `json:"name" yaml:"name"`
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
Checks *[]HealthCheck `json:"checks,omitempty" yaml:"checks,omitempty"`
Status HealthCheckStatus `json:"status" yaml:"status"`
Version *string `json:"version,omitempty" yaml:"version,omitempty"`
Commit *string `json:"commit,omitempty" yaml:"commit,omitempty"`
}
// NewHealthCheck instantiates a new HealthCheck object

View File

@ -17,7 +17,7 @@ import (
// InlineResponse200 struct for InlineResponse200
type InlineResponse200 struct {
// True means that the influxdb instance has NOT had initial setup; false means that the database has been setup.
Allowed *bool `json:"allowed,omitempty"`
Allowed *bool `json:"allowed,omitempty" yaml:"allowed,omitempty"`
}
// NewInlineResponse200 instantiates a new InlineResponse200 object

View File

@ -16,11 +16,11 @@ import (
// Label struct for Label
type Label struct {
Id *string `json:"id,omitempty"`
OrgID *string `json:"orgID,omitempty"`
Name *string `json:"name,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
// Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.
Properties *map[string]string `json:"properties,omitempty"`
Properties *map[string]string `json:"properties,omitempty" yaml:"properties,omitempty"`
}
// NewLabel instantiates a new Label object

View File

@ -17,17 +17,17 @@ import (
// LegacyAuthorizationPostRequest struct for LegacyAuthorizationPostRequest
type LegacyAuthorizationPostRequest struct {
// If inactive the token is inactive and requests using the token will be rejected.
Status *string `json:"status,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// A description of the token.
Description *string `json:"description,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// ID of org that authorization is scoped to.
OrgID string `json:"orgID"`
OrgID string `json:"orgID" yaml:"orgID"`
// ID of user that authorization is scoped to.
UserID *string `json:"userID,omitempty"`
UserID *string `json:"userID,omitempty" yaml:"userID,omitempty"`
// Token (name) of the authorization
Token *string `json:"token,omitempty"`
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
// List of permissions for an auth. An auth must have at least one Permission.
Permissions []Permission `json:"permissions"`
Permissions []Permission `json:"permissions" yaml:"permissions"`
}
// NewLegacyAuthorizationPostRequest instantiates a new LegacyAuthorizationPostRequest object

View File

@ -17,13 +17,13 @@ import (
// LegacyAuthorizationPostRequestAllOf struct for LegacyAuthorizationPostRequestAllOf
type LegacyAuthorizationPostRequestAllOf struct {
// ID of org that authorization is scoped to.
OrgID *string `json:"orgID,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
// ID of user that authorization is scoped to.
UserID *string `json:"userID,omitempty"`
UserID *string `json:"userID,omitempty" yaml:"userID,omitempty"`
// Token (name) of the authorization
Token *string `json:"token,omitempty"`
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
// List of permissions for an auth. An auth must have at least one Permission.
Permissions *[]Permission `json:"permissions,omitempty"`
Permissions *[]Permission `json:"permissions,omitempty" yaml:"permissions,omitempty"`
}
// NewLegacyAuthorizationPostRequestAllOf instantiates a new LegacyAuthorizationPostRequestAllOf object

View File

@ -16,15 +16,15 @@ import (
// LineProtocolError struct for LineProtocolError
type LineProtocolError struct {
Code LineProtocolErrorCode `json:"code"`
Code LineProtocolErrorCode `json:"code" yaml:"code"`
// Message is a human-readable message.
Message string `json:"message"`
Message string `json:"message" yaml:"message"`
// Op describes the logical code operation during error. Useful for debugging.
Op string `json:"op"`
Op string `json:"op" yaml:"op"`
// Err is a stack of errors that occurred during processing of the request. Useful for debugging.
Err string `json:"err"`
Err string `json:"err" yaml:"err"`
// First line within sent body containing malformed data
Line *int32 `json:"line,omitempty"`
Line *int32 `json:"line,omitempty" yaml:"line,omitempty"`
}
// NewLineProtocolError instantiates a new LineProtocolError object

View File

@ -16,11 +16,11 @@ import (
// LineProtocolLengthError struct for LineProtocolLengthError
type LineProtocolLengthError struct {
Code LineProtocolLengthErrorCode `json:"code"`
Code LineProtocolLengthErrorCode `json:"code" yaml:"code"`
// Message is a human-readable message.
Message string `json:"message"`
Message string `json:"message" yaml:"message"`
// Max length in bytes for a body of line-protocol.
MaxLength int32 `json:"maxLength"`
MaxLength int32 `json:"maxLength" yaml:"maxLength"`
}
// NewLineProtocolLengthError instantiates a new LineProtocolLengthError object

View File

@ -17,11 +17,11 @@ import (
// Links struct for Links
type Links struct {
// URI of resource.
Next *string `json:"next,omitempty"`
Next *string `json:"next,omitempty" yaml:"next,omitempty"`
// URI of resource.
Self string `json:"self"`
Self string `json:"self" yaml:"self"`
// URI of resource.
Prev *string `json:"prev,omitempty"`
Prev *string `json:"prev,omitempty" yaml:"prev,omitempty"`
}
// NewLinks instantiates a new Links object

View File

@ -18,11 +18,11 @@ import (
// LogEvent struct for LogEvent
type LogEvent struct {
// Time event occurred, RFC3339Nano.
Time *time.Time `json:"time,omitempty"`
Time *time.Time `json:"time,omitempty" yaml:"time,omitempty"`
// A description of the event that occurred.
Message *string `json:"message,omitempty"`
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
// the ID of the task that logged
RunID *string `json:"runID,omitempty"`
RunID *string `json:"runID,omitempty" yaml:"runID,omitempty"`
}
// NewLogEvent instantiates a new LogEvent object

View File

@ -16,7 +16,7 @@ import (
// Logs struct for Logs
type Logs struct {
Events *[]LogEvent `json:"events,omitempty"`
Events *[]LogEvent `json:"events,omitempty" yaml:"events,omitempty"`
}
// NewLogs instantiates a new Logs object

View File

@ -17,12 +17,12 @@ import (
// MeasurementSchema The schema definition for a single measurement
type MeasurementSchema struct {
Id string `json:"id"`
Name string `json:"name"`
Id string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
// An ordered collection of column definitions
Columns []MeasurementSchemaColumn `json:"columns"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Columns []MeasurementSchemaColumn `json:"columns" yaml:"columns"`
CreatedAt time.Time `json:"createdAt" yaml:"createdAt"`
UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt"`
}
// NewMeasurementSchema instantiates a new MeasurementSchema object

View File

@ -16,9 +16,9 @@ import (
// MeasurementSchemaColumn Definition of a measurement column
type MeasurementSchemaColumn struct {
Name string `json:"name"`
Type ColumnSemanticType `json:"type"`
DataType *ColumnDataType `json:"dataType,omitempty"`
Name string `json:"name" yaml:"name"`
Type ColumnSemanticType `json:"type" yaml:"type"`
DataType *ColumnDataType `json:"dataType,omitempty" yaml:"dataType,omitempty"`
}
// NewMeasurementSchemaColumn instantiates a new MeasurementSchemaColumn object

View File

@ -16,9 +16,9 @@ import (
// MeasurementSchemaCreateRequest Create a new measurement schema
type MeasurementSchemaCreateRequest struct {
Name string `json:"name"`
Name string `json:"name" yaml:"name"`
// An ordered collection of column definitions
Columns []MeasurementSchemaColumn `json:"columns"`
Columns []MeasurementSchemaColumn `json:"columns" yaml:"columns"`
}
// NewMeasurementSchemaCreateRequest instantiates a new MeasurementSchemaCreateRequest object

View File

@ -16,7 +16,7 @@ import (
// MeasurementSchemaList A list of measurement schemas returning summary information
type MeasurementSchemaList struct {
MeasurementSchemas []MeasurementSchema `json:"measurementSchemas"`
MeasurementSchemas []MeasurementSchema `json:"measurementSchemas" yaml:"measurementSchemas"`
}
// NewMeasurementSchemaList instantiates a new MeasurementSchemaList object

View File

@ -17,7 +17,7 @@ import (
// MeasurementSchemaUpdateRequest Update an existing measurement schema
type MeasurementSchemaUpdateRequest struct {
// An ordered collection of column definitions
Columns []MeasurementSchemaColumn `json:"columns"`
Columns []MeasurementSchemaColumn `json:"columns" yaml:"columns"`
}
// NewMeasurementSchemaUpdateRequest instantiates a new MeasurementSchemaUpdateRequest object

View File

@ -17,9 +17,9 @@ import (
// MetadataBackup struct for MetadataBackup
type MetadataBackup struct {
Kv *os.File `json:"kv"`
Sql *os.File `json:"sql"`
Buckets []BucketMetadataManifest `json:"buckets"`
Kv *os.File `json:"kv" yaml:"kv"`
Sql *os.File `json:"sql" yaml:"sql"`
Buckets []BucketMetadataManifest `json:"buckets" yaml:"buckets"`
}
// NewMetadataBackup instantiates a new MetadataBackup object

View File

@ -16,15 +16,15 @@ import (
// OnboardingRequest struct for OnboardingRequest
type OnboardingRequest struct {
Username string `json:"username"`
Password *string `json:"password,omitempty"`
Org string `json:"org"`
Bucket string `json:"bucket"`
RetentionPeriodSeconds *int64 `json:"retentionPeriodSeconds,omitempty"`
Username string `json:"username" yaml:"username"`
Password *string `json:"password,omitempty" yaml:"password,omitempty"`
Org string `json:"org" yaml:"org"`
Bucket string `json:"bucket" yaml:"bucket"`
RetentionPeriodSeconds *int64 `json:"retentionPeriodSeconds,omitempty" yaml:"retentionPeriodSeconds,omitempty"`
// Retention period *in nanoseconds* for the new bucket. This key's name has been misleading since OSS 2.0 GA, please transition to use `retentionPeriodSeconds`
RetentionPeriodHrs *int32 `json:"retentionPeriodHrs,omitempty"`
RetentionPeriodHrs *int32 `json:"retentionPeriodHrs,omitempty" yaml:"retentionPeriodHrs,omitempty"`
// Authentication token to set on the initial user. If not specified, the server will generate a token.
Token *string `json:"token,omitempty"`
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
}
// NewOnboardingRequest instantiates a new OnboardingRequest object

View File

@ -16,10 +16,10 @@ import (
// OnboardingResponse struct for OnboardingResponse
type OnboardingResponse struct {
User *UserResponse `json:"user,omitempty"`
Org *Organization `json:"org,omitempty"`
Bucket *Bucket `json:"bucket,omitempty"`
Auth *Authorization `json:"auth,omitempty"`
User *UserResponse `json:"user,omitempty" yaml:"user,omitempty"`
Org *Organization `json:"org,omitempty" yaml:"org,omitempty"`
Bucket *Bucket `json:"bucket,omitempty" yaml:"bucket,omitempty"`
Auth *Authorization `json:"auth,omitempty" yaml:"auth,omitempty"`
}
// NewOnboardingResponse instantiates a new OnboardingResponse object

View File

@ -17,14 +17,14 @@ import (
// Organization struct for Organization
type Organization struct {
Links *OrganizationLinks `json:"links,omitempty"`
Id *string `json:"id,omitempty"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Links *OrganizationLinks `json:"links,omitempty" yaml:"links,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// If inactive the organization is inactive.
Status *string `json:"status,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
}
// NewOrganization instantiates a new Organization object

View File

@ -17,21 +17,21 @@ import (
// OrganizationLinks struct for OrganizationLinks
type OrganizationLinks struct {
// URI of resource.
Self *string `json:"self,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
// URI of resource.
Members *string `json:"members,omitempty"`
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
// URI of resource.
Owners *string `json:"owners,omitempty"`
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
// URI of resource.
Labels *string `json:"labels,omitempty"`
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
// URI of resource.
Secrets *string `json:"secrets,omitempty"`
Secrets *string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
// URI of resource.
Buckets *string `json:"buckets,omitempty"`
Buckets *string `json:"buckets,omitempty" yaml:"buckets,omitempty"`
// URI of resource.
Tasks *string `json:"tasks,omitempty"`
Tasks *string `json:"tasks,omitempty" yaml:"tasks,omitempty"`
// URI of resource.
Dashboards *string `json:"dashboards,omitempty"`
Dashboards *string `json:"dashboards,omitempty" yaml:"dashboards,omitempty"`
}
// NewOrganizationLinks instantiates a new OrganizationLinks object

View File

@ -16,8 +16,8 @@ import (
// Organizations struct for Organizations
type Organizations struct {
Links *Links `json:"links,omitempty"`
Orgs *[]Organization `json:"orgs,omitempty"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
Orgs *[]Organization `json:"orgs,omitempty" yaml:"orgs,omitempty"`
}
// NewOrganizations instantiates a new Organizations object

View File

@ -16,7 +16,7 @@ import (
// PasswordResetBody struct for PasswordResetBody
type PasswordResetBody struct {
Password string `json:"password"`
Password string `json:"password" yaml:"password"`
}
// NewPasswordResetBody instantiates a new PasswordResetBody object

View File

@ -16,10 +16,10 @@ import (
// PatchBucketRequest Updates to an existing bucket resource.
type PatchBucketRequest struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Updates to rules to expire or retain data. No rules means no updates.
RetentionRules *[]PatchRetentionRule `json:"retentionRules,omitempty"`
RetentionRules *[]PatchRetentionRule `json:"retentionRules,omitempty" yaml:"retentionRules,omitempty"`
}
// NewPatchBucketRequest instantiates a new PatchBucketRequest object

View File

@ -17,9 +17,9 @@ import (
// PatchOrganizationRequest struct for PatchOrganizationRequest
type PatchOrganizationRequest struct {
// New name to set on the organization
Name *string `json:"name,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
// New description to set on the organization
Description *string `json:"description,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
// NewPatchOrganizationRequest instantiates a new PatchOrganizationRequest object

View File

@ -16,11 +16,11 @@ import (
// PatchRetentionRule Updates to a rule to expire or retain data.
type PatchRetentionRule struct {
Type string `json:"type"`
Type string `json:"type" yaml:"type"`
// Duration in seconds for how long data will be kept in the database. 0 means infinite.
EverySeconds *int64 `json:"everySeconds,omitempty"`
EverySeconds *int64 `json:"everySeconds,omitempty" yaml:"everySeconds,omitempty"`
// Shard duration measured in seconds.
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty"`
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty" yaml:"shardGroupDurationSeconds,omitempty"`
}
// NewPatchRetentionRule instantiates a new PatchRetentionRule object

View File

@ -16,8 +16,8 @@ import (
// Permission struct for Permission
type Permission struct {
Action string `json:"action"`
Resource PermissionResource `json:"resource"`
Action string `json:"action" yaml:"action"`
Resource PermissionResource `json:"resource" yaml:"resource"`
}
// NewPermission instantiates a new Permission object

View File

@ -16,15 +16,15 @@ import (
// PermissionResource struct for PermissionResource
type PermissionResource struct {
Type string `json:"type"`
Type string `json:"type" yaml:"type"`
// If ID is set that is a permission for a specific resource. if it is not set it is a permission for all resources of that resource type.
Id *string `json:"id,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Optional name of the resource if the resource has a name field.
Name *string `json:"name,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
// If orgID is set that is a permission for all resources owned my that org. if it is not set it is a permission for all resources of that resource type.
OrgID *string `json:"orgID,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
// Optional name of the organization of the organization with orgID.
Org *string `json:"org,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
}
// NewPermissionResource instantiates a new PermissionResource object

View File

@ -16,13 +16,13 @@ import (
// PostBucketRequest struct for PostBucketRequest
type PostBucketRequest struct {
OrgID string `json:"orgID"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Rp *string `json:"rp,omitempty"`
OrgID string `json:"orgID" yaml:"orgID"`
Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Rp *string `json:"rp,omitempty" yaml:"rp,omitempty"`
// Rules to expire or retain data. No rules means data never expires.
RetentionRules []RetentionRule `json:"retentionRules"`
SchemaType *SchemaType `json:"schemaType,omitempty"`
RetentionRules []RetentionRule `json:"retentionRules" yaml:"retentionRules"`
SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
}
// NewPostBucketRequest instantiates a new PostBucketRequest object

View File

@ -16,8 +16,8 @@ import (
// PostOrganizationRequest struct for PostOrganizationRequest
type PostOrganizationRequest struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Name string `json:"name" yaml:"name"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
// NewPostOrganizationRequest instantiates a new PostOrganizationRequest object

View File

@ -17,14 +17,14 @@ import (
// Query Query influx using the Flux language
type Query struct {
Extern *Extern `json:"extern,omitempty"`
Extern *Extern `json:"extern,omitempty" yaml:"extern,omitempty"`
// Query script to execute.
Query string `json:"query"`
Query string `json:"query" yaml:"query"`
// The type of query. Must be \"flux\".
Type *string `json:"type,omitempty"`
Dialect *Dialect `json:"dialect,omitempty"`
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
Dialect *Dialect `json:"dialect,omitempty" yaml:"dialect,omitempty"`
// Specifies the time that should be reported as \"now\" in the query. Default is the server's now time.
Now *time.Time `json:"now,omitempty"`
Now *time.Time `json:"now,omitempty" yaml:"now,omitempty"`
}
// NewQuery instantiates a new Query object

View File

@ -16,13 +16,13 @@ import (
// ResourceMember struct for ResourceMember
type ResourceMember struct {
Id *string `json:"id,omitempty"`
OauthID *string `json:"oauthID,omitempty"`
Name string `json:"name"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
OauthID *string `json:"oauthID,omitempty" yaml:"oauthID,omitempty"`
Name string `json:"name" yaml:"name"`
// If inactive the user is inactive.
Status *string `json:"status,omitempty"`
Links *UserResponseLinks `json:"links,omitempty"`
Role *string `json:"role,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
Links *UserResponseLinks `json:"links,omitempty" yaml:"links,omitempty"`
Role *string `json:"role,omitempty" yaml:"role,omitempty"`
}
// NewResourceMember instantiates a new ResourceMember object

View File

@ -16,7 +16,7 @@ import (
// ResourceMemberAllOf struct for ResourceMemberAllOf
type ResourceMemberAllOf struct {
Role *string `json:"role,omitempty"`
Role *string `json:"role,omitempty" yaml:"role,omitempty"`
}
// NewResourceMemberAllOf instantiates a new ResourceMemberAllOf object

View File

@ -16,8 +16,8 @@ import (
// ResourceMembers struct for ResourceMembers
type ResourceMembers struct {
Links *UsersLinks `json:"links,omitempty"`
Users *[]ResourceMember `json:"users,omitempty"`
Links *UsersLinks `json:"links,omitempty" yaml:"links,omitempty"`
Users *[]ResourceMember `json:"users,omitempty" yaml:"users,omitempty"`
}
// NewResourceMembers instantiates a new ResourceMembers object

View File

@ -17,9 +17,9 @@ import (
// RestoredBucketMappings struct for RestoredBucketMappings
type RestoredBucketMappings struct {
// New ID of the restored bucket
Id string `json:"id"`
Name string `json:"name"`
ShardMappings []BucketShardMapping `json:"shardMappings"`
Id string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
ShardMappings []BucketShardMapping `json:"shardMappings" yaml:"shardMappings"`
}
// NewRestoredBucketMappings instantiates a new RestoredBucketMappings object

View File

@ -16,12 +16,12 @@ import (
// RetentionPolicyManifest struct for RetentionPolicyManifest
type RetentionPolicyManifest struct {
Name string `json:"name"`
ReplicaN int32 `json:"replicaN"`
Duration int64 `json:"duration"`
ShardGroupDuration int64 `json:"shardGroupDuration"`
ShardGroups []ShardGroupManifest `json:"shardGroups"`
Subscriptions []SubscriptionManifest `json:"subscriptions"`
Name string `json:"name" yaml:"name"`
ReplicaN int32 `json:"replicaN" yaml:"replicaN"`
Duration int64 `json:"duration" yaml:"duration"`
ShardGroupDuration int64 `json:"shardGroupDuration" yaml:"shardGroupDuration"`
ShardGroups []ShardGroupManifest `json:"shardGroups" yaml:"shardGroups"`
Subscriptions []SubscriptionManifest `json:"subscriptions" yaml:"subscriptions"`
}
// NewRetentionPolicyManifest instantiates a new RetentionPolicyManifest object

View File

@ -16,11 +16,11 @@ import (
// RetentionRule struct for RetentionRule
type RetentionRule struct {
Type string `json:"type"`
Type string `json:"type" yaml:"type"`
// Duration in seconds for how long data will be kept in the database. 0 means infinite.
EverySeconds int64 `json:"everySeconds"`
EverySeconds int64 `json:"everySeconds" yaml:"everySeconds"`
// Shard duration measured in seconds.
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty"`
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty" yaml:"shardGroupDurationSeconds,omitempty"`
}
// NewRetentionRule instantiates a new RetentionRule object

View File

@ -17,20 +17,20 @@ import (
// Run struct for Run
type Run struct {
Id *string `json:"id,omitempty"`
TaskID *string `json:"taskID,omitempty"`
Status *string `json:"status,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
TaskID *string `json:"taskID,omitempty" yaml:"taskID,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// Time used for run's \"now\" option, RFC3339.
ScheduledFor *time.Time `json:"scheduledFor,omitempty"`
ScheduledFor *time.Time `json:"scheduledFor,omitempty" yaml:"scheduledFor,omitempty"`
// An array of logs associated with the run.
Log *[]LogEvent `json:"log,omitempty"`
Log *[]LogEvent `json:"log,omitempty" yaml:"log,omitempty"`
// Time run started executing, RFC3339Nano.
StartedAt *time.Time `json:"startedAt,omitempty"`
StartedAt *time.Time `json:"startedAt,omitempty" yaml:"startedAt,omitempty"`
// Time run finished executing, RFC3339Nano.
FinishedAt *time.Time `json:"finishedAt,omitempty"`
FinishedAt *time.Time `json:"finishedAt,omitempty" yaml:"finishedAt,omitempty"`
// Time run was manually requested, RFC3339Nano.
RequestedAt *time.Time `json:"requestedAt,omitempty"`
Links *RunLinks `json:"links,omitempty"`
RequestedAt *time.Time `json:"requestedAt,omitempty" yaml:"requestedAt,omitempty"`
Links *RunLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewRun instantiates a new Run object

View File

@ -16,9 +16,9 @@ import (
// RunLinks struct for RunLinks
type RunLinks struct {
Self *string `json:"self,omitempty"`
Task *string `json:"task,omitempty"`
Retry *string `json:"retry,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
Task *string `json:"task,omitempty" yaml:"task,omitempty"`
Retry *string `json:"retry,omitempty" yaml:"retry,omitempty"`
}
// NewRunLinks instantiates a new RunLinks object

View File

@ -18,7 +18,7 @@ import (
// RunManually struct for RunManually
type RunManually struct {
// Time used for run's \"now\" option, RFC3339. Default is the server's now time.
ScheduledFor NullableTime `json:"scheduledFor,omitempty"`
ScheduledFor NullableTime `json:"scheduledFor,omitempty" yaml:"scheduledFor,omitempty"`
}
// NewRunManually instantiates a new RunManually object

View File

@ -16,8 +16,8 @@ import (
// Runs struct for Runs
type Runs struct {
Links *Links `json:"links,omitempty"`
Runs *[]Run `json:"runs,omitempty"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
Runs *[]Run `json:"runs,omitempty" yaml:"runs,omitempty"`
}
// NewRuns instantiates a new Runs object

View File

@ -16,7 +16,7 @@ import (
// SecretKeys struct for SecretKeys
type SecretKeys struct {
Secrets *[]string `json:"secrets,omitempty"`
Secrets *[]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
}
// NewSecretKeys instantiates a new SecretKeys object

View File

@ -16,8 +16,8 @@ import (
// SecretKeysResponse struct for SecretKeysResponse
type SecretKeysResponse struct {
Secrets *[]string `json:"secrets,omitempty"`
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty"`
Secrets *[]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewSecretKeysResponse instantiates a new SecretKeysResponse object

View File

@ -16,7 +16,7 @@ import (
// SecretKeysResponseAllOf struct for SecretKeysResponseAllOf
type SecretKeysResponseAllOf struct {
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty"`
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewSecretKeysResponseAllOf instantiates a new SecretKeysResponseAllOf object

View File

@ -16,8 +16,8 @@ import (
// SecretKeysResponseAllOfLinks struct for SecretKeysResponseAllOfLinks
type SecretKeysResponseAllOfLinks struct {
Self *string `json:"self,omitempty"`
Org *string `json:"org,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
}
// NewSecretKeysResponseAllOfLinks instantiates a new SecretKeysResponseAllOfLinks object

View File

@ -17,12 +17,12 @@ import (
// ShardGroupManifest struct for ShardGroupManifest
type ShardGroupManifest struct {
Id int64 `json:"id"`
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
TruncatedAt *time.Time `json:"truncatedAt,omitempty"`
Shards []ShardManifest `json:"shards"`
Id int64 `json:"id" yaml:"id"`
StartTime time.Time `json:"startTime" yaml:"startTime"`
EndTime time.Time `json:"endTime" yaml:"endTime"`
DeletedAt *time.Time `json:"deletedAt,omitempty" yaml:"deletedAt,omitempty"`
TruncatedAt *time.Time `json:"truncatedAt,omitempty" yaml:"truncatedAt,omitempty"`
Shards []ShardManifest `json:"shards" yaml:"shards"`
}
// NewShardGroupManifest instantiates a new ShardGroupManifest object

View File

@ -16,8 +16,8 @@ import (
// ShardManifest struct for ShardManifest
type ShardManifest struct {
Id int64 `json:"id"`
ShardOwners []ShardOwner `json:"shardOwners"`
Id int64 `json:"id" yaml:"id"`
ShardOwners []ShardOwner `json:"shardOwners" yaml:"shardOwners"`
}
// NewShardManifest instantiates a new ShardManifest object

View File

@ -17,7 +17,7 @@ import (
// ShardOwner struct for ShardOwner
type ShardOwner struct {
// ID of the node that owns a shard.
NodeID int64 `json:"nodeID"`
NodeID int64 `json:"nodeID" yaml:"nodeID"`
}
// NewShardOwner instantiates a new ShardOwner object

View File

@ -16,9 +16,9 @@ import (
// SubscriptionManifest struct for SubscriptionManifest
type SubscriptionManifest struct {
Name string `json:"name"`
Mode string `json:"mode"`
Destinations []string `json:"destinations"`
Name string `json:"name" yaml:"name"`
Mode string `json:"mode" yaml:"mode"`
Destinations []string `json:"destinations" yaml:"destinations"`
}
// NewSubscriptionManifest instantiates a new SubscriptionManifest object

View File

@ -17,36 +17,36 @@ import (
// Task struct for Task
type Task struct {
Id string `json:"id"`
Id string `json:"id" yaml:"id"`
// The type of task, this can be used for filtering tasks on list actions.
Type *string `json:"type,omitempty"`
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
// The ID of the organization that owns this Task.
OrgID string `json:"orgID"`
OrgID string `json:"orgID" yaml:"orgID"`
// The name of the organization that owns this Task.
Org *string `json:"org,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
// The name of the task.
Name string `json:"name"`
Name string `json:"name" yaml:"name"`
// An optional description of the task.
Description *string `json:"description,omitempty"`
Status *TaskStatusType `json:"status,omitempty"`
Labels *[]Label `json:"labels,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
// The ID of the authorization used when this task communicates with the query engine.
AuthorizationID *string `json:"authorizationID,omitempty"`
AuthorizationID *string `json:"authorizationID,omitempty" yaml:"authorizationID,omitempty"`
// The Flux script to run for this task.
Flux string `json:"flux"`
Flux string `json:"flux" yaml:"flux"`
// A simple task repetition schedule; parsed from Flux.
Every *string `json:"every,omitempty"`
Every *string `json:"every,omitempty" yaml:"every,omitempty"`
// A task repetition schedule in the form '* * * * * *'; parsed from Flux.
Cron *string `json:"cron,omitempty"`
Cron *string `json:"cron,omitempty" yaml:"cron,omitempty"`
// Duration to delay after the schedule, before executing the task; parsed from flux, if set to zero it will remove this option and use 0 as the default.
Offset *string `json:"offset,omitempty"`
Offset *string `json:"offset,omitempty" yaml:"offset,omitempty"`
// Timestamp of latest scheduled, completed run, RFC3339.
LatestCompleted *time.Time `json:"latestCompleted,omitempty"`
LastRunStatus *string `json:"lastRunStatus,omitempty"`
LastRunError *string `json:"lastRunError,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Links *TaskLinks `json:"links,omitempty"`
LatestCompleted *time.Time `json:"latestCompleted,omitempty" yaml:"latestCompleted,omitempty"`
LastRunStatus *string `json:"lastRunStatus,omitempty" yaml:"lastRunStatus,omitempty"`
LastRunError *string `json:"lastRunError,omitempty" yaml:"lastRunError,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
Links *TaskLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewTask instantiates a new Task object

View File

@ -17,14 +17,14 @@ import (
// TaskCreateRequest struct for TaskCreateRequest
type TaskCreateRequest struct {
// The ID of the organization that owns this Task.
OrgID *string `json:"orgID,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
// The name of the organization that owns this Task.
Org *string `json:"org,omitempty"`
Status *TaskStatusType `json:"status,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
// The Flux script to run for this task.
Flux string `json:"flux"`
Flux string `json:"flux" yaml:"flux"`
// An optional description of the task.
Description *string `json:"description,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
}
// NewTaskCreateRequest instantiates a new TaskCreateRequest object

View File

@ -17,17 +17,17 @@ import (
// TaskLinks struct for TaskLinks
type TaskLinks struct {
// URI of resource.
Self *string `json:"self,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
// URI of resource.
Owners *string `json:"owners,omitempty"`
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
// URI of resource.
Members *string `json:"members,omitempty"`
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
// URI of resource.
Runs *string `json:"runs,omitempty"`
Runs *string `json:"runs,omitempty" yaml:"runs,omitempty"`
// URI of resource.
Logs *string `json:"logs,omitempty"`
Logs *string `json:"logs,omitempty" yaml:"logs,omitempty"`
// URI of resource.
Labels *string `json:"labels,omitempty"`
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
}
// NewTaskLinks instantiates a new TaskLinks object

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

View File

@ -16,8 +16,8 @@ import (
// Tasks struct for Tasks
type Tasks struct {
Links *Links `json:"links,omitempty"`
Tasks *[]Task `json:"tasks,omitempty"`
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
Tasks *[]Task `json:"tasks,omitempty" yaml:"tasks,omitempty"`
}
// NewTasks instantiates a new Tasks object

View File

@ -16,14 +16,14 @@ import (
// Telegraf struct for Telegraf
type Telegraf struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty"`
Config *string `json:"config,omitempty"`
OrgID *string `json:"orgID,omitempty"`
Id *string `json:"id,omitempty"`
Links *TelegrafAllOfLinks `json:"links,omitempty"`
Labels *[]Label `json:"labels,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"`
Config *string `json:"config,omitempty" yaml:"config,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Links *TelegrafAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
}
// NewTelegraf instantiates a new Telegraf object

View File

@ -16,9 +16,9 @@ import (
// TelegrafAllOf struct for TelegrafAllOf
type TelegrafAllOf struct {
Id *string `json:"id,omitempty"`
Links *TelegrafAllOfLinks `json:"links,omitempty"`
Labels *[]Label `json:"labels,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Links *TelegrafAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
}
// NewTelegrafAllOf instantiates a new TelegrafAllOf object

View File

@ -17,13 +17,13 @@ import (
// TelegrafAllOfLinks struct for TelegrafAllOfLinks
type TelegrafAllOfLinks struct {
// URI of resource.
Self *string `json:"self,omitempty"`
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
// URI of resource.
Labels *string `json:"labels,omitempty"`
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
// URI of resource.
Members *string `json:"members,omitempty"`
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
// URI of resource.
Owners *string `json:"owners,omitempty"`
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
}
// NewTelegrafAllOfLinks instantiates a new TelegrafAllOfLinks object

View File

@ -16,11 +16,11 @@ import (
// TelegrafRequest struct for TelegrafRequest
type TelegrafRequest struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty"`
Config *string `json:"config,omitempty"`
OrgID *string `json:"orgID,omitempty"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"`
Config *string `json:"config,omitempty" yaml:"config,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
}
// NewTelegrafRequest instantiates a new TelegrafRequest object

View File

@ -16,7 +16,7 @@ import (
// TelegrafRequestMetadata struct for TelegrafRequestMetadata
type TelegrafRequestMetadata struct {
Buckets *[]string `json:"buckets,omitempty"`
Buckets *[]string `json:"buckets,omitempty" yaml:"buckets,omitempty"`
}
// NewTelegrafRequestMetadata instantiates a new TelegrafRequestMetadata object

View File

@ -16,7 +16,7 @@ import (
// Telegrafs struct for Telegrafs
type Telegrafs struct {
Configurations *[]Telegraf `json:"configurations,omitempty"`
Configurations *[]Telegraf `json:"configurations,omitempty" yaml:"configurations,omitempty"`
}
// NewTelegrafs instantiates a new Telegrafs object

View File

@ -16,15 +16,15 @@ import (
// TemplateApply struct for TemplateApply
type TemplateApply struct {
DryRun bool `json:"dryRun"`
OrgID string `json:"orgID"`
StackID *string `json:"stackID,omitempty"`
Template *TemplateApplyTemplate `json:"template,omitempty"`
Templates []TemplateApplyTemplate `json:"templates"`
EnvRefs *map[string]map[string]interface{} `json:"envRefs,omitempty"`
Secrets *map[string]string `json:"secrets,omitempty"`
Remotes []TemplateApplyRemoteRef `json:"remotes"`
Actions []TemplateApplyAction `json:"actions"`
DryRun bool `json:"dryRun" yaml:"dryRun"`
OrgID string `json:"orgID" yaml:"orgID"`
StackID *string `json:"stackID,omitempty" yaml:"stackID,omitempty"`
Template *TemplateApplyTemplate `json:"template,omitempty" yaml:"template,omitempty"`
Templates []TemplateApplyTemplate `json:"templates" yaml:"templates"`
EnvRefs *map[string]map[string]interface{} `json:"envRefs,omitempty" yaml:"envRefs,omitempty"`
Secrets *map[string]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
Remotes []TemplateApplyRemoteRef `json:"remotes" yaml:"remotes"`
Actions []TemplateApplyAction `json:"actions" yaml:"actions"`
}
// NewTemplateApply instantiates a new TemplateApply object

View File

@ -16,8 +16,8 @@ import (
// TemplateApplyAction struct for TemplateApplyAction
type TemplateApplyAction struct {
Action TemplateApplyActionKind `json:"action"`
Properties TemplateApplyActionProperties `json:"properties"`
Action TemplateApplyActionKind `json:"action" yaml:"action"`
Properties TemplateApplyActionProperties `json:"properties" yaml:"properties"`
}
// NewTemplateApplyAction instantiates a new TemplateApplyAction object

View File

@ -16,8 +16,8 @@ import (
// TemplateApplyActionProperties struct for TemplateApplyActionProperties
type TemplateApplyActionProperties struct {
Kind string `json:"kind"`
ResourceTemplateName *string `json:"resourceTemplateName,omitempty"`
Kind string `json:"kind" yaml:"kind"`
ResourceTemplateName *string `json:"resourceTemplateName,omitempty" yaml:"resourceTemplateName,omitempty"`
}
// NewTemplateApplyActionProperties instantiates a new TemplateApplyActionProperties object

View File

@ -16,8 +16,8 @@ import (
// TemplateApplyRemoteRef struct for TemplateApplyRemoteRef
type TemplateApplyRemoteRef struct {
Url string `json:"url"`
ContentType *string `json:"contentType,omitempty"`
Url string `json:"url" yaml:"url"`
ContentType *string `json:"contentType,omitempty" yaml:"contentType,omitempty"`
}
// NewTemplateApplyRemoteRef instantiates a new TemplateApplyRemoteRef object

View File

@ -16,8 +16,8 @@ import (
// TemplateApplyTemplate struct for TemplateApplyTemplate
type TemplateApplyTemplate struct {
Sources []string `json:"sources"`
Contents []TemplateEntry `json:"contents"`
Sources []string `json:"sources" yaml:"sources"`
Contents []TemplateEntry `json:"contents" yaml:"contents"`
}
// NewTemplateApplyTemplate instantiates a new TemplateApplyTemplate object

View File

@ -16,10 +16,10 @@ import (
// TemplateEntry struct for TemplateEntry
type TemplateEntry struct {
ApiVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Meta TemplateEntryMeta `json:"meta"`
Spec map[string]interface{} `json:"spec"`
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Meta TemplateEntryMeta `json:"meta" yaml:"meta"`
Spec map[string]interface{} `json:"spec" yaml:"spec"`
}
// NewTemplateEntry instantiates a new TemplateEntry object

View File

@ -16,7 +16,7 @@ import (
// TemplateEntryMeta struct for TemplateEntryMeta
type TemplateEntryMeta struct {
Name string `json:"name"`
Name string `json:"name" yaml:"name"`
}
// NewTemplateEntryMeta instantiates a new TemplateEntryMeta object

View File

@ -17,13 +17,13 @@ import (
// TemplateEnvReference struct for TemplateEnvReference
type TemplateEnvReference struct {
// Field the environment reference corresponds too
ResourceField string `json:"resourceField"`
ResourceField string `json:"resourceField" yaml:"resourceField"`
// Key identified as environment reference and is the key identified in the template
EnvRefKey string `json:"envRefKey"`
EnvRefKey string `json:"envRefKey" yaml:"envRefKey"`
// Value provided to fulfill reference
Value interface{} `json:"value,omitempty"`
Value interface{} `json:"value,omitempty" yaml:"value,omitempty"`
// Default value that will be provided for the reference when no value is provided
DefaultValue interface{} `json:"defaultValue,omitempty"`
DefaultValue interface{} `json:"defaultValue,omitempty" yaml:"defaultValue,omitempty"`
}
// NewTemplateEnvReference instantiates a new TemplateEnvReference object

View File

@ -16,9 +16,9 @@ import (
// TemplateExport struct for TemplateExport
type TemplateExport struct {
StackID *string `json:"stackID,omitempty"`
OrgIDs *[]TemplateExportOrgIDs `json:"orgIDs,omitempty"`
Resources []TemplateExportResources `json:"resources"`
StackID *string `json:"stackID,omitempty" yaml:"stackID,omitempty"`
OrgIDs *[]TemplateExportOrgIDs `json:"orgIDs,omitempty" yaml:"orgIDs,omitempty"`
Resources []TemplateExportResources `json:"resources" yaml:"resources"`
}
// NewTemplateExport instantiates a new TemplateExport object

View File

@ -16,8 +16,8 @@ import (
// TemplateExportOrgIDs struct for TemplateExportOrgIDs
type TemplateExportOrgIDs struct {
OrgID *string `json:"orgID,omitempty"`
ResourceFilters *TemplateExportResourceFilters `json:"resourceFilters,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
ResourceFilters *TemplateExportResourceFilters `json:"resourceFilters,omitempty" yaml:"resourceFilters,omitempty"`
}
// NewTemplateExportOrgIDs instantiates a new TemplateExportOrgIDs object

View File

@ -16,8 +16,8 @@ import (
// TemplateExportResourceFilters struct for TemplateExportResourceFilters
type TemplateExportResourceFilters struct {
ByLabel *[]string `json:"byLabel,omitempty"`
ByResourceKind *[]string `json:"byResourceKind,omitempty"`
ByLabel *[]string `json:"byLabel,omitempty" yaml:"byLabel,omitempty"`
ByResourceKind *[]string `json:"byResourceKind,omitempty" yaml:"byResourceKind,omitempty"`
}
// NewTemplateExportResourceFilters instantiates a new TemplateExportResourceFilters object

View File

@ -16,9 +16,9 @@ import (
// TemplateExportResources struct for TemplateExportResources
type TemplateExportResources struct {
Id *string `json:"id,omitempty"`
Kind string `json:"kind"`
Name *string `json:"name,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Kind string `json:"kind" yaml:"kind"`
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
}
// NewTemplateExportResources instantiates a new TemplateExportResources object

Some files were not shown because too many files have changed in this diff Show More