@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.
Files changed (197) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/ChildSystemsApi.d.ts +10 -10
  5. package/dist/apis/ChildSystemsApi.js +84 -65
  6. package/dist/apis/CredentialsApi.d.ts +25 -24
  7. package/dist/apis/CredentialsApi.js +172 -138
  8. package/dist/apis/GeneralApi.d.ts +6 -6
  9. package/dist/apis/GeneralApi.js +18 -11
  10. package/dist/apis/PermissionsApi.d.ts +10 -10
  11. package/dist/apis/PermissionsApi.js +112 -89
  12. package/dist/apis/SchedulerProfilesApi.d.ts +10 -10
  13. package/dist/apis/SchedulerProfilesApi.js +95 -72
  14. package/dist/apis/SharingApi.d.ts +12 -12
  15. package/dist/apis/SharingApi.js +122 -95
  16. package/dist/apis/SystemsApi.d.ts +61 -46
  17. package/dist/apis/SystemsApi.js +473 -341
  18. package/dist/apis/index.js +21 -10
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +17 -6
  21. package/dist/models/AuthnEnum.d.ts +12 -9
  22. package/dist/models/AuthnEnum.js +28 -13
  23. package/dist/models/Capability.d.ts +9 -3
  24. package/dist/models/Capability.js +37 -22
  25. package/dist/models/CategoryEnum.d.ts +14 -12
  26. package/dist/models/CategoryEnum.js +30 -16
  27. package/dist/models/Credential.d.ts +26 -3
  28. package/dist/models/Credential.js +47 -33
  29. package/dist/models/DatatypeEnum.d.ts +11 -9
  30. package/dist/models/DatatypeEnum.js +27 -13
  31. package/dist/models/JobRuntime.d.ts +8 -3
  32. package/dist/models/JobRuntime.js +27 -17
  33. package/dist/models/KeyValueInputModeEnum.d.ts +10 -8
  34. package/dist/models/KeyValueInputModeEnum.js +26 -12
  35. package/dist/models/KeyValuePair.d.ts +8 -3
  36. package/dist/models/KeyValuePair.js +32 -22
  37. package/dist/models/ListTypeEnum.d.ts +9 -7
  38. package/dist/models/ListTypeEnum.js +25 -11
  39. package/dist/models/LogicalQueue.d.ts +13 -2
  40. package/dist/models/LogicalQueue.js +48 -34
  41. package/dist/models/ModuleLoadSpec.d.ts +7 -2
  42. package/dist/models/ModuleLoadSpec.js +25 -15
  43. package/dist/models/OperationTypeEnum.d.ts +20 -18
  44. package/dist/models/OperationTypeEnum.js +36 -22
  45. package/dist/models/ReqMatchConstraints.d.ts +7 -2
  46. package/dist/models/ReqMatchConstraints.js +23 -12
  47. package/dist/models/ReqPatchSystem.d.ts +13 -3
  48. package/dist/models/ReqPatchSystem.js +76 -63
  49. package/dist/models/ReqPerms.d.ts +7 -2
  50. package/dist/models/ReqPerms.js +23 -12
  51. package/dist/models/ReqPostChildSystem.d.ts +7 -2
  52. package/dist/models/ReqPostChildSystem.js +28 -16
  53. package/dist/models/ReqPostPutCredential.d.ts +7 -2
  54. package/dist/models/ReqPostPutCredential.js +36 -28
  55. package/dist/models/ReqPostSchedulerProfile.d.ts +9 -3
  56. package/dist/models/ReqPostSchedulerProfile.js +33 -22
  57. package/dist/models/ReqPostSystem.d.ts +15 -3
  58. package/dist/models/ReqPostSystem.js +101 -76
  59. package/dist/models/ReqPutSystem.d.ts +13 -3
  60. package/dist/models/ReqPutSystem.js +74 -61
  61. package/dist/models/ReqSearchSystems.d.ts +7 -2
  62. package/dist/models/ReqSearchSystems.js +23 -12
  63. package/dist/models/ReqShareUpdate.d.ts +7 -2
  64. package/dist/models/ReqShareUpdate.js +23 -12
  65. package/dist/models/ReqUnlinkChildren.d.ts +7 -2
  66. package/dist/models/ReqUnlinkChildren.js +22 -14
  67. package/dist/models/ReqUpdateCredential.d.ts +7 -2
  68. package/dist/models/ReqUpdateCredential.js +38 -30
  69. package/dist/models/RespBasic.d.ts +7 -2
  70. package/dist/models/RespBasic.js +34 -26
  71. package/dist/models/RespBoolean.d.ts +8 -3
  72. package/dist/models/RespBoolean.js +35 -27
  73. package/dist/models/RespChangeCount.d.ts +8 -3
  74. package/dist/models/RespChangeCount.js +35 -27
  75. package/dist/models/RespCredential.d.ts +8 -3
  76. package/dist/models/RespCredential.js +35 -27
  77. package/dist/models/RespGlobusAuthUrl.d.ts +8 -3
  78. package/dist/models/RespGlobusAuthUrl.js +35 -27
  79. package/dist/models/RespName.d.ts +69 -0
  80. package/dist/models/RespName.js +62 -0
  81. package/dist/models/RespNameArray.d.ts +8 -3
  82. package/dist/models/RespNameArray.js +35 -27
  83. package/dist/models/RespResourceUrl.d.ts +8 -3
  84. package/dist/models/RespResourceUrl.js +35 -27
  85. package/dist/models/RespSchedulerProfile.d.ts +8 -3
  86. package/dist/models/RespSchedulerProfile.js +35 -27
  87. package/dist/models/RespSchedulerProfiles.d.ts +8 -3
  88. package/dist/models/RespSchedulerProfiles.js +35 -27
  89. package/dist/models/RespShareInfo.d.ts +8 -3
  90. package/dist/models/RespShareInfo.js +35 -27
  91. package/dist/models/RespSystem.d.ts +8 -3
  92. package/dist/models/RespSystem.js +35 -27
  93. package/dist/models/RespSystemHistory.d.ts +8 -3
  94. package/dist/models/RespSystemHistory.js +35 -27
  95. package/dist/models/RespSystems.d.ts +9 -3
  96. package/dist/models/RespSystems.js +36 -27
  97. package/dist/models/RespSystemsMetadata.d.ts +7 -2
  98. package/dist/models/RespSystemsMetadata.js +32 -24
  99. package/dist/models/ResultBoolean.d.ts +7 -2
  100. package/dist/models/ResultBoolean.js +22 -14
  101. package/dist/models/ResultChangeCount.d.ts +7 -2
  102. package/dist/models/ResultChangeCount.js +22 -14
  103. package/dist/models/ResultGlobusAuthUrl.d.ts +7 -2
  104. package/dist/models/ResultGlobusAuthUrl.js +26 -18
  105. package/dist/models/ResultName.d.ts +32 -0
  106. package/dist/models/ResultName.js +49 -0
  107. package/dist/models/ResultNameArray.d.ts +7 -2
  108. package/dist/models/ResultNameArray.js +22 -14
  109. package/dist/models/ResultResourceUrl.d.ts +7 -2
  110. package/dist/models/ResultResourceUrl.js +22 -14
  111. package/dist/models/RuntimeTypeEnum.d.ts +9 -7
  112. package/dist/models/RuntimeTypeEnum.js +25 -11
  113. package/dist/models/SchedulerHiddenOptionEnum.d.ts +8 -5
  114. package/dist/models/SchedulerHiddenOptionEnum.js +24 -9
  115. package/dist/models/SchedulerProfile.d.ts +9 -3
  116. package/dist/models/SchedulerProfile.js +35 -24
  117. package/dist/models/SchedulerTypeEnum.d.ts +12 -10
  118. package/dist/models/SchedulerTypeEnum.js +28 -14
  119. package/dist/models/ShareInfo.d.ts +14 -2
  120. package/dist/models/ShareInfo.js +29 -13
  121. package/dist/models/SkShareRecord.d.ts +86 -0
  122. package/dist/models/SkShareRecord.js +67 -0
  123. package/dist/models/SystemHistory.d.ts +8 -3
  124. package/dist/models/SystemHistory.js +35 -27
  125. package/dist/models/SystemTypeEnum.d.ts +10 -8
  126. package/dist/models/SystemTypeEnum.js +26 -12
  127. package/dist/models/TapisSystem.d.ts +39 -21
  128. package/dist/models/TapisSystem.js +114 -97
  129. package/dist/models/index.d.ts +3 -0
  130. package/dist/models/index.js +68 -54
  131. package/dist/runtime.d.ts +79 -37
  132. package/dist/runtime.js +311 -169
  133. package/package.json +6 -2
  134. package/src/apis/ChildSystemsApi.ts +47 -33
  135. package/src/apis/CredentialsApi.ts +124 -75
  136. package/src/apis/GeneralApi.ts +9 -7
  137. package/src/apis/PermissionsApi.ts +80 -45
  138. package/src/apis/SchedulerProfilesApi.ts +40 -29
  139. package/src/apis/SharingApi.ts +64 -41
  140. package/src/apis/SystemsApi.ts +306 -189
  141. package/src/index.ts +2 -2
  142. package/src/models/AuthnEnum.ts +26 -8
  143. package/src/models/Capability.ts +37 -19
  144. package/src/models/CategoryEnum.ts +28 -11
  145. package/src/models/Credential.ts +67 -31
  146. package/src/models/DatatypeEnum.ts +25 -8
  147. package/src/models/JobRuntime.ts +27 -14
  148. package/src/models/KeyValueInputModeEnum.ts +24 -7
  149. package/src/models/KeyValuePair.ts +33 -20
  150. package/src/models/ListTypeEnum.ts +23 -6
  151. package/src/models/LogicalQueue.ts +50 -31
  152. package/src/models/ModuleLoadSpec.ts +22 -12
  153. package/src/models/OperationTypeEnum.ts +34 -17
  154. package/src/models/ReqMatchConstraints.ts +20 -10
  155. package/src/models/ReqPatchSystem.ts +96 -69
  156. package/src/models/ReqPerms.ts +20 -10
  157. package/src/models/ReqPostChildSystem.ts +24 -13
  158. package/src/models/ReqPostPutCredential.ts +34 -25
  159. package/src/models/ReqPostSchedulerProfile.ts +38 -24
  160. package/src/models/ReqPostSystem.ts +123 -85
  161. package/src/models/ReqPutSystem.ts +94 -67
  162. package/src/models/ReqSearchSystems.ts +20 -10
  163. package/src/models/ReqShareUpdate.ts +20 -10
  164. package/src/models/ReqUnlinkChildren.ts +20 -11
  165. package/src/models/ReqUpdateCredential.ts +36 -27
  166. package/src/models/RespBasic.ts +32 -23
  167. package/src/models/RespBoolean.ts +35 -25
  168. package/src/models/RespChangeCount.ts +35 -25
  169. package/src/models/RespCredential.ts +35 -25
  170. package/src/models/RespGlobusAuthUrl.ts +35 -25
  171. package/src/models/RespName.ts +121 -0
  172. package/src/models/RespNameArray.ts +35 -25
  173. package/src/models/RespResourceUrl.ts +35 -25
  174. package/src/models/RespSchedulerProfile.ts +35 -25
  175. package/src/models/RespSchedulerProfiles.ts +35 -25
  176. package/src/models/RespShareInfo.ts +35 -25
  177. package/src/models/RespSystem.ts +35 -25
  178. package/src/models/RespSystemHistory.ts +35 -25
  179. package/src/models/RespSystems.ts +42 -29
  180. package/src/models/RespSystemsMetadata.ts +30 -21
  181. package/src/models/ResultBoolean.ts +20 -11
  182. package/src/models/ResultChangeCount.ts +20 -11
  183. package/src/models/ResultGlobusAuthUrl.ts +24 -15
  184. package/src/models/ResultName.ts +65 -0
  185. package/src/models/ResultNameArray.ts +20 -11
  186. package/src/models/ResultResourceUrl.ts +20 -11
  187. package/src/models/RuntimeTypeEnum.ts +23 -6
  188. package/src/models/SchedulerHiddenOptionEnum.ts +22 -4
  189. package/src/models/SchedulerProfile.ts +40 -26
  190. package/src/models/SchedulerTypeEnum.ts +26 -9
  191. package/src/models/ShareInfo.ts +38 -11
  192. package/src/models/SkShareRecord.ts +137 -0
  193. package/src/models/SystemHistory.ts +37 -25
  194. package/src/models/SystemTypeEnum.ts +24 -7
  195. package/src/models/TapisSystem.ts +167 -126
  196. package/src/models/index.ts +3 -0
  197. package/src/runtime.ts +217 -106
@@ -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.0
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.systemId === null || requestParameters.systemId === undefined) {
62
- throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling getShareInfo.');
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.systemId))),
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.systemId === null || requestParameters.systemId === undefined) {
98
- throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling shareSystem.');
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.reqShareUpdate === null || requestParameters.reqShareUpdate === undefined) {
102
- throw new runtime.RequiredError('reqShareUpdate','Required parameter requestParameters.reqShareUpdate was null or undefined when calling shareSystem.');
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.systemId))),
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.reqShareUpdate),
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.systemId === null || requestParameters.systemId === undefined) {
141
- throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling shareSystemPublic.');
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.systemId))),
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.systemId === null || requestParameters.systemId === undefined) {
177
- throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling unShareSystem.');
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.reqShareUpdate === null || requestParameters.reqShareUpdate === undefined) {
181
- throw new runtime.RequiredError('reqShareUpdate','Required parameter requestParameters.reqShareUpdate was null or undefined when calling unShareSystem.');
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.systemId))),
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.reqShareUpdate),
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.systemId === null || requestParameters.systemId === undefined) {
220
- throw new runtime.RequiredError('systemId','Required parameter requestParameters.systemId was null or undefined when calling unShareSystemPublic.');
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.systemId))),
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
  }