@coscine/api-client 2.2.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1064 -1588
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1066 -1590
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +51 -23
- package/dist/lib/Coscine.Api.Admin/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Admin/base.js +1 -1
- package/dist/lib/Coscine.Api.Admin/common.js +1 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Admin/index.js +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +1 -66
- package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/base.js +1 -1
- package/dist/lib/Coscine.Api.Blob/common.js +1 -1
- package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Blob/index.js +1 -1
- package/dist/lib/Coscine.Api.Pid/api.js +204 -0
- package/dist/lib/Coscine.Api.Pid/api.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/base.js +3 -3
- package/dist/lib/Coscine.Api.Pid/base.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/common.js +2 -2
- package/dist/lib/Coscine.Api.Pid/common.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/configuration.js +2 -2
- package/dist/lib/Coscine.Api.Pid/configuration.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/index.js +2 -2
- package/dist/lib/Coscine.Api.Pid/index.js.map +1 -0
- package/dist/lib/Coscine.Api.Project/api.js +350 -537
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +1 -1
- package/dist/lib/Coscine.Api.Project/common.js +1 -1
- package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Project/index.js +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +232 -42
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +1 -1
- package/dist/lib/Coscine.Api.Resources/common.js +1 -1
- package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Resources/index.js +1 -1
- package/dist/lib/Coscine.Api.Search/api.js +41 -30
- package/dist/lib/Coscine.Api.Search/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Search/base.js +2 -2
- package/dist/lib/Coscine.Api.Search/common.js +1 -1
- package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Search/index.js +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +2 -2
- package/dist/lib/Coscine.Api.Tree/common.js +1 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Tree/index.js +1 -1
- package/dist/lib/Coscine.Api.User/api.js +1 -1
- package/dist/lib/Coscine.Api.User/base.js +1 -1
- package/dist/lib/Coscine.Api.User/common.js +1 -1
- package/dist/lib/Coscine.Api.User/configuration.js +1 -1
- package/dist/lib/Coscine.Api.User/index.js +1 -1
- package/dist/lib/apis.js +20 -20
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +100 -66
- package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +1 -34
- package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/api.d.ts +149 -0
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/base.d.ts +2 -2
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/common.d.ts +2 -2
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/configuration.d.ts +2 -2
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/index.d.ts +2 -2
- package/dist/types/Coscine.Api.Project/api.d.ts +312 -328
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +237 -41
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/api.d.ts +53 -30
- package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/Coscine.Api.User/api.d.ts +1 -1
- package/dist/types/Coscine.Api.User/base.d.ts +1 -1
- package/dist/types/Coscine.Api.User/common.d.ts +1 -1
- package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.User/index.d.ts +1 -1
- package/dist/types/apis.d.ts +17 -26
- package/dist/types/index.d.ts +34 -52
- package/package.json +2 -2
- package/dist/lib/Coscine.Api.Quota/api.js +0 -283
- package/dist/lib/Coscine.Api.Quota/api.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/index.js.map +0 -1
- package/dist/types/Coscine.Api.Quota/api.d.ts +0 -197
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Coscine.Api.Quota
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 2.6.3
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.QuotaApi = exports.QuotaApiFactory = exports.QuotaApiFp = exports.QuotaApiAxiosParamCreator = void 0;
|
|
29
|
-
const axios_1 = __importDefault(require("axios"));
|
|
30
|
-
// Some imports not used depending on template conditions
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
const common_1 = require("./common");
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
const base_1 = require("./base");
|
|
35
|
-
/**
|
|
36
|
-
* QuotaApi - axios parameter creator
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
const QuotaApiAxiosParamCreator = function (configuration) {
|
|
40
|
-
return {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @summary Retrieves the quota for the resource.
|
|
44
|
-
* @param {string} resourceId Id of the resource.
|
|
45
|
-
* @param {*} [options] Override http request option.
|
|
46
|
-
* @throws {RequiredError}
|
|
47
|
-
*/
|
|
48
|
-
quotaGetResourceQuota: (resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
50
|
-
(0, common_1.assertParamExists)('quotaGetResourceQuota', 'resourceId', resourceId);
|
|
51
|
-
const localVarPath = `/Quota/{resourceId}`
|
|
52
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
53
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
55
|
-
let baseOptions;
|
|
56
|
-
if (configuration) {
|
|
57
|
-
baseOptions = configuration.baseOptions;
|
|
58
|
-
}
|
|
59
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
60
|
-
const localVarHeaderParameter = {};
|
|
61
|
-
const localVarQueryParameter = {};
|
|
62
|
-
// authentication JWT token required
|
|
63
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
64
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
65
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
67
|
-
return {
|
|
68
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
69
|
-
options: localVarRequestOptions,
|
|
70
|
-
};
|
|
71
|
-
}),
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
75
|
-
* @param {string} projectId Id of the project.
|
|
76
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
77
|
-
* @param {*} [options] Override http request option.
|
|
78
|
-
* @throws {RequiredError}
|
|
79
|
-
*/
|
|
80
|
-
quotaGetResourceQuotas: (projectId, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
82
|
-
(0, common_1.assertParamExists)('quotaGetResourceQuotas', 'projectId', projectId);
|
|
83
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
84
|
-
(0, common_1.assertParamExists)('quotaGetResourceQuotas', 'resourceTypeId', resourceTypeId);
|
|
85
|
-
const localVarPath = `/Quota/{projectId}/{resourceTypeId}/all`
|
|
86
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
87
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
88
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
90
|
-
let baseOptions;
|
|
91
|
-
if (configuration) {
|
|
92
|
-
baseOptions = configuration.baseOptions;
|
|
93
|
-
}
|
|
94
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
95
|
-
const localVarHeaderParameter = {};
|
|
96
|
-
const localVarQueryParameter = {};
|
|
97
|
-
// authentication JWT token required
|
|
98
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
99
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
100
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
102
|
-
return {
|
|
103
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
104
|
-
options: localVarRequestOptions,
|
|
105
|
-
};
|
|
106
|
-
}),
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @summary Updates the quota for a resource.
|
|
110
|
-
* @param {string} resourceId
|
|
111
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
112
|
-
* @param {*} [options] Override http request option.
|
|
113
|
-
* @throws {RequiredError}
|
|
114
|
-
*/
|
|
115
|
-
quotaUpdateResourceQuota: (resourceId, updateResourceObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('quotaUpdateResourceQuota', 'resourceId', resourceId);
|
|
118
|
-
// verify required parameter 'updateResourceObject' is not null or undefined
|
|
119
|
-
(0, common_1.assertParamExists)('quotaUpdateResourceQuota', 'updateResourceObject', updateResourceObject);
|
|
120
|
-
const localVarPath = `/Quota/{resourceId}`
|
|
121
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
122
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
124
|
-
let baseOptions;
|
|
125
|
-
if (configuration) {
|
|
126
|
-
baseOptions = configuration.baseOptions;
|
|
127
|
-
}
|
|
128
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
129
|
-
const localVarHeaderParameter = {};
|
|
130
|
-
const localVarQueryParameter = {};
|
|
131
|
-
// authentication JWT token required
|
|
132
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
133
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
134
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
135
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateResourceObject, localVarRequestOptions, configuration);
|
|
138
|
-
return {
|
|
139
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
-
options: localVarRequestOptions,
|
|
141
|
-
};
|
|
142
|
-
}),
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
exports.QuotaApiAxiosParamCreator = QuotaApiAxiosParamCreator;
|
|
146
|
-
/**
|
|
147
|
-
* QuotaApi - functional programming interface
|
|
148
|
-
* @export
|
|
149
|
-
*/
|
|
150
|
-
const QuotaApiFp = function (configuration) {
|
|
151
|
-
const localVarAxiosParamCreator = (0, exports.QuotaApiAxiosParamCreator)(configuration);
|
|
152
|
-
return {
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @summary Retrieves the quota for the resource.
|
|
156
|
-
* @param {string} resourceId Id of the resource.
|
|
157
|
-
* @param {*} [options] Override http request option.
|
|
158
|
-
* @throws {RequiredError}
|
|
159
|
-
*/
|
|
160
|
-
quotaGetResourceQuota(resourceId, options) {
|
|
161
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quotaGetResourceQuota(resourceId, options);
|
|
163
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
164
|
-
});
|
|
165
|
-
},
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
169
|
-
* @param {string} projectId Id of the project.
|
|
170
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
171
|
-
* @param {*} [options] Override http request option.
|
|
172
|
-
* @throws {RequiredError}
|
|
173
|
-
*/
|
|
174
|
-
quotaGetResourceQuotas(projectId, resourceTypeId, options) {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quotaGetResourceQuotas(projectId, resourceTypeId, options);
|
|
177
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
178
|
-
});
|
|
179
|
-
},
|
|
180
|
-
/**
|
|
181
|
-
*
|
|
182
|
-
* @summary Updates the quota for a resource.
|
|
183
|
-
* @param {string} resourceId
|
|
184
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
185
|
-
* @param {*} [options] Override http request option.
|
|
186
|
-
* @throws {RequiredError}
|
|
187
|
-
*/
|
|
188
|
-
quotaUpdateResourceQuota(resourceId, updateResourceObject, options) {
|
|
189
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quotaUpdateResourceQuota(resourceId, updateResourceObject, options);
|
|
191
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
exports.QuotaApiFp = QuotaApiFp;
|
|
197
|
-
/**
|
|
198
|
-
* QuotaApi - factory interface
|
|
199
|
-
* @export
|
|
200
|
-
*/
|
|
201
|
-
const QuotaApiFactory = function (configuration, basePath, axios) {
|
|
202
|
-
const localVarFp = (0, exports.QuotaApiFp)(configuration);
|
|
203
|
-
return {
|
|
204
|
-
/**
|
|
205
|
-
*
|
|
206
|
-
* @summary Retrieves the quota for the resource.
|
|
207
|
-
* @param {string} resourceId Id of the resource.
|
|
208
|
-
* @param {*} [options] Override http request option.
|
|
209
|
-
* @throws {RequiredError}
|
|
210
|
-
*/
|
|
211
|
-
quotaGetResourceQuota(resourceId, options) {
|
|
212
|
-
return localVarFp.quotaGetResourceQuota(resourceId, options).then((request) => request(axios, basePath));
|
|
213
|
-
},
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
217
|
-
* @param {string} projectId Id of the project.
|
|
218
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
219
|
-
* @param {*} [options] Override http request option.
|
|
220
|
-
* @throws {RequiredError}
|
|
221
|
-
*/
|
|
222
|
-
quotaGetResourceQuotas(projectId, resourceTypeId, options) {
|
|
223
|
-
return localVarFp.quotaGetResourceQuotas(projectId, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
224
|
-
},
|
|
225
|
-
/**
|
|
226
|
-
*
|
|
227
|
-
* @summary Updates the quota for a resource.
|
|
228
|
-
* @param {string} resourceId
|
|
229
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
230
|
-
* @param {*} [options] Override http request option.
|
|
231
|
-
* @throws {RequiredError}
|
|
232
|
-
*/
|
|
233
|
-
quotaUpdateResourceQuota(resourceId, updateResourceObject, options) {
|
|
234
|
-
return localVarFp.quotaUpdateResourceQuota(resourceId, updateResourceObject, options).then((request) => request(axios, basePath));
|
|
235
|
-
},
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
exports.QuotaApiFactory = QuotaApiFactory;
|
|
239
|
-
/**
|
|
240
|
-
* QuotaApi - object-oriented interface
|
|
241
|
-
* @export
|
|
242
|
-
* @class QuotaApi
|
|
243
|
-
* @extends {BaseAPI}
|
|
244
|
-
*/
|
|
245
|
-
class QuotaApi extends base_1.BaseAPI {
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* @summary Retrieves the quota for the resource.
|
|
249
|
-
* @param {string} resourceId Id of the resource.
|
|
250
|
-
* @param {*} [options] Override http request option.
|
|
251
|
-
* @throws {RequiredError}
|
|
252
|
-
* @memberof QuotaApi
|
|
253
|
-
*/
|
|
254
|
-
quotaGetResourceQuota(resourceId, options) {
|
|
255
|
-
return (0, exports.QuotaApiFp)(this.configuration).quotaGetResourceQuota(resourceId, options).then((request) => request(this.axios, this.basePath));
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
260
|
-
* @param {string} projectId Id of the project.
|
|
261
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
262
|
-
* @param {*} [options] Override http request option.
|
|
263
|
-
* @throws {RequiredError}
|
|
264
|
-
* @memberof QuotaApi
|
|
265
|
-
*/
|
|
266
|
-
quotaGetResourceQuotas(projectId, resourceTypeId, options) {
|
|
267
|
-
return (0, exports.QuotaApiFp)(this.configuration).quotaGetResourceQuotas(projectId, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
* @summary Updates the quota for a resource.
|
|
272
|
-
* @param {string} resourceId
|
|
273
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
274
|
-
* @param {*} [options] Override http request option.
|
|
275
|
-
* @throws {RequiredError}
|
|
276
|
-
* @memberof QuotaApi
|
|
277
|
-
*/
|
|
278
|
-
quotaUpdateResourceQuota(resourceId, updateResourceObject, options) {
|
|
279
|
-
return (0, exports.QuotaApiFp)(this.configuration).quotaUpdateResourceQuota(resourceId, updateResourceObject, options).then((request) => request(this.axios, this.basePath));
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
exports.QuotaApi = QuotaApi;
|
|
283
|
-
//# sourceMappingURL=api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/Coscine.Api.Quota/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;AAIH,kDAAiE;AACjE,yDAAyD;AACzD,aAAa;AACb,qCAA4N;AAC5N,aAAa;AACb,iCAA4F;AAqD5F;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;WAMG;QACH,qBAAqB,EAAE,CAAO,UAAkB,EAAE,UAAe,EAAE,EAAwB,EAAE;YACzF,kEAAkE;YAClE,IAAA,0BAAiB,EAAC,uBAAuB,EAAE,YAAY,EAAE,UAAU,CAAC,CAAA;YACpE,MAAM,YAAY,GAAG,qBAAqB;iBACrC,OAAO,CAAC,IAAI,YAAY,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAC1E,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE;gBACf,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;aAC3C;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,oCAAoC;YACpC,MAAM,IAAA,0BAAiB,EAAC,uBAA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AC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpK,CAAC;CACJ;AAtCD,4BAsCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/Coscine.Api.Quota/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;AAIH,yDAAyD;AACzD,aAAa;AACb,kDAAiE;AAEpD,QAAA,SAAS,GAAG,2EAA2E,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEzH;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAa,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAa,aAAc,SAAQ,KAAK;IAEpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QADhC,SAAI,GAAoB,eAAe,CAAC;IAGxC,CAAC;CACJ;AALD,sCAKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/Coscine.Api.Quota/common.ts"],"names":[],"mappings":";AAAA,oBA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AI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,GAAC,CAAC;QAC5G,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC,CAAC;AACN,CAAC,CAAA;AALY,QAAA,qBAAqB,yBAKjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/Coscine.Api.Quota/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAaH,MAAa,aAAa;IAmDtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AA3ED,sCA2EC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Coscine.Api.Quota/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;AAGH,wCAAsB;AACtB,kDAAgC"}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Coscine.Api.Quota
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.6.3
|
|
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 { Configuration } from './configuration';
|
|
13
|
-
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
14
|
-
import { RequestArgs, BaseAPI } from './base';
|
|
15
|
-
/**
|
|
16
|
-
* Contains information about the quota of a resource.
|
|
17
|
-
* @export
|
|
18
|
-
* @interface ProjectQuotaReturnObject
|
|
19
|
-
*/
|
|
20
|
-
export interface ProjectQuotaReturnObject {
|
|
21
|
-
/**
|
|
22
|
-
* Id of the resoure.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof ProjectQuotaReturnObject
|
|
25
|
-
*/
|
|
26
|
-
id?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Display name of the resource.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof ProjectQuotaReturnObject
|
|
31
|
-
*/
|
|
32
|
-
name?: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* How much space is used by the resource (rounded up and in gb).
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof ProjectQuotaReturnObject
|
|
37
|
-
*/
|
|
38
|
-
used?: number;
|
|
39
|
-
/**
|
|
40
|
-
* How much space is availabe to be taken by resource (in gb).
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof ProjectQuotaReturnObject
|
|
43
|
-
*/
|
|
44
|
-
allocated?: number;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Parameter object containing the update informations.
|
|
48
|
-
* @export
|
|
49
|
-
* @interface UpdateResourceObject
|
|
50
|
-
*/
|
|
51
|
-
export interface UpdateResourceObject {
|
|
52
|
-
/**
|
|
53
|
-
* Id of the resource.
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof UpdateResourceObject
|
|
56
|
-
*/
|
|
57
|
-
id?: string;
|
|
58
|
-
/**
|
|
59
|
-
* New Quota value.
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof UpdateResourceObject
|
|
62
|
-
*/
|
|
63
|
-
allocated?: number;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* QuotaApi - axios parameter creator
|
|
67
|
-
* @export
|
|
68
|
-
*/
|
|
69
|
-
export declare const QuotaApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @summary Retrieves the quota for the resource.
|
|
73
|
-
* @param {string} resourceId Id of the resource.
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
*/
|
|
77
|
-
quotaGetResourceQuota: (resourceId: string, options?: any) => Promise<RequestArgs>;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
81
|
-
* @param {string} projectId Id of the project.
|
|
82
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
83
|
-
* @param {*} [options] Override http request option.
|
|
84
|
-
* @throws {RequiredError}
|
|
85
|
-
*/
|
|
86
|
-
quotaGetResourceQuotas: (projectId: string, resourceTypeId: string, options?: any) => Promise<RequestArgs>;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @summary Updates the quota for a resource.
|
|
90
|
-
* @param {string} resourceId
|
|
91
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
quotaUpdateResourceQuota: (resourceId: string, updateResourceObject: UpdateResourceObject, options?: any) => Promise<RequestArgs>;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* QuotaApi - functional programming interface
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
export declare const QuotaApiFp: (configuration?: Configuration) => {
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @summary Retrieves the quota for the resource.
|
|
105
|
-
* @param {string} resourceId Id of the resource.
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
*/
|
|
109
|
-
quotaGetResourceQuota(resourceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectQuotaReturnObject>>;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
113
|
-
* @param {string} projectId Id of the project.
|
|
114
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
115
|
-
* @param {*} [options] Override http request option.
|
|
116
|
-
* @throws {RequiredError}
|
|
117
|
-
*/
|
|
118
|
-
quotaGetResourceQuotas(projectId: string, resourceTypeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProjectQuotaReturnObject>>>;
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @summary Updates the quota for a resource.
|
|
122
|
-
* @param {string} resourceId
|
|
123
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
124
|
-
* @param {*} [options] Override http request option.
|
|
125
|
-
* @throws {RequiredError}
|
|
126
|
-
*/
|
|
127
|
-
quotaUpdateResourceQuota(resourceId: string, updateResourceObject: UpdateResourceObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* QuotaApi - factory interface
|
|
131
|
-
* @export
|
|
132
|
-
*/
|
|
133
|
-
export declare const QuotaApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
* @summary Retrieves the quota for the resource.
|
|
137
|
-
* @param {string} resourceId Id of the resource.
|
|
138
|
-
* @param {*} [options] Override http request option.
|
|
139
|
-
* @throws {RequiredError}
|
|
140
|
-
*/
|
|
141
|
-
quotaGetResourceQuota(resourceId: string, options?: any): AxiosPromise<ProjectQuotaReturnObject>;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
145
|
-
* @param {string} projectId Id of the project.
|
|
146
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
147
|
-
* @param {*} [options] Override http request option.
|
|
148
|
-
* @throws {RequiredError}
|
|
149
|
-
*/
|
|
150
|
-
quotaGetResourceQuotas(projectId: string, resourceTypeId: string, options?: any): AxiosPromise<Array<ProjectQuotaReturnObject>>;
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @summary Updates the quota for a resource.
|
|
154
|
-
* @param {string} resourceId
|
|
155
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
156
|
-
* @param {*} [options] Override http request option.
|
|
157
|
-
* @throws {RequiredError}
|
|
158
|
-
*/
|
|
159
|
-
quotaUpdateResourceQuota(resourceId: string, updateResourceObject: UpdateResourceObject, options?: any): AxiosPromise<any>;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* QuotaApi - object-oriented interface
|
|
163
|
-
* @export
|
|
164
|
-
* @class QuotaApi
|
|
165
|
-
* @extends {BaseAPI}
|
|
166
|
-
*/
|
|
167
|
-
export declare class QuotaApi extends BaseAPI {
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
* @summary Retrieves the quota for the resource.
|
|
171
|
-
* @param {string} resourceId Id of the resource.
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
* @memberof QuotaApi
|
|
175
|
-
*/
|
|
176
|
-
quotaGetResourceQuota(resourceId: string, options?: any): Promise<import("axios").AxiosResponse<ProjectQuotaReturnObject>>;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @summary Retrieves the quota for the selected project and resource type.
|
|
180
|
-
* @param {string} projectId Id of the project.
|
|
181
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
182
|
-
* @param {*} [options] Override http request option.
|
|
183
|
-
* @throws {RequiredError}
|
|
184
|
-
* @memberof QuotaApi
|
|
185
|
-
*/
|
|
186
|
-
quotaGetResourceQuotas(projectId: string, resourceTypeId: string, options?: any): Promise<import("axios").AxiosResponse<ProjectQuotaReturnObject[]>>;
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @summary Updates the quota for a resource.
|
|
190
|
-
* @param {string} resourceId
|
|
191
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
192
|
-
* @param {*} [options] Override http request option.
|
|
193
|
-
* @throws {RequiredError}
|
|
194
|
-
* @memberof QuotaApi
|
|
195
|
-
*/
|
|
196
|
-
quotaUpdateResourceQuota(resourceId: string, updateResourceObject: UpdateResourceObject, options?: any): Promise<import("axios").AxiosResponse<any>>;
|
|
197
|
-
}
|