@coscine/api-client 2.0.0 → 2.3.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.
Files changed (151) hide show
  1. package/dist/index.js +1702 -2378
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +1703 -2379
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api.ActivatedFeatures/api.js +1 -1
  6. package/dist/lib/Coscine.Api.ActivatedFeatures/base.js +1 -1
  7. package/dist/lib/Coscine.Api.ActivatedFeatures/common.js +1 -1
  8. package/dist/lib/Coscine.Api.ActivatedFeatures/configuration.js +1 -1
  9. package/dist/lib/Coscine.Api.ActivatedFeatures/index.js +1 -1
  10. package/dist/lib/Coscine.Api.Admin/api.js +51 -23
  11. package/dist/lib/Coscine.Api.Admin/api.js.map +1 -1
  12. package/dist/lib/Coscine.Api.Admin/base.js +1 -1
  13. package/dist/lib/Coscine.Api.Admin/common.js +1 -1
  14. package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
  15. package/dist/lib/Coscine.Api.Admin/index.js +1 -1
  16. package/dist/lib/Coscine.Api.Blob/api.js +1 -132
  17. package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
  18. package/dist/lib/Coscine.Api.Blob/base.js +1 -1
  19. package/dist/lib/Coscine.Api.Blob/common.js +1 -1
  20. package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
  21. package/dist/lib/Coscine.Api.Blob/index.js +1 -1
  22. package/dist/lib/Coscine.Api.Metadata/api.js +1 -1
  23. package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
  24. package/dist/lib/Coscine.Api.Metadata/common.js +1 -1
  25. package/dist/lib/Coscine.Api.Metadata/configuration.js +1 -1
  26. package/dist/lib/Coscine.Api.Metadata/index.js +1 -1
  27. package/dist/lib/Coscine.Api.Notices/api.js +1 -1
  28. package/dist/lib/Coscine.Api.Notices/base.js +1 -1
  29. package/dist/lib/Coscine.Api.Notices/common.js +1 -1
  30. package/dist/lib/Coscine.Api.Notices/configuration.js +1 -1
  31. package/dist/lib/Coscine.Api.Notices/index.js +1 -1
  32. package/dist/lib/Coscine.Api.Organization/api.js +1 -1
  33. package/dist/lib/Coscine.Api.Organization/base.js +1 -1
  34. package/dist/lib/Coscine.Api.Organization/common.js +1 -1
  35. package/dist/lib/Coscine.Api.Organization/configuration.js +1 -1
  36. package/dist/lib/Coscine.Api.Organization/index.js +1 -1
  37. package/dist/lib/Coscine.Api.Project/api.js +320 -332
  38. package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
  39. package/dist/lib/Coscine.Api.Project/base.js +1 -1
  40. package/dist/lib/Coscine.Api.Project/common.js +1 -1
  41. package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
  42. package/dist/lib/Coscine.Api.Project/index.js +1 -1
  43. package/dist/lib/Coscine.Api.Resources/api.js +242 -42
  44. package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
  45. package/dist/lib/Coscine.Api.Resources/base.js +1 -1
  46. package/dist/lib/Coscine.Api.Resources/common.js +1 -1
  47. package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
  48. package/dist/lib/Coscine.Api.Resources/index.js +1 -1
  49. package/dist/lib/Coscine.Api.Search/api.js +1 -1
  50. package/dist/lib/Coscine.Api.Search/base.js +1 -1
  51. package/dist/lib/Coscine.Api.Search/common.js +1 -1
  52. package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
  53. package/dist/lib/Coscine.Api.Search/index.js +1 -1
  54. package/dist/lib/Coscine.Api.Token/api.js +1 -1
  55. package/dist/lib/Coscine.Api.Token/base.js +1 -1
  56. package/dist/lib/Coscine.Api.Token/common.js +1 -1
  57. package/dist/lib/Coscine.Api.Token/configuration.js +1 -1
  58. package/dist/lib/Coscine.Api.Token/index.js +1 -1
  59. package/dist/lib/Coscine.Api.Tree/api.js +29 -15
  60. package/dist/lib/Coscine.Api.Tree/api.js.map +1 -1
  61. package/dist/lib/Coscine.Api.Tree/base.js +1 -1
  62. package/dist/lib/Coscine.Api.Tree/common.js +1 -1
  63. package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
  64. package/dist/lib/Coscine.Api.Tree/index.js +1 -1
  65. package/dist/lib/Coscine.Api.User/api.js +1 -1
  66. package/dist/lib/Coscine.Api.User/base.js +1 -1
  67. package/dist/lib/Coscine.Api.User/common.js +1 -1
  68. package/dist/lib/Coscine.Api.User/configuration.js +1 -1
  69. package/dist/lib/Coscine.Api.User/index.js +1 -1
  70. package/dist/lib/apis.js +19 -19
  71. package/dist/lib/apis.js.map +1 -1
  72. package/dist/lib/index.js +3 -3
  73. package/dist/lib/index.js.map +1 -1
  74. package/dist/types/Coscine.Api.ActivatedFeatures/api.d.ts +1 -1
  75. package/dist/types/Coscine.Api.ActivatedFeatures/base.d.ts +1 -1
  76. package/dist/types/Coscine.Api.ActivatedFeatures/common.d.ts +1 -1
  77. package/dist/types/Coscine.Api.ActivatedFeatures/configuration.d.ts +1 -1
  78. package/dist/types/Coscine.Api.ActivatedFeatures/index.d.ts +1 -1
  79. package/dist/types/Coscine.Api.Admin/api.d.ts +100 -66
  80. package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
  81. package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
  82. package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
  83. package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
  84. package/dist/types/Coscine.Api.Blob/api.d.ts +1 -67
  85. package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
  86. package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
  87. package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
  88. package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
  89. package/dist/types/Coscine.Api.Metadata/api.d.ts +1 -1
  90. package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
  91. package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
  92. package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
  93. package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
  94. package/dist/types/Coscine.Api.Notices/api.d.ts +1 -1
  95. package/dist/types/Coscine.Api.Notices/base.d.ts +1 -1
  96. package/dist/types/Coscine.Api.Notices/common.d.ts +1 -1
  97. package/dist/types/Coscine.Api.Notices/configuration.d.ts +1 -1
  98. package/dist/types/Coscine.Api.Notices/index.d.ts +1 -1
  99. package/dist/types/Coscine.Api.Organization/api.d.ts +1 -1
  100. package/dist/types/Coscine.Api.Organization/base.d.ts +1 -1
  101. package/dist/types/Coscine.Api.Organization/common.d.ts +1 -1
  102. package/dist/types/Coscine.Api.Organization/configuration.d.ts +1 -1
  103. package/dist/types/Coscine.Api.Organization/index.d.ts +1 -1
  104. package/dist/types/Coscine.Api.Project/api.d.ts +312 -232
  105. package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
  106. package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
  107. package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
  108. package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
  109. package/dist/types/Coscine.Api.Resources/api.d.ts +295 -48
  110. package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
  111. package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
  112. package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
  113. package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
  114. package/dist/types/Coscine.Api.Search/api.d.ts +1 -1
  115. package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
  116. package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
  117. package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
  118. package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
  119. package/dist/types/Coscine.Api.Token/api.d.ts +1 -1
  120. package/dist/types/Coscine.Api.Token/base.d.ts +1 -1
  121. package/dist/types/Coscine.Api.Token/common.d.ts +1 -1
  122. package/dist/types/Coscine.Api.Token/configuration.d.ts +1 -1
  123. package/dist/types/Coscine.Api.Token/index.d.ts +1 -1
  124. package/dist/types/Coscine.Api.Tree/api.d.ts +17 -9
  125. package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
  126. package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
  127. package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
  128. package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
  129. package/dist/types/Coscine.Api.User/api.d.ts +1 -1
  130. package/dist/types/Coscine.Api.User/base.d.ts +1 -1
  131. package/dist/types/Coscine.Api.User/common.d.ts +1 -1
  132. package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
  133. package/dist/types/Coscine.Api.User/index.d.ts +1 -1
  134. package/dist/types/apis.d.ts +14 -24
  135. package/dist/types/index.d.ts +28 -48
  136. package/package.json +2 -2
  137. package/dist/lib/Coscine.Api.Quota/api.js +0 -283
  138. package/dist/lib/Coscine.Api.Quota/api.js.map +0 -1
  139. package/dist/lib/Coscine.Api.Quota/base.js +0 -65
  140. package/dist/lib/Coscine.Api.Quota/base.js.map +0 -1
  141. package/dist/lib/Coscine.Api.Quota/common.js +0 -153
  142. package/dist/lib/Coscine.Api.Quota/common.js.map +0 -1
  143. package/dist/lib/Coscine.Api.Quota/configuration.js +0 -43
  144. package/dist/lib/Coscine.Api.Quota/configuration.js.map +0 -1
  145. package/dist/lib/Coscine.Api.Quota/index.js +0 -28
  146. package/dist/lib/Coscine.Api.Quota/index.js.map +0 -1
  147. package/dist/types/Coscine.Api.Quota/api.d.ts +0 -197
  148. package/dist/types/Coscine.Api.Quota/base.d.ts +0 -55
  149. package/dist/types/Coscine.Api.Quota/common.d.ts +0 -65
  150. package/dist/types/Coscine.Api.Quota/configuration.d.ts +0 -83
  151. 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: 2.6.2
8
+ * The version of the OpenAPI document: 3.0.1
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.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoleApi = exports.RoleApiFactory = exports.RoleApiFp = exports.RoleApiAxiosParamCreator = exports.ProjectRoleApi = exports.ProjectRoleApiFactory = exports.ProjectRoleApiFp = exports.ProjectRoleApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.LicenseApi = exports.LicenseApiFactory = exports.LicenseApiFp = exports.LicenseApiAxiosParamCreator = exports.DisciplineApi = exports.DisciplineApiFactory = exports.DisciplineApiFp = exports.DisciplineApiAxiosParamCreator = void 0;
28
+ exports.VisibilityApi = exports.VisibilityApiFactory = exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.SubProjectApi = exports.SubProjectApiFactory = exports.SubProjectApiFp = exports.SubProjectApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = 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 the selected project
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 Get the max quota for a resource type.
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 Retrieves the quota for the selected project and resource Type.
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 Create and send a project invitation to a specified mail.
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 the selected project
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 the selected project
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 Get the max quota for a resource type.
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 Retrieves the quota for the selected project and resource Type.
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 Create and send a project invitation to a specified mail.
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 the selected project
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 the selected project
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 Get the max quota for a resource type.
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 Retrieves the quota for the selected project and resource Type.
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 Create and send a project invitation to a specified mail.
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 the selected project
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 the selected project
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 Get the max quota for a resource type.
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 Retrieves the quota for the selected project and resource Type.
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 Create and send a project invitation to a specified mail.
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 the selected project
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,21 +1115,263 @@ 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
  }
1118
+ }
1119
+ exports.ProjectApi = ProjectApi;
1120
+ /**
1121
+ * ProjectQuotaApi - axios parameter creator
1122
+ * @export
1123
+ */
1124
+ const ProjectQuotaApiAxiosParamCreator = function (configuration) {
1125
+ return {
1126
+ /**
1127
+ *
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
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ */
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)));
1142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1143
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1144
+ let baseOptions;
1145
+ if (configuration) {
1146
+ baseOptions = configuration.baseOptions;
1147
+ }
1148
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1149
+ const localVarHeaderParameter = {};
1150
+ const localVarQueryParameter = {};
1151
+ // authentication JWT token required
1152
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1153
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1155
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1156
+ return {
1157
+ url: (0, common_1.toPathString)(localVarUrlObj),
1158
+ options: localVarRequestOptions,
1159
+ };
1160
+ }),
1161
+ /**
1162
+ *
1163
+ * @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
1164
+ * @param {string} id Id of the project
1165
+ * @param {*} [options] Override http request option.
1166
+ * @throws {RequiredError}
1167
+ */
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)));
1173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1174
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1175
+ let baseOptions;
1176
+ if (configuration) {
1177
+ baseOptions = configuration.baseOptions;
1178
+ }
1179
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1180
+ const localVarHeaderParameter = {};
1181
+ const localVarQueryParameter = {};
1182
+ // authentication JWT token required
1183
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1186
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1187
+ return {
1188
+ url: (0, common_1.toPathString)(localVarUrlObj),
1189
+ options: localVarRequestOptions,
1190
+ };
1191
+ }),
1192
+ /**
1193
+ *
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
+ }
1380
1349
  /**
1381
1350
  *
1382
- * @summary Update the project quota.
1383
- * @param {string} id Id of the project.
1384
- * @param {string} resourceTypeId Id of the resource.
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
1385
1365
  * @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
1386
1366
  * @param {*} [options] Override http request option.
1387
1367
  * @throws {RequiredError}
1388
- * @memberof ProjectApi
1368
+ * @memberof ProjectQuotaApi
1389
1369
  */
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));
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));
1392
1372
  }
1393
1373
  }
1394
- exports.ProjectApi = ProjectApi;
1374
+ exports.ProjectQuotaApi = ProjectQuotaApi;
1395
1375
  /**
1396
1376
  * ProjectRoleApi - axios parameter creator
1397
1377
  * @export
@@ -1400,7 +1380,7 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
1400
1380
  return {
1401
1381
  /**
1402
1382
  *
1403
- * @summary deletes project role for the given project
1383
+ * @summary Deletes a user from a project
1404
1384
  * @param {string} projectId Id of the project
1405
1385
  * @param {string} userId Id of the user
1406
1386
  * @param {string} roleId Id of the role
@@ -1439,7 +1419,7 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
1439
1419
  }),
1440
1420
  /**
1441
1421
  *
1442
- * @summary Deletes user from a project
1422
+ * @summary Deletes the current user from a project
1443
1423
  * @param {string} projectId Id of the project
1444
1424
  * @param {*} [options] Override http request option.
1445
1425
  * @throws {RequiredError}
@@ -1470,7 +1450,7 @@ const ProjectRoleApiAxiosParamCreator = function (configuration) {
1470
1450
  }),
1471
1451
  /**
1472
1452
  *
1473
- * @summary Gets all roles for current user and given object
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 to the given project
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 sets a project role for the given project
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 deletes project role for the given project
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 given object
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 to the given project
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 sets a project role for the given project
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 deletes project role for the given project
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 given object
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 to the given project
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 sets a project role for the given project
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 deletes project role for the given project
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 given object
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 to the given project
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 sets a project role for the given project
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;