@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.
- package/.openapi-generator/FILES +18 -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 +48 -15
- package/dist/apis/CredentialsApi.js +167 -16
- package/dist/apis/GeneralApi.d.ts +5 -5
- package/dist/apis/GeneralApi.js +5 -5
- 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 +33 -44
- package/dist/apis/SystemsApi.js +84 -47
- 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/KeyValuePair.d.ts +7 -1
- package/dist/models/KeyValuePair.js +3 -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 +19 -1
- package/dist/models/ReqPatchSystem.js +7 -1
- 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/{ReqCreateSystem.d.ts → ReqPostSystem.d.ts} +55 -43
- package/dist/models/{ReqCreateSystem.js → ReqPostSystem.js} +14 -10
- package/dist/models/ReqPutSystem.d.ts +16 -4
- package/dist/models/ReqPutSystem.js +7 -3
- 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 +33 -0
- package/dist/models/ResultGlobusAuthUrl.js +43 -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 +1 -1
- package/dist/models/RuntimeTypeEnum.js +1 -1
- package/dist/models/SchedulerHiddenOptionEnum.d.ts +1 -1
- package/dist/models/SchedulerHiddenOptionEnum.js +1 -1
- package/dist/models/SchedulerProfile.d.ts +4 -10
- 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 +1 -1
- package/dist/models/SystemTypeEnum.js +1 -1
- package/dist/models/TapisSystem.d.ts +27 -3
- package/dist/models/TapisSystem.js +11 -3
- package/dist/models/index.d.ts +16 -3
- package/dist/models/index.js +16 -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 +152 -20
- package/src/apis/GeneralApi.ts +5 -5
- 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 +99 -53
- 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/KeyValuePair.ts +9 -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 +25 -1
- 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} +20 -24
- package/src/models/{ReqCreateSystem.ts → ReqPostSystem.ts} +65 -49
- package/src/models/ReqPutSystem.ts +25 -9
- 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 +64 -0
- package/src/models/ResultNameArray.ts +1 -1
- package/src/models/ResultResourceUrl.ts +1 -1
- package/src/models/RuntimeTypeEnum.ts +1 -1
- package/src/models/SchedulerHiddenOptionEnum.ts +1 -1
- package/src/models/SchedulerProfile.ts +9 -13
- 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 +1 -1
- package/src/models/TapisSystem.ts +37 -5
- package/src/models/index.ts +16 -3
- package/src/runtime.ts +1 -1
- package/dist/models/ReqCreateCredential.d.ts +0 -57
- package/dist/models/ReqCreateSchedulerProfile.d.ts +0 -58
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3
|
|
8
8
|
* Contact: cicsupport@tacc.utexas.edu
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
ReqPostSchedulerProfile,
|
|
19
|
+
ReqPostSchedulerProfileFromJSON,
|
|
20
|
+
ReqPostSchedulerProfileToJSON,
|
|
21
21
|
RespBasic,
|
|
22
22
|
RespBasicFromJSON,
|
|
23
23
|
RespBasicToJSON,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from '../models';
|
|
37
37
|
|
|
38
38
|
export interface CreateSchedulerProfileRequest {
|
|
39
|
-
|
|
39
|
+
reqPostSchedulerProfile: ReqPostSchedulerProfile;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export interface DeleteSchedulerProfileRequest {
|
|
@@ -53,12 +53,11 @@ export interface GetSchedulerProfileRequest {
|
|
|
53
53
|
export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* 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
|
|
57
|
-
* Create a scheduler profile
|
|
56
|
+
* 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
|
|
58
57
|
*/
|
|
59
58
|
async createSchedulerProfileRaw(requestParameters: CreateSchedulerProfileRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespResourceUrl>> {
|
|
60
|
-
if (requestParameters.
|
|
61
|
-
throw new runtime.RequiredError('
|
|
59
|
+
if (requestParameters.reqPostSchedulerProfile === null || requestParameters.reqPostSchedulerProfile === undefined) {
|
|
60
|
+
throw new runtime.RequiredError('reqPostSchedulerProfile','Required parameter requestParameters.reqPostSchedulerProfile was null or undefined when calling createSchedulerProfile.');
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
const queryParameters: any = {};
|
|
@@ -76,15 +75,14 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
76
75
|
method: 'POST',
|
|
77
76
|
headers: headerParameters,
|
|
78
77
|
query: queryParameters,
|
|
79
|
-
body:
|
|
78
|
+
body: ReqPostSchedulerProfileToJSON(requestParameters.reqPostSchedulerProfile),
|
|
80
79
|
}, initOverrides);
|
|
81
80
|
|
|
82
81
|
return new runtime.JSONApiResponse(response, (jsonValue) => RespResourceUrlFromJSON(jsonValue));
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
/**
|
|
86
|
-
* 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
|
|
87
|
-
* Create a scheduler profile
|
|
85
|
+
* 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
|
|
88
86
|
*/
|
|
89
87
|
async createSchedulerProfile(requestParameters: CreateSchedulerProfileRequest, initOverrides?: RequestInit): Promise<RespResourceUrl> {
|
|
90
88
|
const response = await this.createSchedulerProfileRaw(requestParameters, initOverrides);
|
|
@@ -93,7 +91,6 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
93
91
|
|
|
94
92
|
/**
|
|
95
93
|
* Remove a scheduler profile given the profile name. Requester must be owner of the profile.
|
|
96
|
-
* Delete a scheduler profile
|
|
97
94
|
*/
|
|
98
95
|
async deleteSchedulerProfileRaw(requestParameters: DeleteSchedulerProfileRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespChangeCount>> {
|
|
99
96
|
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
@@ -120,7 +117,6 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
120
117
|
|
|
121
118
|
/**
|
|
122
119
|
* Remove a scheduler profile given the profile name. Requester must be owner of the profile.
|
|
123
|
-
* Delete a scheduler profile
|
|
124
120
|
*/
|
|
125
121
|
async deleteSchedulerProfile(requestParameters: DeleteSchedulerProfileRequest, initOverrides?: RequestInit): Promise<RespChangeCount> {
|
|
126
122
|
const response = await this.deleteSchedulerProfileRaw(requestParameters, initOverrides);
|
|
@@ -129,7 +125,6 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
129
125
|
|
|
130
126
|
/**
|
|
131
127
|
* Retrieve information for a scheduler profile given the profile name.
|
|
132
|
-
* Retrieve a scheduler profile
|
|
133
128
|
*/
|
|
134
129
|
async getSchedulerProfileRaw(requestParameters: GetSchedulerProfileRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespSchedulerProfile>> {
|
|
135
130
|
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
@@ -156,7 +151,6 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
156
151
|
|
|
157
152
|
/**
|
|
158
153
|
* Retrieve information for a scheduler profile given the profile name.
|
|
159
|
-
* Retrieve a scheduler profile
|
|
160
154
|
*/
|
|
161
155
|
async getSchedulerProfile(requestParameters: GetSchedulerProfileRequest, initOverrides?: RequestInit): Promise<RespSchedulerProfile> {
|
|
162
156
|
const response = await this.getSchedulerProfileRaw(requestParameters, initOverrides);
|
|
@@ -165,7 +159,6 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
165
159
|
|
|
166
160
|
/**
|
|
167
161
|
* Retrieve list of scheduler profiles.
|
|
168
|
-
* Retrieve scheduler profiles
|
|
169
162
|
*/
|
|
170
163
|
async getSchedulerProfilesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<RespSchedulerProfiles>> {
|
|
171
164
|
const queryParameters: any = {};
|
|
@@ -188,7 +181,6 @@ export class SchedulerProfilesApi extends runtime.BaseAPI {
|
|
|
188
181
|
|
|
189
182
|
/**
|
|
190
183
|
* Retrieve list of scheduler profiles.
|
|
191
|
-
* Retrieve scheduler profiles
|
|
192
184
|
*/
|
|
193
185
|
async getSchedulerProfiles(initOverrides?: RequestInit): Promise<RespSchedulerProfiles> {
|
|
194
186
|
const response = await this.getSchedulerProfilesRaw(initOverrides);
|
|
@@ -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.3.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. 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. 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. 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. 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
|
+
}
|