@openfilz-sdk/typescript-ee 1.11.0 → 1.12.1
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/.openapi-generator/FILES +30 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +38 -9
- package/api/ai-archiving-admin-controller-api.ts +10 -10
- package/api/aifiling-rules-api.ts +18 -18
- package/api/aimaintenance-api.ts +334 -0
- package/api/aiteam-inboxes-api.ts +18 -18
- package/api/esign-templates-api.ts +8 -8
- package/api/mcp-token-admin-controller-api.ts +75 -8
- package/api/organisation-settings-api.ts +266 -0
- package/api/quota-administration-api.ts +677 -0
- package/api/quotas-api.ts +121 -0
- package/api/search-administration-api.ts +65 -0
- package/api/tus-controller-api.ts +8 -4
- package/api.ts +4 -0
- package/dist/api/ai-archiving-admin-controller-api.d.ts +4 -4
- package/dist/api/ai-archiving-admin-controller-api.js +10 -10
- package/dist/api/aifiling-rules-api.d.ts +8 -8
- package/dist/api/aifiling-rules-api.js +18 -18
- package/dist/api/aimaintenance-api.d.ts +162 -0
- package/dist/api/aimaintenance-api.js +327 -0
- package/dist/api/aiteam-inboxes-api.d.ts +8 -8
- package/dist/api/aiteam-inboxes-api.js +18 -18
- package/dist/api/esign-templates-api.d.ts +4 -4
- package/dist/api/esign-templates-api.js +8 -8
- package/dist/api/mcp-token-admin-controller-api.d.ts +33 -4
- package/dist/api/mcp-token-admin-controller-api.js +70 -8
- package/dist/api/organisation-settings-api.d.ts +135 -0
- package/dist/api/organisation-settings-api.js +264 -0
- package/dist/api/quota-administration-api.d.ts +312 -0
- package/dist/api/quota-administration-api.js +645 -0
- package/dist/api/quotas-api.d.ts +63 -0
- package/dist/api/quotas-api.js +125 -0
- package/dist/api/search-administration-api.d.ts +28 -0
- package/dist/api/search-administration-api.js +62 -0
- package/dist/api/tus-controller-api.d.ts +6 -6
- package/dist/api/tus-controller-api.js +2 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.js +4 -0
- package/dist/esm/api/ai-archiving-admin-controller-api.d.ts +4 -4
- package/dist/esm/api/ai-archiving-admin-controller-api.js +10 -10
- package/dist/esm/api/aifiling-rules-api.d.ts +8 -8
- package/dist/esm/api/aifiling-rules-api.js +18 -18
- package/dist/esm/api/aimaintenance-api.d.ts +162 -0
- package/dist/esm/api/aimaintenance-api.js +320 -0
- package/dist/esm/api/aiteam-inboxes-api.d.ts +8 -8
- package/dist/esm/api/aiteam-inboxes-api.js +18 -18
- package/dist/esm/api/esign-templates-api.d.ts +4 -4
- package/dist/esm/api/esign-templates-api.js +8 -8
- package/dist/esm/api/mcp-token-admin-controller-api.d.ts +33 -4
- package/dist/esm/api/mcp-token-admin-controller-api.js +70 -8
- package/dist/esm/api/organisation-settings-api.d.ts +135 -0
- package/dist/esm/api/organisation-settings-api.js +257 -0
- package/dist/esm/api/quota-administration-api.d.ts +312 -0
- package/dist/esm/api/quota-administration-api.js +638 -0
- package/dist/esm/api/quotas-api.d.ts +63 -0
- package/dist/esm/api/quotas-api.js +118 -0
- package/dist/esm/api/search-administration-api.d.ts +28 -0
- package/dist/esm/api/search-administration-api.js +62 -0
- package/dist/esm/api/tus-controller-api.d.ts +6 -6
- package/dist/esm/api/tus-controller-api.js +2 -0
- package/dist/esm/api.d.ts +4 -0
- package/dist/esm/api.js +4 -0
- package/dist/esm/models/enriched-audit-log.d.ts +4 -0
- package/dist/esm/models/enriched-audit-log.js +4 -0
- package/dist/esm/models/error-response.d.ts +16 -0
- package/dist/esm/models/error-response.js +14 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/esm/models/mcp-agent-token-config.d.ts +31 -0
- package/dist/esm/models/mcp-agent-token-config.js +14 -0
- package/dist/esm/models/mcp-agent-token-info.d.ts +1 -0
- package/dist/esm/models/my-storage-quota.d.ts +24 -0
- package/dist/esm/models/my-storage-quota.js +18 -0
- package/dist/esm/models/quota-overview.d.ts +19 -0
- package/dist/esm/models/quota-overview.js +14 -0
- package/dist/esm/models/quota-usage.d.ts +27 -0
- package/dist/esm/models/quota-usage.js +18 -0
- package/dist/esm/models/quota-user-page.d.ts +18 -0
- package/dist/esm/models/quota-user-page.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +4 -0
- package/dist/esm/models/search-by-audit-log-request.js +4 -0
- package/dist/esm/models/setting-dto.d.ts +26 -0
- package/dist/esm/models/setting-dto.js +14 -0
- package/dist/esm/models/start-request.d.ts +14 -0
- package/dist/esm/models/start-request.js +14 -0
- package/dist/esm/models/storage-breakdown.d.ts +2 -0
- package/dist/esm/models/team-quota-request.d.ts +17 -0
- package/dist/esm/models/team-quota-request.js +14 -0
- package/dist/esm/models/team-quota-view.d.ts +19 -0
- package/dist/esm/models/team-quota-view.js +14 -0
- package/dist/esm/models/user-quota-request.d.ts +17 -0
- package/dist/esm/models/user-quota-request.js +14 -0
- package/dist/models/enriched-audit-log.d.ts +4 -0
- package/dist/models/enriched-audit-log.js +4 -0
- package/dist/models/error-response.d.ts +16 -0
- package/dist/models/error-response.js +15 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/models/mcp-agent-token-config.d.ts +31 -0
- package/dist/models/mcp-agent-token-config.js +15 -0
- package/dist/models/mcp-agent-token-info.d.ts +1 -0
- package/dist/models/my-storage-quota.d.ts +24 -0
- package/dist/models/my-storage-quota.js +21 -0
- package/dist/models/quota-overview.d.ts +19 -0
- package/dist/models/quota-overview.js +15 -0
- package/dist/models/quota-usage.d.ts +27 -0
- package/dist/models/quota-usage.js +21 -0
- package/dist/models/quota-user-page.d.ts +18 -0
- package/dist/models/quota-user-page.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +4 -0
- package/dist/models/search-by-audit-log-request.js +4 -0
- package/dist/models/setting-dto.d.ts +26 -0
- package/dist/models/setting-dto.js +15 -0
- package/dist/models/start-request.d.ts +14 -0
- package/dist/models/start-request.js +15 -0
- package/dist/models/storage-breakdown.d.ts +2 -0
- package/dist/models/team-quota-request.d.ts +17 -0
- package/dist/models/team-quota-request.js +15 -0
- package/dist/models/team-quota-view.d.ts +19 -0
- package/dist/models/team-quota-view.js +15 -0
- package/dist/models/user-quota-request.d.ts +17 -0
- package/dist/models/user-quota-request.js +15 -0
- package/docs/AIFilingRulesApi.md +8 -8
- package/docs/AIMaintenanceApi.md +201 -0
- package/docs/AITeamInboxesApi.md +8 -8
- package/docs/AiArchivingAdminControllerApi.md +4 -4
- package/docs/ESignTemplatesApi.md +4 -4
- package/docs/ErrorResponse.md +24 -0
- package/docs/McpAgentTokenConfig.md +30 -0
- package/docs/McpAgentTokenInfo.md +2 -0
- package/docs/McpTokenAdminControllerApi.md +48 -4
- package/docs/MyStorageQuota.md +28 -0
- package/docs/OrganisationSettingsApi.md +153 -0
- package/docs/QuotaAdministrationApi.md +427 -0
- package/docs/QuotaOverview.md +30 -0
- package/docs/QuotaUsage.md +34 -0
- package/docs/QuotaUserPage.md +26 -0
- package/docs/QuotasApi.md +52 -0
- package/docs/SearchAdministrationApi.md +45 -0
- package/docs/SettingDto.md +44 -0
- package/docs/StartRequest.md +20 -0
- package/docs/StorageBreakdown.md +2 -0
- package/docs/TeamQuotaRequest.md +20 -0
- package/docs/TeamQuotaView.md +30 -0
- package/docs/TusControllerApi.md +8 -7
- package/docs/UserQuotaRequest.md +20 -0
- package/models/enriched-audit-log.ts +4 -0
- package/models/error-response.ts +22 -0
- package/models/index.ts +11 -0
- package/models/mcp-agent-token-config.ts +37 -0
- package/models/mcp-agent-token-info.ts +1 -0
- package/models/my-storage-quota.ts +33 -0
- package/models/quota-overview.ts +25 -0
- package/models/quota-usage.ts +36 -0
- package/models/quota-user-page.ts +26 -0
- package/models/search-by-audit-log-request.ts +4 -0
- package/models/setting-dto.ts +32 -0
- package/models/start-request.ts +20 -0
- package/models/storage-breakdown.ts +4 -0
- package/models/team-quota-request.ts +23 -0
- package/models/team-quota-view.ts +25 -0
- package/models/user-quota-request.ts +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* openfilz-api
|
|
6
|
+
* API for Document Management System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.QuotaAdministrationApi = exports.QuotaAdministrationApiFactory = exports.QuotaAdministrationApiFp = exports.QuotaAdministrationApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* QuotaAdministrationApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const QuotaAdministrationApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Its members fall back to their other teams or the default.
|
|
39
|
+
* @summary Remove a team\'s limit
|
|
40
|
+
* @param {string} teamId
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
clear: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
|
|
45
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('clear', 'teamId', teamId);
|
|
47
|
+
const localVarPath = `/api/v1/admin/quotas/teams/{teamId}`
|
|
48
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication keycloak_auth required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
* The group or default limit applies again.
|
|
72
|
+
* @summary Remove one user\'s own limit
|
|
73
|
+
* @param {string} username
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
clearUserQuota: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
78
|
+
// verify required parameter 'username' is not null or undefined
|
|
79
|
+
(0, common_1.assertParamExists)('clearUserQuota', 'username', username);
|
|
80
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
81
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
89
|
+
const localVarHeaderParameter = {};
|
|
90
|
+
const localVarQueryParameter = {};
|
|
91
|
+
// authentication keycloak_auth required
|
|
92
|
+
// http bearer authentication required
|
|
93
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
94
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
95
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
return {
|
|
99
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Get one user\'s storage
|
|
106
|
+
* @param {string} username
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
getUser: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
111
|
+
// verify required parameter 'username' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('getUser', 'username', username);
|
|
113
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
114
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
// authentication keycloak_auth required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
127
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
131
|
+
return {
|
|
132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
};
|
|
135
|
+
}),
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @summary List teams with their per-member limit and their members\' usage
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
list5: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
143
|
+
const localVarPath = `/api/v1/admin/quotas/teams`;
|
|
144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
146
|
+
let baseOptions;
|
|
147
|
+
if (configuration) {
|
|
148
|
+
baseOptions = configuration.baseOptions;
|
|
149
|
+
}
|
|
150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
151
|
+
const localVarHeaderParameter = {};
|
|
152
|
+
const localVarQueryParameter = {};
|
|
153
|
+
// authentication keycloak_auth required
|
|
154
|
+
// http bearer authentication required
|
|
155
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
156
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
157
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
160
|
+
return {
|
|
161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
}),
|
|
165
|
+
/**
|
|
166
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
167
|
+
* @summary List users\' storage
|
|
168
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
169
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
170
|
+
* @param {string} [order] asc | desc
|
|
171
|
+
* @param {number} [page]
|
|
172
|
+
* @param {number} [size]
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
listUsers: (search_1, sort_1, order_1, page_1, size_1, ...args_1) => __awaiter(this, [search_1, sort_1, order_1, page_1, size_1, ...args_1], void 0, function* (search, sort, order, page, size, options = {}) {
|
|
177
|
+
const localVarPath = `/api/v1/admin/quotas/users`;
|
|
178
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
180
|
+
let baseOptions;
|
|
181
|
+
if (configuration) {
|
|
182
|
+
baseOptions = configuration.baseOptions;
|
|
183
|
+
}
|
|
184
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
185
|
+
const localVarHeaderParameter = {};
|
|
186
|
+
const localVarQueryParameter = {};
|
|
187
|
+
// authentication keycloak_auth required
|
|
188
|
+
// http bearer authentication required
|
|
189
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
190
|
+
if (search !== undefined) {
|
|
191
|
+
localVarQueryParameter['search'] = search;
|
|
192
|
+
}
|
|
193
|
+
if (sort !== undefined) {
|
|
194
|
+
localVarQueryParameter['sort'] = sort;
|
|
195
|
+
}
|
|
196
|
+
if (order !== undefined) {
|
|
197
|
+
localVarQueryParameter['order'] = order;
|
|
198
|
+
}
|
|
199
|
+
if (page !== undefined) {
|
|
200
|
+
localVarQueryParameter['page'] = page;
|
|
201
|
+
}
|
|
202
|
+
if (size !== undefined) {
|
|
203
|
+
localVarQueryParameter['size'] = size;
|
|
204
|
+
}
|
|
205
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
206
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
+
return {
|
|
210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
}),
|
|
214
|
+
/**
|
|
215
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
216
|
+
* @summary Quota overview
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
overview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
221
|
+
const localVarPath = `/api/v1/admin/quotas`;
|
|
222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
224
|
+
let baseOptions;
|
|
225
|
+
if (configuration) {
|
|
226
|
+
baseOptions = configuration.baseOptions;
|
|
227
|
+
}
|
|
228
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
229
|
+
const localVarHeaderParameter = {};
|
|
230
|
+
const localVarQueryParameter = {};
|
|
231
|
+
// authentication keycloak_auth required
|
|
232
|
+
// http bearer authentication required
|
|
233
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
234
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
235
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
238
|
+
return {
|
|
239
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
|
+
options: localVarRequestOptions,
|
|
241
|
+
};
|
|
242
|
+
}),
|
|
243
|
+
/**
|
|
244
|
+
* quotaMb > 0 = limit per member, 0 = members exempt.
|
|
245
|
+
* @summary Set a team\'s per-member limit
|
|
246
|
+
* @param {string} teamId
|
|
247
|
+
* @param {TeamQuotaRequest} teamQuotaRequest
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
set: (teamId_1, teamQuotaRequest_1, ...args_1) => __awaiter(this, [teamId_1, teamQuotaRequest_1, ...args_1], void 0, function* (teamId, teamQuotaRequest, options = {}) {
|
|
252
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
253
|
+
(0, common_1.assertParamExists)('set', 'teamId', teamId);
|
|
254
|
+
// verify required parameter 'teamQuotaRequest' is not null or undefined
|
|
255
|
+
(0, common_1.assertParamExists)('set', 'teamQuotaRequest', teamQuotaRequest);
|
|
256
|
+
const localVarPath = `/api/v1/admin/quotas/teams/{teamId}`
|
|
257
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
let baseOptions;
|
|
261
|
+
if (configuration) {
|
|
262
|
+
baseOptions = configuration.baseOptions;
|
|
263
|
+
}
|
|
264
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
265
|
+
const localVarHeaderParameter = {};
|
|
266
|
+
const localVarQueryParameter = {};
|
|
267
|
+
// authentication keycloak_auth required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
270
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
271
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
275
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(teamQuotaRequest, localVarRequestOptions, configuration);
|
|
276
|
+
return {
|
|
277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
};
|
|
280
|
+
}),
|
|
281
|
+
/**
|
|
282
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
283
|
+
* @summary Set one user\'s own limit
|
|
284
|
+
* @param {string} username
|
|
285
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
setUserQuota: (username_1, userQuotaRequest_1, ...args_1) => __awaiter(this, [username_1, userQuotaRequest_1, ...args_1], void 0, function* (username, userQuotaRequest, options = {}) {
|
|
290
|
+
// verify required parameter 'username' is not null or undefined
|
|
291
|
+
(0, common_1.assertParamExists)('setUserQuota', 'username', username);
|
|
292
|
+
// verify required parameter 'userQuotaRequest' is not null or undefined
|
|
293
|
+
(0, common_1.assertParamExists)('setUserQuota', 'userQuotaRequest', userQuotaRequest);
|
|
294
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
295
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
296
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
297
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
298
|
+
let baseOptions;
|
|
299
|
+
if (configuration) {
|
|
300
|
+
baseOptions = configuration.baseOptions;
|
|
301
|
+
}
|
|
302
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
303
|
+
const localVarHeaderParameter = {};
|
|
304
|
+
const localVarQueryParameter = {};
|
|
305
|
+
// authentication keycloak_auth required
|
|
306
|
+
// http bearer authentication required
|
|
307
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userQuotaRequest, localVarRequestOptions, configuration);
|
|
314
|
+
return {
|
|
315
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
316
|
+
options: localVarRequestOptions,
|
|
317
|
+
};
|
|
318
|
+
}),
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
exports.QuotaAdministrationApiAxiosParamCreator = QuotaAdministrationApiAxiosParamCreator;
|
|
322
|
+
/**
|
|
323
|
+
* QuotaAdministrationApi - functional programming interface
|
|
324
|
+
*/
|
|
325
|
+
const QuotaAdministrationApiFp = function (configuration) {
|
|
326
|
+
const localVarAxiosParamCreator = (0, exports.QuotaAdministrationApiAxiosParamCreator)(configuration);
|
|
327
|
+
return {
|
|
328
|
+
/**
|
|
329
|
+
* Its members fall back to their other teams or the default.
|
|
330
|
+
* @summary Remove a team\'s limit
|
|
331
|
+
* @param {string} teamId
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
clear(teamId, options) {
|
|
336
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
+
var _a, _b, _c;
|
|
338
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clear(teamId, options);
|
|
339
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
340
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.clear']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
341
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
342
|
+
});
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* The group or default limit applies again.
|
|
346
|
+
* @summary Remove one user\'s own limit
|
|
347
|
+
* @param {string} username
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
clearUserQuota(username, options) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
var _a, _b, _c;
|
|
354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clearUserQuota(username, options);
|
|
355
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
356
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.clearUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
357
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @summary Get one user\'s storage
|
|
363
|
+
* @param {string} username
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
getUser(username, options) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
var _a, _b, _c;
|
|
370
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(username, options);
|
|
371
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
372
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.getUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
373
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
374
|
+
});
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @summary List teams with their per-member limit and their members\' usage
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
list5(options) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
var _a, _b, _c;
|
|
385
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.list5(options);
|
|
386
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
387
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.list5']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
388
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
389
|
+
});
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
393
|
+
* @summary List users\' storage
|
|
394
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
395
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
396
|
+
* @param {string} [order] asc | desc
|
|
397
|
+
* @param {number} [page]
|
|
398
|
+
* @param {number} [size]
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
listUsers(search, sort, order, page, size, options) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
var _a, _b, _c;
|
|
405
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(search, sort, order, page, size, options);
|
|
406
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
407
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
408
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
409
|
+
});
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
413
|
+
* @summary Quota overview
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
overview(options) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
var _a, _b, _c;
|
|
420
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.overview(options);
|
|
421
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
422
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.overview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
423
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
* quotaMb > 0 = limit per member, 0 = members exempt.
|
|
428
|
+
* @summary Set a team\'s per-member limit
|
|
429
|
+
* @param {string} teamId
|
|
430
|
+
* @param {TeamQuotaRequest} teamQuotaRequest
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
set(teamId, teamQuotaRequest, options) {
|
|
435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
+
var _a, _b, _c;
|
|
437
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.set(teamId, teamQuotaRequest, options);
|
|
438
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
439
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.set']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
440
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
441
|
+
});
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
445
|
+
* @summary Set one user\'s own limit
|
|
446
|
+
* @param {string} username
|
|
447
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
setUserQuota(username, userQuotaRequest, options) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
var _a, _b, _c;
|
|
454
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setUserQuota(username, userQuotaRequest, options);
|
|
455
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
456
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.setUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
457
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
458
|
+
});
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
exports.QuotaAdministrationApiFp = QuotaAdministrationApiFp;
|
|
463
|
+
/**
|
|
464
|
+
* QuotaAdministrationApi - factory interface
|
|
465
|
+
*/
|
|
466
|
+
const QuotaAdministrationApiFactory = function (configuration, basePath, axios) {
|
|
467
|
+
const localVarFp = (0, exports.QuotaAdministrationApiFp)(configuration);
|
|
468
|
+
return {
|
|
469
|
+
/**
|
|
470
|
+
* Its members fall back to their other teams or the default.
|
|
471
|
+
* @summary Remove a team\'s limit
|
|
472
|
+
* @param {string} teamId
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
clear(teamId, options) {
|
|
477
|
+
return localVarFp.clear(teamId, options).then((request) => request(axios, basePath));
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
* The group or default limit applies again.
|
|
481
|
+
* @summary Remove one user\'s own limit
|
|
482
|
+
* @param {string} username
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
clearUserQuota(username, options) {
|
|
487
|
+
return localVarFp.clearUserQuota(username, options).then((request) => request(axios, basePath));
|
|
488
|
+
},
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @summary Get one user\'s storage
|
|
492
|
+
* @param {string} username
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
getUser(username, options) {
|
|
497
|
+
return localVarFp.getUser(username, options).then((request) => request(axios, basePath));
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
*
|
|
501
|
+
* @summary List teams with their per-member limit and their members\' usage
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
list5(options) {
|
|
506
|
+
return localVarFp.list5(options).then((request) => request(axios, basePath));
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
510
|
+
* @summary List users\' storage
|
|
511
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
512
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
513
|
+
* @param {string} [order] asc | desc
|
|
514
|
+
* @param {number} [page]
|
|
515
|
+
* @param {number} [size]
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
*/
|
|
519
|
+
listUsers(search, sort, order, page, size, options) {
|
|
520
|
+
return localVarFp.listUsers(search, sort, order, page, size, options).then((request) => request(axios, basePath));
|
|
521
|
+
},
|
|
522
|
+
/**
|
|
523
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
524
|
+
* @summary Quota overview
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
overview(options) {
|
|
529
|
+
return localVarFp.overview(options).then((request) => request(axios, basePath));
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
* quotaMb > 0 = limit per member, 0 = members exempt.
|
|
533
|
+
* @summary Set a team\'s per-member limit
|
|
534
|
+
* @param {string} teamId
|
|
535
|
+
* @param {TeamQuotaRequest} teamQuotaRequest
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
set(teamId, teamQuotaRequest, options) {
|
|
540
|
+
return localVarFp.set(teamId, teamQuotaRequest, options).then((request) => request(axios, basePath));
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
544
|
+
* @summary Set one user\'s own limit
|
|
545
|
+
* @param {string} username
|
|
546
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
setUserQuota(username, userQuotaRequest, options) {
|
|
551
|
+
return localVarFp.setUserQuota(username, userQuotaRequest, options).then((request) => request(axios, basePath));
|
|
552
|
+
},
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
exports.QuotaAdministrationApiFactory = QuotaAdministrationApiFactory;
|
|
556
|
+
/**
|
|
557
|
+
* QuotaAdministrationApi - object-oriented interface
|
|
558
|
+
*/
|
|
559
|
+
class QuotaAdministrationApi extends base_1.BaseAPI {
|
|
560
|
+
/**
|
|
561
|
+
* Its members fall back to their other teams or the default.
|
|
562
|
+
* @summary Remove a team\'s limit
|
|
563
|
+
* @param {string} teamId
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
clear(teamId, options) {
|
|
568
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).clear(teamId, options).then((request) => request(this.axios, this.basePath));
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* The group or default limit applies again.
|
|
572
|
+
* @summary Remove one user\'s own limit
|
|
573
|
+
* @param {string} username
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
*/
|
|
577
|
+
clearUserQuota(username, options) {
|
|
578
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).clearUserQuota(username, options).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
*
|
|
582
|
+
* @summary Get one user\'s storage
|
|
583
|
+
* @param {string} username
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
getUser(username, options) {
|
|
588
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).getUser(username, options).then((request) => request(this.axios, this.basePath));
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @summary List teams with their per-member limit and their members\' usage
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
list5(options) {
|
|
597
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).list5(options).then((request) => request(this.axios, this.basePath));
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
601
|
+
* @summary List users\' storage
|
|
602
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
603
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
604
|
+
* @param {string} [order] asc | desc
|
|
605
|
+
* @param {number} [page]
|
|
606
|
+
* @param {number} [size]
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
listUsers(search, sort, order, page, size, options) {
|
|
611
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).listUsers(search, sort, order, page, size, options).then((request) => request(this.axios, this.basePath));
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
615
|
+
* @summary Quota overview
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
overview(options) {
|
|
620
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* quotaMb > 0 = limit per member, 0 = members exempt.
|
|
624
|
+
* @summary Set a team\'s per-member limit
|
|
625
|
+
* @param {string} teamId
|
|
626
|
+
* @param {TeamQuotaRequest} teamQuotaRequest
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
set(teamId, teamQuotaRequest, options) {
|
|
631
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).set(teamId, teamQuotaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
635
|
+
* @summary Set one user\'s own limit
|
|
636
|
+
* @param {string} username
|
|
637
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
*/
|
|
641
|
+
setUserQuota(username, userQuotaRequest, options) {
|
|
642
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).setUserQuota(username, userQuotaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
exports.QuotaAdministrationApi = QuotaAdministrationApi;
|