@tapis/tapis-typescript-systems 0.0.2 → 0.0.4
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 +19 -3
- package/README.md +2 -2
- package/dist/apis/ChildSystemsApi.d.ts +54 -0
- package/dist/apis/ChildSystemsApi.js +224 -0
- package/dist/apis/CredentialsApi.d.ts +51 -15
- package/dist/apis/CredentialsApi.js +170 -16
- package/dist/apis/GeneralApi.d.ts +5 -5
- package/dist/apis/GeneralApi.js +5 -11
- package/dist/apis/PermissionsApi.d.ts +3 -11
- package/dist/apis/PermissionsApi.js +3 -11
- package/dist/apis/SchedulerProfilesApi.d.ts +5 -13
- package/dist/apis/SchedulerProfilesApi.js +6 -14
- package/dist/apis/SharingApi.d.ts +85 -0
- package/dist/apis/SharingApi.js +328 -0
- package/dist/apis/SystemsApi.d.ts +36 -46
- package/dist/apis/SystemsApi.js +89 -49
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AuthnEnum.d.ts +2 -1
- package/dist/models/AuthnEnum.js +2 -1
- package/dist/models/Capability.d.ts +1 -1
- package/dist/models/Capability.js +1 -1
- package/dist/models/CategoryEnum.d.ts +1 -1
- package/dist/models/CategoryEnum.js +1 -1
- package/dist/models/Credential.d.ts +19 -1
- package/dist/models/Credential.js +7 -1
- package/dist/models/DatatypeEnum.d.ts +1 -1
- package/dist/models/DatatypeEnum.js +1 -1
- package/dist/models/JobRuntime.d.ts +1 -1
- package/dist/models/JobRuntime.js +1 -1
- package/dist/models/KeyValueInputModeEnum.d.ts +25 -0
- package/dist/models/KeyValueInputModeEnum.js +39 -0
- package/dist/models/KeyValuePair.d.ts +20 -1
- package/dist/models/KeyValuePair.js +8 -1
- package/dist/models/ListTypeEnum.d.ts +24 -0
- package/dist/models/ListTypeEnum.js +38 -0
- package/dist/models/LogicalQueue.d.ts +1 -1
- package/dist/models/LogicalQueue.js +1 -1
- package/dist/models/ModuleLoadSpec.d.ts +33 -0
- package/dist/models/ModuleLoadSpec.js +43 -0
- package/dist/models/OperationTypeEnum.d.ts +35 -0
- package/dist/models/OperationTypeEnum.js +49 -0
- package/dist/models/ReqMatchConstraints.d.ts +1 -1
- package/dist/models/ReqMatchConstraints.js +1 -1
- package/dist/models/ReqPatchSystem.d.ts +18 -18
- package/dist/models/ReqPatchSystem.js +7 -7
- package/dist/models/ReqPerms.d.ts +1 -1
- package/dist/models/ReqPerms.js +1 -1
- package/dist/models/ReqPostChildSystem.d.ts +39 -0
- package/dist/models/ReqPostChildSystem.js +45 -0
- package/dist/models/ReqPostPutCredential.d.ts +69 -0
- package/dist/models/{ReqCreateCredential.js → ReqPostPutCredential.js} +12 -8
- package/dist/models/ReqPostSchedulerProfile.d.ts +52 -0
- package/dist/models/{ReqCreateSchedulerProfile.js → ReqPostSchedulerProfile.js} +10 -12
- package/dist/models/ReqPostSystem.d.ts +220 -0
- package/dist/models/{ReqCreateSystem.js → ReqPostSystem.js} +16 -18
- package/dist/models/ReqPutSystem.d.ts +21 -21
- package/dist/models/ReqPutSystem.js +9 -9
- package/dist/models/ReqSearchSystems.d.ts +1 -1
- package/dist/models/ReqSearchSystems.js +1 -1
- package/dist/models/ReqShareUpdate.d.ts +27 -0
- package/dist/models/ReqShareUpdate.js +40 -0
- package/dist/models/ReqUnlinkChildren.d.ts +27 -0
- package/dist/models/ReqUnlinkChildren.js +41 -0
- package/dist/models/ReqUpdateCredential.d.ts +75 -0
- package/dist/models/ReqUpdateCredential.js +57 -0
- package/dist/models/RespBasic.d.ts +13 -1
- package/dist/models/RespBasic.js +5 -1
- package/dist/models/RespBoolean.d.ts +13 -1
- package/dist/models/RespBoolean.js +5 -1
- package/dist/models/RespChangeCount.d.ts +13 -1
- package/dist/models/RespChangeCount.js +5 -1
- package/dist/models/RespCredential.d.ts +13 -1
- package/dist/models/RespCredential.js +5 -1
- package/dist/models/RespGlobusAuthUrl.d.ts +64 -0
- package/dist/models/RespGlobusAuthUrl.js +54 -0
- package/dist/models/RespNameArray.d.ts +13 -1
- package/dist/models/RespNameArray.js +5 -1
- package/dist/models/RespResourceUrl.d.ts +13 -1
- package/dist/models/RespResourceUrl.js +5 -1
- package/dist/models/RespSchedulerProfile.d.ts +13 -1
- package/dist/models/RespSchedulerProfile.js +5 -1
- package/dist/models/RespSchedulerProfiles.d.ts +13 -1
- package/dist/models/RespSchedulerProfiles.js +5 -1
- package/dist/models/RespShareInfo.d.ts +64 -0
- package/dist/models/RespShareInfo.js +54 -0
- package/dist/models/RespSystem.d.ts +13 -1
- package/dist/models/RespSystem.js +5 -1
- package/dist/models/RespSystemHistory.d.ts +64 -0
- package/dist/models/RespSystemHistory.js +54 -0
- package/dist/models/RespSystems.d.ts +13 -1
- package/dist/models/RespSystems.js +5 -1
- package/dist/models/RespSystemsMetadata.d.ts +1 -1
- package/dist/models/RespSystemsMetadata.js +1 -1
- package/dist/models/ResultBoolean.d.ts +1 -1
- package/dist/models/ResultBoolean.js +1 -1
- package/dist/models/ResultChangeCount.d.ts +1 -1
- package/dist/models/ResultChangeCount.js +1 -1
- package/dist/models/ResultGlobusAuthUrl.d.ts +39 -0
- package/dist/models/ResultGlobusAuthUrl.js +45 -0
- package/dist/models/ResultNameArray.d.ts +1 -1
- package/dist/models/ResultNameArray.js +1 -1
- package/dist/models/ResultResourceUrl.d.ts +1 -1
- package/dist/models/ResultResourceUrl.js +1 -1
- package/dist/models/RuntimeTypeEnum.d.ts +3 -2
- package/dist/models/RuntimeTypeEnum.js +2 -1
- package/dist/models/SchedulerHiddenOptionEnum.d.ts +1 -1
- package/dist/models/SchedulerHiddenOptionEnum.js +1 -1
- package/dist/models/SchedulerProfile.d.ts +5 -11
- package/dist/models/SchedulerProfile.js +3 -5
- package/dist/models/SchedulerTypeEnum.d.ts +1 -1
- package/dist/models/SchedulerTypeEnum.js +1 -1
- package/dist/models/ShareInfo.d.ts +33 -0
- package/dist/models/ShareInfo.js +42 -0
- package/dist/models/SystemHistory.d.ts +64 -0
- package/dist/models/SystemHistory.js +54 -0
- package/dist/models/SystemTypeEnum.d.ts +2 -2
- package/dist/models/SystemTypeEnum.js +2 -2
- package/dist/models/TapisSystem.d.ts +38 -26
- package/dist/models/TapisSystem.js +15 -11
- package/dist/models/index.d.ts +17 -3
- package/dist/models/index.js +17 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ChildSystemsApi.ts +171 -0
- package/src/apis/CredentialsApi.ts +160 -20
- package/src/apis/GeneralApi.ts +5 -13
- package/src/apis/PermissionsApi.ts +3 -11
- package/src/apis/SchedulerProfilesApi.ts +10 -18
- package/src/apis/SharingApi.ts +250 -0
- package/src/apis/SystemsApi.ts +106 -55
- package/src/apis/index.ts +2 -0
- package/src/models/AuthnEnum.ts +2 -1
- package/src/models/Capability.ts +1 -1
- package/src/models/CategoryEnum.ts +1 -1
- package/src/models/Credential.ts +25 -1
- package/src/models/DatatypeEnum.ts +1 -1
- package/src/models/JobRuntime.ts +1 -1
- package/src/models/KeyValueInputModeEnum.ts +38 -0
- package/src/models/KeyValuePair.ts +32 -1
- package/src/models/ListTypeEnum.ts +37 -0
- package/src/models/LogicalQueue.ts +1 -1
- package/src/models/ModuleLoadSpec.ts +64 -0
- package/src/models/OperationTypeEnum.ts +48 -0
- package/src/models/ReqMatchConstraints.ts +1 -1
- package/src/models/ReqPatchSystem.ts +24 -24
- package/src/models/ReqPerms.ts +1 -1
- package/src/models/ReqPostChildSystem.ts +72 -0
- package/src/models/{ReqCreateCredential.ts → ReqPostPutCredential.ts} +29 -13
- package/src/models/{ReqCreateSchedulerProfile.ts → ReqPostSchedulerProfile.ts} +21 -25
- package/src/models/{ReqCreateSystem.ts → ReqPostSystem.ts} +77 -85
- package/src/models/ReqPutSystem.ts +32 -32
- package/src/models/ReqSearchSystems.ts +1 -1
- package/src/models/ReqShareUpdate.ts +56 -0
- package/src/models/ReqUnlinkChildren.ts +56 -0
- package/src/models/ReqUpdateCredential.ts +120 -0
- package/src/models/RespBasic.ts +17 -1
- package/src/models/RespBoolean.ts +17 -1
- package/src/models/RespChangeCount.ts +17 -1
- package/src/models/RespCredential.ts +17 -1
- package/src/models/RespGlobusAuthUrl.ts +111 -0
- package/src/models/RespNameArray.ts +17 -1
- package/src/models/RespResourceUrl.ts +17 -1
- package/src/models/RespSchedulerProfile.ts +17 -1
- package/src/models/RespSchedulerProfiles.ts +17 -1
- package/src/models/RespShareInfo.ts +111 -0
- package/src/models/RespSystem.ts +17 -1
- package/src/models/RespSystemHistory.ts +111 -0
- package/src/models/RespSystems.ts +17 -1
- package/src/models/RespSystemsMetadata.ts +1 -1
- package/src/models/ResultBoolean.ts +1 -1
- package/src/models/ResultChangeCount.ts +1 -1
- package/src/models/ResultGlobusAuthUrl.ts +72 -0
- package/src/models/ResultNameArray.ts +1 -1
- package/src/models/ResultResourceUrl.ts +1 -1
- package/src/models/RuntimeTypeEnum.ts +3 -2
- package/src/models/SchedulerHiddenOptionEnum.ts +1 -1
- package/src/models/SchedulerProfile.ts +10 -14
- package/src/models/SchedulerTypeEnum.ts +1 -1
- package/src/models/ShareInfo.ts +64 -0
- package/src/models/SystemHistory.ts +111 -0
- package/src/models/SystemTypeEnum.ts +2 -2
- package/src/models/TapisSystem.ts +52 -36
- package/src/models/index.ts +17 -3
- package/src/runtime.ts +1 -1
- package/dist/models/ReqCreateCredential.d.ts +0 -57
- package/dist/models/ReqCreateSchedulerProfile.d.ts +0 -58
- package/dist/models/ReqCreateSystem.d.ts +0 -226
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tapis Systems API
|
|
5
|
+
* The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.6.3
|
|
8
|
+
* Contact: cicsupport@tacc.utexas.edu
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import {
|
|
18
|
+
ReqShareUpdate,
|
|
19
|
+
ReqShareUpdateFromJSON,
|
|
20
|
+
ReqShareUpdateToJSON,
|
|
21
|
+
RespBasic,
|
|
22
|
+
RespBasicFromJSON,
|
|
23
|
+
RespBasicToJSON,
|
|
24
|
+
RespShareInfo,
|
|
25
|
+
RespShareInfoFromJSON,
|
|
26
|
+
RespShareInfoToJSON,
|
|
27
|
+
} from '../models';
|
|
28
|
+
|
|
29
|
+
export interface GetShareInfoRequest {
|
|
30
|
+
systemId: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ShareSystemRequest {
|
|
34
|
+
systemId: string;
|
|
35
|
+
reqShareUpdate: ReqShareUpdate;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ShareSystemPublicRequest {
|
|
39
|
+
systemId: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface UnShareSystemRequest {
|
|
43
|
+
systemId: string;
|
|
44
|
+
reqShareUpdate: ReqShareUpdate;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface UnShareSystemPublicRequest {
|
|
48
|
+
systemId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export class SharingApi extends runtime.BaseAPI {
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 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
|
+
* Retrieve all sharing information for a system
|
|
59
|
+
*/
|
|
60
|
+
async getShareInfoRaw(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespShareInfo>> {
|
|
61
|
+
if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
|
|
62
|
+
throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling getShareInfo.');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const queryParameters: any = {};
|
|
66
|
+
|
|
67
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
+
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/v3/systems/share/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters.systemId))),
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespShareInfoFromJSON(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 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
|
+
* Retrieve all sharing information for a system
|
|
86
|
+
*/
|
|
87
|
+
async getShareInfo(requestParameters: GetShareInfoRequest, initOverrides?: RequestInit): Promise<RespShareInfo> {
|
|
88
|
+
const response = await this.getShareInfoRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 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
|
+
* Share a system with one or more users.
|
|
95
|
+
*/
|
|
96
|
+
async shareSystemRaw(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
97
|
+
if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
|
|
98
|
+
throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling shareSystem.');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (requestParameters.reqShareUpdate === null || requestParameters.reqShareUpdate === undefined) {
|
|
102
|
+
throw new runtime.RequiredError('reqShareUpdate','Required parameter requestParameters.reqShareUpdate was null or undefined when calling shareSystem.');
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const queryParameters: any = {};
|
|
106
|
+
|
|
107
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
|
+
|
|
109
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
+
|
|
111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
+
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: `/v3/systems/share/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters.systemId))),
|
|
117
|
+
method: 'POST',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
body: ReqShareUpdateToJSON(requestParameters.reqShareUpdate),
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
|
|
123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespBasicFromJSON(jsonValue));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 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
|
+
* Share a system with one or more users.
|
|
129
|
+
*/
|
|
130
|
+
async shareSystem(requestParameters: ShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
131
|
+
const response = await this.shareSystemRaw(requestParameters, initOverrides);
|
|
132
|
+
return await response.value();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 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
|
+
* Share a system publicly with all users in the tenant.
|
|
138
|
+
*/
|
|
139
|
+
async shareSystemPublicRaw(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
140
|
+
if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
|
|
141
|
+
throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling shareSystemPublic.');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const queryParameters: any = {};
|
|
145
|
+
|
|
146
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
147
|
+
|
|
148
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
149
|
+
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const response = await this.request({
|
|
153
|
+
path: `/v3/systems/share_public/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters.systemId))),
|
|
154
|
+
method: 'POST',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}, initOverrides);
|
|
158
|
+
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespBasicFromJSON(jsonValue));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* 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
|
+
* Share a system publicly with all users in the tenant.
|
|
165
|
+
*/
|
|
166
|
+
async shareSystemPublic(requestParameters: ShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
167
|
+
const response = await this.shareSystemPublicRaw(requestParameters, initOverrides);
|
|
168
|
+
return await response.value();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* 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
|
+
* Unshare a system with one or more users.
|
|
174
|
+
*/
|
|
175
|
+
async unShareSystemRaw(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
176
|
+
if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
|
|
177
|
+
throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling unShareSystem.');
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (requestParameters.reqShareUpdate === null || requestParameters.reqShareUpdate === undefined) {
|
|
181
|
+
throw new runtime.RequiredError('reqShareUpdate','Required parameter requestParameters.reqShareUpdate was null or undefined when calling unShareSystem.');
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const queryParameters: any = {};
|
|
185
|
+
|
|
186
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
187
|
+
|
|
188
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
189
|
+
|
|
190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
+
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const response = await this.request({
|
|
195
|
+
path: `/v3/systems/unshare/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters.systemId))),
|
|
196
|
+
method: 'POST',
|
|
197
|
+
headers: headerParameters,
|
|
198
|
+
query: queryParameters,
|
|
199
|
+
body: ReqShareUpdateToJSON(requestParameters.reqShareUpdate),
|
|
200
|
+
}, initOverrides);
|
|
201
|
+
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespBasicFromJSON(jsonValue));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 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
|
+
* Unshare a system with one or more users.
|
|
208
|
+
*/
|
|
209
|
+
async unShareSystem(requestParameters: UnShareSystemRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
210
|
+
const response = await this.unShareSystemRaw(requestParameters, initOverrides);
|
|
211
|
+
return await response.value();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Remove public sharing for a system. Requester must be owner of the system.
|
|
216
|
+
* Remove public access for a system.
|
|
217
|
+
*/
|
|
218
|
+
async unShareSystemPublicRaw(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespBasic>> {
|
|
219
|
+
if (requestParameters.systemId === null || requestParameters.systemId === undefined) {
|
|
220
|
+
throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling unShareSystemPublic.');
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const queryParameters: any = {};
|
|
224
|
+
|
|
225
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
226
|
+
|
|
227
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
+
headerParameters["X-Tapis-Token"] = this.configuration.apiKey("X-Tapis-Token"); // TapisJWT authentication
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const response = await this.request({
|
|
232
|
+
path: `/v3/systems/unshare_public/{systemId}`.replace(`{${"systemId"}}`, encodeURIComponent(String(requestParameters.systemId))),
|
|
233
|
+
method: 'POST',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
}, initOverrides);
|
|
237
|
+
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespBasicFromJSON(jsonValue));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Remove public sharing for a system. Requester must be owner of the system.
|
|
243
|
+
* Remove public access for a system.
|
|
244
|
+
*/
|
|
245
|
+
async unShareSystemPublic(requestParameters: UnShareSystemPublicRequest, initOverrides?: RequestInit): Promise<RespBasic> {
|
|
246
|
+
const response = await this.unShareSystemPublicRaw(requestParameters, initOverrides);
|
|
247
|
+
return await response.value();
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
}
|