kb-cloud-client-typescript 2.4.0-alpha.61 → 2.4.0-alpha.63
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 +906 -6
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +981 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/seaweedfs-api.d.ts +951 -0
- package/dist/adminapi/apis/seaweedfs-api.d.ts.map +1 -0
- package/dist/adminapi/apis/seaweedfs-api.js +1045 -0
- package/dist/adminapi/apis/seaweedfs-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +905 -5
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +991 -10
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.js +16 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +3 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.js +16 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.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 +906 -6
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +981 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/seaweedfs-api.d.ts +951 -0
- package/dist/openapi/apis/seaweedfs-api.d.ts.map +1 -0
- package/dist/openapi/apis/seaweedfs-api.js +1045 -0
- package/dist/openapi/apis/seaweedfs-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +905 -5
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +991 -10
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.js +16 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
- package/dist/openapi/models/index.d.ts +3 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +3 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.js +16 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/account-api.ts +1623 -55
- package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
- package/src/adminapi/apis/shared-api.ts +1776 -208
- package/src/adminapi/models/bind-seaweed-fspolicies-request.ts +30 -0
- package/src/adminapi/models/index.ts +3 -0
- package/src/adminapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
- package/src/adminapi/models/list-seaweed-fspolicies200-response.ts +33 -0
- package/src/adminapi.yaml +562 -0
- package/src/openapi/.openapi-generator/FILES +4 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/account-api.ts +1623 -55
- package/src/openapi/apis/seaweedfs-api.ts +1644 -0
- package/src/openapi/apis/shared-api.ts +1776 -208
- package/src/openapi/models/bind-seaweed-fspolicies-request.ts +30 -0
- package/src/openapi/models/index.ts +3 -0
- package/src/openapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
- package/src/openapi/models/list-seaweed-fspolicies200-response.ts +33 -0
- package/src/openapi.yaml +562 -0
|
@@ -0,0 +1,1045 @@
|
|
|
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.SeaweedfsApi = exports.SeaweedfsApiFactory = exports.SeaweedfsApiFp = exports.SeaweedfsApiAxiosParamCreator = 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
|
+
* SeaweedfsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const SeaweedfsApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
34
|
+
* @summary bindSeaweedFSPolicies
|
|
35
|
+
* @param {string} orgName
|
|
36
|
+
* @param {string} clusterName
|
|
37
|
+
* @param {string} accountName
|
|
38
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
|
|
43
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
44
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
|
|
45
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
|
|
47
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
|
|
49
|
+
// verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
|
|
51
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
|
|
52
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
53
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
54
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
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: 'PUT' }, 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)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
|
|
74
|
+
return {
|
|
75
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
|
|
81
|
+
* @summary createSeaweedFSAccessKey
|
|
82
|
+
* @param {string} orgName
|
|
83
|
+
* @param {string} clusterName
|
|
84
|
+
* @param {string} accountName
|
|
85
|
+
* @param {Account} account
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
|
|
90
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
91
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
|
|
92
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
93
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
|
|
94
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
95
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
|
|
96
|
+
// verify required parameter 'account' is not null or undefined
|
|
97
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
|
|
98
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
|
|
99
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
100
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
101
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
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)(account, localVarRequestOptions, configuration);
|
|
121
|
+
return {
|
|
122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
|
|
128
|
+
* @summary createSeaweedFSAccount
|
|
129
|
+
* @param {string} orgName name of the organization
|
|
130
|
+
* @param {string} clusterName name of the cluster
|
|
131
|
+
* @param {Account} body
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
|
|
136
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
|
|
138
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
139
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
|
|
140
|
+
// verify required parameter 'body' is not null or undefined
|
|
141
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
|
|
142
|
+
const localVarPath = `/admin/v1/data/seaweedfs/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)(body, localVarRequestOptions, configuration);
|
|
164
|
+
return {
|
|
165
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @summary deleteSeaweedFSAccessKey
|
|
172
|
+
* @param {string} orgName
|
|
173
|
+
* @param {string} clusterName
|
|
174
|
+
* @param {string} accountName
|
|
175
|
+
* @param {string} accessKey
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
|
|
180
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
181
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
|
|
182
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
183
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
|
|
184
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
185
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
|
|
186
|
+
// verify required parameter 'accessKey' is not null or undefined
|
|
187
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
|
|
188
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
|
|
189
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
190
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
191
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
|
|
192
|
+
.replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
|
|
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
|
+
* delete an account in cluster
|
|
217
|
+
* @summary deleteSeaweedFSAccount
|
|
218
|
+
* @param {string} orgName name of the organization
|
|
219
|
+
* @param {string} clusterName name of the cluster
|
|
220
|
+
* @param {string} accountName name of the account
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
|
|
225
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
226
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
|
|
227
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
228
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
|
|
229
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
230
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
|
|
231
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
232
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
233
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
234
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
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
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
259
|
+
* @summary deleteSeaweedFSPolicy
|
|
260
|
+
* @param {string} orgName
|
|
261
|
+
* @param {string} clusterName
|
|
262
|
+
* @param {string} policyName
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
|
|
267
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
268
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
|
|
269
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
|
|
271
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
272
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
|
|
273
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
274
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
275
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
276
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
279
|
+
let baseOptions;
|
|
280
|
+
if (configuration) {
|
|
281
|
+
baseOptions = configuration.baseOptions;
|
|
282
|
+
}
|
|
283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
284
|
+
const localVarHeaderParameter = {};
|
|
285
|
+
const localVarQueryParameter = {};
|
|
286
|
+
// authentication BearerToken required
|
|
287
|
+
// http bearer authentication required
|
|
288
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
289
|
+
// authentication DigestAuth required
|
|
290
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
291
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
294
|
+
return {
|
|
295
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
};
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* get root account password
|
|
301
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
302
|
+
* @param {string} orgName name of the Org
|
|
303
|
+
* @param {string} clusterName name of the Cluster
|
|
304
|
+
* @param {string} accountName name of the account
|
|
305
|
+
* @param {string} [component] name of the component
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
|
|
310
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
|
|
312
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
313
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
|
|
314
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
315
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
|
|
316
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
|
|
317
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
318
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
if (configuration) {
|
|
323
|
+
baseOptions = configuration.baseOptions;
|
|
324
|
+
}
|
|
325
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
326
|
+
const localVarHeaderParameter = {};
|
|
327
|
+
const localVarQueryParameter = {};
|
|
328
|
+
// authentication BearerToken required
|
|
329
|
+
// http bearer authentication required
|
|
330
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
331
|
+
// authentication DigestAuth required
|
|
332
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
333
|
+
if (accountName !== undefined) {
|
|
334
|
+
localVarQueryParameter['accountName'] = accountName;
|
|
335
|
+
}
|
|
336
|
+
if (component !== undefined) {
|
|
337
|
+
localVarQueryParameter['component'] = component;
|
|
338
|
+
}
|
|
339
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
342
|
+
return {
|
|
343
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
344
|
+
options: localVarRequestOptions,
|
|
345
|
+
};
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
349
|
+
* @summary listSeaweedFSAccounts
|
|
350
|
+
* @param {string} orgName name of the organization
|
|
351
|
+
* @param {string} clusterName name of the cluster
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
|
|
356
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
357
|
+
(0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
|
|
358
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
359
|
+
(0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
|
|
360
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
361
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
362
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
365
|
+
let baseOptions;
|
|
366
|
+
if (configuration) {
|
|
367
|
+
baseOptions = configuration.baseOptions;
|
|
368
|
+
}
|
|
369
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
370
|
+
const localVarHeaderParameter = {};
|
|
371
|
+
const localVarQueryParameter = {};
|
|
372
|
+
// authentication BearerToken required
|
|
373
|
+
// http bearer authentication required
|
|
374
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
375
|
+
// authentication DigestAuth required
|
|
376
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
+
return {
|
|
381
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
382
|
+
options: localVarRequestOptions,
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @summary listSeaweedFSPolicies
|
|
388
|
+
* @param {string} orgName
|
|
389
|
+
* @param {string} clusterName
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
|
|
394
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
395
|
+
(0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
|
|
396
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
397
|
+
(0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
|
|
398
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
|
|
399
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
400
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
403
|
+
let baseOptions;
|
|
404
|
+
if (configuration) {
|
|
405
|
+
baseOptions = configuration.baseOptions;
|
|
406
|
+
}
|
|
407
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
408
|
+
const localVarHeaderParameter = {};
|
|
409
|
+
const localVarQueryParameter = {};
|
|
410
|
+
// authentication BearerToken required
|
|
411
|
+
// http bearer authentication required
|
|
412
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
413
|
+
// authentication DigestAuth required
|
|
414
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
418
|
+
return {
|
|
419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
420
|
+
options: localVarRequestOptions,
|
|
421
|
+
};
|
|
422
|
+
},
|
|
423
|
+
/**
|
|
424
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
425
|
+
* @summary putSeaweedFSPolicy
|
|
426
|
+
* @param {string} orgName
|
|
427
|
+
* @param {string} clusterName
|
|
428
|
+
* @param {string} policyName
|
|
429
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
|
|
434
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
435
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
|
|
436
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
437
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
|
|
438
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
439
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
|
|
440
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
441
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
|
|
442
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
443
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
444
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
445
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
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: 'PUT' }, 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)(requestBody, localVarRequestOptions, configuration);
|
|
465
|
+
return {
|
|
466
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
467
|
+
options: localVarRequestOptions,
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
/**
|
|
471
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
472
|
+
* @summary updateSeaweedFSAccount
|
|
473
|
+
* @param {string} orgName name of the organization
|
|
474
|
+
* @param {string} clusterName name of the cluster
|
|
475
|
+
* @param {string} accountName name of the account
|
|
476
|
+
* @param {Account} body
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
481
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
482
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
|
|
483
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
484
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
|
|
485
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
486
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
|
|
487
|
+
// verify required parameter 'body' is not null or undefined
|
|
488
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
|
|
489
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
490
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
491
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
492
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
493
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
494
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
495
|
+
let baseOptions;
|
|
496
|
+
if (configuration) {
|
|
497
|
+
baseOptions = configuration.baseOptions;
|
|
498
|
+
}
|
|
499
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
500
|
+
const localVarHeaderParameter = {};
|
|
501
|
+
const localVarQueryParameter = {};
|
|
502
|
+
// authentication BearerToken required
|
|
503
|
+
// http bearer authentication required
|
|
504
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
505
|
+
// authentication DigestAuth required
|
|
506
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
507
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
508
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
510
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
511
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
512
|
+
return {
|
|
513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
514
|
+
options: localVarRequestOptions,
|
|
515
|
+
};
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
519
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
520
|
+
* @param {string} orgName name of the Org
|
|
521
|
+
* @param {string} clusterName name of the Cluster
|
|
522
|
+
* @param {string} accountName name of the account
|
|
523
|
+
* @param {Array<PrivilegeListItem>} body
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
528
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
529
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
|
|
530
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
531
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
|
|
532
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
533
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
|
|
534
|
+
// verify required parameter 'body' is not null or undefined
|
|
535
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
|
|
536
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
|
|
537
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
538
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
539
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
540
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
541
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
542
|
+
let baseOptions;
|
|
543
|
+
if (configuration) {
|
|
544
|
+
baseOptions = configuration.baseOptions;
|
|
545
|
+
}
|
|
546
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
547
|
+
const localVarHeaderParameter = {};
|
|
548
|
+
const localVarQueryParameter = {};
|
|
549
|
+
// authentication BearerToken required
|
|
550
|
+
// http bearer authentication required
|
|
551
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
552
|
+
// authentication DigestAuth required
|
|
553
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
557
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
558
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
559
|
+
return {
|
|
560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
561
|
+
options: localVarRequestOptions,
|
|
562
|
+
};
|
|
563
|
+
},
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
exports.SeaweedfsApiAxiosParamCreator = SeaweedfsApiAxiosParamCreator;
|
|
567
|
+
/**
|
|
568
|
+
* SeaweedfsApi - functional programming interface
|
|
569
|
+
* @export
|
|
570
|
+
*/
|
|
571
|
+
const SeaweedfsApiFp = function (configuration) {
|
|
572
|
+
const localVarAxiosParamCreator = (0, exports.SeaweedfsApiAxiosParamCreator)(configuration);
|
|
573
|
+
return {
|
|
574
|
+
/**
|
|
575
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
576
|
+
* @summary bindSeaweedFSPolicies
|
|
577
|
+
* @param {string} orgName
|
|
578
|
+
* @param {string} clusterName
|
|
579
|
+
* @param {string} accountName
|
|
580
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
|
|
585
|
+
var _a, _b, _c;
|
|
586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
|
|
587
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
588
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.bindSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
* Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
|
|
593
|
+
* @summary createSeaweedFSAccessKey
|
|
594
|
+
* @param {string} orgName
|
|
595
|
+
* @param {string} clusterName
|
|
596
|
+
* @param {string} accountName
|
|
597
|
+
* @param {Account} account
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
|
|
602
|
+
var _a, _b, _c;
|
|
603
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
|
|
604
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
605
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.createSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
606
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
* Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
|
|
610
|
+
* @summary createSeaweedFSAccount
|
|
611
|
+
* @param {string} orgName name of the organization
|
|
612
|
+
* @param {string} clusterName name of the cluster
|
|
613
|
+
* @param {Account} body
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
async createSeaweedFSAccount(orgName, clusterName, body, options) {
|
|
618
|
+
var _a, _b, _c;
|
|
619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
|
|
620
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
621
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.createSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
622
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @summary deleteSeaweedFSAccessKey
|
|
627
|
+
* @param {string} orgName
|
|
628
|
+
* @param {string} clusterName
|
|
629
|
+
* @param {string} accountName
|
|
630
|
+
* @param {string} accessKey
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
|
|
635
|
+
var _a, _b, _c;
|
|
636
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
|
|
637
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
638
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.deleteSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
639
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
640
|
+
},
|
|
641
|
+
/**
|
|
642
|
+
* delete an account in cluster
|
|
643
|
+
* @summary deleteSeaweedFSAccount
|
|
644
|
+
* @param {string} orgName name of the organization
|
|
645
|
+
* @param {string} clusterName name of the cluster
|
|
646
|
+
* @param {string} accountName name of the account
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
|
|
651
|
+
var _a, _b, _c;
|
|
652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
|
|
653
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
654
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.deleteSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
655
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
656
|
+
},
|
|
657
|
+
/**
|
|
658
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
659
|
+
* @summary deleteSeaweedFSPolicy
|
|
660
|
+
* @param {string} orgName
|
|
661
|
+
* @param {string} clusterName
|
|
662
|
+
* @param {string} policyName
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
|
|
667
|
+
var _a, _b, _c;
|
|
668
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
|
|
669
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
670
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.deleteSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
671
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
672
|
+
},
|
|
673
|
+
/**
|
|
674
|
+
* get root account password
|
|
675
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
676
|
+
* @param {string} orgName name of the Org
|
|
677
|
+
* @param {string} clusterName name of the Cluster
|
|
678
|
+
* @param {string} accountName name of the account
|
|
679
|
+
* @param {string} [component] name of the component
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
|
|
684
|
+
var _a, _b, _c;
|
|
685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
|
|
686
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
687
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.getRootSeaweedFSAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
688
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
689
|
+
},
|
|
690
|
+
/**
|
|
691
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
692
|
+
* @summary listSeaweedFSAccounts
|
|
693
|
+
* @param {string} orgName name of the organization
|
|
694
|
+
* @param {string} clusterName name of the cluster
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
async listSeaweedFSAccounts(orgName, clusterName, options) {
|
|
699
|
+
var _a, _b, _c;
|
|
700
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
|
|
701
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
702
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.listSeaweedFSAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
703
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
704
|
+
},
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @summary listSeaweedFSPolicies
|
|
708
|
+
* @param {string} orgName
|
|
709
|
+
* @param {string} clusterName
|
|
710
|
+
* @param {*} [options] Override http request option.
|
|
711
|
+
* @throws {RequiredError}
|
|
712
|
+
*/
|
|
713
|
+
async listSeaweedFSPolicies(orgName, clusterName, options) {
|
|
714
|
+
var _a, _b, _c;
|
|
715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
|
|
716
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
717
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.listSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
718
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
722
|
+
* @summary putSeaweedFSPolicy
|
|
723
|
+
* @param {string} orgName
|
|
724
|
+
* @param {string} clusterName
|
|
725
|
+
* @param {string} policyName
|
|
726
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
|
|
731
|
+
var _a, _b, _c;
|
|
732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
|
|
733
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
734
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.putSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
735
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
736
|
+
},
|
|
737
|
+
/**
|
|
738
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
739
|
+
* @summary updateSeaweedFSAccount
|
|
740
|
+
* @param {string} orgName name of the organization
|
|
741
|
+
* @param {string} clusterName name of the cluster
|
|
742
|
+
* @param {string} accountName name of the account
|
|
743
|
+
* @param {Account} body
|
|
744
|
+
* @param {*} [options] Override http request option.
|
|
745
|
+
* @throws {RequiredError}
|
|
746
|
+
*/
|
|
747
|
+
async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
|
|
748
|
+
var _a, _b, _c;
|
|
749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
|
|
750
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
751
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.updateSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
752
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
|
+
},
|
|
754
|
+
/**
|
|
755
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
756
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
757
|
+
* @param {string} orgName name of the Org
|
|
758
|
+
* @param {string} clusterName name of the Cluster
|
|
759
|
+
* @param {string} accountName name of the account
|
|
760
|
+
* @param {Array<PrivilegeListItem>} body
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
|
|
765
|
+
var _a, _b, _c;
|
|
766
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
|
|
767
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
768
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SeaweedfsApi.updateSeaweedFSAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
769
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
770
|
+
},
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
exports.SeaweedfsApiFp = SeaweedfsApiFp;
|
|
774
|
+
/**
|
|
775
|
+
* SeaweedfsApi - factory interface
|
|
776
|
+
* @export
|
|
777
|
+
*/
|
|
778
|
+
const SeaweedfsApiFactory = function (configuration, basePath, axios) {
|
|
779
|
+
const localVarFp = (0, exports.SeaweedfsApiFp)(configuration);
|
|
780
|
+
return {
|
|
781
|
+
/**
|
|
782
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
783
|
+
* @summary bindSeaweedFSPolicies
|
|
784
|
+
* @param {SeaweedfsApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
bindSeaweedFSPolicies(requestParameters, options) {
|
|
789
|
+
return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
|
|
790
|
+
},
|
|
791
|
+
/**
|
|
792
|
+
* Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
|
|
793
|
+
* @summary createSeaweedFSAccessKey
|
|
794
|
+
* @param {SeaweedfsApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
795
|
+
* @param {*} [options] Override http request option.
|
|
796
|
+
* @throws {RequiredError}
|
|
797
|
+
*/
|
|
798
|
+
createSeaweedFSAccessKey(requestParameters, options) {
|
|
799
|
+
return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
* Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
|
|
803
|
+
* @summary createSeaweedFSAccount
|
|
804
|
+
* @param {SeaweedfsApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
createSeaweedFSAccount(requestParameters, options) {
|
|
809
|
+
return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
810
|
+
},
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @summary deleteSeaweedFSAccessKey
|
|
814
|
+
* @param {SeaweedfsApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
deleteSeaweedFSAccessKey(requestParameters, options) {
|
|
819
|
+
return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
* delete an account in cluster
|
|
823
|
+
* @summary deleteSeaweedFSAccount
|
|
824
|
+
* @param {SeaweedfsApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
deleteSeaweedFSAccount(requestParameters, options) {
|
|
829
|
+
return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
830
|
+
},
|
|
831
|
+
/**
|
|
832
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
833
|
+
* @summary deleteSeaweedFSPolicy
|
|
834
|
+
* @param {SeaweedfsApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
deleteSeaweedFSPolicy(requestParameters, options) {
|
|
839
|
+
return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
|
|
840
|
+
},
|
|
841
|
+
/**
|
|
842
|
+
* get root account password
|
|
843
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
844
|
+
* @param {SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
getRootSeaweedFSAccountPassword(requestParameters, options) {
|
|
849
|
+
return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
853
|
+
* @summary listSeaweedFSAccounts
|
|
854
|
+
* @param {SeaweedfsApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
*/
|
|
858
|
+
listSeaweedFSAccounts(requestParameters, options) {
|
|
859
|
+
return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @summary listSeaweedFSPolicies
|
|
864
|
+
* @param {SeaweedfsApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
listSeaweedFSPolicies(requestParameters, options) {
|
|
869
|
+
return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
870
|
+
},
|
|
871
|
+
/**
|
|
872
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
873
|
+
* @summary putSeaweedFSPolicy
|
|
874
|
+
* @param {SeaweedfsApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
putSeaweedFSPolicy(requestParameters, options) {
|
|
879
|
+
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
880
|
+
},
|
|
881
|
+
/**
|
|
882
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
883
|
+
* @summary updateSeaweedFSAccount
|
|
884
|
+
* @param {SeaweedfsApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
updateSeaweedFSAccount(requestParameters, options) {
|
|
889
|
+
return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
890
|
+
},
|
|
891
|
+
/**
|
|
892
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
893
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
894
|
+
* @param {SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
*/
|
|
898
|
+
updateSeaweedFSAccountPrivileges(requestParameters, options) {
|
|
899
|
+
return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
900
|
+
},
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
exports.SeaweedfsApiFactory = SeaweedfsApiFactory;
|
|
904
|
+
/**
|
|
905
|
+
* SeaweedfsApi - object-oriented interface
|
|
906
|
+
* @export
|
|
907
|
+
* @class SeaweedfsApi
|
|
908
|
+
* @extends {BaseAPI}
|
|
909
|
+
*/
|
|
910
|
+
class SeaweedfsApi extends base_1.BaseAPI {
|
|
911
|
+
/**
|
|
912
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
913
|
+
* @summary bindSeaweedFSPolicies
|
|
914
|
+
* @param {SeaweedfsApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
* @memberof SeaweedfsApi
|
|
918
|
+
*/
|
|
919
|
+
bindSeaweedFSPolicies(requestParameters, options) {
|
|
920
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
|
|
924
|
+
* @summary createSeaweedFSAccessKey
|
|
925
|
+
* @param {SeaweedfsApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof SeaweedfsApi
|
|
929
|
+
*/
|
|
930
|
+
createSeaweedFSAccessKey(requestParameters, options) {
|
|
931
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
|
|
935
|
+
* @summary createSeaweedFSAccount
|
|
936
|
+
* @param {SeaweedfsApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
* @memberof SeaweedfsApi
|
|
940
|
+
*/
|
|
941
|
+
createSeaweedFSAccount(requestParameters, options) {
|
|
942
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @summary deleteSeaweedFSAccessKey
|
|
947
|
+
* @param {SeaweedfsApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
948
|
+
* @param {*} [options] Override http request option.
|
|
949
|
+
* @throws {RequiredError}
|
|
950
|
+
* @memberof SeaweedfsApi
|
|
951
|
+
*/
|
|
952
|
+
deleteSeaweedFSAccessKey(requestParameters, options) {
|
|
953
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* delete an account in cluster
|
|
957
|
+
* @summary deleteSeaweedFSAccount
|
|
958
|
+
* @param {SeaweedfsApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
* @memberof SeaweedfsApi
|
|
962
|
+
*/
|
|
963
|
+
deleteSeaweedFSAccount(requestParameters, options) {
|
|
964
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
968
|
+
* @summary deleteSeaweedFSPolicy
|
|
969
|
+
* @param {SeaweedfsApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
970
|
+
* @param {*} [options] Override http request option.
|
|
971
|
+
* @throws {RequiredError}
|
|
972
|
+
* @memberof SeaweedfsApi
|
|
973
|
+
*/
|
|
974
|
+
deleteSeaweedFSPolicy(requestParameters, options) {
|
|
975
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* get root account password
|
|
979
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
980
|
+
* @param {SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
* @memberof SeaweedfsApi
|
|
984
|
+
*/
|
|
985
|
+
getRootSeaweedFSAccountPassword(requestParameters, options) {
|
|
986
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
990
|
+
* @summary listSeaweedFSAccounts
|
|
991
|
+
* @param {SeaweedfsApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
* @memberof SeaweedfsApi
|
|
995
|
+
*/
|
|
996
|
+
listSeaweedFSAccounts(requestParameters, options) {
|
|
997
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @summary listSeaweedFSPolicies
|
|
1002
|
+
* @param {SeaweedfsApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
* @memberof SeaweedfsApi
|
|
1006
|
+
*/
|
|
1007
|
+
listSeaweedFSPolicies(requestParameters, options) {
|
|
1008
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
1012
|
+
* @summary putSeaweedFSPolicy
|
|
1013
|
+
* @param {SeaweedfsApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
* @memberof SeaweedfsApi
|
|
1017
|
+
*/
|
|
1018
|
+
putSeaweedFSPolicy(requestParameters, options) {
|
|
1019
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
1023
|
+
* @summary updateSeaweedFSAccount
|
|
1024
|
+
* @param {SeaweedfsApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
* @memberof SeaweedfsApi
|
|
1028
|
+
*/
|
|
1029
|
+
updateSeaweedFSAccount(requestParameters, options) {
|
|
1030
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
1034
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
1035
|
+
* @param {SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
* @memberof SeaweedfsApi
|
|
1039
|
+
*/
|
|
1040
|
+
updateSeaweedFSAccountPrivileges(requestParameters, options) {
|
|
1041
|
+
return (0, exports.SeaweedfsApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
exports.SeaweedfsApi = SeaweedfsApi;
|
|
1045
|
+
//# sourceMappingURL=seaweedfs-api.js.map
|