@tapis/tapis-typescript-systems 0.0.2 → 0.0.3

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 (185) hide show
  1. package/.openapi-generator/FILES +18 -3
  2. package/README.md +2 -2
  3. package/dist/apis/ChildSystemsApi.d.ts +54 -0
  4. package/dist/apis/ChildSystemsApi.js +224 -0
  5. package/dist/apis/CredentialsApi.d.ts +48 -15
  6. package/dist/apis/CredentialsApi.js +167 -16
  7. package/dist/apis/GeneralApi.d.ts +5 -5
  8. package/dist/apis/GeneralApi.js +5 -5
  9. package/dist/apis/PermissionsApi.d.ts +3 -11
  10. package/dist/apis/PermissionsApi.js +3 -11
  11. package/dist/apis/SchedulerProfilesApi.d.ts +5 -13
  12. package/dist/apis/SchedulerProfilesApi.js +6 -14
  13. package/dist/apis/SharingApi.d.ts +85 -0
  14. package/dist/apis/SharingApi.js +328 -0
  15. package/dist/apis/SystemsApi.d.ts +33 -44
  16. package/dist/apis/SystemsApi.js +84 -47
  17. package/dist/apis/index.d.ts +2 -0
  18. package/dist/apis/index.js +2 -0
  19. package/dist/models/AuthnEnum.d.ts +2 -1
  20. package/dist/models/AuthnEnum.js +2 -1
  21. package/dist/models/Capability.d.ts +1 -1
  22. package/dist/models/Capability.js +1 -1
  23. package/dist/models/CategoryEnum.d.ts +1 -1
  24. package/dist/models/CategoryEnum.js +1 -1
  25. package/dist/models/Credential.d.ts +19 -1
  26. package/dist/models/Credential.js +7 -1
  27. package/dist/models/DatatypeEnum.d.ts +1 -1
  28. package/dist/models/DatatypeEnum.js +1 -1
  29. package/dist/models/JobRuntime.d.ts +1 -1
  30. package/dist/models/JobRuntime.js +1 -1
  31. package/dist/models/KeyValuePair.d.ts +7 -1
  32. package/dist/models/KeyValuePair.js +3 -1
  33. package/dist/models/ListTypeEnum.d.ts +24 -0
  34. package/dist/models/ListTypeEnum.js +38 -0
  35. package/dist/models/LogicalQueue.d.ts +1 -1
  36. package/dist/models/LogicalQueue.js +1 -1
  37. package/dist/models/ModuleLoadSpec.d.ts +33 -0
  38. package/dist/models/ModuleLoadSpec.js +43 -0
  39. package/dist/models/OperationTypeEnum.d.ts +35 -0
  40. package/dist/models/OperationTypeEnum.js +49 -0
  41. package/dist/models/ReqMatchConstraints.d.ts +1 -1
  42. package/dist/models/ReqMatchConstraints.js +1 -1
  43. package/dist/models/ReqPatchSystem.d.ts +19 -1
  44. package/dist/models/ReqPatchSystem.js +7 -1
  45. package/dist/models/ReqPerms.d.ts +1 -1
  46. package/dist/models/ReqPerms.js +1 -1
  47. package/dist/models/ReqPostChildSystem.d.ts +39 -0
  48. package/dist/models/ReqPostChildSystem.js +45 -0
  49. package/dist/models/ReqPostPutCredential.d.ts +69 -0
  50. package/dist/models/{ReqCreateCredential.js → ReqPostPutCredential.js} +12 -8
  51. package/dist/models/ReqPostSchedulerProfile.d.ts +52 -0
  52. package/dist/models/{ReqCreateSchedulerProfile.js → ReqPostSchedulerProfile.js} +10 -12
  53. package/dist/models/{ReqCreateSystem.d.ts → ReqPostSystem.d.ts} +55 -43
  54. package/dist/models/{ReqCreateSystem.js → ReqPostSystem.js} +14 -10
  55. package/dist/models/ReqPutSystem.d.ts +16 -4
  56. package/dist/models/ReqPutSystem.js +7 -3
  57. package/dist/models/ReqSearchSystems.d.ts +1 -1
  58. package/dist/models/ReqSearchSystems.js +1 -1
  59. package/dist/models/ReqShareUpdate.d.ts +27 -0
  60. package/dist/models/ReqShareUpdate.js +40 -0
  61. package/dist/models/ReqUnlinkChildren.d.ts +27 -0
  62. package/dist/models/ReqUnlinkChildren.js +41 -0
  63. package/dist/models/ReqUpdateCredential.d.ts +75 -0
  64. package/dist/models/ReqUpdateCredential.js +57 -0
  65. package/dist/models/RespBasic.d.ts +13 -1
  66. package/dist/models/RespBasic.js +5 -1
  67. package/dist/models/RespBoolean.d.ts +13 -1
  68. package/dist/models/RespBoolean.js +5 -1
  69. package/dist/models/RespChangeCount.d.ts +13 -1
  70. package/dist/models/RespChangeCount.js +5 -1
  71. package/dist/models/RespCredential.d.ts +13 -1
  72. package/dist/models/RespCredential.js +5 -1
  73. package/dist/models/RespGlobusAuthUrl.d.ts +64 -0
  74. package/dist/models/RespGlobusAuthUrl.js +54 -0
  75. package/dist/models/RespNameArray.d.ts +13 -1
  76. package/dist/models/RespNameArray.js +5 -1
  77. package/dist/models/RespResourceUrl.d.ts +13 -1
  78. package/dist/models/RespResourceUrl.js +5 -1
  79. package/dist/models/RespSchedulerProfile.d.ts +13 -1
  80. package/dist/models/RespSchedulerProfile.js +5 -1
  81. package/dist/models/RespSchedulerProfiles.d.ts +13 -1
  82. package/dist/models/RespSchedulerProfiles.js +5 -1
  83. package/dist/models/RespShareInfo.d.ts +64 -0
  84. package/dist/models/RespShareInfo.js +54 -0
  85. package/dist/models/RespSystem.d.ts +13 -1
  86. package/dist/models/RespSystem.js +5 -1
  87. package/dist/models/RespSystemHistory.d.ts +64 -0
  88. package/dist/models/RespSystemHistory.js +54 -0
  89. package/dist/models/RespSystems.d.ts +13 -1
  90. package/dist/models/RespSystems.js +5 -1
  91. package/dist/models/RespSystemsMetadata.d.ts +1 -1
  92. package/dist/models/RespSystemsMetadata.js +1 -1
  93. package/dist/models/ResultBoolean.d.ts +1 -1
  94. package/dist/models/ResultBoolean.js +1 -1
  95. package/dist/models/ResultChangeCount.d.ts +1 -1
  96. package/dist/models/ResultChangeCount.js +1 -1
  97. package/dist/models/ResultGlobusAuthUrl.d.ts +33 -0
  98. package/dist/models/ResultGlobusAuthUrl.js +43 -0
  99. package/dist/models/ResultNameArray.d.ts +1 -1
  100. package/dist/models/ResultNameArray.js +1 -1
  101. package/dist/models/ResultResourceUrl.d.ts +1 -1
  102. package/dist/models/ResultResourceUrl.js +1 -1
  103. package/dist/models/RuntimeTypeEnum.d.ts +1 -1
  104. package/dist/models/RuntimeTypeEnum.js +1 -1
  105. package/dist/models/SchedulerHiddenOptionEnum.d.ts +1 -1
  106. package/dist/models/SchedulerHiddenOptionEnum.js +1 -1
  107. package/dist/models/SchedulerProfile.d.ts +4 -10
  108. package/dist/models/SchedulerProfile.js +3 -5
  109. package/dist/models/SchedulerTypeEnum.d.ts +1 -1
  110. package/dist/models/SchedulerTypeEnum.js +1 -1
  111. package/dist/models/ShareInfo.d.ts +33 -0
  112. package/dist/models/ShareInfo.js +42 -0
  113. package/dist/models/SystemHistory.d.ts +64 -0
  114. package/dist/models/SystemHistory.js +54 -0
  115. package/dist/models/SystemTypeEnum.d.ts +1 -1
  116. package/dist/models/SystemTypeEnum.js +1 -1
  117. package/dist/models/TapisSystem.d.ts +27 -3
  118. package/dist/models/TapisSystem.js +11 -3
  119. package/dist/models/index.d.ts +16 -3
  120. package/dist/models/index.js +16 -3
  121. package/dist/runtime.d.ts +1 -1
  122. package/dist/runtime.js +1 -1
  123. package/package.json +1 -1
  124. package/src/apis/ChildSystemsApi.ts +171 -0
  125. package/src/apis/CredentialsApi.ts +152 -20
  126. package/src/apis/GeneralApi.ts +5 -5
  127. package/src/apis/PermissionsApi.ts +3 -11
  128. package/src/apis/SchedulerProfilesApi.ts +10 -18
  129. package/src/apis/SharingApi.ts +250 -0
  130. package/src/apis/SystemsApi.ts +99 -53
  131. package/src/apis/index.ts +2 -0
  132. package/src/models/AuthnEnum.ts +2 -1
  133. package/src/models/Capability.ts +1 -1
  134. package/src/models/CategoryEnum.ts +1 -1
  135. package/src/models/Credential.ts +25 -1
  136. package/src/models/DatatypeEnum.ts +1 -1
  137. package/src/models/JobRuntime.ts +1 -1
  138. package/src/models/KeyValuePair.ts +9 -1
  139. package/src/models/ListTypeEnum.ts +37 -0
  140. package/src/models/LogicalQueue.ts +1 -1
  141. package/src/models/ModuleLoadSpec.ts +64 -0
  142. package/src/models/OperationTypeEnum.ts +48 -0
  143. package/src/models/ReqMatchConstraints.ts +1 -1
  144. package/src/models/ReqPatchSystem.ts +25 -1
  145. package/src/models/ReqPerms.ts +1 -1
  146. package/src/models/ReqPostChildSystem.ts +72 -0
  147. package/src/models/{ReqCreateCredential.ts → ReqPostPutCredential.ts} +29 -13
  148. package/src/models/{ReqCreateSchedulerProfile.ts → ReqPostSchedulerProfile.ts} +20 -24
  149. package/src/models/{ReqCreateSystem.ts → ReqPostSystem.ts} +65 -49
  150. package/src/models/ReqPutSystem.ts +25 -9
  151. package/src/models/ReqSearchSystems.ts +1 -1
  152. package/src/models/ReqShareUpdate.ts +56 -0
  153. package/src/models/ReqUnlinkChildren.ts +56 -0
  154. package/src/models/ReqUpdateCredential.ts +120 -0
  155. package/src/models/RespBasic.ts +17 -1
  156. package/src/models/RespBoolean.ts +17 -1
  157. package/src/models/RespChangeCount.ts +17 -1
  158. package/src/models/RespCredential.ts +17 -1
  159. package/src/models/RespGlobusAuthUrl.ts +111 -0
  160. package/src/models/RespNameArray.ts +17 -1
  161. package/src/models/RespResourceUrl.ts +17 -1
  162. package/src/models/RespSchedulerProfile.ts +17 -1
  163. package/src/models/RespSchedulerProfiles.ts +17 -1
  164. package/src/models/RespShareInfo.ts +111 -0
  165. package/src/models/RespSystem.ts +17 -1
  166. package/src/models/RespSystemHistory.ts +111 -0
  167. package/src/models/RespSystems.ts +17 -1
  168. package/src/models/RespSystemsMetadata.ts +1 -1
  169. package/src/models/ResultBoolean.ts +1 -1
  170. package/src/models/ResultChangeCount.ts +1 -1
  171. package/src/models/ResultGlobusAuthUrl.ts +64 -0
  172. package/src/models/ResultNameArray.ts +1 -1
  173. package/src/models/ResultResourceUrl.ts +1 -1
  174. package/src/models/RuntimeTypeEnum.ts +1 -1
  175. package/src/models/SchedulerHiddenOptionEnum.ts +1 -1
  176. package/src/models/SchedulerProfile.ts +9 -13
  177. package/src/models/SchedulerTypeEnum.ts +1 -1
  178. package/src/models/ShareInfo.ts +64 -0
  179. package/src/models/SystemHistory.ts +111 -0
  180. package/src/models/SystemTypeEnum.ts +1 -1
  181. package/src/models/TapisSystem.ts +37 -5
  182. package/src/models/index.ts +16 -3
  183. package/src/runtime.ts +1 -1
  184. package/dist/models/ReqCreateCredential.d.ts +0 -57
  185. package/dist/models/ReqCreateSchedulerProfile.d.ts +0 -58
@@ -5,7 +5,7 @@
5
5
  * Tapis Systems API
6
6
  * The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0-rc1
8
+ * The version of the OpenAPI document: 1.3.3
9
9
  * Contact: cicsupport@tacc.utexas.edu
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -69,8 +69,7 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
69
69
  return _super !== null && _super.apply(this, arguments) || this;
70
70
  }
71
71
  /**
72
- * Create a scheduler profile using a request body. Name must be unique within a tenant and can be composed of alphanumeric characters and the following special characters [-._~]. Name must begin with an alphabetic character and can be no more than 80 characters in length. Description is optional with a maximum length of 2048 characters. Note that certain attributes (such as tenant) are allowed but ignored so that the JSON result returned by a GET may be modified and used when making a POST request to create a profile. The attributes that are allowed but ignored are - tenant - uuid - created - updated
73
- * Create a scheduler profile
72
+ * Create a scheduler profile using a request body. Name must be unique within a tenant and can be composed of alphanumeric characters and the following special characters [-._~]. Name must begin with an alphabetic character and can be no more than 80 characters in length. Description is optional with a maximum length of 2048 characters. Note that certain attributes (such as *tenant*) are allowed but ignored so that the JSON result returned by a GET may be modified and used when making a POST request to create a profile. The attributes that are allowed but ignored are - tenant - uuid - created - updated
74
73
  */
75
74
  SchedulerProfilesApi.prototype.createSchedulerProfileRaw = function (requestParameters, initOverrides) {
76
75
  return __awaiter(this, void 0, void 0, function () {
@@ -78,8 +77,8 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
78
77
  return __generator(this, function (_a) {
79
78
  switch (_a.label) {
80
79
  case 0:
81
- if (requestParameters.reqCreateSchedulerProfile === null || requestParameters.reqCreateSchedulerProfile === undefined) {
82
- throw new runtime.RequiredError('reqCreateSchedulerProfile', 'Required parameter requestParameters.reqCreateSchedulerProfile was null or undefined when calling createSchedulerProfile.');
80
+ if (requestParameters.reqPostSchedulerProfile === null || requestParameters.reqPostSchedulerProfile === undefined) {
81
+ throw new runtime.RequiredError('reqPostSchedulerProfile', 'Required parameter requestParameters.reqPostSchedulerProfile was null or undefined when calling createSchedulerProfile.');
83
82
  }
84
83
  queryParameters = {};
85
84
  headerParameters = {};
@@ -92,7 +91,7 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
92
91
  method: 'POST',
93
92
  headers: headerParameters,
94
93
  query: queryParameters,
95
- body: models_1.ReqCreateSchedulerProfileToJSON(requestParameters.reqCreateSchedulerProfile),
94
+ body: models_1.ReqPostSchedulerProfileToJSON(requestParameters.reqPostSchedulerProfile),
96
95
  }, initOverrides)];
97
96
  case 1:
98
97
  response = _a.sent();
@@ -102,8 +101,7 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
102
101
  });
103
102
  };
104
103
  /**
105
- * Create a scheduler profile using a request body. Name must be unique within a tenant and can be composed of alphanumeric characters and the following special characters [-._~]. Name must begin with an alphabetic character and can be no more than 80 characters in length. Description is optional with a maximum length of 2048 characters. Note that certain attributes (such as tenant) are allowed but ignored so that the JSON result returned by a GET may be modified and used when making a POST request to create a profile. The attributes that are allowed but ignored are - tenant - uuid - created - updated
106
- * Create a scheduler profile
104
+ * Create a scheduler profile using a request body. Name must be unique within a tenant and can be composed of alphanumeric characters and the following special characters [-._~]. Name must begin with an alphabetic character and can be no more than 80 characters in length. Description is optional with a maximum length of 2048 characters. Note that certain attributes (such as *tenant*) are allowed but ignored so that the JSON result returned by a GET may be modified and used when making a POST request to create a profile. The attributes that are allowed but ignored are - tenant - uuid - created - updated
107
105
  */
108
106
  SchedulerProfilesApi.prototype.createSchedulerProfile = function (requestParameters, initOverrides) {
109
107
  return __awaiter(this, void 0, void 0, function () {
@@ -121,7 +119,6 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
121
119
  };
122
120
  /**
123
121
  * Remove a scheduler profile given the profile name. Requester must be owner of the profile.
124
- * Delete a scheduler profile
125
122
  */
126
123
  SchedulerProfilesApi.prototype.deleteSchedulerProfileRaw = function (requestParameters, initOverrides) {
127
124
  return __awaiter(this, void 0, void 0, function () {
@@ -152,7 +149,6 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
152
149
  };
153
150
  /**
154
151
  * Remove a scheduler profile given the profile name. Requester must be owner of the profile.
155
- * Delete a scheduler profile
156
152
  */
157
153
  SchedulerProfilesApi.prototype.deleteSchedulerProfile = function (requestParameters, initOverrides) {
158
154
  return __awaiter(this, void 0, void 0, function () {
@@ -170,7 +166,6 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
170
166
  };
171
167
  /**
172
168
  * Retrieve information for a scheduler profile given the profile name.
173
- * Retrieve a scheduler profile
174
169
  */
175
170
  SchedulerProfilesApi.prototype.getSchedulerProfileRaw = function (requestParameters, initOverrides) {
176
171
  return __awaiter(this, void 0, void 0, function () {
@@ -201,7 +196,6 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
201
196
  };
202
197
  /**
203
198
  * Retrieve information for a scheduler profile given the profile name.
204
- * Retrieve a scheduler profile
205
199
  */
206
200
  SchedulerProfilesApi.prototype.getSchedulerProfile = function (requestParameters, initOverrides) {
207
201
  return __awaiter(this, void 0, void 0, function () {
@@ -219,7 +213,6 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
219
213
  };
220
214
  /**
221
215
  * Retrieve list of scheduler profiles.
222
- * Retrieve scheduler profiles
223
216
  */
224
217
  SchedulerProfilesApi.prototype.getSchedulerProfilesRaw = function (initOverrides) {
225
218
  return __awaiter(this, void 0, void 0, function () {
@@ -247,7 +240,6 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
247
240
  };
248
241
  /**
249
242
  * Retrieve list of scheduler profiles.
250
- * Retrieve scheduler profiles
251
243
  */
252
244
  SchedulerProfilesApi.prototype.getSchedulerProfiles = function (initOverrides) {
253
245
  return __awaiter(this, void 0, void 0, function () {
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Tapis Systems API
3
+ * The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
4
+ *
5
+ * The version of the OpenAPI document: 1.3.3
6
+ * Contact: cicsupport@tacc.utexas.edu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { ReqShareUpdate, RespBasic, RespShareInfo } from '../models';
14
+ export interface GetShareInfoRequest {
15
+ systemId: string;
16
+ }
17
+ export interface ShareSystemRequest {
18
+ systemId: string;
19
+ reqShareUpdate: ReqShareUpdate;
20
+ }
21
+ export interface ShareSystemPublicRequest {
22
+ systemId: string;
23
+ }
24
+ export interface UnShareSystemRequest {
25
+ systemId: string;
26
+ reqShareUpdate: ReqShareUpdate;
27
+ }
28
+ export interface UnShareSystemPublicRequest {
29
+ systemId: string;
30
+ }
31
+ /**
32
+ *
33
+ */
34
+ export declare class SharingApi extends runtime.BaseAPI {
35
+ /**
36
+ * Retrieve all sharing information for a system. This includes all users with whom the system has been shared and whether or not the system has been made publicly available.
37
+ * Retrieve all sharing information for a system
38
+ */
39
+ getShareInfoRaw(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespShareInfo>>;
40
+ /**
41
+ * Retrieve all sharing information for a system. This includes all users with whom the system has been shared and whether or not the system has been made publicly available.
42
+ * Retrieve all sharing information for a system
43
+ */
44
+ getShareInfo(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<RespShareInfo>;
45
+ /**
46
+ * Create or update sharing information for a system. The system will be shared with the list of users provided in the request body. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
47
+ * Share a system with one or more users.
48
+ */
49
+ shareSystemRaw(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
50
+ /**
51
+ * Create or update sharing information for a system. The system will be shared with the list of users provided in the request body. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
52
+ * Share a system with one or more users.
53
+ */
54
+ shareSystem(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic>;
55
+ /**
56
+ * Share a system with all users in the tenant. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
57
+ * Share a system publicly with all users in the tenant.
58
+ */
59
+ shareSystemPublicRaw(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
60
+ /**
61
+ * Share a system with all users in the tenant. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
62
+ * Share a system publicly with all users in the tenant.
63
+ */
64
+ shareSystemPublic(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic>;
65
+ /**
66
+ * Create or update sharing information for a system. The system will be unshared with the list of users provided in the request body. Requester must be owner of the system.
67
+ * Unshare a system with one or more users.
68
+ */
69
+ unShareSystemRaw(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
70
+ /**
71
+ * Create or update sharing information for a system. The system will be unshared with the list of users provided in the request body. Requester must be owner of the system.
72
+ * Unshare a system with one or more users.
73
+ */
74
+ unShareSystem(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic>;
75
+ /**
76
+ * Remove public sharing for a system. Requester must be owner of the system.
77
+ * Remove public access for a system.
78
+ */
79
+ unShareSystemPublicRaw(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
80
+ /**
81
+ * Remove public sharing for a system. Requester must be owner of the system.
82
+ * Remove public access for a system.
83
+ */
84
+ unShareSystemPublic(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic>;
85
+ }
@@ -0,0 +1,328 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tapis Systems API
6
+ * The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
7
+ *
8
+ * The version of the OpenAPI document: 1.3.3
9
+ * Contact: cicsupport@tacc.utexas.edu
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19
+ return function (d, b) {
20
+ extendStatics(d, b);
21
+ function __() { this.constructor = d; }
22
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23
+ };
24
+ })();
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
33
+ var __generator = (this && this.__generator) || function (thisArg, body) {
34
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
35
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
+ function verb(n) { return function (v) { return step([n, v]); }; }
37
+ function step(op) {
38
+ if (f) throw new TypeError("Generator is already executing.");
39
+ while (_) try {
40
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41
+ if (y = 0, t) op = [op[0] & 2, t.value];
42
+ switch (op[0]) {
43
+ case 0: case 1: t = op; break;
44
+ case 4: _.label++; return { value: op[1], done: false };
45
+ case 5: _.label++; y = op[1]; op = [0]; continue;
46
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
47
+ default:
48
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
49
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
50
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
51
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
52
+ if (t[2]) _.ops.pop();
53
+ _.trys.pop(); continue;
54
+ }
55
+ op = body.call(thisArg, _);
56
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
57
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
58
+ }
59
+ };
60
+ Object.defineProperty(exports, "__esModule", { value: true });
61
+ var runtime = require("../runtime");
62
+ var models_1 = require("../models");
63
+ /**
64
+ *
65
+ */
66
+ var SharingApi = /** @class */ (function (_super) {
67
+ __extends(SharingApi, _super);
68
+ function SharingApi() {
69
+ return _super !== null && _super.apply(this, arguments) || this;
70
+ }
71
+ /**
72
+ * Retrieve all sharing information for a system. This includes all users with whom the system has been shared and whether or not the system has been made publicly available.
73
+ * Retrieve all sharing information for a system
74
+ */
75
+ SharingApi.prototype.getShareInfoRaw = function (requestParameters, initOverrides) {
76
+ return __awaiter(this, void 0, void 0, function () {
77
+ var queryParameters, headerParameters, response;
78
+ return __generator(this, function (_a) {
79
+ switch (_a.label) {
80
+ case 0:
81
+ if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
82
+ throw new runtime.RequiredError('systemId', 'Required parameter requestParameters.systemId was null or undefined when calling getShareInfo.');
83
+ }
84
+ queryParameters = {};
85
+ headerParameters = {};
86
+ if (this.configuration && this.configuration.apiKey) {
87
+ headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
88
+ }
89
+ return [4 /*yield*/, this.request({
90
+ path: "/v3/systems/share/{systemId}".replace("{" + "systemId" + "}", encodeURIComponent(String(requestParameters.systemId))),
91
+ method: 'GET',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ }, initOverrides)];
95
+ case 1:
96
+ response = _a.sent();
97
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespShareInfoFromJSON(jsonValue); })];
98
+ }
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * Retrieve all sharing information for a system. This includes all users with whom the system has been shared and whether or not the system has been made publicly available.
104
+ * Retrieve all sharing information for a system
105
+ */
106
+ SharingApi.prototype.getShareInfo = function (requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function () {
108
+ var response;
109
+ return __generator(this, function (_a) {
110
+ switch (_a.label) {
111
+ case 0: return [4 /*yield*/, this.getShareInfoRaw(requestParameters, initOverrides)];
112
+ case 1:
113
+ response = _a.sent();
114
+ return [4 /*yield*/, response.value()];
115
+ case 2: return [2 /*return*/, _a.sent()];
116
+ }
117
+ });
118
+ });
119
+ };
120
+ /**
121
+ * Create or update sharing information for a system. The system will be shared with the list of users provided in the request body. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
122
+ * Share a system with one or more users.
123
+ */
124
+ SharingApi.prototype.shareSystemRaw = function (requestParameters, initOverrides) {
125
+ return __awaiter(this, void 0, void 0, function () {
126
+ var queryParameters, headerParameters, response;
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0:
130
+ if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
131
+ throw new runtime.RequiredError('systemId', 'Required parameter requestParameters.systemId was null or undefined when calling shareSystem.');
132
+ }
133
+ if (requestParameters.reqShareUpdate === null || requestParameters.reqShareUpdate === undefined) {
134
+ throw new runtime.RequiredError('reqShareUpdate', 'Required parameter requestParameters.reqShareUpdate was null or undefined when calling shareSystem.');
135
+ }
136
+ queryParameters = {};
137
+ headerParameters = {};
138
+ headerParameters['Content-Type'] = 'application/json';
139
+ if (this.configuration && this.configuration.apiKey) {
140
+ headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
141
+ }
142
+ return [4 /*yield*/, this.request({
143
+ path: "/v3/systems/share/{systemId}".replace("{" + "systemId" + "}", encodeURIComponent(String(requestParameters.systemId))),
144
+ method: 'POST',
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ body: models_1.ReqShareUpdateToJSON(requestParameters.reqShareUpdate),
148
+ }, initOverrides)];
149
+ case 1:
150
+ response = _a.sent();
151
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespBasicFromJSON(jsonValue); })];
152
+ }
153
+ });
154
+ });
155
+ };
156
+ /**
157
+ * Create or update sharing information for a system. The system will be shared with the list of users provided in the request body. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
158
+ * Share a system with one or more users.
159
+ */
160
+ SharingApi.prototype.shareSystem = function (requestParameters, initOverrides) {
161
+ return __awaiter(this, void 0, void 0, function () {
162
+ var response;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, this.shareSystemRaw(requestParameters, initOverrides)];
166
+ case 1:
167
+ response = _a.sent();
168
+ return [4 /*yield*/, response.value()];
169
+ case 2: return [2 /*return*/, _a.sent()];
170
+ }
171
+ });
172
+ });
173
+ };
174
+ /**
175
+ * Share a system with all users in the tenant. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
176
+ * Share a system publicly with all users in the tenant.
177
+ */
178
+ SharingApi.prototype.shareSystemPublicRaw = function (requestParameters, initOverrides) {
179
+ return __awaiter(this, void 0, void 0, function () {
180
+ var queryParameters, headerParameters, response;
181
+ return __generator(this, function (_a) {
182
+ switch (_a.label) {
183
+ case 0:
184
+ if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
185
+ throw new runtime.RequiredError('systemId', 'Required parameter requestParameters.systemId was null or undefined when calling shareSystemPublic.');
186
+ }
187
+ queryParameters = {};
188
+ headerParameters = {};
189
+ if (this.configuration && this.configuration.apiKey) {
190
+ headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
191
+ }
192
+ return [4 /*yield*/, this.request({
193
+ path: "/v3/systems/share_public/{systemId}".replace("{" + "systemId" + "}", encodeURIComponent(String(requestParameters.systemId))),
194
+ method: 'POST',
195
+ headers: headerParameters,
196
+ query: queryParameters,
197
+ }, initOverrides)];
198
+ case 1:
199
+ response = _a.sent();
200
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespBasicFromJSON(jsonValue); })];
201
+ }
202
+ });
203
+ });
204
+ };
205
+ /**
206
+ * Share a system with all users in the tenant. Sharing allows READ and EXECUTE access. Requester must be owner of the system.
207
+ * Share a system publicly with all users in the tenant.
208
+ */
209
+ SharingApi.prototype.shareSystemPublic = function (requestParameters, initOverrides) {
210
+ return __awaiter(this, void 0, void 0, function () {
211
+ var response;
212
+ return __generator(this, function (_a) {
213
+ switch (_a.label) {
214
+ case 0: return [4 /*yield*/, this.shareSystemPublicRaw(requestParameters, initOverrides)];
215
+ case 1:
216
+ response = _a.sent();
217
+ return [4 /*yield*/, response.value()];
218
+ case 2: return [2 /*return*/, _a.sent()];
219
+ }
220
+ });
221
+ });
222
+ };
223
+ /**
224
+ * Create or update sharing information for a system. The system will be unshared with the list of users provided in the request body. Requester must be owner of the system.
225
+ * Unshare a system with one or more users.
226
+ */
227
+ SharingApi.prototype.unShareSystemRaw = function (requestParameters, initOverrides) {
228
+ return __awaiter(this, void 0, void 0, function () {
229
+ var queryParameters, headerParameters, response;
230
+ return __generator(this, function (_a) {
231
+ switch (_a.label) {
232
+ case 0:
233
+ if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
234
+ throw new runtime.RequiredError('systemId', 'Required parameter requestParameters.systemId was null or undefined when calling unShareSystem.');
235
+ }
236
+ if (requestParameters.reqShareUpdate === null || requestParameters.reqShareUpdate === undefined) {
237
+ throw new runtime.RequiredError('reqShareUpdate', 'Required parameter requestParameters.reqShareUpdate was null or undefined when calling unShareSystem.');
238
+ }
239
+ queryParameters = {};
240
+ headerParameters = {};
241
+ headerParameters['Content-Type'] = 'application/json';
242
+ if (this.configuration && this.configuration.apiKey) {
243
+ headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
244
+ }
245
+ return [4 /*yield*/, this.request({
246
+ path: "/v3/systems/unshare/{systemId}".replace("{" + "systemId" + "}", encodeURIComponent(String(requestParameters.systemId))),
247
+ method: 'POST',
248
+ headers: headerParameters,
249
+ query: queryParameters,
250
+ body: models_1.ReqShareUpdateToJSON(requestParameters.reqShareUpdate),
251
+ }, initOverrides)];
252
+ case 1:
253
+ response = _a.sent();
254
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespBasicFromJSON(jsonValue); })];
255
+ }
256
+ });
257
+ });
258
+ };
259
+ /**
260
+ * Create or update sharing information for a system. The system will be unshared with the list of users provided in the request body. Requester must be owner of the system.
261
+ * Unshare a system with one or more users.
262
+ */
263
+ SharingApi.prototype.unShareSystem = function (requestParameters, initOverrides) {
264
+ return __awaiter(this, void 0, void 0, function () {
265
+ var response;
266
+ return __generator(this, function (_a) {
267
+ switch (_a.label) {
268
+ case 0: return [4 /*yield*/, this.unShareSystemRaw(requestParameters, initOverrides)];
269
+ case 1:
270
+ response = _a.sent();
271
+ return [4 /*yield*/, response.value()];
272
+ case 2: return [2 /*return*/, _a.sent()];
273
+ }
274
+ });
275
+ });
276
+ };
277
+ /**
278
+ * Remove public sharing for a system. Requester must be owner of the system.
279
+ * Remove public access for a system.
280
+ */
281
+ SharingApi.prototype.unShareSystemPublicRaw = function (requestParameters, initOverrides) {
282
+ return __awaiter(this, void 0, void 0, function () {
283
+ var queryParameters, headerParameters, response;
284
+ return __generator(this, function (_a) {
285
+ switch (_a.label) {
286
+ case 0:
287
+ if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
288
+ throw new runtime.RequiredError('systemId', 'Required parameter requestParameters.systemId was null or undefined when calling unShareSystemPublic.');
289
+ }
290
+ queryParameters = {};
291
+ headerParameters = {};
292
+ if (this.configuration && this.configuration.apiKey) {
293
+ headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
294
+ }
295
+ return [4 /*yield*/, this.request({
296
+ path: "/v3/systems/unshare_public/{systemId}".replace("{" + "systemId" + "}", encodeURIComponent(String(requestParameters.systemId))),
297
+ method: 'POST',
298
+ headers: headerParameters,
299
+ query: queryParameters,
300
+ }, initOverrides)];
301
+ case 1:
302
+ response = _a.sent();
303
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.RespBasicFromJSON(jsonValue); })];
304
+ }
305
+ });
306
+ });
307
+ };
308
+ /**
309
+ * Remove public sharing for a system. Requester must be owner of the system.
310
+ * Remove public access for a system.
311
+ */
312
+ SharingApi.prototype.unShareSystemPublic = function (requestParameters, initOverrides) {
313
+ return __awaiter(this, void 0, void 0, function () {
314
+ var response;
315
+ return __generator(this, function (_a) {
316
+ switch (_a.label) {
317
+ case 0: return [4 /*yield*/, this.unShareSystemPublicRaw(requestParameters, initOverrides)];
318
+ case 1:
319
+ response = _a.sent();
320
+ return [4 /*yield*/, response.value()];
321
+ case 2: return [2 /*return*/, _a.sent()];
322
+ }
323
+ });
324
+ });
325
+ };
326
+ return SharingApi;
327
+ }(runtime.BaseAPI));
328
+ exports.SharingApi = SharingApi;