kb-cloud-client-typescript 2.4.0-alpha.136 → 2.4.0-alpha.138

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.
Files changed (205) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/account-api.d.ts +743 -0
  6. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/account-api.js +811 -0
  8. package/dist/adminapi/apis/account-api.js.map +1 -1
  9. package/dist/adminapi/apis/diagnostics-api.d.ts +79 -0
  10. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/diagnostics-api.js +84 -0
  12. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  13. package/dist/adminapi/apis/influxdb-api.d.ts +791 -0
  14. package/dist/adminapi/apis/influxdb-api.d.ts.map +1 -0
  15. package/dist/adminapi/apis/influxdb-api.js +875 -0
  16. package/dist/adminapi/apis/influxdb-api.js.map +1 -0
  17. package/dist/adminapi/apis/shared-api.d.ts +743 -0
  18. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  19. package/dist/adminapi/apis/shared-api.js +811 -0
  20. package/dist/adminapi/apis/shared-api.js.map +1 -1
  21. package/dist/adminapi/models/index.d.ts +14 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +14 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/influx-dbbucket-permission.d.ts +37 -0
  26. package/dist/adminapi/models/influx-dbbucket-permission.d.ts.map +1 -0
  27. package/dist/adminapi/models/influx-dbbucket-permission.js +16 -0
  28. package/dist/adminapi/models/influx-dbbucket-permission.js.map +1 -0
  29. package/dist/adminapi/models/influx-dbbucket.d.ts +43 -0
  30. package/dist/adminapi/models/influx-dbbucket.d.ts.map +1 -0
  31. package/dist/adminapi/models/influx-dbbucket.js +16 -0
  32. package/dist/adminapi/models/influx-dbbucket.js.map +1 -0
  33. package/dist/adminapi/models/influx-dborganization.d.ts +31 -0
  34. package/dist/adminapi/models/influx-dborganization.d.ts.map +1 -0
  35. package/dist/adminapi/models/influx-dborganization.js +16 -0
  36. package/dist/adminapi/models/influx-dborganization.js.map +1 -0
  37. package/dist/adminapi/models/influx-dbpassword-change.d.ts +25 -0
  38. package/dist/adminapi/models/influx-dbpassword-change.d.ts.map +1 -0
  39. package/dist/adminapi/models/influx-dbpassword-change.js +16 -0
  40. package/dist/adminapi/models/influx-dbpassword-change.js.map +1 -0
  41. package/dist/adminapi/models/influx-dbpermission-action.d.ts +22 -0
  42. package/dist/adminapi/models/influx-dbpermission-action.d.ts.map +1 -0
  43. package/dist/adminapi/models/influx-dbpermission-action.js +26 -0
  44. package/dist/adminapi/models/influx-dbpermission-action.js.map +1 -0
  45. package/dist/adminapi/models/influx-dbpermission.d.ts +33 -0
  46. package/dist/adminapi/models/influx-dbpermission.d.ts.map +1 -0
  47. package/dist/adminapi/models/influx-dbpermission.js +16 -0
  48. package/dist/adminapi/models/influx-dbpermission.js.map +1 -0
  49. package/dist/adminapi/models/influx-dbresource.d.ts +37 -0
  50. package/dist/adminapi/models/influx-dbresource.d.ts.map +1 -0
  51. package/dist/adminapi/models/influx-dbresource.js +16 -0
  52. package/dist/adminapi/models/influx-dbresource.js.map +1 -0
  53. package/dist/adminapi/models/influx-dbtoken-create.d.ts +38 -0
  54. package/dist/adminapi/models/influx-dbtoken-create.d.ts.map +1 -0
  55. package/dist/adminapi/models/influx-dbtoken-create.js +16 -0
  56. package/dist/adminapi/models/influx-dbtoken-create.js.map +1 -0
  57. package/dist/adminapi/models/influx-dbtoken-created.d.ts +69 -0
  58. package/dist/adminapi/models/influx-dbtoken-created.d.ts.map +1 -0
  59. package/dist/adminapi/models/influx-dbtoken-created.js +16 -0
  60. package/dist/adminapi/models/influx-dbtoken-created.js.map +1 -0
  61. package/dist/adminapi/models/influx-dbtoken-status.d.ts +22 -0
  62. package/dist/adminapi/models/influx-dbtoken-status.d.ts.map +1 -0
  63. package/dist/adminapi/models/influx-dbtoken-status.js +26 -0
  64. package/dist/adminapi/models/influx-dbtoken-status.js.map +1 -0
  65. package/dist/adminapi/models/influx-dbtoken-update.d.ts +26 -0
  66. package/dist/adminapi/models/influx-dbtoken-update.d.ts.map +1 -0
  67. package/dist/adminapi/models/influx-dbtoken-update.js +16 -0
  68. package/dist/adminapi/models/influx-dbtoken-update.js.map +1 -0
  69. package/dist/adminapi/models/influx-dbtoken.d.ts +63 -0
  70. package/dist/adminapi/models/influx-dbtoken.d.ts.map +1 -0
  71. package/dist/adminapi/models/influx-dbtoken.js +16 -0
  72. package/dist/adminapi/models/influx-dbtoken.js.map +1 -0
  73. package/dist/adminapi/models/influx-dbuser-create.d.ts +31 -0
  74. package/dist/adminapi/models/influx-dbuser-create.d.ts.map +1 -0
  75. package/dist/adminapi/models/influx-dbuser-create.js +16 -0
  76. package/dist/adminapi/models/influx-dbuser-create.js.map +1 -0
  77. package/dist/adminapi/models/influx-dbuser.d.ts +43 -0
  78. package/dist/adminapi/models/influx-dbuser.d.ts.map +1 -0
  79. package/dist/adminapi/models/influx-dbuser.js +16 -0
  80. package/dist/adminapi/models/influx-dbuser.js.map +1 -0
  81. package/dist/openapi/api.d.ts +1 -0
  82. package/dist/openapi/api.d.ts.map +1 -1
  83. package/dist/openapi/api.js +1 -0
  84. package/dist/openapi/api.js.map +1 -1
  85. package/dist/openapi/apis/account-api.d.ts +743 -0
  86. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  87. package/dist/openapi/apis/account-api.js +811 -0
  88. package/dist/openapi/apis/account-api.js.map +1 -1
  89. package/dist/openapi/apis/diagnostics-api.d.ts +79 -0
  90. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  91. package/dist/openapi/apis/diagnostics-api.js +84 -0
  92. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  93. package/dist/openapi/apis/influxdb-api.d.ts +791 -0
  94. package/dist/openapi/apis/influxdb-api.d.ts.map +1 -0
  95. package/dist/openapi/apis/influxdb-api.js +875 -0
  96. package/dist/openapi/apis/influxdb-api.js.map +1 -0
  97. package/dist/openapi/apis/shared-api.d.ts +743 -0
  98. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  99. package/dist/openapi/apis/shared-api.js +811 -0
  100. package/dist/openapi/apis/shared-api.js.map +1 -1
  101. package/dist/openapi/models/index.d.ts +14 -0
  102. package/dist/openapi/models/index.d.ts.map +1 -1
  103. package/dist/openapi/models/index.js +14 -0
  104. package/dist/openapi/models/index.js.map +1 -1
  105. package/dist/openapi/models/influx-dbbucket-permission.d.ts +37 -0
  106. package/dist/openapi/models/influx-dbbucket-permission.d.ts.map +1 -0
  107. package/dist/openapi/models/influx-dbbucket-permission.js +16 -0
  108. package/dist/openapi/models/influx-dbbucket-permission.js.map +1 -0
  109. package/dist/openapi/models/influx-dbbucket.d.ts +43 -0
  110. package/dist/openapi/models/influx-dbbucket.d.ts.map +1 -0
  111. package/dist/openapi/models/influx-dbbucket.js +16 -0
  112. package/dist/openapi/models/influx-dbbucket.js.map +1 -0
  113. package/dist/openapi/models/influx-dborganization.d.ts +31 -0
  114. package/dist/openapi/models/influx-dborganization.d.ts.map +1 -0
  115. package/dist/openapi/models/influx-dborganization.js +16 -0
  116. package/dist/openapi/models/influx-dborganization.js.map +1 -0
  117. package/dist/openapi/models/influx-dbpassword-change.d.ts +25 -0
  118. package/dist/openapi/models/influx-dbpassword-change.d.ts.map +1 -0
  119. package/dist/openapi/models/influx-dbpassword-change.js +16 -0
  120. package/dist/openapi/models/influx-dbpassword-change.js.map +1 -0
  121. package/dist/openapi/models/influx-dbpermission-action.d.ts +22 -0
  122. package/dist/openapi/models/influx-dbpermission-action.d.ts.map +1 -0
  123. package/dist/openapi/models/influx-dbpermission-action.js +26 -0
  124. package/dist/openapi/models/influx-dbpermission-action.js.map +1 -0
  125. package/dist/openapi/models/influx-dbpermission.d.ts +33 -0
  126. package/dist/openapi/models/influx-dbpermission.d.ts.map +1 -0
  127. package/dist/openapi/models/influx-dbpermission.js +16 -0
  128. package/dist/openapi/models/influx-dbpermission.js.map +1 -0
  129. package/dist/openapi/models/influx-dbresource.d.ts +37 -0
  130. package/dist/openapi/models/influx-dbresource.d.ts.map +1 -0
  131. package/dist/openapi/models/influx-dbresource.js +16 -0
  132. package/dist/openapi/models/influx-dbresource.js.map +1 -0
  133. package/dist/openapi/models/influx-dbtoken-create.d.ts +38 -0
  134. package/dist/openapi/models/influx-dbtoken-create.d.ts.map +1 -0
  135. package/dist/openapi/models/influx-dbtoken-create.js +16 -0
  136. package/dist/openapi/models/influx-dbtoken-create.js.map +1 -0
  137. package/dist/openapi/models/influx-dbtoken-created.d.ts +69 -0
  138. package/dist/openapi/models/influx-dbtoken-created.d.ts.map +1 -0
  139. package/dist/openapi/models/influx-dbtoken-created.js +16 -0
  140. package/dist/openapi/models/influx-dbtoken-created.js.map +1 -0
  141. package/dist/openapi/models/influx-dbtoken-status.d.ts +22 -0
  142. package/dist/openapi/models/influx-dbtoken-status.d.ts.map +1 -0
  143. package/dist/openapi/models/influx-dbtoken-status.js +26 -0
  144. package/dist/openapi/models/influx-dbtoken-status.js.map +1 -0
  145. package/dist/openapi/models/influx-dbtoken-update.d.ts +26 -0
  146. package/dist/openapi/models/influx-dbtoken-update.d.ts.map +1 -0
  147. package/dist/openapi/models/influx-dbtoken-update.js +16 -0
  148. package/dist/openapi/models/influx-dbtoken-update.js.map +1 -0
  149. package/dist/openapi/models/influx-dbtoken.d.ts +63 -0
  150. package/dist/openapi/models/influx-dbtoken.d.ts.map +1 -0
  151. package/dist/openapi/models/influx-dbtoken.js +16 -0
  152. package/dist/openapi/models/influx-dbtoken.js.map +1 -0
  153. package/dist/openapi/models/influx-dbuser-create.d.ts +31 -0
  154. package/dist/openapi/models/influx-dbuser-create.d.ts.map +1 -0
  155. package/dist/openapi/models/influx-dbuser-create.js +16 -0
  156. package/dist/openapi/models/influx-dbuser-create.js.map +1 -0
  157. package/dist/openapi/models/influx-dbuser.d.ts +43 -0
  158. package/dist/openapi/models/influx-dbuser.d.ts.map +1 -0
  159. package/dist/openapi/models/influx-dbuser.js +16 -0
  160. package/dist/openapi/models/influx-dbuser.js.map +1 -0
  161. package/package.json +1 -1
  162. package/src/adminapi/.openapi-generator/FILES +15 -0
  163. package/src/adminapi/api.ts +1 -0
  164. package/src/adminapi/apis/account-api.ts +2360 -1055
  165. package/src/adminapi/apis/diagnostics-api.ts +138 -0
  166. package/src/adminapi/apis/influxdb-api.ts +1375 -0
  167. package/src/adminapi/apis/shared-api.ts +1523 -218
  168. package/src/adminapi/models/index.ts +14 -0
  169. package/src/adminapi/models/influx-dbbucket-permission.ts +42 -0
  170. package/src/adminapi/models/influx-dbbucket.ts +48 -0
  171. package/src/adminapi/models/influx-dborganization.ts +36 -0
  172. package/src/adminapi/models/influx-dbpassword-change.ts +30 -0
  173. package/src/adminapi/models/influx-dbpermission-action.ts +31 -0
  174. package/src/adminapi/models/influx-dbpermission.ts +44 -0
  175. package/src/adminapi/models/influx-dbresource.ts +42 -0
  176. package/src/adminapi/models/influx-dbtoken-create.ts +45 -0
  177. package/src/adminapi/models/influx-dbtoken-created.ts +80 -0
  178. package/src/adminapi/models/influx-dbtoken-status.ts +31 -0
  179. package/src/adminapi/models/influx-dbtoken-update.ts +35 -0
  180. package/src/adminapi/models/influx-dbtoken.ts +74 -0
  181. package/src/adminapi/models/influx-dbuser-create.ts +36 -0
  182. package/src/adminapi/models/influx-dbuser.ts +48 -0
  183. package/src/adminapi.yaml +704 -15
  184. package/src/openapi/.openapi-generator/FILES +15 -0
  185. package/src/openapi/api.ts +1 -0
  186. package/src/openapi/apis/account-api.ts +2360 -1055
  187. package/src/openapi/apis/diagnostics-api.ts +138 -0
  188. package/src/openapi/apis/influxdb-api.ts +1375 -0
  189. package/src/openapi/apis/shared-api.ts +1557 -252
  190. package/src/openapi/models/index.ts +14 -0
  191. package/src/openapi/models/influx-dbbucket-permission.ts +42 -0
  192. package/src/openapi/models/influx-dbbucket.ts +48 -0
  193. package/src/openapi/models/influx-dborganization.ts +36 -0
  194. package/src/openapi/models/influx-dbpassword-change.ts +30 -0
  195. package/src/openapi/models/influx-dbpermission-action.ts +31 -0
  196. package/src/openapi/models/influx-dbpermission.ts +44 -0
  197. package/src/openapi/models/influx-dbresource.ts +42 -0
  198. package/src/openapi/models/influx-dbtoken-create.ts +45 -0
  199. package/src/openapi/models/influx-dbtoken-created.ts +80 -0
  200. package/src/openapi/models/influx-dbtoken-status.ts +31 -0
  201. package/src/openapi/models/influx-dbtoken-update.ts +35 -0
  202. package/src/openapi/models/influx-dbtoken.ts +74 -0
  203. package/src/openapi/models/influx-dbuser-create.ts +36 -0
  204. package/src/openapi/models/influx-dbuser.ts +48 -0
  205. package/src/openapi.yaml +704 -15
@@ -0,0 +1,875 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * KubeBlocks Cloud API
6
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
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 = `/api/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 = `/api/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 = `/api/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 = `/api/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 = `/api/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 = `/api/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 = `/api/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 = `/api/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 = `/api/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 = `/api/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