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