@tapis/tapis-typescript-systems 0.0.6 → 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 +39 -21
- package/dist/models/TapisSystem.js +114 -97
- 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 +167 -126
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +217 -106
package/src/apis/SharingApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Tapis Systems API
|
|
5
5
|
* The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 25Q4.2
|
|
8
8
|
* Contact: cicsupport@tacc.utexas.edu
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ReqShareUpdate,
|
|
19
|
+
RespBasic,
|
|
20
|
+
RespShareInfo,
|
|
21
|
+
} from '../models/index';
|
|
17
22
|
import {
|
|
18
|
-
ReqShareUpdate,
|
|
19
23
|
ReqShareUpdateFromJSON,
|
|
20
24
|
ReqShareUpdateToJSON,
|
|
21
|
-
RespBasic,
|
|
22
25
|
RespBasicFromJSON,
|
|
23
26
|
RespBasicToJSON,
|
|
24
|
-
RespShareInfo,
|
|
25
27
|
RespShareInfoFromJSON,
|
|
26
28
|
RespShareInfoToJSON,
|
|
27
|
-
} from '../models';
|
|
29
|
+
} from '../models/index';
|
|
28
30
|
|
|
29
31
|
export interface GetShareInfoRequest {
|
|
30
32
|
systemId: string;
|
|
@@ -57,9 +59,12 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
57
59
|
* 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.
|
|
58
60
|
* Retrieve all sharing information for a system
|
|
59
61
|
*/
|
|
60
|
-
async getShareInfoRaw(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespShareInfo>> {
|
|
61
|
-
if (requestParameters
|
|
62
|
-
throw new runtime.RequiredError(
|
|
62
|
+
async getShareInfoRaw(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespShareInfo>> {
|
|
63
|
+
if (requestParameters['systemId'] == null) {
|
|
64
|
+
throw new runtime.RequiredError(
|
|
65
|
+
'systemId',
|
|
66
|
+
'Required parameter "systemId" was null or undefined when calling getShareInfo().'
|
|
67
|
+
);
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
const queryParameters: any = {};
|
|
@@ -67,11 +72,11 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
67
72
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
73
|
|
|
69
74
|
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
-
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
75
|
+
headerParameters["X-Tapis-Token"] = await this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
const response = await this.request({
|
|
74
|
-
path: `/v3/systems/share/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters
|
|
79
|
+
path: `/v3/systems/share/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters['systemId']))),
|
|
75
80
|
method: 'GET',
|
|
76
81
|
headers: headerParameters,
|
|
77
82
|
query: queryParameters,
|
|
@@ -84,7 +89,7 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
84
89
|
* 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.
|
|
85
90
|
* Retrieve all sharing information for a system
|
|
86
91
|
*/
|
|
87
|
-
async getShareInfo(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<RespShareInfo> {
|
|
92
|
+
async getShareInfo(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespShareInfo> {
|
|
88
93
|
const response = await this.getShareInfoRaw(requestParameters, initOverrides);
|
|
89
94
|
return await response.value();
|
|
90
95
|
}
|
|
@@ -93,13 +98,19 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
93
98
|
* 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.
|
|
94
99
|
* Share a system with one or more users.
|
|
95
100
|
*/
|
|
96
|
-
async shareSystemRaw(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
97
|
-
if (requestParameters
|
|
98
|
-
throw new runtime.RequiredError(
|
|
101
|
+
async shareSystemRaw(requestParameters: ShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>> {
|
|
102
|
+
if (requestParameters['systemId'] == null) {
|
|
103
|
+
throw new runtime.RequiredError(
|
|
104
|
+
'systemId',
|
|
105
|
+
'Required parameter "systemId" was null or undefined when calling shareSystem().'
|
|
106
|
+
);
|
|
99
107
|
}
|
|
100
108
|
|
|
101
|
-
if (requestParameters
|
|
102
|
-
throw new runtime.RequiredError(
|
|
109
|
+
if (requestParameters['reqShareUpdate'] == null) {
|
|
110
|
+
throw new runtime.RequiredError(
|
|
111
|
+
'reqShareUpdate',
|
|
112
|
+
'Required parameter "reqShareUpdate" was null or undefined when calling shareSystem().'
|
|
113
|
+
);
|
|
103
114
|
}
|
|
104
115
|
|
|
105
116
|
const queryParameters: any = {};
|
|
@@ -109,15 +120,15 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
109
120
|
headerParameters['Content-Type'] = 'application/json';
|
|
110
121
|
|
|
111
122
|
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
-
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
123
|
+
headerParameters["X-Tapis-Token"] = await this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
113
124
|
}
|
|
114
125
|
|
|
115
126
|
const response = await this.request({
|
|
116
|
-
path: `/v3/systems/share/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters
|
|
127
|
+
path: `/v3/systems/share/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters['systemId']))),
|
|
117
128
|
method: 'POST',
|
|
118
129
|
headers: headerParameters,
|
|
119
130
|
query: queryParameters,
|
|
120
|
-
body: ReqShareUpdateToJSON(requestParameters
|
|
131
|
+
body: ReqShareUpdateToJSON(requestParameters['reqShareUpdate']),
|
|
121
132
|
}, initOverrides);
|
|
122
133
|
|
|
123
134
|
return new runtime.JSONApiResponse(response, (jsonValue) => RespBasicFromJSON(jsonValue));
|
|
@@ -127,7 +138,7 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
127
138
|
* 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.
|
|
128
139
|
* Share a system with one or more users.
|
|
129
140
|
*/
|
|
130
|
-
async shareSystem(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
141
|
+
async shareSystem(requestParameters: ShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic> {
|
|
131
142
|
const response = await this.shareSystemRaw(requestParameters, initOverrides);
|
|
132
143
|
return await response.value();
|
|
133
144
|
}
|
|
@@ -136,9 +147,12 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
136
147
|
* 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.
|
|
137
148
|
* Share a system publicly with all users in the tenant.
|
|
138
149
|
*/
|
|
139
|
-
async shareSystemPublicRaw(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
140
|
-
if (requestParameters
|
|
141
|
-
throw new runtime.RequiredError(
|
|
150
|
+
async shareSystemPublicRaw(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>> {
|
|
151
|
+
if (requestParameters['systemId'] == null) {
|
|
152
|
+
throw new runtime.RequiredError(
|
|
153
|
+
'systemId',
|
|
154
|
+
'Required parameter "systemId" was null or undefined when calling shareSystemPublic().'
|
|
155
|
+
);
|
|
142
156
|
}
|
|
143
157
|
|
|
144
158
|
const queryParameters: any = {};
|
|
@@ -146,11 +160,11 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
146
160
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
147
161
|
|
|
148
162
|
if (this.configuration && this.configuration.apiKey) {
|
|
149
|
-
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
163
|
+
headerParameters["X-Tapis-Token"] = await this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
150
164
|
}
|
|
151
165
|
|
|
152
166
|
const response = await this.request({
|
|
153
|
-
path: `/v3/systems/share_public/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters
|
|
167
|
+
path: `/v3/systems/share_public/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters['systemId']))),
|
|
154
168
|
method: 'POST',
|
|
155
169
|
headers: headerParameters,
|
|
156
170
|
query: queryParameters,
|
|
@@ -163,7 +177,7 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
163
177
|
* 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.
|
|
164
178
|
* Share a system publicly with all users in the tenant.
|
|
165
179
|
*/
|
|
166
|
-
async shareSystemPublic(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
180
|
+
async shareSystemPublic(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic> {
|
|
167
181
|
const response = await this.shareSystemPublicRaw(requestParameters, initOverrides);
|
|
168
182
|
return await response.value();
|
|
169
183
|
}
|
|
@@ -172,13 +186,19 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
172
186
|
* 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.
|
|
173
187
|
* Unshare a system with one or more users.
|
|
174
188
|
*/
|
|
175
|
-
async unShareSystemRaw(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
176
|
-
if (requestParameters
|
|
177
|
-
throw new runtime.RequiredError(
|
|
189
|
+
async unShareSystemRaw(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>> {
|
|
190
|
+
if (requestParameters['systemId'] == null) {
|
|
191
|
+
throw new runtime.RequiredError(
|
|
192
|
+
'systemId',
|
|
193
|
+
'Required parameter "systemId" was null or undefined when calling unShareSystem().'
|
|
194
|
+
);
|
|
178
195
|
}
|
|
179
196
|
|
|
180
|
-
if (requestParameters
|
|
181
|
-
throw new runtime.RequiredError(
|
|
197
|
+
if (requestParameters['reqShareUpdate'] == null) {
|
|
198
|
+
throw new runtime.RequiredError(
|
|
199
|
+
'reqShareUpdate',
|
|
200
|
+
'Required parameter "reqShareUpdate" was null or undefined when calling unShareSystem().'
|
|
201
|
+
);
|
|
182
202
|
}
|
|
183
203
|
|
|
184
204
|
const queryParameters: any = {};
|
|
@@ -188,15 +208,15 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
188
208
|
headerParameters['Content-Type'] = 'application/json';
|
|
189
209
|
|
|
190
210
|
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
-
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
211
|
+
headerParameters["X-Tapis-Token"] = await this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
192
212
|
}
|
|
193
213
|
|
|
194
214
|
const response = await this.request({
|
|
195
|
-
path: `/v3/systems/unshare/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters
|
|
215
|
+
path: `/v3/systems/unshare/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters['systemId']))),
|
|
196
216
|
method: 'POST',
|
|
197
217
|
headers: headerParameters,
|
|
198
218
|
query: queryParameters,
|
|
199
|
-
body: ReqShareUpdateToJSON(requestParameters
|
|
219
|
+
body: ReqShareUpdateToJSON(requestParameters['reqShareUpdate']),
|
|
200
220
|
}, initOverrides);
|
|
201
221
|
|
|
202
222
|
return new runtime.JSONApiResponse(response, (jsonValue) => RespBasicFromJSON(jsonValue));
|
|
@@ -206,7 +226,7 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
206
226
|
* 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.
|
|
207
227
|
* Unshare a system with one or more users.
|
|
208
228
|
*/
|
|
209
|
-
async unShareSystem(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
229
|
+
async unShareSystem(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic> {
|
|
210
230
|
const response = await this.unShareSystemRaw(requestParameters, initOverrides);
|
|
211
231
|
return await response.value();
|
|
212
232
|
}
|
|
@@ -215,9 +235,12 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
215
235
|
* Remove public sharing for a system. Requester must be owner of the system.
|
|
216
236
|
* Remove public access for a system.
|
|
217
237
|
*/
|
|
218
|
-
async unShareSystemPublicRaw(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
219
|
-
if (requestParameters
|
|
220
|
-
throw new runtime.RequiredError(
|
|
238
|
+
async unShareSystemPublicRaw(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBasic>> {
|
|
239
|
+
if (requestParameters['systemId'] == null) {
|
|
240
|
+
throw new runtime.RequiredError(
|
|
241
|
+
'systemId',
|
|
242
|
+
'Required parameter "systemId" was null or undefined when calling unShareSystemPublic().'
|
|
243
|
+
);
|
|
221
244
|
}
|
|
222
245
|
|
|
223
246
|
const queryParameters: any = {};
|
|
@@ -225,11 +248,11 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
225
248
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
226
249
|
|
|
227
250
|
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
-
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
251
|
+
headerParameters["X-Tapis-Token"] = await this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
229
252
|
}
|
|
230
253
|
|
|
231
254
|
const response = await this.request({
|
|
232
|
-
path: `/v3/systems/unshare_public/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters
|
|
255
|
+
path: `/v3/systems/unshare_public/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters['systemId']))),
|
|
233
256
|
method: 'POST',
|
|
234
257
|
headers: headerParameters,
|
|
235
258
|
query: queryParameters,
|
|
@@ -242,7 +265,7 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
242
265
|
* Remove public sharing for a system. Requester must be owner of the system.
|
|
243
266
|
* Remove public access for a system.
|
|
244
267
|
*/
|
|
245
|
-
async unShareSystemPublic(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
268
|
+
async unShareSystemPublic(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBasic> {
|
|
246
269
|
const response = await this.unShareSystemPublicRaw(requestParameters, initOverrides);
|
|
247
270
|
return await response.value();
|
|
248
271
|
}
|