@tapis/tapis-typescript-systems 0.0.1 → 0.0.2

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 (141) hide show
  1. package/.openapi-generator/FILES +10 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/CredentialsApi.d.ts +23 -22
  5. package/dist/apis/CredentialsApi.js +32 -29
  6. package/dist/apis/GeneralApi.d.ts +6 -6
  7. package/dist/apis/GeneralApi.js +10 -10
  8. package/dist/apis/PermissionsApi.d.ts +10 -10
  9. package/dist/apis/PermissionsApi.js +18 -18
  10. package/dist/apis/SchedulerProfilesApi.d.ts +67 -0
  11. package/dist/apis/SchedulerProfilesApi.js +268 -0
  12. package/dist/apis/SystemsApi.d.ts +80 -48
  13. package/dist/apis/SystemsApi.js +194 -82
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +3 -0
  16. package/dist/index.js +2 -0
  17. package/dist/models/AuthnEnum.d.ts +2 -2
  18. package/dist/models/AuthnEnum.js +2 -2
  19. package/dist/models/Capability.d.ts +5 -5
  20. package/dist/models/Capability.js +5 -5
  21. package/dist/models/CategoryEnum.d.ts +2 -2
  22. package/dist/models/CategoryEnum.js +2 -2
  23. package/dist/models/Credential.d.ts +9 -2
  24. package/dist/models/Credential.js +5 -2
  25. package/dist/models/DatatypeEnum.d.ts +2 -2
  26. package/dist/models/DatatypeEnum.js +2 -2
  27. package/dist/models/JobRuntime.d.ts +3 -3
  28. package/dist/models/JobRuntime.js +3 -3
  29. package/dist/models/KeyValuePair.d.ts +3 -3
  30. package/dist/models/KeyValuePair.js +3 -3
  31. package/dist/models/LogicalQueue.d.ts +28 -4
  32. package/dist/models/LogicalQueue.js +12 -4
  33. package/dist/models/ReqCreateCredential.d.ts +57 -0
  34. package/dist/models/ReqCreateCredential.js +51 -0
  35. package/dist/models/ReqCreateSchedulerProfile.d.ts +58 -0
  36. package/dist/models/ReqCreateSchedulerProfile.js +52 -0
  37. package/dist/models/ReqCreateSystem.d.ts +28 -16
  38. package/dist/models/ReqCreateSystem.js +15 -11
  39. package/dist/models/ReqMatchConstraints.d.ts +3 -3
  40. package/dist/models/ReqMatchConstraints.js +3 -4
  41. package/dist/models/{ReqUpdateSystem.d.ts → ReqPatchSystem.d.ts} +47 -35
  42. package/dist/models/{ReqUpdateSystem.js → ReqPatchSystem.js} +15 -11
  43. package/dist/models/ReqPerms.d.ts +3 -3
  44. package/dist/models/ReqPerms.js +3 -4
  45. package/dist/models/ReqPutSystem.d.ts +178 -0
  46. package/dist/models/ReqPutSystem.js +92 -0
  47. package/dist/models/ReqSearchSystems.d.ts +3 -3
  48. package/dist/models/ReqSearchSystems.js +3 -4
  49. package/dist/models/RespBasic.d.ts +2 -2
  50. package/dist/models/RespBasic.js +2 -2
  51. package/dist/models/RespBoolean.d.ts +5 -4
  52. package/dist/models/RespBoolean.js +5 -4
  53. package/dist/models/RespChangeCount.d.ts +2 -2
  54. package/dist/models/RespChangeCount.js +2 -2
  55. package/dist/models/RespCredential.d.ts +2 -2
  56. package/dist/models/RespCredential.js +2 -2
  57. package/dist/models/RespNameArray.d.ts +2 -2
  58. package/dist/models/RespNameArray.js +2 -2
  59. package/dist/models/RespResourceUrl.d.ts +2 -2
  60. package/dist/models/RespResourceUrl.js +2 -2
  61. package/dist/models/RespSchedulerProfile.d.ts +52 -0
  62. package/dist/models/RespSchedulerProfile.js +50 -0
  63. package/dist/models/RespSchedulerProfiles.d.ts +52 -0
  64. package/dist/models/RespSchedulerProfiles.js +50 -0
  65. package/dist/models/RespSystem.d.ts +2 -2
  66. package/dist/models/RespSystem.js +2 -2
  67. package/dist/models/RespSystems.d.ts +2 -2
  68. package/dist/models/RespSystems.js +2 -2
  69. package/dist/models/RespSystemsMetadata.d.ts +2 -2
  70. package/dist/models/RespSystemsMetadata.js +2 -2
  71. package/dist/models/ResultBoolean.d.ts +27 -0
  72. package/dist/models/ResultBoolean.js +41 -0
  73. package/dist/models/ResultChangeCount.d.ts +2 -2
  74. package/dist/models/ResultChangeCount.js +2 -2
  75. package/dist/models/ResultNameArray.d.ts +2 -2
  76. package/dist/models/ResultNameArray.js +2 -2
  77. package/dist/models/ResultResourceUrl.d.ts +2 -2
  78. package/dist/models/ResultResourceUrl.js +2 -2
  79. package/dist/models/RuntimeTypeEnum.d.ts +2 -2
  80. package/dist/models/RuntimeTypeEnum.js +2 -2
  81. package/dist/models/SchedulerHiddenOptionEnum.d.ts +22 -0
  82. package/dist/models/SchedulerHiddenOptionEnum.js +36 -0
  83. package/dist/models/SchedulerProfile.d.ts +64 -0
  84. package/dist/models/SchedulerProfile.js +54 -0
  85. package/dist/models/SchedulerTypeEnum.d.ts +2 -2
  86. package/dist/models/SchedulerTypeEnum.js +2 -2
  87. package/dist/models/SystemTypeEnum.d.ts +5 -3
  88. package/dist/models/SystemTypeEnum.js +4 -2
  89. package/dist/models/TapisSystem.d.ts +22 -10
  90. package/dist/models/TapisSystem.js +10 -6
  91. package/dist/models/index.d.ts +9 -1
  92. package/dist/models/index.js +11 -1
  93. package/dist/runtime.d.ts +6 -6
  94. package/dist/runtime.js +14 -16
  95. package/package.json +1 -1
  96. package/src/apis/CredentialsApi.ts +38 -33
  97. package/src/apis/GeneralApi.ts +10 -10
  98. package/src/apis/PermissionsApi.ts +26 -26
  99. package/src/apis/SchedulerProfilesApi.ts +198 -0
  100. package/src/apis/SystemsApi.ts +209 -103
  101. package/src/apis/index.ts +3 -0
  102. package/src/index.ts +2 -0
  103. package/src/models/AuthnEnum.ts +2 -2
  104. package/src/models/Capability.ts +8 -9
  105. package/src/models/CategoryEnum.ts +2 -2
  106. package/src/models/Credential.ts +17 -3
  107. package/src/models/DatatypeEnum.ts +2 -2
  108. package/src/models/JobRuntime.ts +4 -5
  109. package/src/models/KeyValuePair.ts +4 -5
  110. package/src/models/LogicalQueue.ts +38 -7
  111. package/src/models/ReqCreateCredential.ts +96 -0
  112. package/src/models/ReqCreateSchedulerProfile.ts +103 -0
  113. package/src/models/ReqCreateSystem.ts +44 -29
  114. package/src/models/ReqMatchConstraints.ts +4 -5
  115. package/src/models/{ReqUpdateSystem.ts → ReqPatchSystem.ts} +54 -39
  116. package/src/models/ReqPerms.ts +4 -5
  117. package/src/models/ReqPutSystem.ts +287 -0
  118. package/src/models/ReqSearchSystems.ts +4 -5
  119. package/src/models/RespBasic.ts +2 -3
  120. package/src/models/RespBoolean.ts +13 -7
  121. package/src/models/RespChangeCount.ts +2 -3
  122. package/src/models/RespCredential.ts +2 -3
  123. package/src/models/RespNameArray.ts +2 -3
  124. package/src/models/RespResourceUrl.ts +2 -3
  125. package/src/models/RespSchedulerProfile.ts +95 -0
  126. package/src/models/RespSchedulerProfiles.ts +95 -0
  127. package/src/models/RespSystem.ts +2 -3
  128. package/src/models/RespSystems.ts +2 -3
  129. package/src/models/RespSystemsMetadata.ts +2 -3
  130. package/src/models/ResultBoolean.ts +56 -0
  131. package/src/models/ResultChangeCount.ts +2 -3
  132. package/src/models/ResultNameArray.ts +2 -3
  133. package/src/models/ResultResourceUrl.ts +2 -3
  134. package/src/models/RuntimeTypeEnum.ts +2 -2
  135. package/src/models/SchedulerHiddenOptionEnum.ts +35 -0
  136. package/src/models/SchedulerProfile.ts +111 -0
  137. package/src/models/SchedulerTypeEnum.ts +2 -2
  138. package/src/models/SystemTypeEnum.ts +5 -3
  139. package/src/models/TapisSystem.ts +30 -15
  140. package/src/models/index.ts +11 -1
  141. package/src/runtime.ts +15 -14
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -94,4 +94,3 @@ export function RespSystemsMetadataToJSON(value?: RespSystemsMetadata | null): a
94
94
  };
95
95
  }
96
96
 
97
-
@@ -0,0 +1,56 @@
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.0.0-rc1
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ResultBoolean
20
+ */
21
+ export interface ResultBoolean {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ResultBoolean
26
+ */
27
+ aBool?: boolean;
28
+ }
29
+
30
+ export function ResultBooleanFromJSON(json: any): ResultBoolean {
31
+ return ResultBooleanFromJSONTyped(json, false);
32
+ }
33
+
34
+ export function ResultBooleanFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultBoolean {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+
40
+ 'aBool': !exists(json, 'aBool') ? undefined : json['aBool'],
41
+ };
42
+ }
43
+
44
+ export function ResultBooleanToJSON(value?: ResultBoolean | null): any {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+
53
+ 'aBool': value.aBool,
54
+ };
55
+ }
56
+
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,4 +54,3 @@ export function ResultChangeCountToJSON(value?: ResultChangeCount | null): any {
54
54
  };
55
55
  }
56
56
 
57
-
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,4 +54,3 @@ export function ResultNameArrayToJSON(value?: ResultNameArray | null): any {
54
54
  };
55
55
  }
56
56
 
57
-
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,4 +54,3 @@ export function ResultResourceUrlToJSON(value?: ResultResourceUrl | null): any {
54
54
  };
55
55
  }
56
56
 
57
-
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,35 @@
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.0.0-rc1
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
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum SchedulerHiddenOptionEnum {
21
+ Mem = 'MEM'
22
+ }
23
+
24
+ export function SchedulerHiddenOptionEnumFromJSON(json: any): SchedulerHiddenOptionEnum {
25
+ return SchedulerHiddenOptionEnumFromJSONTyped(json, false);
26
+ }
27
+
28
+ export function SchedulerHiddenOptionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchedulerHiddenOptionEnum {
29
+ return json as SchedulerHiddenOptionEnum;
30
+ }
31
+
32
+ export function SchedulerHiddenOptionEnumToJSON(value?: SchedulerHiddenOptionEnum | null): any {
33
+ return value as any;
34
+ }
35
+
@@ -0,0 +1,111 @@
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.0.0-rc1
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
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ SchedulerHiddenOptionEnum,
18
+ SchedulerHiddenOptionEnumFromJSON,
19
+ SchedulerHiddenOptionEnumFromJSONTyped,
20
+ SchedulerHiddenOptionEnumToJSON,
21
+ } from './';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SchedulerProfile
27
+ */
28
+ export interface SchedulerProfile {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SchedulerProfile
33
+ */
34
+ tenant?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SchedulerProfile
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof SchedulerProfile
45
+ */
46
+ description?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof SchedulerProfile
51
+ */
52
+ owner?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof SchedulerProfile
57
+ */
58
+ moduleLoadCommand: string;
59
+ /**
60
+ *
61
+ * @type {Array<string>}
62
+ * @memberof SchedulerProfile
63
+ */
64
+ modulesToLoad?: Array<string>;
65
+ /**
66
+ *
67
+ * @type {Array<SchedulerHiddenOptionEnum>}
68
+ * @memberof SchedulerProfile
69
+ */
70
+ hiddenOptions?: Array<SchedulerHiddenOptionEnum>;
71
+ }
72
+
73
+ export function SchedulerProfileFromJSON(json: any): SchedulerProfile {
74
+ return SchedulerProfileFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function SchedulerProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchedulerProfile {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
84
+ 'name': json['name'],
85
+ 'description': !exists(json, 'description') ? undefined : json['description'],
86
+ 'owner': !exists(json, 'owner') ? undefined : json['owner'],
87
+ 'moduleLoadCommand': json['moduleLoadCommand'],
88
+ 'modulesToLoad': !exists(json, 'modulesToLoad') ? undefined : json['modulesToLoad'],
89
+ 'hiddenOptions': !exists(json, 'hiddenOptions') ? undefined : ((json['hiddenOptions'] as Array<any>).map(SchedulerHiddenOptionEnumFromJSON)),
90
+ };
91
+ }
92
+
93
+ export function SchedulerProfileToJSON(value?: SchedulerProfile | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ 'tenant': value.tenant,
103
+ 'name': value.name,
104
+ 'description': value.description,
105
+ 'owner': value.owner,
106
+ 'moduleLoadCommand': value.moduleLoadCommand,
107
+ 'modulesToLoad': value.modulesToLoad,
108
+ 'hiddenOptions': value.hiddenOptions === undefined ? undefined : ((value.hiddenOptions as Array<any>).map(SchedulerHiddenOptionEnumToJSON)),
109
+ };
110
+ }
111
+
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,7 +19,9 @@
19
19
  */
20
20
  export enum SystemTypeEnum {
21
21
  Linux = 'LINUX',
22
- S3 = 'S3'
22
+ S3 = 'S3',
23
+ Irods = 'IRODS',
24
+ Globus = 'GLOBUS'
23
25
  }
24
26
 
25
27
  export function SystemTypeEnumFromJSON(json: any): SystemTypeEnum {
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -182,10 +182,16 @@ export interface TapisSystem {
182
182
  canExec?: boolean;
183
183
  /**
184
184
  *
185
- * @type {Array<JobRuntime>}
185
+ * @type {boolean}
186
+ * @memberof TapisSystem
187
+ */
188
+ canRunBatch?: boolean;
189
+ /**
190
+ *
191
+ * @type {Set<JobRuntime>}
186
192
  * @memberof TapisSystem
187
193
  */
188
- jobRuntimes?: Array<JobRuntime>;
194
+ jobRuntimes?: Set<JobRuntime>;
189
195
  /**
190
196
  *
191
197
  * @type {string}
@@ -210,12 +216,6 @@ export interface TapisSystem {
210
216
  * @memberof TapisSystem
211
217
  */
212
218
  jobMaxJobsPerUser?: number;
213
- /**
214
- *
215
- * @type {boolean}
216
- * @memberof TapisSystem
217
- */
218
- jobIsBatch?: boolean;
219
219
  /**
220
220
  *
221
221
  * @type {SchedulerTypeEnum}
@@ -234,6 +234,12 @@ export interface TapisSystem {
234
234
  * @memberof TapisSystem
235
235
  */
236
236
  batchDefaultLogicalQueue?: string;
237
+ /**
238
+ *
239
+ * @type {string}
240
+ * @memberof TapisSystem
241
+ */
242
+ batchSchedulerProfile?: string;
237
243
  /**
238
244
  *
239
245
  * @type {Array<Capability>}
@@ -252,6 +258,12 @@ export interface TapisSystem {
252
258
  * @memberof TapisSystem
253
259
  */
254
260
  notes?: object;
261
+ /**
262
+ *
263
+ * @type {string}
264
+ * @memberof TapisSystem
265
+ */
266
+ importRefId?: string;
255
267
  /**
256
268
  *
257
269
  * @type {string}
@@ -309,18 +321,20 @@ export function TapisSystemFromJSONTyped(json: any, ignoreDiscriminator: boolean
309
321
  'dtnMountSourcePath': !exists(json, 'dtnMountSourcePath') ? undefined : json['dtnMountSourcePath'],
310
322
  'isDtn': !exists(json, 'isDtn') ? undefined : json['isDtn'],
311
323
  'canExec': !exists(json, 'canExec') ? undefined : json['canExec'],
312
- 'jobRuntimes': !exists(json, 'jobRuntimes') ? undefined : ((json['jobRuntimes'] as Array<any>).map(JobRuntimeFromJSON)),
324
+ 'canRunBatch': !exists(json, 'canRunBatch') ? undefined : json['canRunBatch'],
325
+ 'jobRuntimes': !exists(json, 'jobRuntimes') ? undefined : (new Set((json['jobRuntimes'] as Array<any>).map(JobRuntimeFromJSON))),
313
326
  'jobWorkingDir': !exists(json, 'jobWorkingDir') ? undefined : json['jobWorkingDir'],
314
327
  'jobEnvVariables': !exists(json, 'jobEnvVariables') ? undefined : ((json['jobEnvVariables'] as Array<any>).map(KeyValuePairFromJSON)),
315
328
  'jobMaxJobs': !exists(json, 'jobMaxJobs') ? undefined : json['jobMaxJobs'],
316
329
  'jobMaxJobsPerUser': !exists(json, 'jobMaxJobsPerUser') ? undefined : json['jobMaxJobsPerUser'],
317
- 'jobIsBatch': !exists(json, 'jobIsBatch') ? undefined : json['jobIsBatch'],
318
330
  'batchScheduler': !exists(json, 'batchScheduler') ? undefined : SchedulerTypeEnumFromJSON(json['batchScheduler']),
319
331
  'batchLogicalQueues': !exists(json, 'batchLogicalQueues') ? undefined : ((json['batchLogicalQueues'] as Array<any>).map(LogicalQueueFromJSON)),
320
332
  'batchDefaultLogicalQueue': !exists(json, 'batchDefaultLogicalQueue') ? undefined : json['batchDefaultLogicalQueue'],
333
+ 'batchSchedulerProfile': !exists(json, 'batchSchedulerProfile') ? undefined : json['batchSchedulerProfile'],
321
334
  'jobCapabilities': !exists(json, 'jobCapabilities') ? undefined : ((json['jobCapabilities'] as Array<any>).map(CapabilityFromJSON)),
322
335
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
323
336
  'notes': !exists(json, 'notes') ? undefined : json['notes'],
337
+ 'importRefId': !exists(json, 'importRefId') ? undefined : json['importRefId'],
324
338
  'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
325
339
  'deleted': !exists(json, 'deleted') ? undefined : json['deleted'],
326
340
  'created': !exists(json, 'created') ? undefined : json['created'],
@@ -358,18 +372,20 @@ export function TapisSystemToJSON(value?: TapisSystem | null): any {
358
372
  'dtnMountSourcePath': value.dtnMountSourcePath,
359
373
  'isDtn': value.isDtn,
360
374
  'canExec': value.canExec,
361
- 'jobRuntimes': value.jobRuntimes === undefined ? undefined : ((value.jobRuntimes as Array<any>).map(JobRuntimeToJSON)),
375
+ 'canRunBatch': value.canRunBatch,
376
+ 'jobRuntimes': value.jobRuntimes === undefined ? undefined : (Array.from(value.jobRuntimes as Set<any>).map(JobRuntimeToJSON)),
362
377
  'jobWorkingDir': value.jobWorkingDir,
363
378
  'jobEnvVariables': value.jobEnvVariables === undefined ? undefined : ((value.jobEnvVariables as Array<any>).map(KeyValuePairToJSON)),
364
379
  'jobMaxJobs': value.jobMaxJobs,
365
380
  'jobMaxJobsPerUser': value.jobMaxJobsPerUser,
366
- 'jobIsBatch': value.jobIsBatch,
367
381
  'batchScheduler': SchedulerTypeEnumToJSON(value.batchScheduler),
368
382
  'batchLogicalQueues': value.batchLogicalQueues === undefined ? undefined : ((value.batchLogicalQueues as Array<any>).map(LogicalQueueToJSON)),
369
383
  'batchDefaultLogicalQueue': value.batchDefaultLogicalQueue,
384
+ 'batchSchedulerProfile': value.batchSchedulerProfile,
370
385
  'jobCapabilities': value.jobCapabilities === undefined ? undefined : ((value.jobCapabilities as Array<any>).map(CapabilityToJSON)),
371
386
  'tags': value.tags,
372
387
  'notes': value.notes,
388
+ 'importRefId': value.importRefId,
373
389
  'uuid': value.uuid,
374
390
  'deleted': value.deleted,
375
391
  'created': value.created,
@@ -377,4 +393,3 @@ export function TapisSystemToJSON(value?: TapisSystem | null): any {
377
393
  };
378
394
  }
379
395
 
380
-
@@ -1,3 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
1
3
  export * from './AuthnEnum';
2
4
  export * from './Capability';
3
5
  export * from './CategoryEnum';
@@ -6,24 +8,32 @@ export * from './DatatypeEnum';
6
8
  export * from './JobRuntime';
7
9
  export * from './KeyValuePair';
8
10
  export * from './LogicalQueue';
11
+ export * from './ReqCreateCredential';
12
+ export * from './ReqCreateSchedulerProfile';
9
13
  export * from './ReqCreateSystem';
10
14
  export * from './ReqMatchConstraints';
15
+ export * from './ReqPatchSystem';
11
16
  export * from './ReqPerms';
17
+ export * from './ReqPutSystem';
12
18
  export * from './ReqSearchSystems';
13
- export * from './ReqUpdateSystem';
14
19
  export * from './RespBasic';
15
20
  export * from './RespBoolean';
16
21
  export * from './RespChangeCount';
17
22
  export * from './RespCredential';
18
23
  export * from './RespNameArray';
19
24
  export * from './RespResourceUrl';
25
+ export * from './RespSchedulerProfile';
26
+ export * from './RespSchedulerProfiles';
20
27
  export * from './RespSystem';
21
28
  export * from './RespSystems';
22
29
  export * from './RespSystemsMetadata';
30
+ export * from './ResultBoolean';
23
31
  export * from './ResultChangeCount';
24
32
  export * from './ResultNameArray';
25
33
  export * from './ResultResourceUrl';
26
34
  export * from './RuntimeTypeEnum';
35
+ export * from './SchedulerHiddenOptionEnum';
36
+ export * from './SchedulerProfile';
27
37
  export * from './SchedulerTypeEnum';
28
38
  export * from './SystemTypeEnum';
29
39
  export * from './TapisSystem';
package/src/runtime.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Tapis Systems API
5
- * The Tapis Systems API provides for management of Tapis Systems including permissions and credentials.
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: 0.0.1
7
+ * The version of the OpenAPI document: 1.0.0-rc1
8
8
  * Contact: cicsupport@tacc.utexas.edu
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -44,8 +44,8 @@ export class BaseAPI {
44
44
  return this.withMiddleware<T>(...middlewares);
45
45
  }
46
46
 
47
- protected async request(context: RequestOpts): Promise<Response> {
48
- const { url, init } = this.createFetchParams(context);
47
+ protected async request(context: RequestOpts, initOverrides?: RequestInit): Promise<Response> {
48
+ const { url, init } = this.createFetchParams(context, initOverrides);
49
49
  const response = await this.fetchApi(url, init);
50
50
  if (response.status >= 200 && response.status < 300) {
51
51
  return response;
@@ -53,7 +53,7 @@ export class BaseAPI {
53
53
  throw response;
54
54
  }
55
55
 
56
- private createFetchParams(context: RequestOpts) {
56
+ private createFetchParams(context: RequestOpts, initOverrides?: RequestInit) {
57
57
  let url = this.configuration.basePath + context.path;
58
58
  if (context.query !== undefined && Object.keys(context.query).length !== 0) {
59
59
  // only add the querystring to the URL if there are query parameters.
@@ -70,7 +70,8 @@ export class BaseAPI {
70
70
  method: context.method,
71
71
  headers: headers,
72
72
  body,
73
- credentials: this.configuration.credentials
73
+ credentials: this.configuration.credentials,
74
+ ...initOverrides
74
75
  };
75
76
  return { url, init };
76
77
  }
@@ -85,13 +86,13 @@ export class BaseAPI {
85
86
  }) || fetchParams;
86
87
  }
87
88
  }
88
- let response = await this.configuration.fetchApi(fetchParams.url, fetchParams.init);
89
+ let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
89
90
  for (const middleware of this.middleware) {
90
91
  if (middleware.post) {
91
92
  response = await middleware.post({
92
93
  fetch: this.fetchApi,
93
- url,
94
- init,
94
+ url: fetchParams.url,
95
+ init: fetchParams.init,
95
96
  response: response.clone(),
96
97
  }) || response;
97
98
  }
@@ -135,7 +136,7 @@ export interface ConfigurationParameters {
135
136
  username?: string; // parameter for basic security
136
137
  password?: string; // parameter for basic security
137
138
  apiKey?: string | ((name: string) => string); // parameter for apiKey security
138
- accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
139
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
139
140
  headers?: HTTPHeaders; //header params we want to use on every request
140
141
  credentials?: RequestCredentials; //value for the credentials param we want to use on each request
141
142
  }
@@ -147,8 +148,8 @@ export class Configuration {
147
148
  return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
148
149
  }
149
150
 
150
- get fetchApi(): FetchAPI {
151
- return this.configuration.fetchApi || window.fetch.bind(window);
151
+ get fetchApi(): FetchAPI | undefined {
152
+ return this.configuration.fetchApi;
152
153
  }
153
154
 
154
155
  get middleware(): Middleware[] {
@@ -175,10 +176,10 @@ export class Configuration {
175
176
  return undefined;
176
177
  }
177
178
 
178
- get accessToken(): ((name: string, scopes?: string[]) => string) | undefined {
179
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {
179
180
  const accessToken = this.configuration.accessToken;
180
181
  if (accessToken) {
181
- return typeof accessToken === 'function' ? accessToken : () => accessToken;
182
+ return typeof accessToken === 'function' ? accessToken : async () => accessToken;
182
183
  }
183
184
  return undefined;
184
185
  }