@tapis/tapis-typescript-systems 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -4
- package/dist/apis/ChildSystemsApi.d.ts +10 -10
- package/dist/apis/ChildSystemsApi.js +84 -65
- package/dist/apis/CredentialsApi.d.ts +25 -24
- package/dist/apis/CredentialsApi.js +172 -138
- package/dist/apis/GeneralApi.d.ts +6 -6
- package/dist/apis/GeneralApi.js +18 -11
- package/dist/apis/PermissionsApi.d.ts +10 -10
- package/dist/apis/PermissionsApi.js +112 -89
- package/dist/apis/SchedulerProfilesApi.d.ts +10 -10
- package/dist/apis/SchedulerProfilesApi.js +95 -72
- package/dist/apis/SharingApi.d.ts +12 -12
- package/dist/apis/SharingApi.js +122 -95
- package/dist/apis/SystemsApi.d.ts +61 -46
- package/dist/apis/SystemsApi.js +473 -341
- package/dist/apis/index.js +21 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -6
- package/dist/models/AuthnEnum.d.ts +12 -9
- package/dist/models/AuthnEnum.js +28 -13
- package/dist/models/Capability.d.ts +9 -3
- package/dist/models/Capability.js +37 -22
- package/dist/models/CategoryEnum.d.ts +14 -12
- package/dist/models/CategoryEnum.js +30 -16
- package/dist/models/Credential.d.ts +26 -3
- package/dist/models/Credential.js +47 -33
- package/dist/models/DatatypeEnum.d.ts +11 -9
- package/dist/models/DatatypeEnum.js +27 -13
- package/dist/models/JobRuntime.d.ts +8 -3
- package/dist/models/JobRuntime.js +27 -17
- package/dist/models/KeyValueInputModeEnum.d.ts +10 -8
- package/dist/models/KeyValueInputModeEnum.js +26 -12
- package/dist/models/KeyValuePair.d.ts +8 -3
- package/dist/models/KeyValuePair.js +32 -22
- package/dist/models/ListTypeEnum.d.ts +9 -7
- package/dist/models/ListTypeEnum.js +25 -11
- package/dist/models/LogicalQueue.d.ts +13 -2
- package/dist/models/LogicalQueue.js +48 -34
- package/dist/models/ModuleLoadSpec.d.ts +7 -2
- package/dist/models/ModuleLoadSpec.js +25 -15
- package/dist/models/OperationTypeEnum.d.ts +20 -18
- package/dist/models/OperationTypeEnum.js +36 -22
- package/dist/models/ReqMatchConstraints.d.ts +7 -2
- package/dist/models/ReqMatchConstraints.js +23 -12
- package/dist/models/ReqPatchSystem.d.ts +13 -3
- package/dist/models/ReqPatchSystem.js +76 -63
- package/dist/models/ReqPerms.d.ts +7 -2
- package/dist/models/ReqPerms.js +23 -12
- package/dist/models/ReqPostChildSystem.d.ts +7 -2
- package/dist/models/ReqPostChildSystem.js +28 -16
- package/dist/models/ReqPostPutCredential.d.ts +7 -2
- package/dist/models/ReqPostPutCredential.js +36 -28
- package/dist/models/ReqPostSchedulerProfile.d.ts +9 -3
- package/dist/models/ReqPostSchedulerProfile.js +33 -22
- package/dist/models/ReqPostSystem.d.ts +15 -3
- package/dist/models/ReqPostSystem.js +101 -76
- package/dist/models/ReqPutSystem.d.ts +13 -3
- package/dist/models/ReqPutSystem.js +74 -61
- package/dist/models/ReqSearchSystems.d.ts +7 -2
- package/dist/models/ReqSearchSystems.js +23 -12
- package/dist/models/ReqShareUpdate.d.ts +7 -2
- package/dist/models/ReqShareUpdate.js +23 -12
- package/dist/models/ReqUnlinkChildren.d.ts +7 -2
- package/dist/models/ReqUnlinkChildren.js +22 -14
- package/dist/models/ReqUpdateCredential.d.ts +7 -2
- package/dist/models/ReqUpdateCredential.js +38 -30
- package/dist/models/RespBasic.d.ts +7 -2
- package/dist/models/RespBasic.js +34 -26
- package/dist/models/RespBoolean.d.ts +8 -3
- package/dist/models/RespBoolean.js +35 -27
- package/dist/models/RespChangeCount.d.ts +8 -3
- package/dist/models/RespChangeCount.js +35 -27
- package/dist/models/RespCredential.d.ts +8 -3
- package/dist/models/RespCredential.js +35 -27
- package/dist/models/RespGlobusAuthUrl.d.ts +8 -3
- package/dist/models/RespGlobusAuthUrl.js +35 -27
- package/dist/models/RespName.d.ts +69 -0
- package/dist/models/RespName.js +62 -0
- package/dist/models/RespNameArray.d.ts +8 -3
- package/dist/models/RespNameArray.js +35 -27
- package/dist/models/RespResourceUrl.d.ts +8 -3
- package/dist/models/RespResourceUrl.js +35 -27
- package/dist/models/RespSchedulerProfile.d.ts +8 -3
- package/dist/models/RespSchedulerProfile.js +35 -27
- package/dist/models/RespSchedulerProfiles.d.ts +8 -3
- package/dist/models/RespSchedulerProfiles.js +35 -27
- package/dist/models/RespShareInfo.d.ts +8 -3
- package/dist/models/RespShareInfo.js +35 -27
- package/dist/models/RespSystem.d.ts +8 -3
- package/dist/models/RespSystem.js +35 -27
- package/dist/models/RespSystemHistory.d.ts +8 -3
- package/dist/models/RespSystemHistory.js +35 -27
- package/dist/models/RespSystems.d.ts +9 -3
- package/dist/models/RespSystems.js +36 -27
- package/dist/models/RespSystemsMetadata.d.ts +7 -2
- package/dist/models/RespSystemsMetadata.js +32 -24
- package/dist/models/ResultBoolean.d.ts +7 -2
- package/dist/models/ResultBoolean.js +22 -14
- package/dist/models/ResultChangeCount.d.ts +7 -2
- package/dist/models/ResultChangeCount.js +22 -14
- package/dist/models/ResultGlobusAuthUrl.d.ts +7 -2
- package/dist/models/ResultGlobusAuthUrl.js +26 -18
- package/dist/models/ResultName.d.ts +32 -0
- package/dist/models/ResultName.js +49 -0
- package/dist/models/ResultNameArray.d.ts +7 -2
- package/dist/models/ResultNameArray.js +22 -14
- package/dist/models/ResultResourceUrl.d.ts +7 -2
- package/dist/models/ResultResourceUrl.js +22 -14
- package/dist/models/RuntimeTypeEnum.d.ts +9 -7
- package/dist/models/RuntimeTypeEnum.js +25 -11
- package/dist/models/SchedulerHiddenOptionEnum.d.ts +8 -5
- package/dist/models/SchedulerHiddenOptionEnum.js +24 -9
- package/dist/models/SchedulerProfile.d.ts +9 -3
- package/dist/models/SchedulerProfile.js +35 -24
- package/dist/models/SchedulerTypeEnum.d.ts +12 -10
- package/dist/models/SchedulerTypeEnum.js +28 -14
- package/dist/models/ShareInfo.d.ts +14 -2
- package/dist/models/ShareInfo.js +29 -13
- package/dist/models/SkShareRecord.d.ts +86 -0
- package/dist/models/SkShareRecord.js +67 -0
- package/dist/models/SystemHistory.d.ts +8 -3
- package/dist/models/SystemHistory.js +35 -27
- package/dist/models/SystemTypeEnum.d.ts +10 -8
- package/dist/models/SystemTypeEnum.js +26 -12
- package/dist/models/TapisSystem.d.ts +45 -21
- package/dist/models/TapisSystem.js +114 -95
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +68 -54
- package/dist/runtime.d.ts +79 -37
- package/dist/runtime.js +311 -169
- package/package.json +6 -2
- package/src/apis/ChildSystemsApi.ts +47 -33
- package/src/apis/CredentialsApi.ts +124 -75
- package/src/apis/GeneralApi.ts +9 -7
- package/src/apis/PermissionsApi.ts +80 -45
- package/src/apis/SchedulerProfilesApi.ts +40 -29
- package/src/apis/SharingApi.ts +64 -41
- package/src/apis/SystemsApi.ts +306 -189
- package/src/index.ts +2 -2
- package/src/models/AuthnEnum.ts +26 -8
- package/src/models/Capability.ts +37 -19
- package/src/models/CategoryEnum.ts +28 -11
- package/src/models/Credential.ts +67 -31
- package/src/models/DatatypeEnum.ts +25 -8
- package/src/models/JobRuntime.ts +27 -14
- package/src/models/KeyValueInputModeEnum.ts +24 -7
- package/src/models/KeyValuePair.ts +33 -20
- package/src/models/ListTypeEnum.ts +23 -6
- package/src/models/LogicalQueue.ts +50 -31
- package/src/models/ModuleLoadSpec.ts +22 -12
- package/src/models/OperationTypeEnum.ts +34 -17
- package/src/models/ReqMatchConstraints.ts +20 -10
- package/src/models/ReqPatchSystem.ts +96 -69
- package/src/models/ReqPerms.ts +20 -10
- package/src/models/ReqPostChildSystem.ts +24 -13
- package/src/models/ReqPostPutCredential.ts +34 -25
- package/src/models/ReqPostSchedulerProfile.ts +38 -24
- package/src/models/ReqPostSystem.ts +123 -85
- package/src/models/ReqPutSystem.ts +94 -67
- package/src/models/ReqSearchSystems.ts +20 -10
- package/src/models/ReqShareUpdate.ts +20 -10
- package/src/models/ReqUnlinkChildren.ts +20 -11
- package/src/models/ReqUpdateCredential.ts +36 -27
- package/src/models/RespBasic.ts +32 -23
- package/src/models/RespBoolean.ts +35 -25
- package/src/models/RespChangeCount.ts +35 -25
- package/src/models/RespCredential.ts +35 -25
- package/src/models/RespGlobusAuthUrl.ts +35 -25
- package/src/models/RespName.ts +121 -0
- package/src/models/RespNameArray.ts +35 -25
- package/src/models/RespResourceUrl.ts +35 -25
- package/src/models/RespSchedulerProfile.ts +35 -25
- package/src/models/RespSchedulerProfiles.ts +35 -25
- package/src/models/RespShareInfo.ts +35 -25
- package/src/models/RespSystem.ts +35 -25
- package/src/models/RespSystemHistory.ts +35 -25
- package/src/models/RespSystems.ts +42 -29
- package/src/models/RespSystemsMetadata.ts +30 -21
- package/src/models/ResultBoolean.ts +20 -11
- package/src/models/ResultChangeCount.ts +20 -11
- package/src/models/ResultGlobusAuthUrl.ts +24 -15
- package/src/models/ResultName.ts +65 -0
- package/src/models/ResultNameArray.ts +20 -11
- package/src/models/ResultResourceUrl.ts +20 -11
- package/src/models/RuntimeTypeEnum.ts +23 -6
- package/src/models/SchedulerHiddenOptionEnum.ts +22 -4
- package/src/models/SchedulerProfile.ts +40 -26
- package/src/models/SchedulerTypeEnum.ts +26 -9
- package/src/models/ShareInfo.ts +38 -11
- package/src/models/SkShareRecord.ts +137 -0
- package/src/models/SystemHistory.ts +37 -25
- package/src/models/SystemTypeEnum.ts +24 -7
- package/src/models/TapisSystem.ts +173 -124
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +217 -106
|
@@ -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:
|
|
8
|
+
* The version of the OpenAPI document: 25Q4.2
|
|
9
9
|
* Contact: cicsupport@tacc.utexas.edu
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,30 +13,36 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics =
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
19
22
|
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
20
25
|
extendStatics(d, b);
|
|
21
26
|
function __() { this.constructor = d; }
|
|
22
27
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23
28
|
};
|
|
24
29
|
})();
|
|
25
30
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
32
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
33
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
34
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
-
function step(result) { result.done ? resolve(result.value) :
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
36
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
37
|
});
|
|
32
38
|
};
|
|
33
39
|
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 =
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36
42
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37
43
|
function step(op) {
|
|
38
44
|
if (f) throw new TypeError("Generator is already executing.");
|
|
39
|
-
while (_) try {
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
40
46
|
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
47
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
42
48
|
switch (op[0]) {
|
|
@@ -58,8 +64,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
58
64
|
}
|
|
59
65
|
};
|
|
60
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.SchedulerProfilesApi = void 0;
|
|
61
68
|
var runtime = require("../runtime");
|
|
62
|
-
var
|
|
69
|
+
var index_1 = require("../models/index");
|
|
63
70
|
/**
|
|
64
71
|
*
|
|
65
72
|
*/
|
|
@@ -73,29 +80,33 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
|
|
|
73
80
|
*/
|
|
74
81
|
SchedulerProfilesApi.prototype.createSchedulerProfileRaw = function (requestParameters, initOverrides) {
|
|
75
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
-
var queryParameters, headerParameters, response;
|
|
77
|
-
return __generator(this, function (
|
|
78
|
-
switch (
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
79
86
|
case 0:
|
|
80
|
-
if (requestParameters
|
|
81
|
-
throw new runtime.RequiredError('reqPostSchedulerProfile', 'Required parameter
|
|
87
|
+
if (requestParameters['reqPostSchedulerProfile'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('reqPostSchedulerProfile', 'Required parameter "reqPostSchedulerProfile" was null or undefined when calling createSchedulerProfile().');
|
|
82
89
|
}
|
|
83
90
|
queryParameters = {};
|
|
84
91
|
headerParameters = {};
|
|
85
92
|
headerParameters['Content-Type'] = 'application/json';
|
|
86
|
-
if (this.configuration && this.configuration.apiKey)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return [4 /*yield*/, this.
|
|
90
|
-
path: "/v3/systems/schedulerProfile",
|
|
91
|
-
method: 'POST',
|
|
92
|
-
headers: headerParameters,
|
|
93
|
-
query: queryParameters,
|
|
94
|
-
body: models_1.ReqPostSchedulerProfileToJSON(requestParameters.reqPostSchedulerProfile),
|
|
95
|
-
}, initOverrides)];
|
|
93
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
+
_a = headerParameters;
|
|
95
|
+
_b = "X-Tapis-Token";
|
|
96
|
+
return [4 /*yield*/, this.configuration.apiKey("X-Tapis-Token")];
|
|
96
97
|
case 1:
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
_a[_b] = _c.sent(); // TapisJWT authentication
|
|
99
|
+
_c.label = 2;
|
|
100
|
+
case 2: return [4 /*yield*/, this.request({
|
|
101
|
+
path: "/v3/systems/schedulerProfile",
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
body: (0, index_1.ReqPostSchedulerProfileToJSON)(requestParameters['reqPostSchedulerProfile']),
|
|
106
|
+
}, initOverrides)];
|
|
107
|
+
case 3:
|
|
108
|
+
response = _c.sent();
|
|
109
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespResourceUrlFromJSON)(jsonValue); })];
|
|
99
110
|
}
|
|
100
111
|
});
|
|
101
112
|
});
|
|
@@ -122,27 +133,31 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
|
|
|
122
133
|
*/
|
|
123
134
|
SchedulerProfilesApi.prototype.deleteSchedulerProfileRaw = function (requestParameters, initOverrides) {
|
|
124
135
|
return __awaiter(this, void 0, void 0, function () {
|
|
125
|
-
var queryParameters, headerParameters, response;
|
|
126
|
-
return __generator(this, function (
|
|
127
|
-
switch (
|
|
136
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
137
|
+
return __generator(this, function (_c) {
|
|
138
|
+
switch (_c.label) {
|
|
128
139
|
case 0:
|
|
129
|
-
if (requestParameters
|
|
130
|
-
throw new runtime.RequiredError('name', 'Required parameter
|
|
140
|
+
if (requestParameters['name'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteSchedulerProfile().');
|
|
131
142
|
}
|
|
132
143
|
queryParameters = {};
|
|
133
144
|
headerParameters = {};
|
|
134
|
-
if (this.configuration && this.configuration.apiKey)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return [4 /*yield*/, this.
|
|
138
|
-
path: "/v3/systems/schedulerProfile/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
|
|
139
|
-
method: 'DELETE',
|
|
140
|
-
headers: headerParameters,
|
|
141
|
-
query: queryParameters,
|
|
142
|
-
}, initOverrides)];
|
|
145
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
146
|
+
_a = headerParameters;
|
|
147
|
+
_b = "X-Tapis-Token";
|
|
148
|
+
return [4 /*yield*/, this.configuration.apiKey("X-Tapis-Token")];
|
|
143
149
|
case 1:
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
_a[_b] = _c.sent(); // TapisJWT authentication
|
|
151
|
+
_c.label = 2;
|
|
152
|
+
case 2: return [4 /*yield*/, this.request({
|
|
153
|
+
path: "/v3/systems/schedulerProfile/{name}".replace("{".concat("name", "}"), encodeURIComponent(String(requestParameters['name']))),
|
|
154
|
+
method: 'DELETE',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}, initOverrides)];
|
|
158
|
+
case 3:
|
|
159
|
+
response = _c.sent();
|
|
160
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespChangeCountFromJSON)(jsonValue); })];
|
|
146
161
|
}
|
|
147
162
|
});
|
|
148
163
|
});
|
|
@@ -169,27 +184,31 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
|
|
|
169
184
|
*/
|
|
170
185
|
SchedulerProfilesApi.prototype.getSchedulerProfileRaw = function (requestParameters, initOverrides) {
|
|
171
186
|
return __awaiter(this, void 0, void 0, function () {
|
|
172
|
-
var queryParameters, headerParameters, response;
|
|
173
|
-
return __generator(this, function (
|
|
174
|
-
switch (
|
|
187
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
188
|
+
return __generator(this, function (_c) {
|
|
189
|
+
switch (_c.label) {
|
|
175
190
|
case 0:
|
|
176
|
-
if (requestParameters
|
|
177
|
-
throw new runtime.RequiredError('name', 'Required parameter
|
|
191
|
+
if (requestParameters['name'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getSchedulerProfile().');
|
|
178
193
|
}
|
|
179
194
|
queryParameters = {};
|
|
180
195
|
headerParameters = {};
|
|
181
|
-
if (this.configuration && this.configuration.apiKey)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return [4 /*yield*/, this.
|
|
185
|
-
path: "/v3/systems/schedulerProfile/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
|
|
186
|
-
method: 'GET',
|
|
187
|
-
headers: headerParameters,
|
|
188
|
-
query: queryParameters,
|
|
189
|
-
}, initOverrides)];
|
|
196
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
197
|
+
_a = headerParameters;
|
|
198
|
+
_b = "X-Tapis-Token";
|
|
199
|
+
return [4 /*yield*/, this.configuration.apiKey("X-Tapis-Token")];
|
|
190
200
|
case 1:
|
|
191
|
-
|
|
192
|
-
|
|
201
|
+
_a[_b] = _c.sent(); // TapisJWT authentication
|
|
202
|
+
_c.label = 2;
|
|
203
|
+
case 2: return [4 /*yield*/, this.request({
|
|
204
|
+
path: "/v3/systems/schedulerProfile/{name}".replace("{".concat("name", "}"), encodeURIComponent(String(requestParameters['name']))),
|
|
205
|
+
method: 'GET',
|
|
206
|
+
headers: headerParameters,
|
|
207
|
+
query: queryParameters,
|
|
208
|
+
}, initOverrides)];
|
|
209
|
+
case 3:
|
|
210
|
+
response = _c.sent();
|
|
211
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespSchedulerProfileFromJSON)(jsonValue); })];
|
|
193
212
|
}
|
|
194
213
|
});
|
|
195
214
|
});
|
|
@@ -216,24 +235,28 @@ var SchedulerProfilesApi = /** @class */ (function (_super) {
|
|
|
216
235
|
*/
|
|
217
236
|
SchedulerProfilesApi.prototype.getSchedulerProfilesRaw = function (initOverrides) {
|
|
218
237
|
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
-
var queryParameters, headerParameters, response;
|
|
220
|
-
return __generator(this, function (
|
|
221
|
-
switch (
|
|
238
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
239
|
+
return __generator(this, function (_c) {
|
|
240
|
+
switch (_c.label) {
|
|
222
241
|
case 0:
|
|
223
242
|
queryParameters = {};
|
|
224
243
|
headerParameters = {};
|
|
225
|
-
if (this.configuration && this.configuration.apiKey)
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return [4 /*yield*/, this.
|
|
229
|
-
path: "/v3/systems/schedulerProfile",
|
|
230
|
-
method: 'GET',
|
|
231
|
-
headers: headerParameters,
|
|
232
|
-
query: queryParameters,
|
|
233
|
-
}, initOverrides)];
|
|
244
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
245
|
+
_a = headerParameters;
|
|
246
|
+
_b = "X-Tapis-Token";
|
|
247
|
+
return [4 /*yield*/, this.configuration.apiKey("X-Tapis-Token")];
|
|
234
248
|
case 1:
|
|
235
|
-
|
|
236
|
-
|
|
249
|
+
_a[_b] = _c.sent(); // TapisJWT authentication
|
|
250
|
+
_c.label = 2;
|
|
251
|
+
case 2: return [4 /*yield*/, this.request({
|
|
252
|
+
path: "/v3/systems/schedulerProfile",
|
|
253
|
+
method: 'GET',
|
|
254
|
+
headers: headerParameters,
|
|
255
|
+
query: queryParameters,
|
|
256
|
+
}, initOverrides)];
|
|
257
|
+
case 3:
|
|
258
|
+
response = _c.sent();
|
|
259
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RespSchedulerProfilesFromJSON)(jsonValue); })];
|
|
237
260
|
}
|
|
238
261
|
});
|
|
239
262
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Tapis Systems API
|
|
3
3
|
* The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 25Q4.2
|
|
6
6
|
* Contact: cicsupport@tacc.utexas.edu
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ReqShareUpdate, RespBasic, RespShareInfo } from '../models';
|
|
13
|
+
import type { ReqShareUpdate, RespBasic, RespShareInfo } from '../models/index';
|
|
14
14
|
export interface GetShareInfoRequest {
|
|
15
15
|
systemId: string;
|
|
16
16
|
}
|
|
@@ -36,50 +36,50 @@ export declare class SharingApi extends runtime.BaseAPI {
|
|
|
36
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
37
|
* Retrieve all sharing information for a system
|
|
38
38
|
*/
|
|
39
|
-
getShareInfoRaw(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespShareInfo>>;
|
|
39
|
+
getShareInfoRaw(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespShareInfo>>;
|
|
40
40
|
/**
|
|
41
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
42
|
* Retrieve all sharing information for a system
|
|
43
43
|
*/
|
|
44
|
-
getShareInfo(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<RespShareInfo>;
|
|
44
|
+
getShareInfo(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespShareInfo>;
|
|
45
45
|
/**
|
|
46
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. When the system has a dynamic *effectiveUserId*, sharing also allows for MODIFY access to all paths for calls made through the Files service. Requester must be owner of the system.
|
|
47
47
|
* Share a system with one or more users.
|
|
48
48
|
*/
|
|
49
|
-
shareSystemRaw(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
|
|
49
|
+
shareSystemRaw(requestParameters: ShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>>;
|
|
50
50
|
/**
|
|
51
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. When the system has a dynamic *effectiveUserId*, sharing also allows for MODIFY access to all paths for calls made through the Files service. Requester must be owner of the system.
|
|
52
52
|
* Share a system with one or more users.
|
|
53
53
|
*/
|
|
54
|
-
shareSystem(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic>;
|
|
54
|
+
shareSystem(requestParameters: ShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic>;
|
|
55
55
|
/**
|
|
56
56
|
* Share a system with all users in the tenant. Sharing allows READ and EXECUTE access. When the system has a dynamic *effectiveUserId*, sharing also allows for MODIFY access to all paths for calls made through the Files service. Requester must be owner of the system.
|
|
57
57
|
* Share a system publicly with all users in the tenant.
|
|
58
58
|
*/
|
|
59
|
-
shareSystemPublicRaw(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
|
|
59
|
+
shareSystemPublicRaw(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>>;
|
|
60
60
|
/**
|
|
61
61
|
* Share a system with all users in the tenant. Sharing allows READ and EXECUTE access. When the system has a dynamic *effectiveUserId*, sharing also allows for MODIFY access to all paths for calls made through the Files service. Requester must be owner of the system.
|
|
62
62
|
* Share a system publicly with all users in the tenant.
|
|
63
63
|
*/
|
|
64
|
-
shareSystemPublic(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic>;
|
|
64
|
+
shareSystemPublic(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic>;
|
|
65
65
|
/**
|
|
66
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
67
|
* Unshare a system with one or more users.
|
|
68
68
|
*/
|
|
69
|
-
unShareSystemRaw(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
|
|
69
|
+
unShareSystemRaw(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>>;
|
|
70
70
|
/**
|
|
71
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
72
|
* Unshare a system with one or more users.
|
|
73
73
|
*/
|
|
74
|
-
unShareSystem(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic>;
|
|
74
|
+
unShareSystem(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove public sharing for a system. Requester must be owner of the system.
|
|
77
77
|
* Remove public access for a system.
|
|
78
78
|
*/
|
|
79
|
-
unShareSystemPublicRaw(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>>;
|
|
79
|
+
unShareSystemPublicRaw(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>>;
|
|
80
80
|
/**
|
|
81
81
|
* Remove public sharing for a system. Requester must be owner of the system.
|
|
82
82
|
* Remove public access for a system.
|
|
83
83
|
*/
|
|
84
|
-
unShareSystemPublic(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic>;
|
|
84
|
+
unShareSystemPublic(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic>;
|
|
85
85
|
}
|