fix: add yaml tags to models so we can unmarshal camelCase (#148)
This commit is contained in:
@ -12,6 +12,7 @@ package api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
_context "context"
|
_context "context"
|
||||||
|
_fmt "fmt"
|
||||||
_ioutil "io/ioutil"
|
_ioutil "io/ioutil"
|
||||||
_nethttp "net/http"
|
_nethttp "net/http"
|
||||||
_neturl "net/url"
|
_neturl "net/url"
|
||||||
@ -104,11 +105,31 @@ type LegacyAuthorizationsApi interface {
|
|||||||
* PostAuthorizationsIDPasswordExecute executes the request
|
* PostAuthorizationsIDPasswordExecute executes the request
|
||||||
*/
|
*/
|
||||||
PostAuthorizationsIDPasswordExecute(r ApiPostAuthorizationsIDPasswordRequest) error
|
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
|
// LegacyAuthorizationsApiService LegacyAuthorizationsApi service
|
||||||
type LegacyAuthorizationsApiService 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 {
|
type ApiDeleteAuthorizationsIDRequest struct {
|
||||||
ctx _context.Context
|
ctx _context.Context
|
||||||
ApiService LegacyAuthorizationsApi
|
ApiService LegacyAuthorizationsApi
|
||||||
@ -204,28 +225,36 @@ func (a *LegacyAuthorizationsApiService) DeleteAuthorizationsIDExecute(r ApiDele
|
|||||||
return err
|
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 {
|
if localVarHTTPResponse.StatusCode >= 300 {
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return err
|
return _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHTTPResponse.Status,
|
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
|
||||||
}
|
}
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return newErr
|
return newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return newErr
|
return newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -389,46 +418,54 @@ func (a *LegacyAuthorizationsApiService) GetAuthorizationsExecute(r ApiGetAuthor
|
|||||||
return localVarReturnValue, err
|
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 {
|
if localVarHTTPResponse.StatusCode >= 300 {
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHTTPResponse.Status,
|
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
|
||||||
}
|
}
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
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"))
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: err.Error(),
|
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
|
||||||
}
|
}
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
@ -533,46 +570,54 @@ func (a *LegacyAuthorizationsApiService) GetAuthorizationsIDExecute(r ApiGetAuth
|
|||||||
return localVarReturnValue, err
|
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 {
|
if localVarHTTPResponse.StatusCode >= 300 {
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHTTPResponse.Status,
|
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
|
||||||
}
|
}
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
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"))
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: err.Error(),
|
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
|
||||||
}
|
}
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
@ -691,46 +736,54 @@ func (a *LegacyAuthorizationsApiService) PatchAuthorizationsIDExecute(r ApiPatch
|
|||||||
return localVarReturnValue, err
|
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 {
|
if localVarHTTPResponse.StatusCode >= 300 {
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHTTPResponse.Status,
|
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
|
||||||
}
|
}
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
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"))
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: err.Error(),
|
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
|
||||||
}
|
}
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
@ -837,56 +890,65 @@ func (a *LegacyAuthorizationsApiService) PostAuthorizationsExecute(r ApiPostAuth
|
|||||||
return localVarReturnValue, err
|
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 {
|
if localVarHTTPResponse.StatusCode >= 300 {
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHTTPResponse.Status,
|
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
|
||||||
}
|
}
|
||||||
if localVarHTTPResponse.StatusCode == 400 {
|
if localVarHTTPResponse.StatusCode == 400 {
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return localVarReturnValue, err
|
return localVarReturnValue, _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
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"))
|
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: err.Error(),
|
error: _fmt.Sprintf("%s%s", errorPrefix, err.Error()),
|
||||||
}
|
}
|
||||||
return localVarReturnValue, newErr
|
return localVarReturnValue, newErr
|
||||||
}
|
}
|
||||||
@ -1003,28 +1065,36 @@ func (a *LegacyAuthorizationsApiService) PostAuthorizationsIDPasswordExecute(r A
|
|||||||
return err
|
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 {
|
if localVarHTTPResponse.StatusCode >= 300 {
|
||||||
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
body, err := GunzipIfNeeded(localVarHTTPResponse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
body.Close()
|
body.Close()
|
||||||
return err
|
return _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
localVarBody, err := _ioutil.ReadAll(body)
|
localVarBody, err := _ioutil.ReadAll(body)
|
||||||
body.Close()
|
body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return _fmt.Errorf("%s%w", errorPrefix, err)
|
||||||
}
|
}
|
||||||
newErr := GenericOpenAPIError{
|
newErr := GenericOpenAPIError{
|
||||||
body: localVarBody,
|
body: localVarBody,
|
||||||
error: localVarHTTPResponse.Status,
|
error: _fmt.Sprintf("%s%s", errorPrefix, localVarHTTPResponse.Status),
|
||||||
}
|
}
|
||||||
var v Error
|
var v Error
|
||||||
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
newErr.error = err.Error()
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, err.Error())
|
||||||
return newErr
|
return newErr
|
||||||
}
|
}
|
||||||
newErr.model = &v
|
newErr.model = &v
|
||||||
|
newErr.error = _fmt.Sprintf("%s%v", errorPrefix, v.Error())
|
||||||
return newErr
|
return newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// AddResourceMemberRequestBody struct for AddResourceMemberRequestBody
|
// AddResourceMemberRequestBody struct for AddResourceMemberRequestBody
|
||||||
type AddResourceMemberRequestBody struct {
|
type AddResourceMemberRequestBody struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id" yaml:"id"`
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAddResourceMemberRequestBody instantiates a new AddResourceMemberRequestBody object
|
// NewAddResourceMemberRequestBody instantiates a new AddResourceMemberRequestBody object
|
||||||
|
@ -18,25 +18,25 @@ import (
|
|||||||
// Authorization struct for Authorization
|
// Authorization struct for Authorization
|
||||||
type Authorization struct {
|
type Authorization struct {
|
||||||
// If inactive the token is inactive and requests using the token will be rejected.
|
// 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.
|
// A description of the token.
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
||||||
// ID of org that authorization is scoped to.
|
// 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.
|
// List of permissions for an auth. An auth must have at least one Permission.
|
||||||
Permissions []Permission `json:"permissions"`
|
Permissions []Permission `json:"permissions" yaml:"permissions"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
// Passed via the Authorization Header and Token Authentication type.
|
// 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.
|
// 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.
|
// 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.
|
// Name of the org token is scoped to.
|
||||||
Org *string `json:"org,omitempty"`
|
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
Links *AuthorizationAllOfLinks `json:"links,omitempty"`
|
Links *AuthorizationAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAuthorization instantiates a new Authorization object
|
// NewAuthorization instantiates a new Authorization object
|
||||||
|
@ -17,22 +17,22 @@ import (
|
|||||||
|
|
||||||
// AuthorizationAllOf struct for AuthorizationAllOf
|
// AuthorizationAllOf struct for AuthorizationAllOf
|
||||||
type AuthorizationAllOf struct {
|
type AuthorizationAllOf struct {
|
||||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
||||||
// ID of org that authorization is scoped to.
|
// 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.
|
// 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"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
// Passed via the Authorization Header and Token Authentication type.
|
// 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.
|
// 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.
|
// 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.
|
// Name of the org token is scoped to.
|
||||||
Org *string `json:"org,omitempty"`
|
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
Links *AuthorizationAllOfLinks `json:"links,omitempty"`
|
Links *AuthorizationAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAuthorizationAllOf instantiates a new AuthorizationAllOf object
|
// NewAuthorizationAllOf instantiates a new AuthorizationAllOf object
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
// AuthorizationAllOfLinks struct for AuthorizationAllOfLinks
|
// AuthorizationAllOfLinks struct for AuthorizationAllOfLinks
|
||||||
type AuthorizationAllOfLinks struct {
|
type AuthorizationAllOfLinks struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
User *string `json:"user,omitempty"`
|
User *string `json:"user,omitempty" yaml:"user,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAuthorizationAllOfLinks instantiates a new AuthorizationAllOfLinks object
|
// NewAuthorizationAllOfLinks instantiates a new AuthorizationAllOfLinks object
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
// AuthorizationUpdateRequest struct for AuthorizationUpdateRequest
|
// AuthorizationUpdateRequest struct for AuthorizationUpdateRequest
|
||||||
type AuthorizationUpdateRequest struct {
|
type AuthorizationUpdateRequest struct {
|
||||||
// If inactive the token is inactive and requests using the token will be rejected.
|
// 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.
|
// A description of the token.
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAuthorizationUpdateRequest instantiates a new AuthorizationUpdateRequest object
|
// NewAuthorizationUpdateRequest instantiates a new AuthorizationUpdateRequest object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Authorizations struct for Authorizations
|
// Authorizations struct for Authorizations
|
||||||
type Authorizations struct {
|
type Authorizations struct {
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Authorizations *[]Authorization `json:"authorizations,omitempty"`
|
Authorizations *[]Authorization `json:"authorizations,omitempty" yaml:"authorizations,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAuthorizations instantiates a new Authorizations object
|
// NewAuthorizations instantiates a new Authorizations object
|
||||||
|
@ -17,19 +17,19 @@ import (
|
|||||||
|
|
||||||
// Bucket struct for Bucket
|
// Bucket struct for Bucket
|
||||||
type Bucket struct {
|
type Bucket struct {
|
||||||
Links *BucketLinks `json:"links,omitempty"`
|
Links *BucketLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Type *string `json:"type,omitempty"`
|
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
OrgID *string `json:"orgID,omitempty"`
|
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
|
||||||
Rp *string `json:"rp,omitempty"`
|
Rp *string `json:"rp,omitempty" yaml:"rp,omitempty"`
|
||||||
SchemaType *SchemaType `json:"schemaType,omitempty"`
|
SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
|
||||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
||||||
// Rules to expire or retain data. No rules means data never expires.
|
// Rules to expire or retain data. No rules means data never expires.
|
||||||
RetentionRules []RetentionRule `json:"retentionRules"`
|
RetentionRules []RetentionRule `json:"retentionRules" yaml:"retentionRules"`
|
||||||
Labels *[]Label `json:"labels,omitempty"`
|
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBucket instantiates a new Bucket object
|
// NewBucket instantiates a new Bucket object
|
||||||
|
@ -17,17 +17,17 @@ import (
|
|||||||
// BucketLinks struct for BucketLinks
|
// BucketLinks struct for BucketLinks
|
||||||
type BucketLinks struct {
|
type BucketLinks struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Labels *string `json:"labels,omitempty"`
|
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Members *string `json:"members,omitempty"`
|
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Org *string `json:"org,omitempty"`
|
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Owners *string `json:"owners,omitempty"`
|
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Write *string `json:"write,omitempty"`
|
Write *string `json:"write,omitempty" yaml:"write,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBucketLinks instantiates a new BucketLinks object
|
// NewBucketLinks instantiates a new BucketLinks object
|
||||||
|
@ -16,13 +16,13 @@ import (
|
|||||||
|
|
||||||
// BucketMetadataManifest struct for BucketMetadataManifest
|
// BucketMetadataManifest struct for BucketMetadataManifest
|
||||||
type BucketMetadataManifest struct {
|
type BucketMetadataManifest struct {
|
||||||
OrganizationID string `json:"organizationID"`
|
OrganizationID string `json:"organizationID" yaml:"organizationID"`
|
||||||
OrganizationName string `json:"organizationName"`
|
OrganizationName string `json:"organizationName" yaml:"organizationName"`
|
||||||
BucketID string `json:"bucketID"`
|
BucketID string `json:"bucketID" yaml:"bucketID"`
|
||||||
BucketName string `json:"bucketName"`
|
BucketName string `json:"bucketName" yaml:"bucketName"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
DefaultRetentionPolicy string `json:"defaultRetentionPolicy"`
|
DefaultRetentionPolicy string `json:"defaultRetentionPolicy" yaml:"defaultRetentionPolicy"`
|
||||||
RetentionPolicies []RetentionPolicyManifest `json:"retentionPolicies"`
|
RetentionPolicies []RetentionPolicyManifest `json:"retentionPolicies" yaml:"retentionPolicies"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBucketMetadataManifest instantiates a new BucketMetadataManifest object
|
// NewBucketMetadataManifest instantiates a new BucketMetadataManifest object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// BucketShardMapping struct for BucketShardMapping
|
// BucketShardMapping struct for BucketShardMapping
|
||||||
type BucketShardMapping struct {
|
type BucketShardMapping struct {
|
||||||
OldId int64 `json:"oldId"`
|
OldId int64 `json:"oldId" yaml:"oldId"`
|
||||||
NewId int64 `json:"newId"`
|
NewId int64 `json:"newId" yaml:"newId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBucketShardMapping instantiates a new BucketShardMapping object
|
// NewBucketShardMapping instantiates a new BucketShardMapping object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Buckets struct for Buckets
|
// Buckets struct for Buckets
|
||||||
type Buckets struct {
|
type Buckets struct {
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Buckets *[]Bucket `json:"buckets,omitempty"`
|
Buckets *[]Bucket `json:"buckets,omitempty" yaml:"buckets,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBuckets instantiates a new Buckets object
|
// NewBuckets instantiates a new Buckets object
|
||||||
|
@ -16,14 +16,14 @@ import (
|
|||||||
|
|
||||||
// Cell struct for Cell
|
// Cell struct for Cell
|
||||||
type Cell struct {
|
type Cell struct {
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Links *CellLinks `json:"links,omitempty"`
|
Links *CellLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
X *int32 `json:"x,omitempty"`
|
X *int32 `json:"x,omitempty" yaml:"x,omitempty"`
|
||||||
Y *int32 `json:"y,omitempty"`
|
Y *int32 `json:"y,omitempty" yaml:"y,omitempty"`
|
||||||
W *int32 `json:"w,omitempty"`
|
W *int32 `json:"w,omitempty" yaml:"w,omitempty"`
|
||||||
H *int32 `json:"h,omitempty"`
|
H *int32 `json:"h,omitempty" yaml:"h,omitempty"`
|
||||||
// The reference to a view from the views API.
|
// 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
|
// NewCell instantiates a new Cell object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// CellLinks struct for CellLinks
|
// CellLinks struct for CellLinks
|
||||||
type CellLinks struct {
|
type CellLinks struct {
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
View *string `json:"view,omitempty"`
|
View *string `json:"view,omitempty" yaml:"view,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCellLinks instantiates a new CellLinks object
|
// NewCellLinks instantiates a new CellLinks object
|
||||||
|
@ -17,11 +17,11 @@ import (
|
|||||||
// CreateDashboardRequest struct for CreateDashboardRequest
|
// CreateDashboardRequest struct for CreateDashboardRequest
|
||||||
type CreateDashboardRequest struct {
|
type CreateDashboardRequest struct {
|
||||||
// The ID of the organization that owns the dashboard.
|
// 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.
|
// The user-facing name of the dashboard.
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
// The user-facing description of the dashboard.
|
// 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
|
// NewCreateDashboardRequest instantiates a new CreateDashboardRequest object
|
||||||
|
@ -17,16 +17,16 @@ import (
|
|||||||
// Dashboard struct for Dashboard
|
// Dashboard struct for Dashboard
|
||||||
type Dashboard struct {
|
type Dashboard struct {
|
||||||
// The ID of the organization that owns the dashboard.
|
// 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.
|
// The user-facing name of the dashboard.
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
// The user-facing description of the dashboard.
|
// The user-facing description of the dashboard.
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
Links *DashboardAllOfLinks `json:"links,omitempty"`
|
Links *DashboardAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Meta *DashboardAllOfMeta `json:"meta,omitempty"`
|
Meta *DashboardAllOfMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
|
||||||
Cells *[]Cell `json:"cells,omitempty"`
|
Cells *[]Cell `json:"cells,omitempty" yaml:"cells,omitempty"`
|
||||||
Labels *[]Label `json:"labels,omitempty"`
|
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDashboard instantiates a new Dashboard object
|
// NewDashboard instantiates a new Dashboard object
|
||||||
|
@ -16,11 +16,11 @@ import (
|
|||||||
|
|
||||||
// DashboardAllOf struct for DashboardAllOf
|
// DashboardAllOf struct for DashboardAllOf
|
||||||
type DashboardAllOf struct {
|
type DashboardAllOf struct {
|
||||||
Links *DashboardAllOfLinks `json:"links,omitempty"`
|
Links *DashboardAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Meta *DashboardAllOfMeta `json:"meta,omitempty"`
|
Meta *DashboardAllOfMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
|
||||||
Cells *[]Cell `json:"cells,omitempty"`
|
Cells *[]Cell `json:"cells,omitempty" yaml:"cells,omitempty"`
|
||||||
Labels *[]Label `json:"labels,omitempty"`
|
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDashboardAllOf instantiates a new DashboardAllOf object
|
// NewDashboardAllOf instantiates a new DashboardAllOf object
|
||||||
|
@ -17,17 +17,17 @@ import (
|
|||||||
// DashboardAllOfLinks struct for DashboardAllOfLinks
|
// DashboardAllOfLinks struct for DashboardAllOfLinks
|
||||||
type DashboardAllOfLinks struct {
|
type DashboardAllOfLinks struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Cells *string `json:"cells,omitempty"`
|
Cells *string `json:"cells,omitempty" yaml:"cells,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Members *string `json:"members,omitempty"`
|
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Owners *string `json:"owners,omitempty"`
|
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Labels *string `json:"labels,omitempty"`
|
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Org *string `json:"org,omitempty"`
|
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDashboardAllOfLinks instantiates a new DashboardAllOfLinks object
|
// NewDashboardAllOfLinks instantiates a new DashboardAllOfLinks object
|
||||||
|
@ -17,8 +17,8 @@ import (
|
|||||||
|
|
||||||
// DashboardAllOfMeta struct for DashboardAllOfMeta
|
// DashboardAllOfMeta struct for DashboardAllOfMeta
|
||||||
type DashboardAllOfMeta struct {
|
type DashboardAllOfMeta struct {
|
||||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDashboardAllOfMeta instantiates a new DashboardAllOfMeta object
|
// NewDashboardAllOfMeta instantiates a new DashboardAllOfMeta object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Dashboards struct for Dashboards
|
// Dashboards struct for Dashboards
|
||||||
type Dashboards struct {
|
type Dashboards struct {
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Dashboards *[]Dashboard `json:"dashboards,omitempty"`
|
Dashboards *[]Dashboard `json:"dashboards,omitempty" yaml:"dashboards,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDashboards instantiates a new Dashboards object
|
// NewDashboards instantiates a new Dashboards object
|
||||||
|
@ -17,18 +17,18 @@ import (
|
|||||||
// DBRP struct for DBRP
|
// DBRP struct for DBRP
|
||||||
type DBRP struct {
|
type DBRP struct {
|
||||||
// the mapping identifier
|
// the mapping identifier
|
||||||
Id string `json:"id"`
|
Id string `json:"id" yaml:"id"`
|
||||||
// the organization ID that owns this mapping.
|
// 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.
|
// the bucket ID used as target for the translation.
|
||||||
BucketID string `json:"bucketID"`
|
BucketID string `json:"bucketID" yaml:"bucketID"`
|
||||||
// InfluxDB v1 database
|
// InfluxDB v1 database
|
||||||
Database string `json:"database"`
|
Database string `json:"database" yaml:"database"`
|
||||||
// InfluxDB v1 retention policy
|
// 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.
|
// Specify if this mapping represents the default retention policy for the database specificed.
|
||||||
Default bool `json:"default"`
|
Default bool `json:"default" yaml:"default"`
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDBRP instantiates a new DBRP object
|
// NewDBRP instantiates a new DBRP object
|
||||||
|
@ -17,17 +17,17 @@ import (
|
|||||||
// DBRPCreate struct for DBRPCreate
|
// DBRPCreate struct for DBRPCreate
|
||||||
type DBRPCreate struct {
|
type DBRPCreate struct {
|
||||||
// the organization ID that owns this mapping.
|
// 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.
|
// 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.
|
// the bucket ID used as target for the translation.
|
||||||
BucketID string `json:"bucketID"`
|
BucketID string `json:"bucketID" yaml:"bucketID"`
|
||||||
// InfluxDB v1 database
|
// InfluxDB v1 database
|
||||||
Database string `json:"database"`
|
Database string `json:"database" yaml:"database"`
|
||||||
// InfluxDB v1 retention policy
|
// 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.
|
// 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
|
// NewDBRPCreate instantiates a new DBRPCreate object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// DBRPGet struct for DBRPGet
|
// DBRPGet struct for DBRPGet
|
||||||
type DBRPGet struct {
|
type DBRPGet struct {
|
||||||
Content *DBRP `json:"content,omitempty"`
|
Content *DBRP `json:"content,omitempty" yaml:"content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDBRPGet instantiates a new DBRPGet object
|
// NewDBRPGet instantiates a new DBRPGet object
|
||||||
|
@ -17,8 +17,8 @@ import (
|
|||||||
// DBRPUpdate struct for DBRPUpdate
|
// DBRPUpdate struct for DBRPUpdate
|
||||||
type DBRPUpdate struct {
|
type DBRPUpdate struct {
|
||||||
// InfluxDB v1 retention policy
|
// InfluxDB v1 retention policy
|
||||||
RetentionPolicy *string `json:"retention_policy,omitempty"`
|
RetentionPolicy *string `json:"retention_policy,omitempty" yaml:"retention_policy,omitempty"`
|
||||||
Default *bool `json:"default,omitempty"`
|
Default *bool `json:"default,omitempty" yaml:"default,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDBRPUpdate instantiates a new DBRPUpdate object
|
// NewDBRPUpdate instantiates a new DBRPUpdate object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// DBRPs struct for DBRPs
|
// DBRPs struct for DBRPs
|
||||||
type DBRPs struct {
|
type DBRPs struct {
|
||||||
Content *[]DBRP `json:"content,omitempty"`
|
Content *[]DBRP `json:"content,omitempty" yaml:"content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDBRPs instantiates a new DBRPs object
|
// NewDBRPs instantiates a new DBRPs object
|
||||||
|
@ -18,11 +18,11 @@ import (
|
|||||||
// DeletePredicateRequest The delete predicate request.
|
// DeletePredicateRequest The delete predicate request.
|
||||||
type DeletePredicateRequest struct {
|
type DeletePredicateRequest struct {
|
||||||
// RFC3339Nano
|
// RFC3339Nano
|
||||||
Start time.Time `json:"start"`
|
Start time.Time `json:"start" yaml:"start"`
|
||||||
// RFC3339Nano
|
// RFC3339Nano
|
||||||
Stop time.Time `json:"stop"`
|
Stop time.Time `json:"stop" yaml:"stop"`
|
||||||
// InfluxQL-like delete statement
|
// InfluxQL-like delete statement
|
||||||
Predicate *string `json:"predicate,omitempty"`
|
Predicate *string `json:"predicate,omitempty" yaml:"predicate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDeletePredicateRequest instantiates a new DeletePredicateRequest object
|
// NewDeletePredicateRequest instantiates a new DeletePredicateRequest object
|
||||||
|
@ -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
|
// 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 {
|
type Dialect struct {
|
||||||
// If true, the results will contain a header row
|
// 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 ,
|
// 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
|
// 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
|
// Character prefixed to comment strings
|
||||||
CommentPrefix *string `json:"commentPrefix,omitempty"`
|
CommentPrefix *string `json:"commentPrefix,omitempty" yaml:"commentPrefix,omitempty"`
|
||||||
// Format of timestamps
|
// Format of timestamps
|
||||||
DateTimeFormat *string `json:"dateTimeFormat,omitempty"`
|
DateTimeFormat *string `json:"dateTimeFormat,omitempty" yaml:"dateTimeFormat,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDialect instantiates a new Dialect object
|
// NewDialect instantiates a new Dialect object
|
||||||
|
@ -16,13 +16,13 @@ import (
|
|||||||
|
|
||||||
// Error struct for Error
|
// Error struct for Error
|
||||||
type Error struct {
|
type Error struct {
|
||||||
Code ErrorCode `json:"code"`
|
Code ErrorCode `json:"code" yaml:"code"`
|
||||||
// message is a human-readable message.
|
// 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 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 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
|
// NewError instantiates a new Error object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// Extern Free-form Flux AST to prepend to query requests
|
// Extern Free-form Flux AST to prepend to query requests
|
||||||
type Extern struct {
|
type Extern struct {
|
||||||
Type *string `json:"type,omitempty"`
|
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
|
||||||
AdditionalProperties map[string]interface{}
|
AdditionalProperties map[string]interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@ import (
|
|||||||
|
|
||||||
// HealthCheck struct for HealthCheck
|
// HealthCheck struct for HealthCheck
|
||||||
type HealthCheck struct {
|
type HealthCheck struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
Checks *[]HealthCheck `json:"checks,omitempty"`
|
Checks *[]HealthCheck `json:"checks,omitempty" yaml:"checks,omitempty"`
|
||||||
Status HealthCheckStatus `json:"status"`
|
Status HealthCheckStatus `json:"status" yaml:"status"`
|
||||||
Version *string `json:"version,omitempty"`
|
Version *string `json:"version,omitempty" yaml:"version,omitempty"`
|
||||||
Commit *string `json:"commit,omitempty"`
|
Commit *string `json:"commit,omitempty" yaml:"commit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewHealthCheck instantiates a new HealthCheck object
|
// NewHealthCheck instantiates a new HealthCheck object
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
// InlineResponse200 struct for InlineResponse200
|
// InlineResponse200 struct for InlineResponse200
|
||||||
type InlineResponse200 struct {
|
type InlineResponse200 struct {
|
||||||
// True means that the influxdb instance has NOT had initial setup; false means that the database has been setup.
|
// 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
|
// NewInlineResponse200 instantiates a new InlineResponse200 object
|
||||||
|
@ -16,11 +16,11 @@ import (
|
|||||||
|
|
||||||
// Label struct for Label
|
// Label struct for Label
|
||||||
type Label struct {
|
type Label struct {
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
OrgID *string `json:"orgID,omitempty"`
|
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
|
||||||
Name *string `json:"name,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.
|
// 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
|
// NewLabel instantiates a new Label object
|
||||||
|
@ -17,17 +17,17 @@ import (
|
|||||||
// LegacyAuthorizationPostRequest struct for LegacyAuthorizationPostRequest
|
// LegacyAuthorizationPostRequest struct for LegacyAuthorizationPostRequest
|
||||||
type LegacyAuthorizationPostRequest struct {
|
type LegacyAuthorizationPostRequest struct {
|
||||||
// If inactive the token is inactive and requests using the token will be rejected.
|
// 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.
|
// 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.
|
// 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.
|
// 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 (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.
|
// 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
|
// NewLegacyAuthorizationPostRequest instantiates a new LegacyAuthorizationPostRequest object
|
||||||
|
@ -17,13 +17,13 @@ import (
|
|||||||
// LegacyAuthorizationPostRequestAllOf struct for LegacyAuthorizationPostRequestAllOf
|
// LegacyAuthorizationPostRequestAllOf struct for LegacyAuthorizationPostRequestAllOf
|
||||||
type LegacyAuthorizationPostRequestAllOf struct {
|
type LegacyAuthorizationPostRequestAllOf struct {
|
||||||
// ID of org that authorization is scoped to.
|
// 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.
|
// 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 (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.
|
// 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
|
// NewLegacyAuthorizationPostRequestAllOf instantiates a new LegacyAuthorizationPostRequestAllOf object
|
||||||
|
@ -16,15 +16,15 @@ import (
|
|||||||
|
|
||||||
// LineProtocolError struct for LineProtocolError
|
// LineProtocolError struct for LineProtocolError
|
||||||
type LineProtocolError struct {
|
type LineProtocolError struct {
|
||||||
Code LineProtocolErrorCode `json:"code"`
|
Code LineProtocolErrorCode `json:"code" yaml:"code"`
|
||||||
// Message is a human-readable message.
|
// 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 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 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
|
// 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
|
// NewLineProtocolError instantiates a new LineProtocolError object
|
||||||
|
@ -16,11 +16,11 @@ import (
|
|||||||
|
|
||||||
// LineProtocolLengthError struct for LineProtocolLengthError
|
// LineProtocolLengthError struct for LineProtocolLengthError
|
||||||
type LineProtocolLengthError struct {
|
type LineProtocolLengthError struct {
|
||||||
Code LineProtocolLengthErrorCode `json:"code"`
|
Code LineProtocolLengthErrorCode `json:"code" yaml:"code"`
|
||||||
// Message is a human-readable message.
|
// 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.
|
// 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
|
// NewLineProtocolLengthError instantiates a new LineProtocolLengthError object
|
||||||
|
@ -17,11 +17,11 @@ import (
|
|||||||
// Links struct for Links
|
// Links struct for Links
|
||||||
type Links struct {
|
type Links struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Next *string `json:"next,omitempty"`
|
Next *string `json:"next,omitempty" yaml:"next,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self string `json:"self"`
|
Self string `json:"self" yaml:"self"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Prev *string `json:"prev,omitempty"`
|
Prev *string `json:"prev,omitempty" yaml:"prev,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewLinks instantiates a new Links object
|
// NewLinks instantiates a new Links object
|
||||||
|
@ -18,11 +18,11 @@ import (
|
|||||||
// LogEvent struct for LogEvent
|
// LogEvent struct for LogEvent
|
||||||
type LogEvent struct {
|
type LogEvent struct {
|
||||||
// Time event occurred, RFC3339Nano.
|
// 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.
|
// 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
|
// 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
|
// NewLogEvent instantiates a new LogEvent object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// Logs struct for Logs
|
// Logs struct for Logs
|
||||||
type Logs struct {
|
type Logs struct {
|
||||||
Events *[]LogEvent `json:"events,omitempty"`
|
Events *[]LogEvent `json:"events,omitempty" yaml:"events,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewLogs instantiates a new Logs object
|
// NewLogs instantiates a new Logs object
|
||||||
|
@ -17,12 +17,12 @@ import (
|
|||||||
|
|
||||||
// MeasurementSchema The schema definition for a single measurement
|
// MeasurementSchema The schema definition for a single measurement
|
||||||
type MeasurementSchema struct {
|
type MeasurementSchema struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id" yaml:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
// An ordered collection of column definitions
|
// An ordered collection of column definitions
|
||||||
Columns []MeasurementSchemaColumn `json:"columns"`
|
Columns []MeasurementSchemaColumn `json:"columns" yaml:"columns"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt" yaml:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMeasurementSchema instantiates a new MeasurementSchema object
|
// NewMeasurementSchema instantiates a new MeasurementSchema object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// MeasurementSchemaColumn Definition of a measurement column
|
// MeasurementSchemaColumn Definition of a measurement column
|
||||||
type MeasurementSchemaColumn struct {
|
type MeasurementSchemaColumn struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Type ColumnSemanticType `json:"type"`
|
Type ColumnSemanticType `json:"type" yaml:"type"`
|
||||||
DataType *ColumnDataType `json:"dataType,omitempty"`
|
DataType *ColumnDataType `json:"dataType,omitempty" yaml:"dataType,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMeasurementSchemaColumn instantiates a new MeasurementSchemaColumn object
|
// NewMeasurementSchemaColumn instantiates a new MeasurementSchemaColumn object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// MeasurementSchemaCreateRequest Create a new measurement schema
|
// MeasurementSchemaCreateRequest Create a new measurement schema
|
||||||
type MeasurementSchemaCreateRequest struct {
|
type MeasurementSchemaCreateRequest struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
// An ordered collection of column definitions
|
// An ordered collection of column definitions
|
||||||
Columns []MeasurementSchemaColumn `json:"columns"`
|
Columns []MeasurementSchemaColumn `json:"columns" yaml:"columns"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMeasurementSchemaCreateRequest instantiates a new MeasurementSchemaCreateRequest object
|
// NewMeasurementSchemaCreateRequest instantiates a new MeasurementSchemaCreateRequest object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// MeasurementSchemaList A list of measurement schemas returning summary information
|
// MeasurementSchemaList A list of measurement schemas returning summary information
|
||||||
type MeasurementSchemaList struct {
|
type MeasurementSchemaList struct {
|
||||||
MeasurementSchemas []MeasurementSchema `json:"measurementSchemas"`
|
MeasurementSchemas []MeasurementSchema `json:"measurementSchemas" yaml:"measurementSchemas"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMeasurementSchemaList instantiates a new MeasurementSchemaList object
|
// NewMeasurementSchemaList instantiates a new MeasurementSchemaList object
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
// MeasurementSchemaUpdateRequest Update an existing measurement schema
|
// MeasurementSchemaUpdateRequest Update an existing measurement schema
|
||||||
type MeasurementSchemaUpdateRequest struct {
|
type MeasurementSchemaUpdateRequest struct {
|
||||||
// An ordered collection of column definitions
|
// An ordered collection of column definitions
|
||||||
Columns []MeasurementSchemaColumn `json:"columns"`
|
Columns []MeasurementSchemaColumn `json:"columns" yaml:"columns"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMeasurementSchemaUpdateRequest instantiates a new MeasurementSchemaUpdateRequest object
|
// NewMeasurementSchemaUpdateRequest instantiates a new MeasurementSchemaUpdateRequest object
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
|
|
||||||
// MetadataBackup struct for MetadataBackup
|
// MetadataBackup struct for MetadataBackup
|
||||||
type MetadataBackup struct {
|
type MetadataBackup struct {
|
||||||
Kv *os.File `json:"kv"`
|
Kv *os.File `json:"kv" yaml:"kv"`
|
||||||
Sql *os.File `json:"sql"`
|
Sql *os.File `json:"sql" yaml:"sql"`
|
||||||
Buckets []BucketMetadataManifest `json:"buckets"`
|
Buckets []BucketMetadataManifest `json:"buckets" yaml:"buckets"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMetadataBackup instantiates a new MetadataBackup object
|
// NewMetadataBackup instantiates a new MetadataBackup object
|
||||||
|
@ -16,15 +16,15 @@ import (
|
|||||||
|
|
||||||
// OnboardingRequest struct for OnboardingRequest
|
// OnboardingRequest struct for OnboardingRequest
|
||||||
type OnboardingRequest struct {
|
type OnboardingRequest struct {
|
||||||
Username string `json:"username"`
|
Username string `json:"username" yaml:"username"`
|
||||||
Password *string `json:"password,omitempty"`
|
Password *string `json:"password,omitempty" yaml:"password,omitempty"`
|
||||||
Org string `json:"org"`
|
Org string `json:"org" yaml:"org"`
|
||||||
Bucket string `json:"bucket"`
|
Bucket string `json:"bucket" yaml:"bucket"`
|
||||||
RetentionPeriodSeconds *int64 `json:"retentionPeriodSeconds,omitempty"`
|
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`
|
// 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.
|
// 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
|
// NewOnboardingRequest instantiates a new OnboardingRequest object
|
||||||
|
@ -16,10 +16,10 @@ import (
|
|||||||
|
|
||||||
// OnboardingResponse struct for OnboardingResponse
|
// OnboardingResponse struct for OnboardingResponse
|
||||||
type OnboardingResponse struct {
|
type OnboardingResponse struct {
|
||||||
User *UserResponse `json:"user,omitempty"`
|
User *UserResponse `json:"user,omitempty" yaml:"user,omitempty"`
|
||||||
Org *Organization `json:"org,omitempty"`
|
Org *Organization `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
Bucket *Bucket `json:"bucket,omitempty"`
|
Bucket *Bucket `json:"bucket,omitempty" yaml:"bucket,omitempty"`
|
||||||
Auth *Authorization `json:"auth,omitempty"`
|
Auth *Authorization `json:"auth,omitempty" yaml:"auth,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewOnboardingResponse instantiates a new OnboardingResponse object
|
// NewOnboardingResponse instantiates a new OnboardingResponse object
|
||||||
|
@ -17,14 +17,14 @@ import (
|
|||||||
|
|
||||||
// Organization struct for Organization
|
// Organization struct for Organization
|
||||||
type Organization struct {
|
type Organization struct {
|
||||||
Links *OrganizationLinks `json:"links,omitempty"`
|
Links *OrganizationLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
||||||
// If inactive the organization is inactive.
|
// 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
|
// NewOrganization instantiates a new Organization object
|
||||||
|
@ -17,21 +17,21 @@ import (
|
|||||||
// OrganizationLinks struct for OrganizationLinks
|
// OrganizationLinks struct for OrganizationLinks
|
||||||
type OrganizationLinks struct {
|
type OrganizationLinks struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Members *string `json:"members,omitempty"`
|
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Owners *string `json:"owners,omitempty"`
|
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Labels *string `json:"labels,omitempty"`
|
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Secrets *string `json:"secrets,omitempty"`
|
Secrets *string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Buckets *string `json:"buckets,omitempty"`
|
Buckets *string `json:"buckets,omitempty" yaml:"buckets,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Tasks *string `json:"tasks,omitempty"`
|
Tasks *string `json:"tasks,omitempty" yaml:"tasks,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Dashboards *string `json:"dashboards,omitempty"`
|
Dashboards *string `json:"dashboards,omitempty" yaml:"dashboards,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewOrganizationLinks instantiates a new OrganizationLinks object
|
// NewOrganizationLinks instantiates a new OrganizationLinks object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Organizations struct for Organizations
|
// Organizations struct for Organizations
|
||||||
type Organizations struct {
|
type Organizations struct {
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Orgs *[]Organization `json:"orgs,omitempty"`
|
Orgs *[]Organization `json:"orgs,omitempty" yaml:"orgs,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewOrganizations instantiates a new Organizations object
|
// NewOrganizations instantiates a new Organizations object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// PasswordResetBody struct for PasswordResetBody
|
// PasswordResetBody struct for PasswordResetBody
|
||||||
type PasswordResetBody struct {
|
type PasswordResetBody struct {
|
||||||
Password string `json:"password"`
|
Password string `json:"password" yaml:"password"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPasswordResetBody instantiates a new PasswordResetBody object
|
// NewPasswordResetBody instantiates a new PasswordResetBody object
|
||||||
|
@ -16,10 +16,10 @@ import (
|
|||||||
|
|
||||||
// PatchBucketRequest Updates to an existing bucket resource.
|
// PatchBucketRequest Updates to an existing bucket resource.
|
||||||
type PatchBucketRequest struct {
|
type PatchBucketRequest struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
// Updates to rules to expire or retain data. No rules means no updates.
|
// 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
|
// NewPatchBucketRequest instantiates a new PatchBucketRequest object
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
// PatchOrganizationRequest struct for PatchOrganizationRequest
|
// PatchOrganizationRequest struct for PatchOrganizationRequest
|
||||||
type PatchOrganizationRequest struct {
|
type PatchOrganizationRequest struct {
|
||||||
// New name to set on the organization
|
// 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
|
// 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
|
// NewPatchOrganizationRequest instantiates a new PatchOrganizationRequest object
|
||||||
|
@ -16,11 +16,11 @@ import (
|
|||||||
|
|
||||||
// PatchRetentionRule Updates to a rule to expire or retain data.
|
// PatchRetentionRule Updates to a rule to expire or retain data.
|
||||||
type PatchRetentionRule struct {
|
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.
|
// 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.
|
// Shard duration measured in seconds.
|
||||||
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty"`
|
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty" yaml:"shardGroupDurationSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPatchRetentionRule instantiates a new PatchRetentionRule object
|
// NewPatchRetentionRule instantiates a new PatchRetentionRule object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Permission struct for Permission
|
// Permission struct for Permission
|
||||||
type Permission struct {
|
type Permission struct {
|
||||||
Action string `json:"action"`
|
Action string `json:"action" yaml:"action"`
|
||||||
Resource PermissionResource `json:"resource"`
|
Resource PermissionResource `json:"resource" yaml:"resource"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPermission instantiates a new Permission object
|
// NewPermission instantiates a new Permission object
|
||||||
|
@ -16,15 +16,15 @@ import (
|
|||||||
|
|
||||||
// PermissionResource struct for PermissionResource
|
// PermissionResource struct for PermissionResource
|
||||||
type PermissionResource struct {
|
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.
|
// 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.
|
// 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.
|
// 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.
|
// 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
|
// NewPermissionResource instantiates a new PermissionResource object
|
||||||
|
@ -16,13 +16,13 @@ import (
|
|||||||
|
|
||||||
// PostBucketRequest struct for PostBucketRequest
|
// PostBucketRequest struct for PostBucketRequest
|
||||||
type PostBucketRequest struct {
|
type PostBucketRequest struct {
|
||||||
OrgID string `json:"orgID"`
|
OrgID string `json:"orgID" yaml:"orgID"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
Rp *string `json:"rp,omitempty"`
|
Rp *string `json:"rp,omitempty" yaml:"rp,omitempty"`
|
||||||
// Rules to expire or retain data. No rules means data never expires.
|
// Rules to expire or retain data. No rules means data never expires.
|
||||||
RetentionRules []RetentionRule `json:"retentionRules"`
|
RetentionRules []RetentionRule `json:"retentionRules" yaml:"retentionRules"`
|
||||||
SchemaType *SchemaType `json:"schemaType,omitempty"`
|
SchemaType *SchemaType `json:"schemaType,omitempty" yaml:"schemaType,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPostBucketRequest instantiates a new PostBucketRequest object
|
// NewPostBucketRequest instantiates a new PostBucketRequest object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// PostOrganizationRequest struct for PostOrganizationRequest
|
// PostOrganizationRequest struct for PostOrganizationRequest
|
||||||
type PostOrganizationRequest struct {
|
type PostOrganizationRequest struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPostOrganizationRequest instantiates a new PostOrganizationRequest object
|
// NewPostOrganizationRequest instantiates a new PostOrganizationRequest object
|
||||||
|
@ -17,14 +17,14 @@ import (
|
|||||||
|
|
||||||
// Query Query influx using the Flux language
|
// Query Query influx using the Flux language
|
||||||
type Query struct {
|
type Query struct {
|
||||||
Extern *Extern `json:"extern,omitempty"`
|
Extern *Extern `json:"extern,omitempty" yaml:"extern,omitempty"`
|
||||||
// Query script to execute.
|
// Query script to execute.
|
||||||
Query string `json:"query"`
|
Query string `json:"query" yaml:"query"`
|
||||||
// The type of query. Must be \"flux\".
|
// The type of query. Must be \"flux\".
|
||||||
Type *string `json:"type,omitempty"`
|
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
|
||||||
Dialect *Dialect `json:"dialect,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.
|
// 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
|
// NewQuery instantiates a new Query object
|
||||||
|
@ -16,13 +16,13 @@ import (
|
|||||||
|
|
||||||
// ResourceMember struct for ResourceMember
|
// ResourceMember struct for ResourceMember
|
||||||
type ResourceMember struct {
|
type ResourceMember struct {
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
OauthID *string `json:"oauthID,omitempty"`
|
OauthID *string `json:"oauthID,omitempty" yaml:"oauthID,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
// If inactive the user is inactive.
|
// If inactive the user is inactive.
|
||||||
Status *string `json:"status,omitempty"`
|
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
Links *UserResponseLinks `json:"links,omitempty"`
|
Links *UserResponseLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Role *string `json:"role,omitempty"`
|
Role *string `json:"role,omitempty" yaml:"role,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewResourceMember instantiates a new ResourceMember object
|
// NewResourceMember instantiates a new ResourceMember object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// ResourceMemberAllOf struct for ResourceMemberAllOf
|
// ResourceMemberAllOf struct for ResourceMemberAllOf
|
||||||
type ResourceMemberAllOf struct {
|
type ResourceMemberAllOf struct {
|
||||||
Role *string `json:"role,omitempty"`
|
Role *string `json:"role,omitempty" yaml:"role,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewResourceMemberAllOf instantiates a new ResourceMemberAllOf object
|
// NewResourceMemberAllOf instantiates a new ResourceMemberAllOf object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// ResourceMembers struct for ResourceMembers
|
// ResourceMembers struct for ResourceMembers
|
||||||
type ResourceMembers struct {
|
type ResourceMembers struct {
|
||||||
Links *UsersLinks `json:"links,omitempty"`
|
Links *UsersLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Users *[]ResourceMember `json:"users,omitempty"`
|
Users *[]ResourceMember `json:"users,omitempty" yaml:"users,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewResourceMembers instantiates a new ResourceMembers object
|
// NewResourceMembers instantiates a new ResourceMembers object
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
// RestoredBucketMappings struct for RestoredBucketMappings
|
// RestoredBucketMappings struct for RestoredBucketMappings
|
||||||
type RestoredBucketMappings struct {
|
type RestoredBucketMappings struct {
|
||||||
// New ID of the restored bucket
|
// New ID of the restored bucket
|
||||||
Id string `json:"id"`
|
Id string `json:"id" yaml:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
ShardMappings []BucketShardMapping `json:"shardMappings"`
|
ShardMappings []BucketShardMapping `json:"shardMappings" yaml:"shardMappings"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRestoredBucketMappings instantiates a new RestoredBucketMappings object
|
// NewRestoredBucketMappings instantiates a new RestoredBucketMappings object
|
||||||
|
@ -16,12 +16,12 @@ import (
|
|||||||
|
|
||||||
// RetentionPolicyManifest struct for RetentionPolicyManifest
|
// RetentionPolicyManifest struct for RetentionPolicyManifest
|
||||||
type RetentionPolicyManifest struct {
|
type RetentionPolicyManifest struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
ReplicaN int32 `json:"replicaN"`
|
ReplicaN int32 `json:"replicaN" yaml:"replicaN"`
|
||||||
Duration int64 `json:"duration"`
|
Duration int64 `json:"duration" yaml:"duration"`
|
||||||
ShardGroupDuration int64 `json:"shardGroupDuration"`
|
ShardGroupDuration int64 `json:"shardGroupDuration" yaml:"shardGroupDuration"`
|
||||||
ShardGroups []ShardGroupManifest `json:"shardGroups"`
|
ShardGroups []ShardGroupManifest `json:"shardGroups" yaml:"shardGroups"`
|
||||||
Subscriptions []SubscriptionManifest `json:"subscriptions"`
|
Subscriptions []SubscriptionManifest `json:"subscriptions" yaml:"subscriptions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRetentionPolicyManifest instantiates a new RetentionPolicyManifest object
|
// NewRetentionPolicyManifest instantiates a new RetentionPolicyManifest object
|
||||||
|
@ -16,11 +16,11 @@ import (
|
|||||||
|
|
||||||
// RetentionRule struct for RetentionRule
|
// RetentionRule struct for RetentionRule
|
||||||
type RetentionRule struct {
|
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.
|
// 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.
|
// Shard duration measured in seconds.
|
||||||
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty"`
|
ShardGroupDurationSeconds *int64 `json:"shardGroupDurationSeconds,omitempty" yaml:"shardGroupDurationSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRetentionRule instantiates a new RetentionRule object
|
// NewRetentionRule instantiates a new RetentionRule object
|
||||||
|
@ -17,20 +17,20 @@ import (
|
|||||||
|
|
||||||
// Run struct for Run
|
// Run struct for Run
|
||||||
type Run struct {
|
type Run struct {
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
TaskID *string `json:"taskID,omitempty"`
|
TaskID *string `json:"taskID,omitempty" yaml:"taskID,omitempty"`
|
||||||
Status *string `json:"status,omitempty"`
|
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// Time used for run's \"now\" option, RFC3339.
|
// 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.
|
// 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.
|
// 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.
|
// 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.
|
// Time run was manually requested, RFC3339Nano.
|
||||||
RequestedAt *time.Time `json:"requestedAt,omitempty"`
|
RequestedAt *time.Time `json:"requestedAt,omitempty" yaml:"requestedAt,omitempty"`
|
||||||
Links *RunLinks `json:"links,omitempty"`
|
Links *RunLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRun instantiates a new Run object
|
// NewRun instantiates a new Run object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// RunLinks struct for RunLinks
|
// RunLinks struct for RunLinks
|
||||||
type RunLinks struct {
|
type RunLinks struct {
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
Task *string `json:"task,omitempty"`
|
Task *string `json:"task,omitempty" yaml:"task,omitempty"`
|
||||||
Retry *string `json:"retry,omitempty"`
|
Retry *string `json:"retry,omitempty" yaml:"retry,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRunLinks instantiates a new RunLinks object
|
// NewRunLinks instantiates a new RunLinks object
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
// RunManually struct for RunManually
|
// RunManually struct for RunManually
|
||||||
type RunManually struct {
|
type RunManually struct {
|
||||||
// Time used for run's \"now\" option, RFC3339. Default is the server's now time.
|
// 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
|
// NewRunManually instantiates a new RunManually object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Runs struct for Runs
|
// Runs struct for Runs
|
||||||
type Runs struct {
|
type Runs struct {
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Runs *[]Run `json:"runs,omitempty"`
|
Runs *[]Run `json:"runs,omitempty" yaml:"runs,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRuns instantiates a new Runs object
|
// NewRuns instantiates a new Runs object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// SecretKeys struct for SecretKeys
|
// SecretKeys struct for SecretKeys
|
||||||
type SecretKeys struct {
|
type SecretKeys struct {
|
||||||
Secrets *[]string `json:"secrets,omitempty"`
|
Secrets *[]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSecretKeys instantiates a new SecretKeys object
|
// NewSecretKeys instantiates a new SecretKeys object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// SecretKeysResponse struct for SecretKeysResponse
|
// SecretKeysResponse struct for SecretKeysResponse
|
||||||
type SecretKeysResponse struct {
|
type SecretKeysResponse struct {
|
||||||
Secrets *[]string `json:"secrets,omitempty"`
|
Secrets *[]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||||
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty"`
|
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSecretKeysResponse instantiates a new SecretKeysResponse object
|
// NewSecretKeysResponse instantiates a new SecretKeysResponse object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// SecretKeysResponseAllOf struct for SecretKeysResponseAllOf
|
// SecretKeysResponseAllOf struct for SecretKeysResponseAllOf
|
||||||
type SecretKeysResponseAllOf struct {
|
type SecretKeysResponseAllOf struct {
|
||||||
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty"`
|
Links *SecretKeysResponseAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSecretKeysResponseAllOf instantiates a new SecretKeysResponseAllOf object
|
// NewSecretKeysResponseAllOf instantiates a new SecretKeysResponseAllOf object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// SecretKeysResponseAllOfLinks struct for SecretKeysResponseAllOfLinks
|
// SecretKeysResponseAllOfLinks struct for SecretKeysResponseAllOfLinks
|
||||||
type SecretKeysResponseAllOfLinks struct {
|
type SecretKeysResponseAllOfLinks struct {
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
Org *string `json:"org,omitempty"`
|
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSecretKeysResponseAllOfLinks instantiates a new SecretKeysResponseAllOfLinks object
|
// NewSecretKeysResponseAllOfLinks instantiates a new SecretKeysResponseAllOfLinks object
|
||||||
|
@ -17,12 +17,12 @@ import (
|
|||||||
|
|
||||||
// ShardGroupManifest struct for ShardGroupManifest
|
// ShardGroupManifest struct for ShardGroupManifest
|
||||||
type ShardGroupManifest struct {
|
type ShardGroupManifest struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id" yaml:"id"`
|
||||||
StartTime time.Time `json:"startTime"`
|
StartTime time.Time `json:"startTime" yaml:"startTime"`
|
||||||
EndTime time.Time `json:"endTime"`
|
EndTime time.Time `json:"endTime" yaml:"endTime"`
|
||||||
DeletedAt *time.Time `json:"deletedAt,omitempty"`
|
DeletedAt *time.Time `json:"deletedAt,omitempty" yaml:"deletedAt,omitempty"`
|
||||||
TruncatedAt *time.Time `json:"truncatedAt,omitempty"`
|
TruncatedAt *time.Time `json:"truncatedAt,omitempty" yaml:"truncatedAt,omitempty"`
|
||||||
Shards []ShardManifest `json:"shards"`
|
Shards []ShardManifest `json:"shards" yaml:"shards"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewShardGroupManifest instantiates a new ShardGroupManifest object
|
// NewShardGroupManifest instantiates a new ShardGroupManifest object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// ShardManifest struct for ShardManifest
|
// ShardManifest struct for ShardManifest
|
||||||
type ShardManifest struct {
|
type ShardManifest struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id" yaml:"id"`
|
||||||
ShardOwners []ShardOwner `json:"shardOwners"`
|
ShardOwners []ShardOwner `json:"shardOwners" yaml:"shardOwners"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewShardManifest instantiates a new ShardManifest object
|
// NewShardManifest instantiates a new ShardManifest object
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
// ShardOwner struct for ShardOwner
|
// ShardOwner struct for ShardOwner
|
||||||
type ShardOwner struct {
|
type ShardOwner struct {
|
||||||
// ID of the node that owns a shard.
|
// ID of the node that owns a shard.
|
||||||
NodeID int64 `json:"nodeID"`
|
NodeID int64 `json:"nodeID" yaml:"nodeID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewShardOwner instantiates a new ShardOwner object
|
// NewShardOwner instantiates a new ShardOwner object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// SubscriptionManifest struct for SubscriptionManifest
|
// SubscriptionManifest struct for SubscriptionManifest
|
||||||
type SubscriptionManifest struct {
|
type SubscriptionManifest struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Mode string `json:"mode"`
|
Mode string `json:"mode" yaml:"mode"`
|
||||||
Destinations []string `json:"destinations"`
|
Destinations []string `json:"destinations" yaml:"destinations"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSubscriptionManifest instantiates a new SubscriptionManifest object
|
// NewSubscriptionManifest instantiates a new SubscriptionManifest object
|
||||||
|
@ -17,36 +17,36 @@ import (
|
|||||||
|
|
||||||
// Task struct for Task
|
// Task struct for Task
|
||||||
type Task struct {
|
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.
|
// 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.
|
// 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.
|
// 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.
|
// The name of the task.
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
// An optional description of the task.
|
// An optional description of the task.
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
Status *TaskStatusType `json:"status,omitempty"`
|
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
Labels *[]Label `json:"labels,omitempty"`
|
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
// The ID of the authorization used when this task communicates with the query engine.
|
// 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.
|
// 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.
|
// 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.
|
// 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.
|
// 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.
|
// Timestamp of latest scheduled, completed run, RFC3339.
|
||||||
LatestCompleted *time.Time `json:"latestCompleted,omitempty"`
|
LatestCompleted *time.Time `json:"latestCompleted,omitempty" yaml:"latestCompleted,omitempty"`
|
||||||
LastRunStatus *string `json:"lastRunStatus,omitempty"`
|
LastRunStatus *string `json:"lastRunStatus,omitempty" yaml:"lastRunStatus,omitempty"`
|
||||||
LastRunError *string `json:"lastRunError,omitempty"`
|
LastRunError *string `json:"lastRunError,omitempty" yaml:"lastRunError,omitempty"`
|
||||||
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
||||||
Links *TaskLinks `json:"links,omitempty"`
|
Links *TaskLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTask instantiates a new Task object
|
// NewTask instantiates a new Task object
|
||||||
|
@ -17,14 +17,14 @@ import (
|
|||||||
// TaskCreateRequest struct for TaskCreateRequest
|
// TaskCreateRequest struct for TaskCreateRequest
|
||||||
type TaskCreateRequest struct {
|
type TaskCreateRequest struct {
|
||||||
// The ID of the organization that owns this Task.
|
// 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.
|
// The name of the organization that owns this Task.
|
||||||
Org *string `json:"org,omitempty"`
|
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
|
||||||
Status *TaskStatusType `json:"status,omitempty"`
|
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// The Flux script to run for this task.
|
// The Flux script to run for this task.
|
||||||
Flux string `json:"flux"`
|
Flux string `json:"flux" yaml:"flux"`
|
||||||
// An optional description of the task.
|
// 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
|
// NewTaskCreateRequest instantiates a new TaskCreateRequest object
|
||||||
|
@ -17,17 +17,17 @@ import (
|
|||||||
// TaskLinks struct for TaskLinks
|
// TaskLinks struct for TaskLinks
|
||||||
type TaskLinks struct {
|
type TaskLinks struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Owners *string `json:"owners,omitempty"`
|
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Members *string `json:"members,omitempty"`
|
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Runs *string `json:"runs,omitempty"`
|
Runs *string `json:"runs,omitempty" yaml:"runs,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Logs *string `json:"logs,omitempty"`
|
Logs *string `json:"logs,omitempty" yaml:"logs,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Labels *string `json:"labels,omitempty"`
|
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTaskLinks instantiates a new TaskLinks object
|
// NewTaskLinks instantiates a new TaskLinks object
|
||||||
|
@ -16,19 +16,19 @@ import (
|
|||||||
|
|
||||||
// TaskUpdateRequest struct for TaskUpdateRequest
|
// TaskUpdateRequest struct for TaskUpdateRequest
|
||||||
type TaskUpdateRequest struct {
|
type TaskUpdateRequest struct {
|
||||||
Status *TaskStatusType `json:"status,omitempty"`
|
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// The Flux script to run for this task.
|
// 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.
|
// 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.
|
// 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.
|
// 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.
|
// 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.
|
// 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
|
// NewTaskUpdateRequest instantiates a new TaskUpdateRequest object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// Tasks struct for Tasks
|
// Tasks struct for Tasks
|
||||||
type Tasks struct {
|
type Tasks struct {
|
||||||
Links *Links `json:"links,omitempty"`
|
Links *Links `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Tasks *[]Task `json:"tasks,omitempty"`
|
Tasks *[]Task `json:"tasks,omitempty" yaml:"tasks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTasks instantiates a new Tasks object
|
// NewTasks instantiates a new Tasks object
|
||||||
|
@ -16,14 +16,14 @@ import (
|
|||||||
|
|
||||||
// Telegraf struct for Telegraf
|
// Telegraf struct for Telegraf
|
||||||
type Telegraf struct {
|
type Telegraf struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty"`
|
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
Config *string `json:"config,omitempty"`
|
Config *string `json:"config,omitempty" yaml:"config,omitempty"`
|
||||||
OrgID *string `json:"orgID,omitempty"`
|
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Links *TelegrafAllOfLinks `json:"links,omitempty"`
|
Links *TelegrafAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Labels *[]Label `json:"labels,omitempty"`
|
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTelegraf instantiates a new Telegraf object
|
// NewTelegraf instantiates a new Telegraf object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// TelegrafAllOf struct for TelegrafAllOf
|
// TelegrafAllOf struct for TelegrafAllOf
|
||||||
type TelegrafAllOf struct {
|
type TelegrafAllOf struct {
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Links *TelegrafAllOfLinks `json:"links,omitempty"`
|
Links *TelegrafAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
|
||||||
Labels *[]Label `json:"labels,omitempty"`
|
Labels *[]Label `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTelegrafAllOf instantiates a new TelegrafAllOf object
|
// NewTelegrafAllOf instantiates a new TelegrafAllOf object
|
||||||
|
@ -17,13 +17,13 @@ import (
|
|||||||
// TelegrafAllOfLinks struct for TelegrafAllOfLinks
|
// TelegrafAllOfLinks struct for TelegrafAllOfLinks
|
||||||
type TelegrafAllOfLinks struct {
|
type TelegrafAllOfLinks struct {
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Self *string `json:"self,omitempty"`
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Labels *string `json:"labels,omitempty"`
|
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Members *string `json:"members,omitempty"`
|
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
|
||||||
// URI of resource.
|
// URI of resource.
|
||||||
Owners *string `json:"owners,omitempty"`
|
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTelegrafAllOfLinks instantiates a new TelegrafAllOfLinks object
|
// NewTelegrafAllOfLinks instantiates a new TelegrafAllOfLinks object
|
||||||
|
@ -16,11 +16,11 @@ import (
|
|||||||
|
|
||||||
// TelegrafRequest struct for TelegrafRequest
|
// TelegrafRequest struct for TelegrafRequest
|
||||||
type TelegrafRequest struct {
|
type TelegrafRequest struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||||
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty"`
|
Metadata *TelegrafRequestMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
Config *string `json:"config,omitempty"`
|
Config *string `json:"config,omitempty" yaml:"config,omitempty"`
|
||||||
OrgID *string `json:"orgID,omitempty"`
|
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTelegrafRequest instantiates a new TelegrafRequest object
|
// NewTelegrafRequest instantiates a new TelegrafRequest object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// TelegrafRequestMetadata struct for TelegrafRequestMetadata
|
// TelegrafRequestMetadata struct for TelegrafRequestMetadata
|
||||||
type TelegrafRequestMetadata struct {
|
type TelegrafRequestMetadata struct {
|
||||||
Buckets *[]string `json:"buckets,omitempty"`
|
Buckets *[]string `json:"buckets,omitempty" yaml:"buckets,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTelegrafRequestMetadata instantiates a new TelegrafRequestMetadata object
|
// NewTelegrafRequestMetadata instantiates a new TelegrafRequestMetadata object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// Telegrafs struct for Telegrafs
|
// Telegrafs struct for Telegrafs
|
||||||
type Telegrafs struct {
|
type Telegrafs struct {
|
||||||
Configurations *[]Telegraf `json:"configurations,omitempty"`
|
Configurations *[]Telegraf `json:"configurations,omitempty" yaml:"configurations,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTelegrafs instantiates a new Telegrafs object
|
// NewTelegrafs instantiates a new Telegrafs object
|
||||||
|
@ -16,15 +16,15 @@ import (
|
|||||||
|
|
||||||
// TemplateApply struct for TemplateApply
|
// TemplateApply struct for TemplateApply
|
||||||
type TemplateApply struct {
|
type TemplateApply struct {
|
||||||
DryRun bool `json:"dryRun"`
|
DryRun bool `json:"dryRun" yaml:"dryRun"`
|
||||||
OrgID string `json:"orgID"`
|
OrgID string `json:"orgID" yaml:"orgID"`
|
||||||
StackID *string `json:"stackID,omitempty"`
|
StackID *string `json:"stackID,omitempty" yaml:"stackID,omitempty"`
|
||||||
Template *TemplateApplyTemplate `json:"template,omitempty"`
|
Template *TemplateApplyTemplate `json:"template,omitempty" yaml:"template,omitempty"`
|
||||||
Templates []TemplateApplyTemplate `json:"templates"`
|
Templates []TemplateApplyTemplate `json:"templates" yaml:"templates"`
|
||||||
EnvRefs *map[string]map[string]interface{} `json:"envRefs,omitempty"`
|
EnvRefs *map[string]map[string]interface{} `json:"envRefs,omitempty" yaml:"envRefs,omitempty"`
|
||||||
Secrets *map[string]string `json:"secrets,omitempty"`
|
Secrets *map[string]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||||
Remotes []TemplateApplyRemoteRef `json:"remotes"`
|
Remotes []TemplateApplyRemoteRef `json:"remotes" yaml:"remotes"`
|
||||||
Actions []TemplateApplyAction `json:"actions"`
|
Actions []TemplateApplyAction `json:"actions" yaml:"actions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateApply instantiates a new TemplateApply object
|
// NewTemplateApply instantiates a new TemplateApply object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// TemplateApplyAction struct for TemplateApplyAction
|
// TemplateApplyAction struct for TemplateApplyAction
|
||||||
type TemplateApplyAction struct {
|
type TemplateApplyAction struct {
|
||||||
Action TemplateApplyActionKind `json:"action"`
|
Action TemplateApplyActionKind `json:"action" yaml:"action"`
|
||||||
Properties TemplateApplyActionProperties `json:"properties"`
|
Properties TemplateApplyActionProperties `json:"properties" yaml:"properties"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateApplyAction instantiates a new TemplateApplyAction object
|
// NewTemplateApplyAction instantiates a new TemplateApplyAction object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// TemplateApplyActionProperties struct for TemplateApplyActionProperties
|
// TemplateApplyActionProperties struct for TemplateApplyActionProperties
|
||||||
type TemplateApplyActionProperties struct {
|
type TemplateApplyActionProperties struct {
|
||||||
Kind string `json:"kind"`
|
Kind string `json:"kind" yaml:"kind"`
|
||||||
ResourceTemplateName *string `json:"resourceTemplateName,omitempty"`
|
ResourceTemplateName *string `json:"resourceTemplateName,omitempty" yaml:"resourceTemplateName,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateApplyActionProperties instantiates a new TemplateApplyActionProperties object
|
// NewTemplateApplyActionProperties instantiates a new TemplateApplyActionProperties object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// TemplateApplyRemoteRef struct for TemplateApplyRemoteRef
|
// TemplateApplyRemoteRef struct for TemplateApplyRemoteRef
|
||||||
type TemplateApplyRemoteRef struct {
|
type TemplateApplyRemoteRef struct {
|
||||||
Url string `json:"url"`
|
Url string `json:"url" yaml:"url"`
|
||||||
ContentType *string `json:"contentType,omitempty"`
|
ContentType *string `json:"contentType,omitempty" yaml:"contentType,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateApplyRemoteRef instantiates a new TemplateApplyRemoteRef object
|
// NewTemplateApplyRemoteRef instantiates a new TemplateApplyRemoteRef object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// TemplateApplyTemplate struct for TemplateApplyTemplate
|
// TemplateApplyTemplate struct for TemplateApplyTemplate
|
||||||
type TemplateApplyTemplate struct {
|
type TemplateApplyTemplate struct {
|
||||||
Sources []string `json:"sources"`
|
Sources []string `json:"sources" yaml:"sources"`
|
||||||
Contents []TemplateEntry `json:"contents"`
|
Contents []TemplateEntry `json:"contents" yaml:"contents"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateApplyTemplate instantiates a new TemplateApplyTemplate object
|
// NewTemplateApplyTemplate instantiates a new TemplateApplyTemplate object
|
||||||
|
@ -16,10 +16,10 @@ import (
|
|||||||
|
|
||||||
// TemplateEntry struct for TemplateEntry
|
// TemplateEntry struct for TemplateEntry
|
||||||
type TemplateEntry struct {
|
type TemplateEntry struct {
|
||||||
ApiVersion string `json:"apiVersion"`
|
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
|
||||||
Kind string `json:"kind"`
|
Kind string `json:"kind" yaml:"kind"`
|
||||||
Meta TemplateEntryMeta `json:"meta"`
|
Meta TemplateEntryMeta `json:"meta" yaml:"meta"`
|
||||||
Spec map[string]interface{} `json:"spec"`
|
Spec map[string]interface{} `json:"spec" yaml:"spec"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateEntry instantiates a new TemplateEntry object
|
// NewTemplateEntry instantiates a new TemplateEntry object
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// TemplateEntryMeta struct for TemplateEntryMeta
|
// TemplateEntryMeta struct for TemplateEntryMeta
|
||||||
type TemplateEntryMeta struct {
|
type TemplateEntryMeta struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateEntryMeta instantiates a new TemplateEntryMeta object
|
// NewTemplateEntryMeta instantiates a new TemplateEntryMeta object
|
||||||
|
@ -17,13 +17,13 @@ import (
|
|||||||
// TemplateEnvReference struct for TemplateEnvReference
|
// TemplateEnvReference struct for TemplateEnvReference
|
||||||
type TemplateEnvReference struct {
|
type TemplateEnvReference struct {
|
||||||
// Field the environment reference corresponds too
|
// 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
|
// 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 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
|
// 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
|
// NewTemplateEnvReference instantiates a new TemplateEnvReference object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// TemplateExport struct for TemplateExport
|
// TemplateExport struct for TemplateExport
|
||||||
type TemplateExport struct {
|
type TemplateExport struct {
|
||||||
StackID *string `json:"stackID,omitempty"`
|
StackID *string `json:"stackID,omitempty" yaml:"stackID,omitempty"`
|
||||||
OrgIDs *[]TemplateExportOrgIDs `json:"orgIDs,omitempty"`
|
OrgIDs *[]TemplateExportOrgIDs `json:"orgIDs,omitempty" yaml:"orgIDs,omitempty"`
|
||||||
Resources []TemplateExportResources `json:"resources"`
|
Resources []TemplateExportResources `json:"resources" yaml:"resources"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateExport instantiates a new TemplateExport object
|
// NewTemplateExport instantiates a new TemplateExport object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// TemplateExportOrgIDs struct for TemplateExportOrgIDs
|
// TemplateExportOrgIDs struct for TemplateExportOrgIDs
|
||||||
type TemplateExportOrgIDs struct {
|
type TemplateExportOrgIDs struct {
|
||||||
OrgID *string `json:"orgID,omitempty"`
|
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
|
||||||
ResourceFilters *TemplateExportResourceFilters `json:"resourceFilters,omitempty"`
|
ResourceFilters *TemplateExportResourceFilters `json:"resourceFilters,omitempty" yaml:"resourceFilters,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateExportOrgIDs instantiates a new TemplateExportOrgIDs object
|
// NewTemplateExportOrgIDs instantiates a new TemplateExportOrgIDs object
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
|
|
||||||
// TemplateExportResourceFilters struct for TemplateExportResourceFilters
|
// TemplateExportResourceFilters struct for TemplateExportResourceFilters
|
||||||
type TemplateExportResourceFilters struct {
|
type TemplateExportResourceFilters struct {
|
||||||
ByLabel *[]string `json:"byLabel,omitempty"`
|
ByLabel *[]string `json:"byLabel,omitempty" yaml:"byLabel,omitempty"`
|
||||||
ByResourceKind *[]string `json:"byResourceKind,omitempty"`
|
ByResourceKind *[]string `json:"byResourceKind,omitempty" yaml:"byResourceKind,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateExportResourceFilters instantiates a new TemplateExportResourceFilters object
|
// NewTemplateExportResourceFilters instantiates a new TemplateExportResourceFilters object
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
|
|
||||||
// TemplateExportResources struct for TemplateExportResources
|
// TemplateExportResources struct for TemplateExportResources
|
||||||
type TemplateExportResources struct {
|
type TemplateExportResources struct {
|
||||||
Id *string `json:"id,omitempty"`
|
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Kind string `json:"kind"`
|
Kind string `json:"kind" yaml:"kind"`
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTemplateExportResources instantiates a new TemplateExportResources object
|
// NewTemplateExportResources instantiates a new TemplateExportResources object
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user