@coscine/api-client 2.1.0 → 2.4.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 +2011 -2771
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2012 -2773
- 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.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 +29 -29
- package/dist/lib/Coscine.Api.Search/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +29 -15
- package/dist/lib/Coscine.Api.Tree/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +1 -1
- 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 +35 -37
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +3 -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.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 +478 -24
- package/dist/types/Coscine.Api.Tree/api.d.ts +17 -9
- 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 +15 -28
- package/dist/types/index.d.ts +30 -56
- 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 +0 -65
- package/dist/lib/Coscine.Api.Quota/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/common.js +0 -153
- package/dist/lib/Coscine.Api.Quota/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/configuration.js +0 -43
- package/dist/lib/Coscine.Api.Quota/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/index.js +0 -28
- package/dist/lib/Coscine.Api.Quota/index.js.map +0 -1
- package/dist/types/Coscine.Api.Quota/api.d.ts +0 -197
- package/dist/types/Coscine.Api.Quota/base.d.ts +0 -55
- package/dist/types/Coscine.Api.Quota/common.d.ts +0 -65
- package/dist/types/Coscine.Api.Quota/configuration.d.ts +0 -83
- package/dist/types/Coscine.Api.Quota/index.d.ts +0 -13
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Coscine.Api.Project
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document:
|
|
8
|
+
* The version of the OpenAPI document: 4.0.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,13 +25,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.VisibilityApi = exports.VisibilityApiFactory = exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.SubProjectApi = exports.SubProjectApiFactory = exports.SubProjectApiFp = exports.SubProjectApiAxiosParamCreator = exports.
|
|
28
|
+
exports.VisibilityApi = exports.VisibilityApiFactory = exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.SubProjectApi = exports.SubProjectApiFactory = exports.SubProjectApiFp = exports.SubProjectApiAxiosParamCreator = exports.RoleApi = exports.RoleApiFactory = exports.RoleApiFp = exports.RoleApiAxiosParamCreator = exports.ProjectRoleApi = exports.ProjectRoleApiFactory = exports.ProjectRoleApiFp = exports.ProjectRoleApiAxiosParamCreator = exports.ProjectQuotaApi = exports.ProjectQuotaApiFactory = exports.ProjectQuotaApiFp = exports.ProjectQuotaApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.LicenseApi = exports.LicenseApiFactory = exports.LicenseApiFp = exports.LicenseApiAxiosParamCreator = exports.DisciplineApi = exports.DisciplineApiFactory = exports.DisciplineApiFp = exports.DisciplineApiAxiosParamCreator = exports.QuotaUnit = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
const common_1 = require("./common");
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("./base");
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
var QuotaUnit;
|
|
41
|
+
(function (QuotaUnit) {
|
|
42
|
+
QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
|
|
43
|
+
QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
|
|
44
|
+
QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
|
|
45
|
+
QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
|
|
46
|
+
QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
|
|
47
|
+
QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
|
|
48
|
+
})(QuotaUnit = exports.QuotaUnit || (exports.QuotaUnit = {}));
|
|
35
49
|
/**
|
|
36
50
|
* DisciplineApi - axios parameter creator
|
|
37
51
|
* @export
|
|
@@ -263,7 +277,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
263
277
|
}),
|
|
264
278
|
/**
|
|
265
279
|
*
|
|
266
|
-
* @summary Deletes
|
|
280
|
+
* @summary Deletes a project
|
|
267
281
|
* @param {string} id Id of the project
|
|
268
282
|
* @param {*} [options] Override http request option.
|
|
269
283
|
* @throws {RequiredError}
|
|
@@ -387,42 +401,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
387
401
|
}),
|
|
388
402
|
/**
|
|
389
403
|
*
|
|
390
|
-
* @summary
|
|
391
|
-
* @param {string} id Id of the project.
|
|
392
|
-
* @param {string} resourceTypeId Id of the resource
|
|
393
|
-
* @param {*} [options] Override http request option.
|
|
394
|
-
* @throws {RequiredError}
|
|
395
|
-
*/
|
|
396
|
-
projectGetQuotaMax: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
397
|
-
// verify required parameter 'id' is not null or undefined
|
|
398
|
-
(0, common_1.assertParamExists)('projectGetQuotaMax', 'id', id);
|
|
399
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
400
|
-
(0, common_1.assertParamExists)('projectGetQuotaMax', 'resourceTypeId', resourceTypeId);
|
|
401
|
-
const localVarPath = `/Project/{id}/quota/{resourceTypeId}/max`
|
|
402
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
403
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
404
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
405
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
406
|
-
let baseOptions;
|
|
407
|
-
if (configuration) {
|
|
408
|
-
baseOptions = configuration.baseOptions;
|
|
409
|
-
}
|
|
410
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
411
|
-
const localVarHeaderParameter = {};
|
|
412
|
-
const localVarQueryParameter = {};
|
|
413
|
-
// authentication JWT token required
|
|
414
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
415
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
416
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
417
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
418
|
-
return {
|
|
419
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
420
|
-
options: localVarRequestOptions,
|
|
421
|
-
};
|
|
422
|
-
}),
|
|
423
|
-
/**
|
|
424
|
-
*
|
|
425
|
-
* @summary Gets the resources
|
|
404
|
+
* @summary Gets all resources in a project
|
|
426
405
|
* @param {string} id Id of the project
|
|
427
406
|
* @param {*} [options] Override http request option.
|
|
428
407
|
* @throws {RequiredError}
|
|
@@ -538,73 +517,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
538
517
|
}),
|
|
539
518
|
/**
|
|
540
519
|
*
|
|
541
|
-
* @summary
|
|
542
|
-
* @param {string} id Id of the project
|
|
543
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
544
|
-
* @param {*} [options] Override http request option.
|
|
545
|
-
* @throws {RequiredError}
|
|
546
|
-
*/
|
|
547
|
-
projectQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
548
|
-
// verify required parameter 'id' is not null or undefined
|
|
549
|
-
(0, common_1.assertParamExists)('projectQuota', 'id', id);
|
|
550
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
551
|
-
(0, common_1.assertParamExists)('projectQuota', 'resourceTypeId', resourceTypeId);
|
|
552
|
-
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
553
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
554
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
555
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
556
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
557
|
-
let baseOptions;
|
|
558
|
-
if (configuration) {
|
|
559
|
-
baseOptions = configuration.baseOptions;
|
|
560
|
-
}
|
|
561
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
562
|
-
const localVarHeaderParameter = {};
|
|
563
|
-
const localVarQueryParameter = {};
|
|
564
|
-
// authentication JWT token required
|
|
565
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
566
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
567
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
568
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
569
|
-
return {
|
|
570
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
571
|
-
options: localVarRequestOptions,
|
|
572
|
-
};
|
|
573
|
-
}),
|
|
574
|
-
/**
|
|
575
|
-
*
|
|
576
|
-
* @summary Retrieves the quota for the selected project.
|
|
577
|
-
* @param {string} id Id of the project
|
|
578
|
-
* @param {*} [options] Override http request option.
|
|
579
|
-
* @throws {RequiredError}
|
|
580
|
-
*/
|
|
581
|
-
projectQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
582
|
-
// verify required parameter 'id' is not null or undefined
|
|
583
|
-
(0, common_1.assertParamExists)('projectQuotas', 'id', id);
|
|
584
|
-
const localVarPath = `/Project/{id}/quota/-/all`
|
|
585
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
586
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
587
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
588
|
-
let baseOptions;
|
|
589
|
-
if (configuration) {
|
|
590
|
-
baseOptions = configuration.baseOptions;
|
|
591
|
-
}
|
|
592
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
593
|
-
const localVarHeaderParameter = {};
|
|
594
|
-
const localVarQueryParameter = {};
|
|
595
|
-
// authentication JWT token required
|
|
596
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
597
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
598
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
599
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
600
|
-
return {
|
|
601
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
602
|
-
options: localVarRequestOptions,
|
|
603
|
-
};
|
|
604
|
-
}),
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @summary Resolve a project invitation for the current user.
|
|
520
|
+
* @summary Resolves a project invitation for the current user.
|
|
608
521
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
609
522
|
* @param {*} [options] Override http request option.
|
|
610
523
|
* @throws {RequiredError}
|
|
@@ -635,7 +548,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
635
548
|
}),
|
|
636
549
|
/**
|
|
637
550
|
*
|
|
638
|
-
* @summary
|
|
551
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
639
552
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
640
553
|
* @param {*} [options] Override http request option.
|
|
641
554
|
* @throws {RequiredError}
|
|
@@ -699,7 +612,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
699
612
|
}),
|
|
700
613
|
/**
|
|
701
614
|
*
|
|
702
|
-
* @summary Updates
|
|
615
|
+
* @summary Updates a project
|
|
703
616
|
* @param {string} id Id of the project
|
|
704
617
|
* @param {ProjectObject} projectObject A Project Object
|
|
705
618
|
* @param {*} [options] Override http request option.
|
|
@@ -733,46 +646,6 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
733
646
|
options: localVarRequestOptions,
|
|
734
647
|
};
|
|
735
648
|
}),
|
|
736
|
-
/**
|
|
737
|
-
*
|
|
738
|
-
* @summary Update the project quota.
|
|
739
|
-
* @param {string} id Id of the project.
|
|
740
|
-
* @param {string} resourceTypeId Id of the resource.
|
|
741
|
-
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
742
|
-
* @param {*} [options] Override http request option.
|
|
743
|
-
* @throws {RequiredError}
|
|
744
|
-
*/
|
|
745
|
-
projectUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
746
|
-
// verify required parameter 'id' is not null or undefined
|
|
747
|
-
(0, common_1.assertParamExists)('projectUpdateQuota', 'id', id);
|
|
748
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
749
|
-
(0, common_1.assertParamExists)('projectUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
750
|
-
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
|
|
751
|
-
(0, common_1.assertParamExists)('projectUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
|
|
752
|
-
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
753
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
754
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
755
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
756
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
757
|
-
let baseOptions;
|
|
758
|
-
if (configuration) {
|
|
759
|
-
baseOptions = configuration.baseOptions;
|
|
760
|
-
}
|
|
761
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
762
|
-
const localVarHeaderParameter = {};
|
|
763
|
-
const localVarQueryParameter = {};
|
|
764
|
-
// authentication JWT token required
|
|
765
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
766
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
767
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
768
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
769
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
770
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProjectQuotaObject, localVarRequestOptions, configuration);
|
|
771
|
-
return {
|
|
772
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
773
|
-
options: localVarRequestOptions,
|
|
774
|
-
};
|
|
775
|
-
}),
|
|
776
649
|
};
|
|
777
650
|
};
|
|
778
651
|
exports.ProjectApiAxiosParamCreator = ProjectApiAxiosParamCreator;
|
|
@@ -798,7 +671,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
798
671
|
},
|
|
799
672
|
/**
|
|
800
673
|
*
|
|
801
|
-
* @summary Deletes
|
|
674
|
+
* @summary Deletes a project
|
|
802
675
|
* @param {string} id Id of the project
|
|
803
676
|
* @param {*} [options] Override http request option.
|
|
804
677
|
* @throws {RequiredError}
|
|
@@ -850,21 +723,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
850
723
|
},
|
|
851
724
|
/**
|
|
852
725
|
*
|
|
853
|
-
* @summary
|
|
854
|
-
* @param {string} id Id of the project.
|
|
855
|
-
* @param {string} resourceTypeId Id of the resource
|
|
856
|
-
* @param {*} [options] Override http request option.
|
|
857
|
-
* @throws {RequiredError}
|
|
858
|
-
*/
|
|
859
|
-
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
860
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
861
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetQuotaMax(id, resourceTypeId, options);
|
|
862
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
863
|
-
});
|
|
864
|
-
},
|
|
865
|
-
/**
|
|
866
|
-
*
|
|
867
|
-
* @summary Gets the resources
|
|
726
|
+
* @summary Gets all resources in a project
|
|
868
727
|
* @param {string} id Id of the project
|
|
869
728
|
* @param {*} [options] Override http request option.
|
|
870
729
|
* @throws {RequiredError}
|
|
@@ -914,34 +773,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
914
773
|
},
|
|
915
774
|
/**
|
|
916
775
|
*
|
|
917
|
-
* @summary
|
|
918
|
-
* @param {string} id Id of the project
|
|
919
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
920
|
-
* @param {*} [options] Override http request option.
|
|
921
|
-
* @throws {RequiredError}
|
|
922
|
-
*/
|
|
923
|
-
projectQuota(id, resourceTypeId, options) {
|
|
924
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
925
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuota(id, resourceTypeId, options);
|
|
926
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
927
|
-
});
|
|
928
|
-
},
|
|
929
|
-
/**
|
|
930
|
-
*
|
|
931
|
-
* @summary Retrieves the quota for the selected project.
|
|
932
|
-
* @param {string} id Id of the project
|
|
933
|
-
* @param {*} [options] Override http request option.
|
|
934
|
-
* @throws {RequiredError}
|
|
935
|
-
*/
|
|
936
|
-
projectQuotas(id, options) {
|
|
937
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotas(id, options);
|
|
939
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
940
|
-
});
|
|
941
|
-
},
|
|
942
|
-
/**
|
|
943
|
-
*
|
|
944
|
-
* @summary Resolve a project invitation for the current user.
|
|
776
|
+
* @summary Resolves a project invitation for the current user.
|
|
945
777
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
946
778
|
* @param {*} [options] Override http request option.
|
|
947
779
|
* @throws {RequiredError}
|
|
@@ -954,7 +786,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
954
786
|
},
|
|
955
787
|
/**
|
|
956
788
|
*
|
|
957
|
-
* @summary
|
|
789
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
958
790
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
959
791
|
* @param {*} [options] Override http request option.
|
|
960
792
|
* @throws {RequiredError}
|
|
@@ -980,7 +812,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
980
812
|
},
|
|
981
813
|
/**
|
|
982
814
|
*
|
|
983
|
-
* @summary Updates
|
|
815
|
+
* @summary Updates a project
|
|
984
816
|
* @param {string} id Id of the project
|
|
985
817
|
* @param {ProjectObject} projectObject A Project Object
|
|
986
818
|
* @param {*} [options] Override http request option.
|
|
@@ -992,21 +824,6 @@ const ProjectApiFp = function (configuration) {
|
|
|
992
824
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
993
825
|
});
|
|
994
826
|
},
|
|
995
|
-
/**
|
|
996
|
-
*
|
|
997
|
-
* @summary Update the project quota.
|
|
998
|
-
* @param {string} id Id of the project.
|
|
999
|
-
* @param {string} resourceTypeId Id of the resource.
|
|
1000
|
-
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1001
|
-
* @param {*} [options] Override http request option.
|
|
1002
|
-
* @throws {RequiredError}
|
|
1003
|
-
*/
|
|
1004
|
-
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
1005
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
|
|
1007
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1008
|
-
});
|
|
1009
|
-
},
|
|
1010
827
|
};
|
|
1011
828
|
};
|
|
1012
829
|
exports.ProjectApiFp = ProjectApiFp;
|
|
@@ -1029,7 +846,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
1029
846
|
},
|
|
1030
847
|
/**
|
|
1031
848
|
*
|
|
1032
|
-
* @summary Deletes
|
|
849
|
+
* @summary Deletes a project
|
|
1033
850
|
* @param {string} id Id of the project
|
|
1034
851
|
* @param {*} [options] Override http request option.
|
|
1035
852
|
* @throws {RequiredError}
|
|
@@ -1069,18 +886,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
1069
886
|
},
|
|
1070
887
|
/**
|
|
1071
888
|
*
|
|
1072
|
-
* @summary
|
|
1073
|
-
* @param {string} id Id of the project.
|
|
1074
|
-
* @param {string} resourceTypeId Id of the resource
|
|
1075
|
-
* @param {*} [options] Override http request option.
|
|
1076
|
-
* @throws {RequiredError}
|
|
1077
|
-
*/
|
|
1078
|
-
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
1079
|
-
return localVarFp.projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
1080
|
-
},
|
|
1081
|
-
/**
|
|
1082
|
-
*
|
|
1083
|
-
* @summary Gets the resources
|
|
889
|
+
* @summary Gets all resources in a project
|
|
1084
890
|
* @param {string} id Id of the project
|
|
1085
891
|
* @param {*} [options] Override http request option.
|
|
1086
892
|
* @throws {RequiredError}
|
|
@@ -1118,28 +924,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
1118
924
|
},
|
|
1119
925
|
/**
|
|
1120
926
|
*
|
|
1121
|
-
* @summary
|
|
1122
|
-
* @param {string} id Id of the project
|
|
1123
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
1124
|
-
* @param {*} [options] Override http request option.
|
|
1125
|
-
* @throws {RequiredError}
|
|
1126
|
-
*/
|
|
1127
|
-
projectQuota(id, resourceTypeId, options) {
|
|
1128
|
-
return localVarFp.projectQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
1129
|
-
},
|
|
1130
|
-
/**
|
|
1131
|
-
*
|
|
1132
|
-
* @summary Retrieves the quota for the selected project.
|
|
1133
|
-
* @param {string} id Id of the project
|
|
1134
|
-
* @param {*} [options] Override http request option.
|
|
1135
|
-
* @throws {RequiredError}
|
|
1136
|
-
*/
|
|
1137
|
-
projectQuotas(id, options) {
|
|
1138
|
-
return localVarFp.projectQuotas(id, options).then((request) => request(axios, basePath));
|
|
1139
|
-
},
|
|
1140
|
-
/**
|
|
1141
|
-
*
|
|
1142
|
-
* @summary Resolve a project invitation for the current user.
|
|
927
|
+
* @summary Resolves a project invitation for the current user.
|
|
1143
928
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
1144
929
|
* @param {*} [options] Override http request option.
|
|
1145
930
|
* @throws {RequiredError}
|
|
@@ -1149,7 +934,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
1149
934
|
},
|
|
1150
935
|
/**
|
|
1151
936
|
*
|
|
1152
|
-
* @summary
|
|
937
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
1153
938
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
1154
939
|
* @param {*} [options] Override http request option.
|
|
1155
940
|
* @throws {RequiredError}
|
|
@@ -1169,7 +954,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
1169
954
|
},
|
|
1170
955
|
/**
|
|
1171
956
|
*
|
|
1172
|
-
* @summary Updates
|
|
957
|
+
* @summary Updates a project
|
|
1173
958
|
* @param {string} id Id of the project
|
|
1174
959
|
* @param {ProjectObject} projectObject A Project Object
|
|
1175
960
|
* @param {*} [options] Override http request option.
|
|
@@ -1178,18 +963,6 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
1178
963
|
projectUpdate(id, projectObject, options) {
|
|
1179
964
|
return localVarFp.projectUpdate(id, projectObject, options).then((request) => request(axios, basePath));
|
|
1180
965
|
},
|
|
1181
|
-
/**
|
|
1182
|
-
*
|
|
1183
|
-
* @summary Update the project quota.
|
|
1184
|
-
* @param {string} id Id of the project.
|
|
1185
|
-
* @param {string} resourceTypeId Id of the resource.
|
|
1186
|
-
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1187
|
-
* @param {*} [options] Override http request option.
|
|
1188
|
-
* @throws {RequiredError}
|
|
1189
|
-
*/
|
|
1190
|
-
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
1191
|
-
return localVarFp.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
|
|
1192
|
-
},
|
|
1193
966
|
};
|
|
1194
967
|
};
|
|
1195
968
|
exports.ProjectApiFactory = ProjectApiFactory;
|
|
@@ -1213,7 +986,7 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
1213
986
|
}
|
|
1214
987
|
/**
|
|
1215
988
|
*
|
|
1216
|
-
* @summary Deletes
|
|
989
|
+
* @summary Deletes a project
|
|
1217
990
|
* @param {string} id Id of the project
|
|
1218
991
|
* @param {*} [options] Override http request option.
|
|
1219
992
|
* @throws {RequiredError}
|
|
@@ -1257,19 +1030,7 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
1257
1030
|
}
|
|
1258
1031
|
/**
|
|
1259
1032
|
*
|
|
1260
|
-
* @summary
|
|
1261
|
-
* @param {string} id Id of the project.
|
|
1262
|
-
* @param {string} resourceTypeId Id of the resource
|
|
1263
|
-
* @param {*} [options] Override http request option.
|
|
1264
|
-
* @throws {RequiredError}
|
|
1265
|
-
* @memberof ProjectApi
|
|
1266
|
-
*/
|
|
1267
|
-
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
1268
|
-
return (0, exports.ProjectApiFp)(this.configuration).projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
1269
|
-
}
|
|
1270
|
-
/**
|
|
1271
|
-
*
|
|
1272
|
-
* @summary Gets the resources
|
|
1033
|
+
* @summary Gets all resources in a project
|
|
1273
1034
|
* @param {string} id Id of the project
|
|
1274
1035
|
* @param {*} [options] Override http request option.
|
|
1275
1036
|
* @throws {RequiredError}
|
|
@@ -1311,30 +1072,7 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
1311
1072
|
}
|
|
1312
1073
|
/**
|
|
1313
1074
|
*
|
|
1314
|
-
* @summary
|
|
1315
|
-
* @param {string} id Id of the project
|
|
1316
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
1317
|
-
* @param {*} [options] Override http request option.
|
|
1318
|
-
* @throws {RequiredError}
|
|
1319
|
-
* @memberof ProjectApi
|
|
1320
|
-
*/
|
|
1321
|
-
projectQuota(id, resourceTypeId, options) {
|
|
1322
|
-
return (0, exports.ProjectApiFp)(this.configuration).projectQuota(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
1323
|
-
}
|
|
1324
|
-
/**
|
|
1325
|
-
*
|
|
1326
|
-
* @summary Retrieves the quota for the selected project.
|
|
1327
|
-
* @param {string} id Id of the project
|
|
1328
|
-
* @param {*} [options] Override http request option.
|
|
1329
|
-
* @throws {RequiredError}
|
|
1330
|
-
* @memberof ProjectApi
|
|
1331
|
-
*/
|
|
1332
|
-
projectQuotas(id, options) {
|
|
1333
|
-
return (0, exports.ProjectApiFp)(this.configuration).projectQuotas(id, options).then((request) => request(this.axios, this.basePath));
|
|
1334
|
-
}
|
|
1335
|
-
/**
|
|
1336
|
-
*
|
|
1337
|
-
* @summary Resolve a project invitation for the current user.
|
|
1075
|
+
* @summary Resolves a project invitation for the current user.
|
|
1338
1076
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
1339
1077
|
* @param {*} [options] Override http request option.
|
|
1340
1078
|
* @throws {RequiredError}
|
|
@@ -1345,7 +1083,7 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
1345
1083
|
}
|
|
1346
1084
|
/**
|
|
1347
1085
|
*
|
|
1348
|
-
* @summary
|
|
1086
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
1349
1087
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
1350
1088
|
* @param {*} [options] Override http request option.
|
|
1351
1089
|
* @throws {RequiredError}
|
|
@@ -1367,7 +1105,7 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
1367
1105
|
}
|
|
1368
1106
|
/**
|
|
1369
1107
|
*
|
|
1370
|
-
* @summary Updates
|
|
1108
|
+
* @summary Updates a project
|
|
1371
1109
|
* @param {string} id Id of the project
|
|
1372
1110
|
* @param {ProjectObject} projectObject A Project Object
|
|
1373
1111
|
* @param {*} [options] Override http request option.
|
|
@@ -1377,54 +1115,37 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
1377
1115
|
projectUpdate(id, projectObject, options) {
|
|
1378
1116
|
return (0, exports.ProjectApiFp)(this.configuration).projectUpdate(id, projectObject, options).then((request) => request(this.axios, this.basePath));
|
|
1379
1117
|
}
|
|
1380
|
-
/**
|
|
1381
|
-
*
|
|
1382
|
-
* @summary Update the project quota.
|
|
1383
|
-
* @param {string} id Id of the project.
|
|
1384
|
-
* @param {string} resourceTypeId Id of the resource.
|
|
1385
|
-
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1386
|
-
* @param {*} [options] Override http request option.
|
|
1387
|
-
* @throws {RequiredError}
|
|
1388
|
-
* @memberof ProjectApi
|
|
1389
|
-
*/
|
|
1390
|
-
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
1391
|
-
return (0, exports.ProjectApiFp)(this.configuration).projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(this.axios, this.basePath));
|
|
1392
|
-
}
|
|
1393
1118
|
}
|
|
1394
1119
|
exports.ProjectApi = ProjectApi;
|
|
1395
1120
|
/**
|
|
1396
|
-
*
|
|
1121
|
+
* ProjectQuotaApi - axios parameter creator
|
|
1397
1122
|
* @export
|
|
1398
1123
|
*/
|
|
1399
|
-
const
|
|
1124
|
+
const ProjectQuotaApiAxiosParamCreator = function (configuration) {
|
|
1400
1125
|
return {
|
|
1401
1126
|
/**
|
|
1402
1127
|
*
|
|
1403
|
-
* @summary
|
|
1404
|
-
* @param {string}
|
|
1405
|
-
* @param {string}
|
|
1406
|
-
* @param {string} roleId Id of the role
|
|
1128
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
1129
|
+
* @param {string} id Id of the project
|
|
1130
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1407
1131
|
* @param {*} [options] Override http request option.
|
|
1408
1132
|
* @throws {RequiredError}
|
|
1409
1133
|
*/
|
|
1410
|
-
|
|
1411
|
-
// verify required parameter '
|
|
1412
|
-
(0, common_1.assertParamExists)('
|
|
1413
|
-
// verify required parameter '
|
|
1414
|
-
(0, common_1.assertParamExists)('
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
1419
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
1420
|
-
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
1134
|
+
projectQuotaQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1135
|
+
// verify required parameter 'id' is not null or undefined
|
|
1136
|
+
(0, common_1.assertParamExists)('projectQuotaQuota', 'id', id);
|
|
1137
|
+
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
1138
|
+
(0, common_1.assertParamExists)('projectQuotaQuota', 'resourceTypeId', resourceTypeId);
|
|
1139
|
+
const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
|
|
1140
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1141
|
+
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
1421
1142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1422
1143
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1423
1144
|
let baseOptions;
|
|
1424
1145
|
if (configuration) {
|
|
1425
1146
|
baseOptions = configuration.baseOptions;
|
|
1426
1147
|
}
|
|
1427
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1148
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1428
1149
|
const localVarHeaderParameter = {};
|
|
1429
1150
|
const localVarQueryParameter = {};
|
|
1430
1151
|
// authentication JWT token required
|
|
@@ -1439,23 +1160,23 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
|
|
|
1439
1160
|
}),
|
|
1440
1161
|
/**
|
|
1441
1162
|
*
|
|
1442
|
-
* @summary
|
|
1443
|
-
* @param {string}
|
|
1163
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
1164
|
+
* @param {string} id Id of the project
|
|
1444
1165
|
* @param {*} [options] Override http request option.
|
|
1445
1166
|
* @throws {RequiredError}
|
|
1446
1167
|
*/
|
|
1447
|
-
|
|
1448
|
-
// verify required parameter '
|
|
1449
|
-
(0, common_1.assertParamExists)('
|
|
1450
|
-
const localVarPath = `/
|
|
1451
|
-
.replace(`{${"
|
|
1168
|
+
projectQuotaQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1169
|
+
// verify required parameter 'id' is not null or undefined
|
|
1170
|
+
(0, common_1.assertParamExists)('projectQuotaQuotas', 'id', id);
|
|
1171
|
+
const localVarPath = `/ProjectQuota/{id}/-/all`
|
|
1172
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1452
1173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1453
1174
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1454
1175
|
let baseOptions;
|
|
1455
1176
|
if (configuration) {
|
|
1456
1177
|
baseOptions = configuration.baseOptions;
|
|
1457
1178
|
}
|
|
1458
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1179
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1459
1180
|
const localVarHeaderParameter = {};
|
|
1460
1181
|
const localVarQueryParameter = {};
|
|
1461
1182
|
// authentication JWT token required
|
|
@@ -1470,7 +1191,266 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
|
|
|
1470
1191
|
}),
|
|
1471
1192
|
/**
|
|
1472
1193
|
*
|
|
1473
|
-
* @summary
|
|
1194
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
1195
|
+
* @param {string} id Id of the project
|
|
1196
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1197
|
+
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
projectQuotaUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1202
|
+
// verify required parameter 'id' is not null or undefined
|
|
1203
|
+
(0, common_1.assertParamExists)('projectQuotaUpdateQuota', 'id', id);
|
|
1204
|
+
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
1205
|
+
(0, common_1.assertParamExists)('projectQuotaUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
1206
|
+
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
|
|
1207
|
+
(0, common_1.assertParamExists)('projectQuotaUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
|
|
1208
|
+
const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
|
|
1209
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1210
|
+
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
1211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1212
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1213
|
+
let baseOptions;
|
|
1214
|
+
if (configuration) {
|
|
1215
|
+
baseOptions = configuration.baseOptions;
|
|
1216
|
+
}
|
|
1217
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1218
|
+
const localVarHeaderParameter = {};
|
|
1219
|
+
const localVarQueryParameter = {};
|
|
1220
|
+
// authentication JWT token required
|
|
1221
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1222
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1223
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1225
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1226
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProjectQuotaObject, localVarRequestOptions, configuration);
|
|
1227
|
+
return {
|
|
1228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1229
|
+
options: localVarRequestOptions,
|
|
1230
|
+
};
|
|
1231
|
+
}),
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
exports.ProjectQuotaApiAxiosParamCreator = ProjectQuotaApiAxiosParamCreator;
|
|
1235
|
+
/**
|
|
1236
|
+
* ProjectQuotaApi - functional programming interface
|
|
1237
|
+
* @export
|
|
1238
|
+
*/
|
|
1239
|
+
const ProjectQuotaApiFp = function (configuration) {
|
|
1240
|
+
const localVarAxiosParamCreator = (0, exports.ProjectQuotaApiAxiosParamCreator)(configuration);
|
|
1241
|
+
return {
|
|
1242
|
+
/**
|
|
1243
|
+
*
|
|
1244
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
1245
|
+
* @param {string} id Id of the project
|
|
1246
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1247
|
+
* @param {*} [options] Override http request option.
|
|
1248
|
+
* @throws {RequiredError}
|
|
1249
|
+
*/
|
|
1250
|
+
projectQuotaQuota(id, resourceTypeId, options) {
|
|
1251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1252
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaQuota(id, resourceTypeId, options);
|
|
1253
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1254
|
+
});
|
|
1255
|
+
},
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
1259
|
+
* @param {string} id Id of the project
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
projectQuotaQuotas(id, options) {
|
|
1264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaQuotas(id, options);
|
|
1266
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1267
|
+
});
|
|
1268
|
+
},
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
1272
|
+
* @param {string} id Id of the project
|
|
1273
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1274
|
+
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
|
|
1281
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1282
|
+
});
|
|
1283
|
+
},
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
exports.ProjectQuotaApiFp = ProjectQuotaApiFp;
|
|
1287
|
+
/**
|
|
1288
|
+
* ProjectQuotaApi - factory interface
|
|
1289
|
+
* @export
|
|
1290
|
+
*/
|
|
1291
|
+
const ProjectQuotaApiFactory = function (configuration, basePath, axios) {
|
|
1292
|
+
const localVarFp = (0, exports.ProjectQuotaApiFp)(configuration);
|
|
1293
|
+
return {
|
|
1294
|
+
/**
|
|
1295
|
+
*
|
|
1296
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
1297
|
+
* @param {string} id Id of the project
|
|
1298
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
*/
|
|
1302
|
+
projectQuotaQuota(id, resourceTypeId, options) {
|
|
1303
|
+
return localVarFp.projectQuotaQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
1304
|
+
},
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
1308
|
+
* @param {string} id Id of the project
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
projectQuotaQuotas(id, options) {
|
|
1313
|
+
return localVarFp.projectQuotaQuotas(id, options).then((request) => request(axios, basePath));
|
|
1314
|
+
},
|
|
1315
|
+
/**
|
|
1316
|
+
*
|
|
1317
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
1318
|
+
* @param {string} id Id of the project
|
|
1319
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1320
|
+
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1321
|
+
* @param {*} [options] Override http request option.
|
|
1322
|
+
* @throws {RequiredError}
|
|
1323
|
+
*/
|
|
1324
|
+
projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
1325
|
+
return localVarFp.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
|
|
1326
|
+
},
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
exports.ProjectQuotaApiFactory = ProjectQuotaApiFactory;
|
|
1330
|
+
/**
|
|
1331
|
+
* ProjectQuotaApi - object-oriented interface
|
|
1332
|
+
* @export
|
|
1333
|
+
* @class ProjectQuotaApi
|
|
1334
|
+
* @extends {BaseAPI}
|
|
1335
|
+
*/
|
|
1336
|
+
class ProjectQuotaApi extends base_1.BaseAPI {
|
|
1337
|
+
/**
|
|
1338
|
+
*
|
|
1339
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
1340
|
+
* @param {string} id Id of the project
|
|
1341
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
* @memberof ProjectQuotaApi
|
|
1345
|
+
*/
|
|
1346
|
+
projectQuotaQuota(id, resourceTypeId, options) {
|
|
1347
|
+
return (0, exports.ProjectQuotaApiFp)(this.configuration).projectQuotaQuota(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
*
|
|
1351
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
1352
|
+
* @param {string} id Id of the project
|
|
1353
|
+
* @param {*} [options] Override http request option.
|
|
1354
|
+
* @throws {RequiredError}
|
|
1355
|
+
* @memberof ProjectQuotaApi
|
|
1356
|
+
*/
|
|
1357
|
+
projectQuotaQuotas(id, options) {
|
|
1358
|
+
return (0, exports.ProjectQuotaApiFp)(this.configuration).projectQuotaQuotas(id, options).then((request) => request(this.axios, this.basePath));
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
*
|
|
1362
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
1363
|
+
* @param {string} id Id of the project
|
|
1364
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
1365
|
+
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
1366
|
+
* @param {*} [options] Override http request option.
|
|
1367
|
+
* @throws {RequiredError}
|
|
1368
|
+
* @memberof ProjectQuotaApi
|
|
1369
|
+
*/
|
|
1370
|
+
projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
1371
|
+
return (0, exports.ProjectQuotaApiFp)(this.configuration).projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(this.axios, this.basePath));
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
exports.ProjectQuotaApi = ProjectQuotaApi;
|
|
1375
|
+
/**
|
|
1376
|
+
* ProjectRoleApi - axios parameter creator
|
|
1377
|
+
* @export
|
|
1378
|
+
*/
|
|
1379
|
+
const ProjectRoleApiAxiosParamCreator = function (configuration) {
|
|
1380
|
+
return {
|
|
1381
|
+
/**
|
|
1382
|
+
*
|
|
1383
|
+
* @summary Deletes a user from a project
|
|
1384
|
+
* @param {string} projectId Id of the project
|
|
1385
|
+
* @param {string} userId Id of the user
|
|
1386
|
+
* @param {string} roleId Id of the role
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
projectRoleDelete: (projectId, userId, roleId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1391
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1392
|
+
(0, common_1.assertParamExists)('projectRoleDelete', 'projectId', projectId);
|
|
1393
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1394
|
+
(0, common_1.assertParamExists)('projectRoleDelete', 'userId', userId);
|
|
1395
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
1396
|
+
(0, common_1.assertParamExists)('projectRoleDelete', 'roleId', roleId);
|
|
1397
|
+
const localVarPath = `/ProjectRole/project/{projectId}/user/{userId}/role/{roleId}`
|
|
1398
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
1399
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
1400
|
+
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
1401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1402
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1403
|
+
let baseOptions;
|
|
1404
|
+
if (configuration) {
|
|
1405
|
+
baseOptions = configuration.baseOptions;
|
|
1406
|
+
}
|
|
1407
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1408
|
+
const localVarHeaderParameter = {};
|
|
1409
|
+
const localVarQueryParameter = {};
|
|
1410
|
+
// authentication JWT token required
|
|
1411
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1412
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1413
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1414
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1415
|
+
return {
|
|
1416
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1417
|
+
options: localVarRequestOptions,
|
|
1418
|
+
};
|
|
1419
|
+
}),
|
|
1420
|
+
/**
|
|
1421
|
+
*
|
|
1422
|
+
* @summary Deletes the current user from a project
|
|
1423
|
+
* @param {string} projectId Id of the project
|
|
1424
|
+
* @param {*} [options] Override http request option.
|
|
1425
|
+
* @throws {RequiredError}
|
|
1426
|
+
*/
|
|
1427
|
+
projectRoleDelete2: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1428
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1429
|
+
(0, common_1.assertParamExists)('projectRoleDelete2', 'projectId', projectId);
|
|
1430
|
+
const localVarPath = `/ProjectRole/project/{projectId}/user`
|
|
1431
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
1432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1433
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1434
|
+
let baseOptions;
|
|
1435
|
+
if (configuration) {
|
|
1436
|
+
baseOptions = configuration.baseOptions;
|
|
1437
|
+
}
|
|
1438
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1439
|
+
const localVarHeaderParameter = {};
|
|
1440
|
+
const localVarQueryParameter = {};
|
|
1441
|
+
// authentication JWT token required
|
|
1442
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1443
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1445
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1446
|
+
return {
|
|
1447
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1448
|
+
options: localVarRequestOptions,
|
|
1449
|
+
};
|
|
1450
|
+
}),
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @summary Gets all roles for the current user and a project.
|
|
1474
1454
|
* @param {string} projectId Id of the project
|
|
1475
1455
|
* @param {*} [options] Override http request option.
|
|
1476
1456
|
* @throws {RequiredError}
|
|
@@ -1501,7 +1481,7 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
|
|
|
1501
1481
|
}),
|
|
1502
1482
|
/**
|
|
1503
1483
|
*
|
|
1504
|
-
* @summary Lists all users
|
|
1484
|
+
* @summary Lists all users in a project.
|
|
1505
1485
|
* @param {string} projectId Id of the project
|
|
1506
1486
|
* @param {*} [options] Override http request option.
|
|
1507
1487
|
* @throws {RequiredError}
|
|
@@ -1532,11 +1512,14 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
|
|
|
1532
1512
|
}),
|
|
1533
1513
|
/**
|
|
1534
1514
|
*
|
|
1535
|
-
* @summary
|
|
1515
|
+
* @summary Sets a role for the current user in a project
|
|
1516
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
1536
1517
|
* @param {*} [options] Override http request option.
|
|
1537
1518
|
* @throws {RequiredError}
|
|
1538
1519
|
*/
|
|
1539
|
-
projectRoleSet: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1520
|
+
projectRoleSet: (projectRoleObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1521
|
+
// verify required parameter 'projectRoleObject' is not null or undefined
|
|
1522
|
+
(0, common_1.assertParamExists)('projectRoleSet', 'projectRoleObject', projectRoleObject);
|
|
1540
1523
|
const localVarPath = `/ProjectRole`;
|
|
1541
1524
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1542
1525
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1549,9 +1532,11 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
|
|
|
1549
1532
|
const localVarQueryParameter = {};
|
|
1550
1533
|
// authentication JWT token required
|
|
1551
1534
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1535
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1552
1536
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1553
1537
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1554
1538
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1539
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(projectRoleObject, localVarRequestOptions, configuration);
|
|
1555
1540
|
return {
|
|
1556
1541
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1557
1542
|
options: localVarRequestOptions,
|
|
@@ -1569,7 +1554,7 @@ const ProjectRoleApiFp = function (configuration) {
|
|
|
1569
1554
|
return {
|
|
1570
1555
|
/**
|
|
1571
1556
|
*
|
|
1572
|
-
* @summary
|
|
1557
|
+
* @summary Deletes a user from a project
|
|
1573
1558
|
* @param {string} projectId Id of the project
|
|
1574
1559
|
* @param {string} userId Id of the user
|
|
1575
1560
|
* @param {string} roleId Id of the role
|
|
@@ -1584,7 +1569,7 @@ const ProjectRoleApiFp = function (configuration) {
|
|
|
1584
1569
|
},
|
|
1585
1570
|
/**
|
|
1586
1571
|
*
|
|
1587
|
-
* @summary Deletes user from a project
|
|
1572
|
+
* @summary Deletes the current user from a project
|
|
1588
1573
|
* @param {string} projectId Id of the project
|
|
1589
1574
|
* @param {*} [options] Override http request option.
|
|
1590
1575
|
* @throws {RequiredError}
|
|
@@ -1597,7 +1582,7 @@ const ProjectRoleApiFp = function (configuration) {
|
|
|
1597
1582
|
},
|
|
1598
1583
|
/**
|
|
1599
1584
|
*
|
|
1600
|
-
* @summary Gets all roles for current user and
|
|
1585
|
+
* @summary Gets all roles for the current user and a project.
|
|
1601
1586
|
* @param {string} projectId Id of the project
|
|
1602
1587
|
* @param {*} [options] Override http request option.
|
|
1603
1588
|
* @throws {RequiredError}
|
|
@@ -1610,7 +1595,7 @@ const ProjectRoleApiFp = function (configuration) {
|
|
|
1610
1595
|
},
|
|
1611
1596
|
/**
|
|
1612
1597
|
*
|
|
1613
|
-
* @summary Lists all users
|
|
1598
|
+
* @summary Lists all users in a project.
|
|
1614
1599
|
* @param {string} projectId Id of the project
|
|
1615
1600
|
* @param {*} [options] Override http request option.
|
|
1616
1601
|
* @throws {RequiredError}
|
|
@@ -1623,13 +1608,14 @@ const ProjectRoleApiFp = function (configuration) {
|
|
|
1623
1608
|
},
|
|
1624
1609
|
/**
|
|
1625
1610
|
*
|
|
1626
|
-
* @summary
|
|
1611
|
+
* @summary Sets a role for the current user in a project
|
|
1612
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
1627
1613
|
* @param {*} [options] Override http request option.
|
|
1628
1614
|
* @throws {RequiredError}
|
|
1629
1615
|
*/
|
|
1630
|
-
projectRoleSet(options) {
|
|
1616
|
+
projectRoleSet(projectRoleObject, options) {
|
|
1631
1617
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1632
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleSet(options);
|
|
1618
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleSet(projectRoleObject, options);
|
|
1633
1619
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1634
1620
|
});
|
|
1635
1621
|
},
|
|
@@ -1645,7 +1631,7 @@ const ProjectRoleApiFactory = function (configuration, basePath, axios) {
|
|
|
1645
1631
|
return {
|
|
1646
1632
|
/**
|
|
1647
1633
|
*
|
|
1648
|
-
* @summary
|
|
1634
|
+
* @summary Deletes a user from a project
|
|
1649
1635
|
* @param {string} projectId Id of the project
|
|
1650
1636
|
* @param {string} userId Id of the user
|
|
1651
1637
|
* @param {string} roleId Id of the role
|
|
@@ -1657,7 +1643,7 @@ const ProjectRoleApiFactory = function (configuration, basePath, axios) {
|
|
|
1657
1643
|
},
|
|
1658
1644
|
/**
|
|
1659
1645
|
*
|
|
1660
|
-
* @summary Deletes user from a project
|
|
1646
|
+
* @summary Deletes the current user from a project
|
|
1661
1647
|
* @param {string} projectId Id of the project
|
|
1662
1648
|
* @param {*} [options] Override http request option.
|
|
1663
1649
|
* @throws {RequiredError}
|
|
@@ -1667,7 +1653,7 @@ const ProjectRoleApiFactory = function (configuration, basePath, axios) {
|
|
|
1667
1653
|
},
|
|
1668
1654
|
/**
|
|
1669
1655
|
*
|
|
1670
|
-
* @summary Gets all roles for current user and
|
|
1656
|
+
* @summary Gets all roles for the current user and a project.
|
|
1671
1657
|
* @param {string} projectId Id of the project
|
|
1672
1658
|
* @param {*} [options] Override http request option.
|
|
1673
1659
|
* @throws {RequiredError}
|
|
@@ -1677,7 +1663,7 @@ const ProjectRoleApiFactory = function (configuration, basePath, axios) {
|
|
|
1677
1663
|
},
|
|
1678
1664
|
/**
|
|
1679
1665
|
*
|
|
1680
|
-
* @summary Lists all users
|
|
1666
|
+
* @summary Lists all users in a project.
|
|
1681
1667
|
* @param {string} projectId Id of the project
|
|
1682
1668
|
* @param {*} [options] Override http request option.
|
|
1683
1669
|
* @throws {RequiredError}
|
|
@@ -1687,12 +1673,13 @@ const ProjectRoleApiFactory = function (configuration, basePath, axios) {
|
|
|
1687
1673
|
},
|
|
1688
1674
|
/**
|
|
1689
1675
|
*
|
|
1690
|
-
* @summary
|
|
1676
|
+
* @summary Sets a role for the current user in a project
|
|
1677
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
1691
1678
|
* @param {*} [options] Override http request option.
|
|
1692
1679
|
* @throws {RequiredError}
|
|
1693
1680
|
*/
|
|
1694
|
-
projectRoleSet(options) {
|
|
1695
|
-
return localVarFp.projectRoleSet(options).then((request) => request(axios, basePath));
|
|
1681
|
+
projectRoleSet(projectRoleObject, options) {
|
|
1682
|
+
return localVarFp.projectRoleSet(projectRoleObject, options).then((request) => request(axios, basePath));
|
|
1696
1683
|
},
|
|
1697
1684
|
};
|
|
1698
1685
|
};
|
|
@@ -1706,7 +1693,7 @@ exports.ProjectRoleApiFactory = ProjectRoleApiFactory;
|
|
|
1706
1693
|
class ProjectRoleApi extends base_1.BaseAPI {
|
|
1707
1694
|
/**
|
|
1708
1695
|
*
|
|
1709
|
-
* @summary
|
|
1696
|
+
* @summary Deletes a user from a project
|
|
1710
1697
|
* @param {string} projectId Id of the project
|
|
1711
1698
|
* @param {string} userId Id of the user
|
|
1712
1699
|
* @param {string} roleId Id of the role
|
|
@@ -1719,7 +1706,7 @@ class ProjectRoleApi extends base_1.BaseAPI {
|
|
|
1719
1706
|
}
|
|
1720
1707
|
/**
|
|
1721
1708
|
*
|
|
1722
|
-
* @summary Deletes user from a project
|
|
1709
|
+
* @summary Deletes the current user from a project
|
|
1723
1710
|
* @param {string} projectId Id of the project
|
|
1724
1711
|
* @param {*} [options] Override http request option.
|
|
1725
1712
|
* @throws {RequiredError}
|
|
@@ -1730,7 +1717,7 @@ class ProjectRoleApi extends base_1.BaseAPI {
|
|
|
1730
1717
|
}
|
|
1731
1718
|
/**
|
|
1732
1719
|
*
|
|
1733
|
-
* @summary Gets all roles for current user and
|
|
1720
|
+
* @summary Gets all roles for the current user and a project.
|
|
1734
1721
|
* @param {string} projectId Id of the project
|
|
1735
1722
|
* @param {*} [options] Override http request option.
|
|
1736
1723
|
* @throws {RequiredError}
|
|
@@ -1741,7 +1728,7 @@ class ProjectRoleApi extends base_1.BaseAPI {
|
|
|
1741
1728
|
}
|
|
1742
1729
|
/**
|
|
1743
1730
|
*
|
|
1744
|
-
* @summary Lists all users
|
|
1731
|
+
* @summary Lists all users in a project.
|
|
1745
1732
|
* @param {string} projectId Id of the project
|
|
1746
1733
|
* @param {*} [options] Override http request option.
|
|
1747
1734
|
* @throws {RequiredError}
|
|
@@ -1752,13 +1739,14 @@ class ProjectRoleApi extends base_1.BaseAPI {
|
|
|
1752
1739
|
}
|
|
1753
1740
|
/**
|
|
1754
1741
|
*
|
|
1755
|
-
* @summary
|
|
1742
|
+
* @summary Sets a role for the current user in a project
|
|
1743
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
1756
1744
|
* @param {*} [options] Override http request option.
|
|
1757
1745
|
* @throws {RequiredError}
|
|
1758
1746
|
* @memberof ProjectRoleApi
|
|
1759
1747
|
*/
|
|
1760
|
-
projectRoleSet(options) {
|
|
1761
|
-
return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleSet(options).then((request) => request(this.axios, this.basePath));
|
|
1748
|
+
projectRoleSet(projectRoleObject, options) {
|
|
1749
|
+
return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleSet(projectRoleObject, options).then((request) => request(this.axios, this.basePath));
|
|
1762
1750
|
}
|
|
1763
1751
|
}
|
|
1764
1752
|
exports.ProjectRoleApi = ProjectRoleApi;
|
|
@@ -1858,181 +1846,6 @@ class RoleApi extends base_1.BaseAPI {
|
|
|
1858
1846
|
}
|
|
1859
1847
|
}
|
|
1860
1848
|
exports.RoleApi = RoleApi;
|
|
1861
|
-
/**
|
|
1862
|
-
* SearchApi - axios parameter creator
|
|
1863
|
-
* @export
|
|
1864
|
-
*/
|
|
1865
|
-
const SearchApiAxiosParamCreator = function (configuration) {
|
|
1866
|
-
return {
|
|
1867
|
-
/**
|
|
1868
|
-
*
|
|
1869
|
-
* @summary Returns results for the search word
|
|
1870
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
1871
|
-
* @param {*} [options] Override http request option.
|
|
1872
|
-
* @throws {RequiredError}
|
|
1873
|
-
*/
|
|
1874
|
-
searchSearch: (encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
1876
|
-
(0, common_1.assertParamExists)('searchSearch', 'encodedSearchWord', encodedSearchWord);
|
|
1877
|
-
const localVarPath = `/Search/all/{encodedSearchWord}`
|
|
1878
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
1879
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1880
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1881
|
-
let baseOptions;
|
|
1882
|
-
if (configuration) {
|
|
1883
|
-
baseOptions = configuration.baseOptions;
|
|
1884
|
-
}
|
|
1885
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1886
|
-
const localVarHeaderParameter = {};
|
|
1887
|
-
const localVarQueryParameter = {};
|
|
1888
|
-
// authentication JWT token required
|
|
1889
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1890
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1891
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1892
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1893
|
-
return {
|
|
1894
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1895
|
-
options: localVarRequestOptions,
|
|
1896
|
-
};
|
|
1897
|
-
}),
|
|
1898
|
-
/**
|
|
1899
|
-
*
|
|
1900
|
-
* @summary Returns searched projects
|
|
1901
|
-
* @param {string} projectId Id of the project
|
|
1902
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
1903
|
-
* @param {*} [options] Override http request option.
|
|
1904
|
-
* @throws {RequiredError}
|
|
1905
|
-
*/
|
|
1906
|
-
searchSearchProject: (projectId, encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1907
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
1908
|
-
(0, common_1.assertParamExists)('searchSearchProject', 'projectId', projectId);
|
|
1909
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
1910
|
-
(0, common_1.assertParamExists)('searchSearchProject', 'encodedSearchWord', encodedSearchWord);
|
|
1911
|
-
const localVarPath = `/Search/project/{projectId}/{encodedSearchWord}`
|
|
1912
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
1913
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
1914
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1915
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1916
|
-
let baseOptions;
|
|
1917
|
-
if (configuration) {
|
|
1918
|
-
baseOptions = configuration.baseOptions;
|
|
1919
|
-
}
|
|
1920
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1921
|
-
const localVarHeaderParameter = {};
|
|
1922
|
-
const localVarQueryParameter = {};
|
|
1923
|
-
// authentication JWT token required
|
|
1924
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1925
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1926
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1927
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1928
|
-
return {
|
|
1929
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1930
|
-
options: localVarRequestOptions,
|
|
1931
|
-
};
|
|
1932
|
-
}),
|
|
1933
|
-
};
|
|
1934
|
-
};
|
|
1935
|
-
exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
|
|
1936
|
-
/**
|
|
1937
|
-
* SearchApi - functional programming interface
|
|
1938
|
-
* @export
|
|
1939
|
-
*/
|
|
1940
|
-
const SearchApiFp = function (configuration) {
|
|
1941
|
-
const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
|
|
1942
|
-
return {
|
|
1943
|
-
/**
|
|
1944
|
-
*
|
|
1945
|
-
* @summary Returns results for the search word
|
|
1946
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
1947
|
-
* @param {*} [options] Override http request option.
|
|
1948
|
-
* @throws {RequiredError}
|
|
1949
|
-
*/
|
|
1950
|
-
searchSearch(encodedSearchWord, options) {
|
|
1951
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1952
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(encodedSearchWord, options);
|
|
1953
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1954
|
-
});
|
|
1955
|
-
},
|
|
1956
|
-
/**
|
|
1957
|
-
*
|
|
1958
|
-
* @summary Returns searched projects
|
|
1959
|
-
* @param {string} projectId Id of the project
|
|
1960
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
1961
|
-
* @param {*} [options] Override http request option.
|
|
1962
|
-
* @throws {RequiredError}
|
|
1963
|
-
*/
|
|
1964
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
1965
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1966
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchProject(projectId, encodedSearchWord, options);
|
|
1967
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1968
|
-
});
|
|
1969
|
-
},
|
|
1970
|
-
};
|
|
1971
|
-
};
|
|
1972
|
-
exports.SearchApiFp = SearchApiFp;
|
|
1973
|
-
/**
|
|
1974
|
-
* SearchApi - factory interface
|
|
1975
|
-
* @export
|
|
1976
|
-
*/
|
|
1977
|
-
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
1978
|
-
const localVarFp = (0, exports.SearchApiFp)(configuration);
|
|
1979
|
-
return {
|
|
1980
|
-
/**
|
|
1981
|
-
*
|
|
1982
|
-
* @summary Returns results for the search word
|
|
1983
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
1984
|
-
* @param {*} [options] Override http request option.
|
|
1985
|
-
* @throws {RequiredError}
|
|
1986
|
-
*/
|
|
1987
|
-
searchSearch(encodedSearchWord, options) {
|
|
1988
|
-
return localVarFp.searchSearch(encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
1989
|
-
},
|
|
1990
|
-
/**
|
|
1991
|
-
*
|
|
1992
|
-
* @summary Returns searched projects
|
|
1993
|
-
* @param {string} projectId Id of the project
|
|
1994
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
1995
|
-
* @param {*} [options] Override http request option.
|
|
1996
|
-
* @throws {RequiredError}
|
|
1997
|
-
*/
|
|
1998
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
1999
|
-
return localVarFp.searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
2000
|
-
},
|
|
2001
|
-
};
|
|
2002
|
-
};
|
|
2003
|
-
exports.SearchApiFactory = SearchApiFactory;
|
|
2004
|
-
/**
|
|
2005
|
-
* SearchApi - object-oriented interface
|
|
2006
|
-
* @export
|
|
2007
|
-
* @class SearchApi
|
|
2008
|
-
* @extends {BaseAPI}
|
|
2009
|
-
*/
|
|
2010
|
-
class SearchApi extends base_1.BaseAPI {
|
|
2011
|
-
/**
|
|
2012
|
-
*
|
|
2013
|
-
* @summary Returns results for the search word
|
|
2014
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
2015
|
-
* @param {*} [options] Override http request option.
|
|
2016
|
-
* @throws {RequiredError}
|
|
2017
|
-
* @memberof SearchApi
|
|
2018
|
-
*/
|
|
2019
|
-
searchSearch(encodedSearchWord, options) {
|
|
2020
|
-
return (0, exports.SearchApiFp)(this.configuration).searchSearch(encodedSearchWord, options).then((request) => request(this.axios, this.basePath));
|
|
2021
|
-
}
|
|
2022
|
-
/**
|
|
2023
|
-
*
|
|
2024
|
-
* @summary Returns searched projects
|
|
2025
|
-
* @param {string} projectId Id of the project
|
|
2026
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
2027
|
-
* @param {*} [options] Override http request option.
|
|
2028
|
-
* @throws {RequiredError}
|
|
2029
|
-
* @memberof SearchApi
|
|
2030
|
-
*/
|
|
2031
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
2032
|
-
return (0, exports.SearchApiFp)(this.configuration).searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(this.axios, this.basePath));
|
|
2033
|
-
}
|
|
2034
|
-
}
|
|
2035
|
-
exports.SearchApi = SearchApi;
|
|
2036
1849
|
/**
|
|
2037
1850
|
* SubProjectApi - axios parameter creator
|
|
2038
1851
|
* @export
|