kb-cloud-client-typescript 2.4.0-alpha.136 → 2.4.0-alpha.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/account-api.d.ts +743 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +811 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +79 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +84 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/apis/influxdb-api.d.ts +791 -0
- package/dist/adminapi/apis/influxdb-api.d.ts.map +1 -0
- package/dist/adminapi/apis/influxdb-api.js +875 -0
- package/dist/adminapi/apis/influxdb-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +743 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +811 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +14 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +14 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/influx-dbbucket-permission.d.ts +37 -0
- package/dist/adminapi/models/influx-dbbucket-permission.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbbucket-permission.js +16 -0
- package/dist/adminapi/models/influx-dbbucket-permission.js.map +1 -0
- package/dist/adminapi/models/influx-dbbucket.d.ts +43 -0
- package/dist/adminapi/models/influx-dbbucket.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbbucket.js +16 -0
- package/dist/adminapi/models/influx-dbbucket.js.map +1 -0
- package/dist/adminapi/models/influx-dborganization.d.ts +31 -0
- package/dist/adminapi/models/influx-dborganization.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dborganization.js +16 -0
- package/dist/adminapi/models/influx-dborganization.js.map +1 -0
- package/dist/adminapi/models/influx-dbpassword-change.d.ts +25 -0
- package/dist/adminapi/models/influx-dbpassword-change.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbpassword-change.js +16 -0
- package/dist/adminapi/models/influx-dbpassword-change.js.map +1 -0
- package/dist/adminapi/models/influx-dbpermission-action.d.ts +22 -0
- package/dist/adminapi/models/influx-dbpermission-action.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbpermission-action.js +26 -0
- package/dist/adminapi/models/influx-dbpermission-action.js.map +1 -0
- package/dist/adminapi/models/influx-dbpermission.d.ts +33 -0
- package/dist/adminapi/models/influx-dbpermission.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbpermission.js +16 -0
- package/dist/adminapi/models/influx-dbpermission.js.map +1 -0
- package/dist/adminapi/models/influx-dbresource.d.ts +37 -0
- package/dist/adminapi/models/influx-dbresource.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbresource.js +16 -0
- package/dist/adminapi/models/influx-dbresource.js.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-create.d.ts +38 -0
- package/dist/adminapi/models/influx-dbtoken-create.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-create.js +16 -0
- package/dist/adminapi/models/influx-dbtoken-create.js.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-created.d.ts +69 -0
- package/dist/adminapi/models/influx-dbtoken-created.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-created.js +16 -0
- package/dist/adminapi/models/influx-dbtoken-created.js.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-status.d.ts +22 -0
- package/dist/adminapi/models/influx-dbtoken-status.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-status.js +26 -0
- package/dist/adminapi/models/influx-dbtoken-status.js.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-update.d.ts +26 -0
- package/dist/adminapi/models/influx-dbtoken-update.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbtoken-update.js +16 -0
- package/dist/adminapi/models/influx-dbtoken-update.js.map +1 -0
- package/dist/adminapi/models/influx-dbtoken.d.ts +63 -0
- package/dist/adminapi/models/influx-dbtoken.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbtoken.js +16 -0
- package/dist/adminapi/models/influx-dbtoken.js.map +1 -0
- package/dist/adminapi/models/influx-dbuser-create.d.ts +31 -0
- package/dist/adminapi/models/influx-dbuser-create.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbuser-create.js +16 -0
- package/dist/adminapi/models/influx-dbuser-create.js.map +1 -0
- package/dist/adminapi/models/influx-dbuser.d.ts +43 -0
- package/dist/adminapi/models/influx-dbuser.d.ts.map +1 -0
- package/dist/adminapi/models/influx-dbuser.js +16 -0
- package/dist/adminapi/models/influx-dbuser.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/account-api.d.ts +743 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +811 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +79 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +84 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/apis/influxdb-api.d.ts +791 -0
- package/dist/openapi/apis/influxdb-api.d.ts.map +1 -0
- package/dist/openapi/apis/influxdb-api.js +875 -0
- package/dist/openapi/apis/influxdb-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +743 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +811 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +14 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +14 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/influx-dbbucket-permission.d.ts +37 -0
- package/dist/openapi/models/influx-dbbucket-permission.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbbucket-permission.js +16 -0
- package/dist/openapi/models/influx-dbbucket-permission.js.map +1 -0
- package/dist/openapi/models/influx-dbbucket.d.ts +43 -0
- package/dist/openapi/models/influx-dbbucket.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbbucket.js +16 -0
- package/dist/openapi/models/influx-dbbucket.js.map +1 -0
- package/dist/openapi/models/influx-dborganization.d.ts +31 -0
- package/dist/openapi/models/influx-dborganization.d.ts.map +1 -0
- package/dist/openapi/models/influx-dborganization.js +16 -0
- package/dist/openapi/models/influx-dborganization.js.map +1 -0
- package/dist/openapi/models/influx-dbpassword-change.d.ts +25 -0
- package/dist/openapi/models/influx-dbpassword-change.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbpassword-change.js +16 -0
- package/dist/openapi/models/influx-dbpassword-change.js.map +1 -0
- package/dist/openapi/models/influx-dbpermission-action.d.ts +22 -0
- package/dist/openapi/models/influx-dbpermission-action.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbpermission-action.js +26 -0
- package/dist/openapi/models/influx-dbpermission-action.js.map +1 -0
- package/dist/openapi/models/influx-dbpermission.d.ts +33 -0
- package/dist/openapi/models/influx-dbpermission.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbpermission.js +16 -0
- package/dist/openapi/models/influx-dbpermission.js.map +1 -0
- package/dist/openapi/models/influx-dbresource.d.ts +37 -0
- package/dist/openapi/models/influx-dbresource.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbresource.js +16 -0
- package/dist/openapi/models/influx-dbresource.js.map +1 -0
- package/dist/openapi/models/influx-dbtoken-create.d.ts +38 -0
- package/dist/openapi/models/influx-dbtoken-create.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbtoken-create.js +16 -0
- package/dist/openapi/models/influx-dbtoken-create.js.map +1 -0
- package/dist/openapi/models/influx-dbtoken-created.d.ts +69 -0
- package/dist/openapi/models/influx-dbtoken-created.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbtoken-created.js +16 -0
- package/dist/openapi/models/influx-dbtoken-created.js.map +1 -0
- package/dist/openapi/models/influx-dbtoken-status.d.ts +22 -0
- package/dist/openapi/models/influx-dbtoken-status.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbtoken-status.js +26 -0
- package/dist/openapi/models/influx-dbtoken-status.js.map +1 -0
- package/dist/openapi/models/influx-dbtoken-update.d.ts +26 -0
- package/dist/openapi/models/influx-dbtoken-update.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbtoken-update.js +16 -0
- package/dist/openapi/models/influx-dbtoken-update.js.map +1 -0
- package/dist/openapi/models/influx-dbtoken.d.ts +63 -0
- package/dist/openapi/models/influx-dbtoken.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbtoken.js +16 -0
- package/dist/openapi/models/influx-dbtoken.js.map +1 -0
- package/dist/openapi/models/influx-dbuser-create.d.ts +31 -0
- package/dist/openapi/models/influx-dbuser-create.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbuser-create.js +16 -0
- package/dist/openapi/models/influx-dbuser-create.js.map +1 -0
- package/dist/openapi/models/influx-dbuser.d.ts +43 -0
- package/dist/openapi/models/influx-dbuser.d.ts.map +1 -0
- package/dist/openapi/models/influx-dbuser.js +16 -0
- package/dist/openapi/models/influx-dbuser.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +15 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/account-api.ts +2360 -1055
- package/src/adminapi/apis/diagnostics-api.ts +138 -0
- package/src/adminapi/apis/influxdb-api.ts +1375 -0
- package/src/adminapi/apis/shared-api.ts +1523 -218
- package/src/adminapi/models/index.ts +14 -0
- package/src/adminapi/models/influx-dbbucket-permission.ts +42 -0
- package/src/adminapi/models/influx-dbbucket.ts +48 -0
- package/src/adminapi/models/influx-dborganization.ts +36 -0
- package/src/adminapi/models/influx-dbpassword-change.ts +30 -0
- package/src/adminapi/models/influx-dbpermission-action.ts +31 -0
- package/src/adminapi/models/influx-dbpermission.ts +44 -0
- package/src/adminapi/models/influx-dbresource.ts +42 -0
- package/src/adminapi/models/influx-dbtoken-create.ts +45 -0
- package/src/adminapi/models/influx-dbtoken-created.ts +80 -0
- package/src/adminapi/models/influx-dbtoken-status.ts +31 -0
- package/src/adminapi/models/influx-dbtoken-update.ts +35 -0
- package/src/adminapi/models/influx-dbtoken.ts +74 -0
- package/src/adminapi/models/influx-dbuser-create.ts +36 -0
- package/src/adminapi/models/influx-dbuser.ts +48 -0
- package/src/adminapi.yaml +704 -15
- package/src/openapi/.openapi-generator/FILES +15 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/account-api.ts +2360 -1055
- package/src/openapi/apis/diagnostics-api.ts +138 -0
- package/src/openapi/apis/influxdb-api.ts +1375 -0
- package/src/openapi/apis/shared-api.ts +1557 -252
- package/src/openapi/models/index.ts +14 -0
- package/src/openapi/models/influx-dbbucket-permission.ts +42 -0
- package/src/openapi/models/influx-dbbucket.ts +48 -0
- package/src/openapi/models/influx-dborganization.ts +36 -0
- package/src/openapi/models/influx-dbpassword-change.ts +30 -0
- package/src/openapi/models/influx-dbpermission-action.ts +31 -0
- package/src/openapi/models/influx-dbpermission.ts +44 -0
- package/src/openapi/models/influx-dbresource.ts +42 -0
- package/src/openapi/models/influx-dbtoken-create.ts +45 -0
- package/src/openapi/models/influx-dbtoken-created.ts +80 -0
- package/src/openapi/models/influx-dbtoken-status.ts +31 -0
- package/src/openapi/models/influx-dbtoken-update.ts +35 -0
- package/src/openapi/models/influx-dbtoken.ts +74 -0
- package/src/openapi/models/influx-dbuser-create.ts +36 -0
- package/src/openapi/models/influx-dbuser.ts +48 -0
- package/src/openapi.yaml +704 -15
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Admin API
|
|
6
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@apecloud.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.InfluxdbApi = exports.InfluxdbApiFactory = exports.InfluxdbApiFp = exports.InfluxdbApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* InfluxdbApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const InfluxdbApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary InfluxDB ChangePassword
|
|
35
|
+
* @param {string} orgName
|
|
36
|
+
* @param {string} clusterName
|
|
37
|
+
* @param {string} userID
|
|
38
|
+
* @param {InfluxDBPasswordChange} influxDBPasswordChange
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
influxDBChangePassword: async (orgName, clusterName, userID, influxDBPasswordChange, options = {}) => {
|
|
43
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
44
|
+
(0, common_1.assertParamExists)('influxDBChangePassword', 'orgName', orgName);
|
|
45
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('influxDBChangePassword', 'clusterName', clusterName);
|
|
47
|
+
// verify required parameter 'userID' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('influxDBChangePassword', 'userID', userID);
|
|
49
|
+
// verify required parameter 'influxDBPasswordChange' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('influxDBChangePassword', 'influxDBPasswordChange', influxDBPasswordChange);
|
|
51
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/password`
|
|
52
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
53
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
54
|
+
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication BearerToken required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
67
|
+
// authentication DigestAuth required
|
|
68
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
69
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
70
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(influxDBPasswordChange, localVarRequestOptions, configuration);
|
|
74
|
+
return {
|
|
75
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @summary InfluxDB CreateToken
|
|
82
|
+
* @param {string} orgName
|
|
83
|
+
* @param {string} clusterName
|
|
84
|
+
* @param {string} userID
|
|
85
|
+
* @param {InfluxDBTokenCreate} influxDBTokenCreate
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
influxDBCreateToken: async (orgName, clusterName, userID, influxDBTokenCreate, options = {}) => {
|
|
90
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
91
|
+
(0, common_1.assertParamExists)('influxDBCreateToken', 'orgName', orgName);
|
|
92
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
93
|
+
(0, common_1.assertParamExists)('influxDBCreateToken', 'clusterName', clusterName);
|
|
94
|
+
// verify required parameter 'userID' is not null or undefined
|
|
95
|
+
(0, common_1.assertParamExists)('influxDBCreateToken', 'userID', userID);
|
|
96
|
+
// verify required parameter 'influxDBTokenCreate' is not null or undefined
|
|
97
|
+
(0, common_1.assertParamExists)('influxDBCreateToken', 'influxDBTokenCreate', influxDBTokenCreate);
|
|
98
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/tokens`
|
|
99
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
100
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
101
|
+
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
}
|
|
108
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
109
|
+
const localVarHeaderParameter = {};
|
|
110
|
+
const localVarQueryParameter = {};
|
|
111
|
+
// authentication BearerToken required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
114
|
+
// authentication DigestAuth required
|
|
115
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
116
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
117
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
120
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(influxDBTokenCreate, localVarRequestOptions, configuration);
|
|
121
|
+
return {
|
|
122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @summary InfluxDB CreateUser
|
|
129
|
+
* @param {string} orgName
|
|
130
|
+
* @param {string} clusterName
|
|
131
|
+
* @param {InfluxDBUserCreate} influxDBUserCreate
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
influxDBCreateUser: async (orgName, clusterName, influxDBUserCreate, options = {}) => {
|
|
136
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('influxDBCreateUser', 'orgName', orgName);
|
|
138
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
139
|
+
(0, common_1.assertParamExists)('influxDBCreateUser', 'clusterName', clusterName);
|
|
140
|
+
// verify required parameter 'influxDBUserCreate' is not null or undefined
|
|
141
|
+
(0, common_1.assertParamExists)('influxDBCreateUser', 'influxDBUserCreate', influxDBUserCreate);
|
|
142
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
143
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
144
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
if (configuration) {
|
|
149
|
+
baseOptions = configuration.baseOptions;
|
|
150
|
+
}
|
|
151
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
152
|
+
const localVarHeaderParameter = {};
|
|
153
|
+
const localVarQueryParameter = {};
|
|
154
|
+
// authentication BearerToken required
|
|
155
|
+
// http bearer authentication required
|
|
156
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
157
|
+
// authentication DigestAuth required
|
|
158
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
159
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
160
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
161
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
162
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
163
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(influxDBUserCreate, localVarRequestOptions, configuration);
|
|
164
|
+
return {
|
|
165
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @summary InfluxDB DeleteToken
|
|
172
|
+
* @param {string} orgName
|
|
173
|
+
* @param {string} clusterName
|
|
174
|
+
* @param {string} userID
|
|
175
|
+
* @param {string} tokenID
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
influxDBDeleteToken: async (orgName, clusterName, userID, tokenID, options = {}) => {
|
|
180
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
181
|
+
(0, common_1.assertParamExists)('influxDBDeleteToken', 'orgName', orgName);
|
|
182
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
183
|
+
(0, common_1.assertParamExists)('influxDBDeleteToken', 'clusterName', clusterName);
|
|
184
|
+
// verify required parameter 'userID' is not null or undefined
|
|
185
|
+
(0, common_1.assertParamExists)('influxDBDeleteToken', 'userID', userID);
|
|
186
|
+
// verify required parameter 'tokenID' is not null or undefined
|
|
187
|
+
(0, common_1.assertParamExists)('influxDBDeleteToken', 'tokenID', tokenID);
|
|
188
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/tokens/{tokenID}`
|
|
189
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
190
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
191
|
+
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)))
|
|
192
|
+
.replace(`{${"tokenID"}}`, encodeURIComponent(String(tokenID)));
|
|
193
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
194
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
195
|
+
let baseOptions;
|
|
196
|
+
if (configuration) {
|
|
197
|
+
baseOptions = configuration.baseOptions;
|
|
198
|
+
}
|
|
199
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
200
|
+
const localVarHeaderParameter = {};
|
|
201
|
+
const localVarQueryParameter = {};
|
|
202
|
+
// authentication BearerToken required
|
|
203
|
+
// http bearer authentication required
|
|
204
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
205
|
+
// authentication DigestAuth required
|
|
206
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
210
|
+
return {
|
|
211
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
212
|
+
options: localVarRequestOptions,
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @summary InfluxDB DeleteUser
|
|
218
|
+
* @param {string} orgName
|
|
219
|
+
* @param {string} clusterName
|
|
220
|
+
* @param {string} userID
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
influxDBDeleteUser: async (orgName, clusterName, userID, options = {}) => {
|
|
225
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
226
|
+
(0, common_1.assertParamExists)('influxDBDeleteUser', 'orgName', orgName);
|
|
227
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
228
|
+
(0, common_1.assertParamExists)('influxDBDeleteUser', 'clusterName', clusterName);
|
|
229
|
+
// verify required parameter 'userID' is not null or undefined
|
|
230
|
+
(0, common_1.assertParamExists)('influxDBDeleteUser', 'userID', userID);
|
|
231
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}`
|
|
232
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
233
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
234
|
+
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
235
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
236
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
237
|
+
let baseOptions;
|
|
238
|
+
if (configuration) {
|
|
239
|
+
baseOptions = configuration.baseOptions;
|
|
240
|
+
}
|
|
241
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
242
|
+
const localVarHeaderParameter = {};
|
|
243
|
+
const localVarQueryParameter = {};
|
|
244
|
+
// authentication BearerToken required
|
|
245
|
+
// http bearer authentication required
|
|
246
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
247
|
+
// authentication DigestAuth required
|
|
248
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
249
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
252
|
+
return {
|
|
253
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary InfluxDB ListBuckets
|
|
260
|
+
* @param {string} orgName
|
|
261
|
+
* @param {string} clusterName
|
|
262
|
+
* @param {string} influxOrgID
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
influxDBListBuckets: async (orgName, clusterName, influxOrgID, options = {}) => {
|
|
267
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
268
|
+
(0, common_1.assertParamExists)('influxDBListBuckets', 'orgName', orgName);
|
|
269
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('influxDBListBuckets', 'clusterName', clusterName);
|
|
271
|
+
// verify required parameter 'influxOrgID' is not null or undefined
|
|
272
|
+
(0, common_1.assertParamExists)('influxDBListBuckets', 'influxOrgID', influxOrgID);
|
|
273
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/buckets`
|
|
274
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
275
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
277
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
278
|
+
let baseOptions;
|
|
279
|
+
if (configuration) {
|
|
280
|
+
baseOptions = configuration.baseOptions;
|
|
281
|
+
}
|
|
282
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
283
|
+
const localVarHeaderParameter = {};
|
|
284
|
+
const localVarQueryParameter = {};
|
|
285
|
+
// authentication BearerToken required
|
|
286
|
+
// http bearer authentication required
|
|
287
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
288
|
+
// authentication DigestAuth required
|
|
289
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
290
|
+
if (influxOrgID !== undefined) {
|
|
291
|
+
localVarQueryParameter['influxOrgID'] = influxOrgID;
|
|
292
|
+
}
|
|
293
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
294
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
296
|
+
return {
|
|
297
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary InfluxDB ListOrganizations
|
|
304
|
+
* @param {string} orgName
|
|
305
|
+
* @param {string} clusterName
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
influxDBListOrganizations: async (orgName, clusterName, options = {}) => {
|
|
310
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('influxDBListOrganizations', 'orgName', orgName);
|
|
312
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
313
|
+
(0, common_1.assertParamExists)('influxDBListOrganizations', 'clusterName', clusterName);
|
|
314
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/organizations`
|
|
315
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
316
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
}
|
|
323
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
324
|
+
const localVarHeaderParameter = {};
|
|
325
|
+
const localVarQueryParameter = {};
|
|
326
|
+
// authentication BearerToken required
|
|
327
|
+
// http bearer authentication required
|
|
328
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
329
|
+
// authentication DigestAuth required
|
|
330
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
331
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
334
|
+
return {
|
|
335
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
336
|
+
options: localVarRequestOptions,
|
|
337
|
+
};
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary InfluxDB ListTokens
|
|
342
|
+
* @param {string} orgName
|
|
343
|
+
* @param {string} clusterName
|
|
344
|
+
* @param {string} userID
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
influxDBListTokens: async (orgName, clusterName, userID, options = {}) => {
|
|
349
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
350
|
+
(0, common_1.assertParamExists)('influxDBListTokens', 'orgName', orgName);
|
|
351
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
352
|
+
(0, common_1.assertParamExists)('influxDBListTokens', 'clusterName', clusterName);
|
|
353
|
+
// verify required parameter 'userID' is not null or undefined
|
|
354
|
+
(0, common_1.assertParamExists)('influxDBListTokens', 'userID', userID);
|
|
355
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/tokens`
|
|
356
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
357
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
358
|
+
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
359
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
360
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
361
|
+
let baseOptions;
|
|
362
|
+
if (configuration) {
|
|
363
|
+
baseOptions = configuration.baseOptions;
|
|
364
|
+
}
|
|
365
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
366
|
+
const localVarHeaderParameter = {};
|
|
367
|
+
const localVarQueryParameter = {};
|
|
368
|
+
// authentication BearerToken required
|
|
369
|
+
// http bearer authentication required
|
|
370
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
371
|
+
// authentication DigestAuth required
|
|
372
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
373
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
+
return {
|
|
377
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
378
|
+
options: localVarRequestOptions,
|
|
379
|
+
};
|
|
380
|
+
},
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @summary InfluxDB ListUsers
|
|
384
|
+
* @param {string} orgName
|
|
385
|
+
* @param {string} clusterName
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
*/
|
|
389
|
+
influxDBListUsers: async (orgName, clusterName, options = {}) => {
|
|
390
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
391
|
+
(0, common_1.assertParamExists)('influxDBListUsers', 'orgName', orgName);
|
|
392
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
393
|
+
(0, common_1.assertParamExists)('influxDBListUsers', 'clusterName', clusterName);
|
|
394
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
395
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
396
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
397
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
398
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
399
|
+
let baseOptions;
|
|
400
|
+
if (configuration) {
|
|
401
|
+
baseOptions = configuration.baseOptions;
|
|
402
|
+
}
|
|
403
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
404
|
+
const localVarHeaderParameter = {};
|
|
405
|
+
const localVarQueryParameter = {};
|
|
406
|
+
// authentication BearerToken required
|
|
407
|
+
// http bearer authentication required
|
|
408
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
409
|
+
// authentication DigestAuth required
|
|
410
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
411
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
412
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
413
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
414
|
+
return {
|
|
415
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
416
|
+
options: localVarRequestOptions,
|
|
417
|
+
};
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @summary InfluxDB UpdateToken
|
|
422
|
+
* @param {string} orgName
|
|
423
|
+
* @param {string} clusterName
|
|
424
|
+
* @param {string} userID
|
|
425
|
+
* @param {string} tokenID
|
|
426
|
+
* @param {InfluxDBTokenUpdate} influxDBTokenUpdate
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
influxDBUpdateToken: async (orgName, clusterName, userID, tokenID, influxDBTokenUpdate, options = {}) => {
|
|
431
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
432
|
+
(0, common_1.assertParamExists)('influxDBUpdateToken', 'orgName', orgName);
|
|
433
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
434
|
+
(0, common_1.assertParamExists)('influxDBUpdateToken', 'clusterName', clusterName);
|
|
435
|
+
// verify required parameter 'userID' is not null or undefined
|
|
436
|
+
(0, common_1.assertParamExists)('influxDBUpdateToken', 'userID', userID);
|
|
437
|
+
// verify required parameter 'tokenID' is not null or undefined
|
|
438
|
+
(0, common_1.assertParamExists)('influxDBUpdateToken', 'tokenID', tokenID);
|
|
439
|
+
// verify required parameter 'influxDBTokenUpdate' is not null or undefined
|
|
440
|
+
(0, common_1.assertParamExists)('influxDBUpdateToken', 'influxDBTokenUpdate', influxDBTokenUpdate);
|
|
441
|
+
const localVarPath = `/admin/v1/data/influxdb/organizations/{orgName}/clusters/{clusterName}/accounts/{userID}/tokens/{tokenID}`
|
|
442
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
443
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
444
|
+
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)))
|
|
445
|
+
.replace(`{${"tokenID"}}`, encodeURIComponent(String(tokenID)));
|
|
446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
447
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
448
|
+
let baseOptions;
|
|
449
|
+
if (configuration) {
|
|
450
|
+
baseOptions = configuration.baseOptions;
|
|
451
|
+
}
|
|
452
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
453
|
+
const localVarHeaderParameter = {};
|
|
454
|
+
const localVarQueryParameter = {};
|
|
455
|
+
// authentication BearerToken required
|
|
456
|
+
// http bearer authentication required
|
|
457
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
458
|
+
// authentication DigestAuth required
|
|
459
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
461
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
463
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
464
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(influxDBTokenUpdate, localVarRequestOptions, configuration);
|
|
465
|
+
return {
|
|
466
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
467
|
+
options: localVarRequestOptions,
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
exports.InfluxdbApiAxiosParamCreator = InfluxdbApiAxiosParamCreator;
|
|
473
|
+
/**
|
|
474
|
+
* InfluxdbApi - functional programming interface
|
|
475
|
+
* @export
|
|
476
|
+
*/
|
|
477
|
+
const InfluxdbApiFp = function (configuration) {
|
|
478
|
+
const localVarAxiosParamCreator = (0, exports.InfluxdbApiAxiosParamCreator)(configuration);
|
|
479
|
+
return {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @summary InfluxDB ChangePassword
|
|
483
|
+
* @param {string} orgName
|
|
484
|
+
* @param {string} clusterName
|
|
485
|
+
* @param {string} userID
|
|
486
|
+
* @param {InfluxDBPasswordChange} influxDBPasswordChange
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
async influxDBChangePassword(orgName, clusterName, userID, influxDBPasswordChange, options) {
|
|
491
|
+
var _a, _b, _c;
|
|
492
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBChangePassword(orgName, clusterName, userID, influxDBPasswordChange, options);
|
|
493
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
494
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
495
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @summary InfluxDB CreateToken
|
|
500
|
+
* @param {string} orgName
|
|
501
|
+
* @param {string} clusterName
|
|
502
|
+
* @param {string} userID
|
|
503
|
+
* @param {InfluxDBTokenCreate} influxDBTokenCreate
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
async influxDBCreateToken(orgName, clusterName, userID, influxDBTokenCreate, options) {
|
|
508
|
+
var _a, _b, _c;
|
|
509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBCreateToken(orgName, clusterName, userID, influxDBTokenCreate, options);
|
|
510
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
511
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBCreateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
512
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @summary InfluxDB CreateUser
|
|
517
|
+
* @param {string} orgName
|
|
518
|
+
* @param {string} clusterName
|
|
519
|
+
* @param {InfluxDBUserCreate} influxDBUserCreate
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
async influxDBCreateUser(orgName, clusterName, influxDBUserCreate, options) {
|
|
524
|
+
var _a, _b, _c;
|
|
525
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBCreateUser(orgName, clusterName, influxDBUserCreate, options);
|
|
526
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
527
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBCreateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
528
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
529
|
+
},
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @summary InfluxDB DeleteToken
|
|
533
|
+
* @param {string} orgName
|
|
534
|
+
* @param {string} clusterName
|
|
535
|
+
* @param {string} userID
|
|
536
|
+
* @param {string} tokenID
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
async influxDBDeleteToken(orgName, clusterName, userID, tokenID, options) {
|
|
541
|
+
var _a, _b, _c;
|
|
542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBDeleteToken(orgName, clusterName, userID, tokenID, options);
|
|
543
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
544
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBDeleteToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
545
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
546
|
+
},
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @summary InfluxDB DeleteUser
|
|
550
|
+
* @param {string} orgName
|
|
551
|
+
* @param {string} clusterName
|
|
552
|
+
* @param {string} userID
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
async influxDBDeleteUser(orgName, clusterName, userID, options) {
|
|
557
|
+
var _a, _b, _c;
|
|
558
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBDeleteUser(orgName, clusterName, userID, options);
|
|
559
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
560
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBDeleteUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
561
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @summary InfluxDB ListBuckets
|
|
566
|
+
* @param {string} orgName
|
|
567
|
+
* @param {string} clusterName
|
|
568
|
+
* @param {string} influxOrgID
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
async influxDBListBuckets(orgName, clusterName, influxOrgID, options) {
|
|
573
|
+
var _a, _b, _c;
|
|
574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBListBuckets(orgName, clusterName, influxOrgID, options);
|
|
575
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
576
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBListBuckets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
577
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
578
|
+
},
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @summary InfluxDB ListOrganizations
|
|
582
|
+
* @param {string} orgName
|
|
583
|
+
* @param {string} clusterName
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
async influxDBListOrganizations(orgName, clusterName, options) {
|
|
588
|
+
var _a, _b, _c;
|
|
589
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBListOrganizations(orgName, clusterName, options);
|
|
590
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
591
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBListOrganizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
592
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
593
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @summary InfluxDB ListTokens
|
|
597
|
+
* @param {string} orgName
|
|
598
|
+
* @param {string} clusterName
|
|
599
|
+
* @param {string} userID
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
async influxDBListTokens(orgName, clusterName, userID, options) {
|
|
604
|
+
var _a, _b, _c;
|
|
605
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBListTokens(orgName, clusterName, userID, options);
|
|
606
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
607
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBListTokens']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
608
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @summary InfluxDB ListUsers
|
|
613
|
+
* @param {string} orgName
|
|
614
|
+
* @param {string} clusterName
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
async influxDBListUsers(orgName, clusterName, options) {
|
|
619
|
+
var _a, _b, _c;
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBListUsers(orgName, clusterName, options);
|
|
621
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
622
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBListUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
623
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @summary InfluxDB UpdateToken
|
|
628
|
+
* @param {string} orgName
|
|
629
|
+
* @param {string} clusterName
|
|
630
|
+
* @param {string} userID
|
|
631
|
+
* @param {string} tokenID
|
|
632
|
+
* @param {InfluxDBTokenUpdate} influxDBTokenUpdate
|
|
633
|
+
* @param {*} [options] Override http request option.
|
|
634
|
+
* @throws {RequiredError}
|
|
635
|
+
*/
|
|
636
|
+
async influxDBUpdateToken(orgName, clusterName, userID, tokenID, influxDBTokenUpdate, options) {
|
|
637
|
+
var _a, _b, _c;
|
|
638
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.influxDBUpdateToken(orgName, clusterName, userID, tokenID, influxDBTokenUpdate, options);
|
|
639
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
640
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InfluxdbApi.influxDBUpdateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
641
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
642
|
+
},
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
exports.InfluxdbApiFp = InfluxdbApiFp;
|
|
646
|
+
/**
|
|
647
|
+
* InfluxdbApi - factory interface
|
|
648
|
+
* @export
|
|
649
|
+
*/
|
|
650
|
+
const InfluxdbApiFactory = function (configuration, basePath, axios) {
|
|
651
|
+
const localVarFp = (0, exports.InfluxdbApiFp)(configuration);
|
|
652
|
+
return {
|
|
653
|
+
/**
|
|
654
|
+
*
|
|
655
|
+
* @summary InfluxDB ChangePassword
|
|
656
|
+
* @param {InfluxdbApiInfluxDBChangePasswordRequest} requestParameters Request parameters.
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
influxDBChangePassword(requestParameters, options) {
|
|
661
|
+
return localVarFp.influxDBChangePassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.influxDBPasswordChange, options).then((request) => request(axios, basePath));
|
|
662
|
+
},
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @summary InfluxDB CreateToken
|
|
666
|
+
* @param {InfluxdbApiInfluxDBCreateTokenRequest} requestParameters Request parameters.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
influxDBCreateToken(requestParameters, options) {
|
|
671
|
+
return localVarFp.influxDBCreateToken(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.influxDBTokenCreate, options).then((request) => request(axios, basePath));
|
|
672
|
+
},
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @summary InfluxDB CreateUser
|
|
676
|
+
* @param {InfluxdbApiInfluxDBCreateUserRequest} requestParameters Request parameters.
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
influxDBCreateUser(requestParameters, options) {
|
|
681
|
+
return localVarFp.influxDBCreateUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.influxDBUserCreate, options).then((request) => request(axios, basePath));
|
|
682
|
+
},
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @summary InfluxDB DeleteToken
|
|
686
|
+
* @param {InfluxdbApiInfluxDBDeleteTokenRequest} requestParameters Request parameters.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
influxDBDeleteToken(requestParameters, options) {
|
|
691
|
+
return localVarFp.influxDBDeleteToken(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.tokenID, options).then((request) => request(axios, basePath));
|
|
692
|
+
},
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @summary InfluxDB DeleteUser
|
|
696
|
+
* @param {InfluxdbApiInfluxDBDeleteUserRequest} requestParameters Request parameters.
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
influxDBDeleteUser(requestParameters, options) {
|
|
701
|
+
return localVarFp.influxDBDeleteUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, options).then((request) => request(axios, basePath));
|
|
702
|
+
},
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @summary InfluxDB ListBuckets
|
|
706
|
+
* @param {InfluxdbApiInfluxDBListBucketsRequest} requestParameters Request parameters.
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
*/
|
|
710
|
+
influxDBListBuckets(requestParameters, options) {
|
|
711
|
+
return localVarFp.influxDBListBuckets(requestParameters.orgName, requestParameters.clusterName, requestParameters.influxOrgID, options).then((request) => request(axios, basePath));
|
|
712
|
+
},
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @summary InfluxDB ListOrganizations
|
|
716
|
+
* @param {InfluxdbApiInfluxDBListOrganizationsRequest} requestParameters Request parameters.
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
*/
|
|
720
|
+
influxDBListOrganizations(requestParameters, options) {
|
|
721
|
+
return localVarFp.influxDBListOrganizations(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
722
|
+
},
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @summary InfluxDB ListTokens
|
|
726
|
+
* @param {InfluxdbApiInfluxDBListTokensRequest} requestParameters Request parameters.
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
influxDBListTokens(requestParameters, options) {
|
|
731
|
+
return localVarFp.influxDBListTokens(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, options).then((request) => request(axios, basePath));
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
*
|
|
735
|
+
* @summary InfluxDB ListUsers
|
|
736
|
+
* @param {InfluxdbApiInfluxDBListUsersRequest} requestParameters Request parameters.
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
influxDBListUsers(requestParameters, options) {
|
|
741
|
+
return localVarFp.influxDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
742
|
+
},
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @summary InfluxDB UpdateToken
|
|
746
|
+
* @param {InfluxdbApiInfluxDBUpdateTokenRequest} requestParameters Request parameters.
|
|
747
|
+
* @param {*} [options] Override http request option.
|
|
748
|
+
* @throws {RequiredError}
|
|
749
|
+
*/
|
|
750
|
+
influxDBUpdateToken(requestParameters, options) {
|
|
751
|
+
return localVarFp.influxDBUpdateToken(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.tokenID, requestParameters.influxDBTokenUpdate, options).then((request) => request(axios, basePath));
|
|
752
|
+
},
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
exports.InfluxdbApiFactory = InfluxdbApiFactory;
|
|
756
|
+
/**
|
|
757
|
+
* InfluxdbApi - object-oriented interface
|
|
758
|
+
* @export
|
|
759
|
+
* @class InfluxdbApi
|
|
760
|
+
* @extends {BaseAPI}
|
|
761
|
+
*/
|
|
762
|
+
class InfluxdbApi extends base_1.BaseAPI {
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @summary InfluxDB ChangePassword
|
|
766
|
+
* @param {InfluxdbApiInfluxDBChangePasswordRequest} requestParameters Request parameters.
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
* @memberof InfluxdbApi
|
|
770
|
+
*/
|
|
771
|
+
influxDBChangePassword(requestParameters, options) {
|
|
772
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBChangePassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.influxDBPasswordChange, options).then((request) => request(this.axios, this.basePath));
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @summary InfluxDB CreateToken
|
|
777
|
+
* @param {InfluxdbApiInfluxDBCreateTokenRequest} requestParameters Request parameters.
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
* @memberof InfluxdbApi
|
|
781
|
+
*/
|
|
782
|
+
influxDBCreateToken(requestParameters, options) {
|
|
783
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBCreateToken(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.influxDBTokenCreate, options).then((request) => request(this.axios, this.basePath));
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @summary InfluxDB CreateUser
|
|
788
|
+
* @param {InfluxdbApiInfluxDBCreateUserRequest} requestParameters Request parameters.
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
* @memberof InfluxdbApi
|
|
792
|
+
*/
|
|
793
|
+
influxDBCreateUser(requestParameters, options) {
|
|
794
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBCreateUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.influxDBUserCreate, options).then((request) => request(this.axios, this.basePath));
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @summary InfluxDB DeleteToken
|
|
799
|
+
* @param {InfluxdbApiInfluxDBDeleteTokenRequest} requestParameters Request parameters.
|
|
800
|
+
* @param {*} [options] Override http request option.
|
|
801
|
+
* @throws {RequiredError}
|
|
802
|
+
* @memberof InfluxdbApi
|
|
803
|
+
*/
|
|
804
|
+
influxDBDeleteToken(requestParameters, options) {
|
|
805
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBDeleteToken(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.tokenID, options).then((request) => request(this.axios, this.basePath));
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @summary InfluxDB DeleteUser
|
|
810
|
+
* @param {InfluxdbApiInfluxDBDeleteUserRequest} requestParameters Request parameters.
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
* @memberof InfluxdbApi
|
|
814
|
+
*/
|
|
815
|
+
influxDBDeleteUser(requestParameters, options) {
|
|
816
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBDeleteUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, options).then((request) => request(this.axios, this.basePath));
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @summary InfluxDB ListBuckets
|
|
821
|
+
* @param {InfluxdbApiInfluxDBListBucketsRequest} requestParameters Request parameters.
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
* @memberof InfluxdbApi
|
|
825
|
+
*/
|
|
826
|
+
influxDBListBuckets(requestParameters, options) {
|
|
827
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBListBuckets(requestParameters.orgName, requestParameters.clusterName, requestParameters.influxOrgID, options).then((request) => request(this.axios, this.basePath));
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
*
|
|
831
|
+
* @summary InfluxDB ListOrganizations
|
|
832
|
+
* @param {InfluxdbApiInfluxDBListOrganizationsRequest} requestParameters Request parameters.
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
* @memberof InfluxdbApi
|
|
836
|
+
*/
|
|
837
|
+
influxDBListOrganizations(requestParameters, options) {
|
|
838
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBListOrganizations(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
* @summary InfluxDB ListTokens
|
|
843
|
+
* @param {InfluxdbApiInfluxDBListTokensRequest} requestParameters Request parameters.
|
|
844
|
+
* @param {*} [options] Override http request option.
|
|
845
|
+
* @throws {RequiredError}
|
|
846
|
+
* @memberof InfluxdbApi
|
|
847
|
+
*/
|
|
848
|
+
influxDBListTokens(requestParameters, options) {
|
|
849
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBListTokens(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, options).then((request) => request(this.axios, this.basePath));
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @summary InfluxDB ListUsers
|
|
854
|
+
* @param {InfluxdbApiInfluxDBListUsersRequest} requestParameters Request parameters.
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
* @memberof InfluxdbApi
|
|
858
|
+
*/
|
|
859
|
+
influxDBListUsers(requestParameters, options) {
|
|
860
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @summary InfluxDB UpdateToken
|
|
865
|
+
* @param {InfluxdbApiInfluxDBUpdateTokenRequest} requestParameters Request parameters.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
* @memberof InfluxdbApi
|
|
869
|
+
*/
|
|
870
|
+
influxDBUpdateToken(requestParameters, options) {
|
|
871
|
+
return (0, exports.InfluxdbApiFp)(this.configuration).influxDBUpdateToken(requestParameters.orgName, requestParameters.clusterName, requestParameters.userID, requestParameters.tokenID, requestParameters.influxDBTokenUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
exports.InfluxdbApi = InfluxdbApi;
|
|
875
|
+
//# sourceMappingURL=influxdb-api.js.map
|