// tslint:disable
///
/**
* Influx API Service
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as url from "url";
import { Configuration } from "./configuration";
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
const BASE_PATH = "https://raw.githubusercontent.com/api/v2".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: any;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}
/**
* contains the AST for the supplied Flux query
* @export
* @interface ASTResponse
*/
export interface ASTResponse {
/**
*
* @type {Package}
* @memberof ASTResponse
*/
ast?: Package;
}
/**
*
* @export
* @interface AddResourceMemberRequestBody
*/
export interface AddResourceMemberRequestBody {
/**
*
* @type {string}
* @memberof AddResourceMemberRequestBody
*/
id: string;
/**
*
* @type {string}
* @memberof AddResourceMemberRequestBody
*/
name?: string;
}
/**
*
* @export
* @interface AnalyzeQueryResponse
*/
export interface AnalyzeQueryResponse {
/**
*
* @type {Array}
* @memberof AnalyzeQueryResponse
*/
errors?: Array;
}
/**
*
* @export
* @interface AnalyzeQueryResponseErrors
*/
export interface AnalyzeQueryResponseErrors {
/**
*
* @type {number}
* @memberof AnalyzeQueryResponseErrors
*/
line?: number;
/**
*
* @type {number}
* @memberof AnalyzeQueryResponseErrors
*/
column?: number;
/**
*
* @type {number}
* @memberof AnalyzeQueryResponseErrors
*/
character?: number;
/**
*
* @type {string}
* @memberof AnalyzeQueryResponseErrors
*/
message?: string;
}
/**
* used to create and directly specify the elements of an array object
* @export
* @interface ArrayExpression
*/
export interface ArrayExpression {
/**
* type of AST node
* @type {string}
* @memberof ArrayExpression
*/
type?: string;
/**
* elements of the array
* @type {Array}
* @memberof ArrayExpression
*/
elements?: Array;
}
/**
*
* @export
* @interface Authorization
*/
export interface Authorization extends AuthorizationUpdateRequest {
/**
* ID of org that authorization is scoped to.
* @type {string}
* @memberof Authorization
*/
orgID?: string;
/**
* List of permissions for an auth. An auth must have at least one Permission.
* @type {Array}
* @memberof Authorization
*/
permissions?: Array;
/**
*
* @type {string}
* @memberof Authorization
*/
id?: string;
/**
* Passed via the Authorization Header and Token Authentication type.
* @type {string}
* @memberof Authorization
*/
token?: string;
/**
* ID of user that created and owns the token.
* @type {string}
* @memberof Authorization
*/
userID?: string;
/**
* Name of user that created and owns the token.
* @type {string}
* @memberof Authorization
*/
user?: string;
/**
* Name of the org token is scoped to.
* @type {string}
* @memberof Authorization
*/
org?: string;
/**
*
* @type {any}
* @memberof Authorization
*/
links?: any;
}
/**
* @export
* @namespace Authorization
*/
export namespace Authorization {
}
/**
*
* @export
* @interface AuthorizationUpdateRequest
*/
export interface AuthorizationUpdateRequest {
/**
* if inactive the token is inactive and requests using the token will be rejected.
* @type {string}
* @memberof AuthorizationUpdateRequest
*/
status?: AuthorizationUpdateRequest.StatusEnum;
/**
* A description of the token.
* @type {string}
* @memberof AuthorizationUpdateRequest
*/
description?: string;
}
/**
* @export
* @namespace AuthorizationUpdateRequest
*/
export namespace AuthorizationUpdateRequest {
/**
* @export
* @enum {string}
*/
export enum StatusEnum {
Active = 'active',
Inactive = 'inactive'
}
}
/**
*
* @export
* @interface Authorizations
*/
export interface Authorizations {
/**
*
* @type {Links}
* @memberof Authorizations
*/
links?: Links;
/**
*
* @type {Array}
* @memberof Authorizations
*/
authorizations?: Array;
}
/**
* The viewport for a View's visualizations
* @export
* @interface Axes
*/
export interface Axes {
/**
*
* @type {Axis}
* @memberof Axes
*/
x?: Axis;
/**
*
* @type {Axis}
* @memberof Axes
*/
y?: Axis;
/**
*
* @type {Axis}
* @memberof Axes
*/
y2?: Axis;
}
/**
* A description of a particular axis for a visualization
* @export
* @interface Axis
*/
export interface Axis {
/**
* The extents of an axis in the form [lower, upper]. Clients determine whether bounds are to be inclusive or exclusive of their limits
* @type {Array}
* @memberof Axis
*/
bounds?: Array;
/**
* label is a description of this Axis
* @type {string}
* @memberof Axis
*/
label?: string;
/**
* Prefix represents a label prefix for formatting axis values.
* @type {string}
* @memberof Axis
*/
prefix?: string;
/**
* Suffix represents a label suffix for formatting axis values.
* @type {string}
* @memberof Axis
*/
suffix?: string;
/**
* Base represents the radix for formatting axis values.
* @type {string}
* @memberof Axis
*/
base?: string;
/**
*
* @type {AxisScaleType}
* @memberof Axis
*/
scale?: AxisScaleType;
}
/**
* Scale is the axis formatting scale. Supported: \"log\", \"linear\"
* @export
* @enum {string}
*/
export enum AxisScaleType {
Log = 'log',
Linear = 'linear'
}
/**
* a placeholder for statements for which no correct statement nodes can be created
* @export
* @interface BadStatement
*/
export interface BadStatement {
/**
* type of AST node
* @type {string}
* @memberof BadStatement
*/
type?: string;
/**
* raw source text
* @type {string}
* @memberof BadStatement
*/
text?: string;
}
/**
* uses binary operators to act on two operands in an expression
* @export
* @interface BinaryExpression
*/
export interface BinaryExpression {
/**
* type of AST node
* @type {string}
* @memberof BinaryExpression
*/
type?: string;
/**
*
* @type {string}
* @memberof BinaryExpression
*/
operator?: string;
/**
*
* @type {Expression}
* @memberof BinaryExpression
*/
left?: Expression;
/**
*
* @type {Expression}
* @memberof BinaryExpression
*/
right?: Expression;
}
/**
* a set of statements
* @export
* @interface Block
*/
export interface Block {
/**
* type of AST node
* @type {string}
* @memberof Block
*/
type?: string;
/**
* block body
* @type {Array}
* @memberof Block
*/
body?: Array;
}
/**
* represents boolean values
* @export
* @interface BooleanLiteral
*/
export interface BooleanLiteral {
/**
* type of AST node
* @type {string}
* @memberof BooleanLiteral
*/
type?: string;
/**
*
* @type {boolean}
* @memberof BooleanLiteral
*/
value?: boolean;
}
/**
*
* @export
* @interface Bucket
*/
export interface Bucket {
/**
*
* @type {BucketLinks}
* @memberof Bucket
*/
links?: BucketLinks;
/**
*
* @type {string}
* @memberof Bucket
*/
id?: string;
/**
*
* @type {string}
* @memberof Bucket
*/
name: string;
/**
*
* @type {string}
* @memberof Bucket
*/
description?: string;
/**
*
* @type {string}
* @memberof Bucket
*/
orgID?: string;
/**
*
* @type {string}
* @memberof Bucket
*/
rp?: string;
/**
*
* @type {Date}
* @memberof Bucket
*/
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Bucket
*/
updatedAt?: Date;
/**
* rules to expire or retain data. No rules means data never expires.
* @type {Array}
* @memberof Bucket
*/
retentionRules: Array;
/**
*
* @type {Array