@openfilz-sdk/typescript 1.3.29 → 1.3.30
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 +16 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +14 -2
- package/api/quota-administration-api.ts +456 -0
- package/api/quotas-api.ts +121 -0
- package/api/tus-controller-api.ts +8 -4
- package/api.ts +2 -0
- package/dist/api/quota-administration-api.d.ts +214 -0
- package/dist/api/quota-administration-api.js +437 -0
- package/dist/api/quotas-api.d.ts +63 -0
- package/dist/api/quotas-api.js +125 -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 +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/quota-administration-api.d.ts +214 -0
- package/dist/esm/api/quota-administration-api.js +430 -0
- package/dist/esm/api/quotas-api.d.ts +63 -0
- package/dist/esm/api/quotas-api.js +118 -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 +2 -0
- package/dist/esm/api.js +2 -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 +6 -0
- package/dist/esm/models/index.js +6 -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/storage-breakdown.d.ts +2 -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/error-response.d.ts +16 -0
- package/dist/models/error-response.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -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/storage-breakdown.d.ts +2 -0
- package/dist/models/user-quota-request.d.ts +17 -0
- package/dist/models/user-quota-request.js +15 -0
- package/docs/ErrorResponse.md +24 -0
- package/docs/MyStorageQuota.md +28 -0
- package/docs/QuotaAdministrationApi.md +275 -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/StorageBreakdown.md +2 -0
- package/docs/TusControllerApi.md +8 -7
- package/docs/UserQuotaRequest.md +20 -0
- package/models/error-response.ts +22 -0
- package/models/index.ts +6 -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/storage-breakdown.ts +4 -0
- package/models/user-quota-request.ts +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
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 { MyStorageQuota } from '../models';
|
|
26
|
+
/**
|
|
27
|
+
* QuotasApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
export const QuotasApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
33
|
+
* @summary Get my storage quota
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
myQuota: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
const localVarPath = `/api/v1/quotas/me`;
|
|
39
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
|
+
let baseOptions;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
baseOptions = configuration.baseOptions;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
47
|
+
const localVarHeaderParameter = {} as any;
|
|
48
|
+
const localVarQueryParameter = {} as any;
|
|
49
|
+
|
|
50
|
+
// authentication keycloak_auth required
|
|
51
|
+
// http bearer authentication required
|
|
52
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
53
|
+
|
|
54
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
55
|
+
|
|
56
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
url: toPathString(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* QuotasApi - functional programming interface
|
|
70
|
+
*/
|
|
71
|
+
export const QuotasApiFp = function(configuration?: Configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = QuotasApiAxiosParamCreator(configuration)
|
|
73
|
+
return {
|
|
74
|
+
/**
|
|
75
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
76
|
+
* @summary Get my storage quota
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
async myQuota(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyStorageQuota>> {
|
|
81
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.myQuota(options);
|
|
82
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
83
|
+
const localVarOperationServerBasePath = operationServerMap['QuotasApi.myQuota']?.[localVarOperationServerIndex]?.url;
|
|
84
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* QuotasApi - factory interface
|
|
91
|
+
*/
|
|
92
|
+
export const QuotasApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = QuotasApiFp(configuration)
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
97
|
+
* @summary Get my storage quota
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
myQuota(options?: RawAxiosRequestConfig): AxiosPromise<MyStorageQuota> {
|
|
102
|
+
return localVarFp.myQuota(options).then((request) => request(axios, basePath));
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* QuotasApi - object-oriented interface
|
|
109
|
+
*/
|
|
110
|
+
export class QuotasApi extends BaseAPI {
|
|
111
|
+
/**
|
|
112
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
113
|
+
* @summary Get my storage quota
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
public myQuota(options?: RawAxiosRequestConfig) {
|
|
118
|
+
return QuotasApiFp(this.configuration).myQuota(options).then((request) => request(this.axios, this.basePath));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
+
import type { ErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
25
27
|
import type { TusConfigResponse } from '../models';
|
|
26
28
|
// @ts-ignore
|
|
27
29
|
import type { TusFinalizeRequest } from '../models';
|
|
@@ -131,6 +133,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
131
133
|
// http bearer authentication required
|
|
132
134
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
133
135
|
|
|
136
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
134
137
|
|
|
135
138
|
if (uploadLength != null) {
|
|
136
139
|
localVarHeaderParameter['Upload-Length'] = typeof uploadLength === 'string'
|
|
@@ -374,6 +377,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
374
377
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
375
378
|
|
|
376
379
|
localVarHeaderParameter['Content-Type'] = 'application/offset+octet-stream';
|
|
380
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
377
381
|
|
|
378
382
|
if (uploadOffset != null) {
|
|
379
383
|
localVarHeaderParameter['Upload-Offset'] = typeof uploadOffset === 'string'
|
|
@@ -437,7 +441,7 @@ export const TusControllerApiFp = function(configuration?: Configuration) {
|
|
|
437
441
|
* @param {*} [options] Override http request option.
|
|
438
442
|
* @throws {RequiredError}
|
|
439
443
|
*/
|
|
440
|
-
async createUpload(uploadLength: number, uploadMetadata?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
444
|
+
async createUpload(uploadLength: number, uploadMetadata?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
441
445
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createUpload(uploadLength, uploadMetadata, options);
|
|
442
446
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
443
447
|
const localVarOperationServerBasePath = operationServerMap['TusControllerApi.createUpload']?.[localVarOperationServerIndex]?.url;
|
|
@@ -518,7 +522,7 @@ export const TusControllerApiFp = function(configuration?: Configuration) {
|
|
|
518
522
|
* @param {*} [options] Override http request option.
|
|
519
523
|
* @throws {RequiredError}
|
|
520
524
|
*/
|
|
521
|
-
async uploadChunk(uploadId: string, uploadOffset: number, requestBody: Array<any>, contentLength?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
525
|
+
async uploadChunk(uploadId: string, uploadOffset: number, requestBody: Array<any>, contentLength?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
522
526
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadChunk(uploadId, uploadOffset, requestBody, contentLength, options);
|
|
523
527
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
524
528
|
const localVarOperationServerBasePath = operationServerMap['TusControllerApi.uploadChunk']?.[localVarOperationServerIndex]?.url;
|
|
@@ -560,7 +564,7 @@ export const TusControllerApiFactory = function (configuration?: Configuration,
|
|
|
560
564
|
* @param {*} [options] Override http request option.
|
|
561
565
|
* @throws {RequiredError}
|
|
562
566
|
*/
|
|
563
|
-
createUpload(uploadLength: number, uploadMetadata?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
567
|
+
createUpload(uploadLength: number, uploadMetadata?: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
564
568
|
return localVarFp.createUpload(uploadLength, uploadMetadata, options).then((request) => request(axios, basePath));
|
|
565
569
|
},
|
|
566
570
|
/**
|
|
@@ -623,7 +627,7 @@ export const TusControllerApiFactory = function (configuration?: Configuration,
|
|
|
623
627
|
* @param {*} [options] Override http request option.
|
|
624
628
|
* @throws {RequiredError}
|
|
625
629
|
*/
|
|
626
|
-
uploadChunk(uploadId: string, uploadOffset: number, requestBody: Array<any>, contentLength?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
630
|
+
uploadChunk(uploadId: string, uploadOffset: number, requestBody: Array<any>, contentLength?: number, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
627
631
|
return localVarFp.uploadChunk(uploadId, uploadOffset, requestBody, contentLength, options).then((request) => request(axios, basePath));
|
|
628
632
|
},
|
|
629
633
|
};
|
package/api.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './api/file-controller-api';
|
|
|
31
31
|
export * from './api/folder-controller-api';
|
|
32
32
|
export * from './api/mcp-discovery-controller-api';
|
|
33
33
|
export * from './api/pdftools-api';
|
|
34
|
+
export * from './api/quota-administration-api';
|
|
35
|
+
export * from './api/quotas-api';
|
|
34
36
|
export * from './api/settings-api';
|
|
35
37
|
export * from './api/smart-filing-api';
|
|
36
38
|
export * from './api/tus-controller-api';
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { QuotaOverview } from '../models';
|
|
16
|
+
import type { QuotaUsage } from '../models';
|
|
17
|
+
import type { QuotaUserPage } from '../models';
|
|
18
|
+
import type { UserQuotaRequest } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* QuotaAdministrationApi - axios parameter creator
|
|
21
|
+
*/
|
|
22
|
+
export declare const QuotaAdministrationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* The group or default limit applies again.
|
|
25
|
+
* @summary Remove one user\'s own limit
|
|
26
|
+
* @param {string} username
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
clearUserQuota: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Get one user\'s storage
|
|
34
|
+
* @param {string} username
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getUser: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
|
+
/**
|
|
40
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
41
|
+
* @summary List users\' storage
|
|
42
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
43
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
44
|
+
* @param {string} [order] asc | desc
|
|
45
|
+
* @param {number} [page]
|
|
46
|
+
* @param {number} [size]
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
listUsers: (search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
/**
|
|
52
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
53
|
+
* @summary Quota overview
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
overview: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
|
+
/**
|
|
59
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
60
|
+
* @summary Set one user\'s own limit
|
|
61
|
+
* @param {string} username
|
|
62
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
setUserQuota: (username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* QuotaAdministrationApi - functional programming interface
|
|
70
|
+
*/
|
|
71
|
+
export declare const QuotaAdministrationApiFp: (configuration?: Configuration) => {
|
|
72
|
+
/**
|
|
73
|
+
* The group or default limit applies again.
|
|
74
|
+
* @summary Remove one user\'s own limit
|
|
75
|
+
* @param {string} username
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
clearUserQuota(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUsage>>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Get one user\'s storage
|
|
83
|
+
* @param {string} username
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
getUser(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUsage>>;
|
|
88
|
+
/**
|
|
89
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
90
|
+
* @summary List users\' storage
|
|
91
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
92
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
93
|
+
* @param {string} [order] asc | desc
|
|
94
|
+
* @param {number} [page]
|
|
95
|
+
* @param {number} [size]
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
listUsers(search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUserPage>>;
|
|
100
|
+
/**
|
|
101
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
102
|
+
* @summary Quota overview
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
overview(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaOverview>>;
|
|
107
|
+
/**
|
|
108
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
109
|
+
* @summary Set one user\'s own limit
|
|
110
|
+
* @param {string} username
|
|
111
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
setUserQuota(username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUsage>>;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* QuotaAdministrationApi - factory interface
|
|
119
|
+
*/
|
|
120
|
+
export declare const QuotaAdministrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
121
|
+
/**
|
|
122
|
+
* The group or default limit applies again.
|
|
123
|
+
* @summary Remove one user\'s own limit
|
|
124
|
+
* @param {string} username
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
clearUserQuota(username: string, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUsage>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @summary Get one user\'s storage
|
|
132
|
+
* @param {string} username
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
getUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUsage>;
|
|
137
|
+
/**
|
|
138
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
139
|
+
* @summary List users\' storage
|
|
140
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
141
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
142
|
+
* @param {string} [order] asc | desc
|
|
143
|
+
* @param {number} [page]
|
|
144
|
+
* @param {number} [size]
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
listUsers(search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUserPage>;
|
|
149
|
+
/**
|
|
150
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
151
|
+
* @summary Quota overview
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
overview(options?: RawAxiosRequestConfig): AxiosPromise<QuotaOverview>;
|
|
156
|
+
/**
|
|
157
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
158
|
+
* @summary Set one user\'s own limit
|
|
159
|
+
* @param {string} username
|
|
160
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
setUserQuota(username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUsage>;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* QuotaAdministrationApi - object-oriented interface
|
|
168
|
+
*/
|
|
169
|
+
export declare class QuotaAdministrationApi extends BaseAPI {
|
|
170
|
+
/**
|
|
171
|
+
* The group or default limit applies again.
|
|
172
|
+
* @summary Remove one user\'s own limit
|
|
173
|
+
* @param {string} username
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
clearUserQuota(username: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QuotaUsage, any, {}>>;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @summary Get one user\'s storage
|
|
181
|
+
* @param {string} username
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
getUser(username: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QuotaUsage, any, {}>>;
|
|
186
|
+
/**
|
|
187
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
188
|
+
* @summary List users\' storage
|
|
189
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
190
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
191
|
+
* @param {string} [order] asc | desc
|
|
192
|
+
* @param {number} [page]
|
|
193
|
+
* @param {number} [size]
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
listUsers(search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QuotaUserPage, any, {}>>;
|
|
198
|
+
/**
|
|
199
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
200
|
+
* @summary Quota overview
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
overview(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QuotaOverview, any, {}>>;
|
|
205
|
+
/**
|
|
206
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
207
|
+
* @summary Set one user\'s own limit
|
|
208
|
+
* @param {string} username
|
|
209
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
setUserQuota(username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QuotaUsage, any, {}>>;
|
|
214
|
+
}
|