@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
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './runtime';
4
- export * from './apis';
5
- export * from './models';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -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).
@@ -12,17 +12,31 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  *
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum AuthnEnum {
21
- Password = 'PASSWORD',
22
- PkiKeys = 'PKI_KEYS',
23
- AccessKey = 'ACCESS_KEY',
24
- Token = 'TOKEN',
25
- Cert = 'CERT'
20
+ export const AuthnEnum = {
21
+ Password: 'PASSWORD',
22
+ PkiKeys: 'PKI_KEYS',
23
+ AccessKey: 'ACCESS_KEY',
24
+ Token: 'TOKEN',
25
+ TmsKeys: 'TMS_KEYS',
26
+ Cert: 'CERT'
27
+ } as const;
28
+ export type AuthnEnum = typeof AuthnEnum[keyof typeof AuthnEnum];
29
+
30
+
31
+ export function instanceOfAuthnEnum(value: any): boolean {
32
+ for (const key in AuthnEnum) {
33
+ if (Object.prototype.hasOwnProperty.call(AuthnEnum, key)) {
34
+ if (AuthnEnum[key as keyof typeof AuthnEnum] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
26
40
  }
27
41
 
28
42
  export function AuthnEnumFromJSON(json: any): AuthnEnum {
@@ -37,3 +51,7 @@ export function AuthnEnumToJSON(value?: AuthnEnum | null): any {
37
51
  return value as any;
38
52
  }
39
53
 
54
+ export function AuthnEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthnEnum {
55
+ return value as AuthnEnum;
56
+ }
57
+
@@ -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).
@@ -12,17 +12,21 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
+ import type { CategoryEnum } from './CategoryEnum';
16
17
  import {
17
- CategoryEnum,
18
18
  CategoryEnumFromJSON,
19
19
  CategoryEnumFromJSONTyped,
20
20
  CategoryEnumToJSON,
21
- DatatypeEnum,
21
+ CategoryEnumToJSONTyped,
22
+ } from './CategoryEnum';
23
+ import type { DatatypeEnum } from './DatatypeEnum';
24
+ import {
22
25
  DatatypeEnumFromJSON,
23
26
  DatatypeEnumFromJSONTyped,
24
27
  DatatypeEnumToJSON,
25
- } from './';
28
+ DatatypeEnumToJSONTyped,
29
+ } from './DatatypeEnum';
26
30
 
27
31
  /**
28
32
  *
@@ -62,12 +66,24 @@ export interface Capability {
62
66
  value?: string;
63
67
  }
64
68
 
69
+
70
+
71
+ /**
72
+ * Check if a given object implements the Capability interface.
73
+ */
74
+ export function instanceOfCapability(value: object): value is Capability {
75
+ if (!('category' in value) || value['category'] === undefined) return false;
76
+ if (!('name' in value) || value['name'] === undefined) return false;
77
+ if (!('datatype' in value) || value['datatype'] === undefined) return false;
78
+ return true;
79
+ }
80
+
65
81
  export function CapabilityFromJSON(json: any): Capability {
66
82
  return CapabilityFromJSONTyped(json, false);
67
83
  }
68
84
 
69
85
  export function CapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capability {
70
- if ((json === undefined) || (json === null)) {
86
+ if (json == null) {
71
87
  return json;
72
88
  }
73
89
  return {
@@ -75,25 +91,27 @@ export function CapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean)
75
91
  'category': CategoryEnumFromJSON(json['category']),
76
92
  'name': json['name'],
77
93
  'datatype': DatatypeEnumFromJSON(json['datatype']),
78
- 'precedence': !exists(json, 'precedence') ? undefined : json['precedence'],
79
- 'value': !exists(json, 'value') ? undefined : json['value'],
94
+ 'precedence': json['precedence'] == null ? undefined : json['precedence'],
95
+ 'value': json['value'] == null ? undefined : json['value'],
80
96
  };
81
97
  }
82
98
 
83
- export function CapabilityToJSON(value?: Capability | null): any {
84
- if (value === undefined) {
85
- return undefined;
86
- }
87
- if (value === null) {
88
- return null;
99
+ export function CapabilityToJSON(json: any): Capability {
100
+ return CapabilityToJSONTyped(json, false);
101
+ }
102
+
103
+ export function CapabilityToJSONTyped(value?: Capability | null, ignoreDiscriminator: boolean = false): any {
104
+ if (value == null) {
105
+ return value;
89
106
  }
107
+
90
108
  return {
91
109
 
92
- 'category': CategoryEnumToJSON(value.category),
93
- 'name': value.name,
94
- 'datatype': DatatypeEnumToJSON(value.datatype),
95
- 'precedence': value.precedence,
96
- 'value': value.value,
110
+ 'category': CategoryEnumToJSON(value['category']),
111
+ 'name': value['name'],
112
+ 'datatype': DatatypeEnumToJSON(value['datatype']),
113
+ 'precedence': value['precedence'],
114
+ 'value': value['value'],
97
115
  };
98
116
  }
99
117
 
@@ -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).
@@ -12,20 +12,33 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  *
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum CategoryEnum {
21
- Scheduler = 'SCHEDULER',
22
- Os = 'OS',
23
- Hardware = 'HARDWARE',
24
- Software = 'SOFTWARE',
25
- Job = 'JOB',
26
- Container = 'CONTAINER',
27
- Misc = 'MISC',
28
- Custom = 'CUSTOM'
20
+ export const CategoryEnum = {
21
+ Scheduler: 'SCHEDULER',
22
+ Os: 'OS',
23
+ Hardware: 'HARDWARE',
24
+ Software: 'SOFTWARE',
25
+ Job: 'JOB',
26
+ Container: 'CONTAINER',
27
+ Misc: 'MISC',
28
+ Custom: 'CUSTOM'
29
+ } as const;
30
+ export type CategoryEnum = typeof CategoryEnum[keyof typeof CategoryEnum];
31
+
32
+
33
+ export function instanceOfCategoryEnum(value: any): boolean {
34
+ for (const key in CategoryEnum) {
35
+ if (Object.prototype.hasOwnProperty.call(CategoryEnum, key)) {
36
+ if (CategoryEnum[key as keyof typeof CategoryEnum] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
29
42
  }
30
43
 
31
44
  export function CategoryEnumFromJSON(json: any): CategoryEnum {
@@ -40,3 +53,7 @@ export function CategoryEnumToJSON(value?: CategoryEnum | null): any {
40
53
  return value as any;
41
54
  }
42
55
 
56
+ export function CategoryEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): CategoryEnum {
57
+ return value as CategoryEnum;
58
+ }
59
+
@@ -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).
@@ -12,13 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
+ import type { AuthnEnum } from './AuthnEnum';
16
17
  import {
17
- AuthnEnum,
18
18
  AuthnEnumFromJSON,
19
19
  AuthnEnumFromJSONTyped,
20
20
  AuthnEnumToJSON,
21
- } from './';
21
+ AuthnEnumToJSONTyped,
22
+ } from './AuthnEnum';
22
23
 
23
24
  /**
24
25
  *
@@ -80,6 +81,24 @@ export interface Credential {
80
81
  * @memberof Credential
81
82
  */
82
83
  refreshToken?: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof Credential
88
+ */
89
+ tmsPrivateKey?: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof Credential
94
+ */
95
+ tmsPublicKey?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof Credential
100
+ */
101
+ tmsFingerprint?: string;
83
102
  /**
84
103
  *
85
104
  * @type {string}
@@ -88,48 +107,65 @@ export interface Credential {
88
107
  certificate?: string;
89
108
  }
90
109
 
110
+
111
+
112
+ /**
113
+ * Check if a given object implements the Credential interface.
114
+ */
115
+ export function instanceOfCredential(value: object): value is Credential {
116
+ return true;
117
+ }
118
+
91
119
  export function CredentialFromJSON(json: any): Credential {
92
120
  return CredentialFromJSONTyped(json, false);
93
121
  }
94
122
 
95
123
  export function CredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Credential {
96
- if ((json === undefined) || (json === null)) {
124
+ if (json == null) {
97
125
  return json;
98
126
  }
99
127
  return {
100
128
 
101
- 'authnMethod': !exists(json, 'authnMethod') ? undefined : AuthnEnumFromJSON(json['authnMethod']),
102
- 'loginUser': !exists(json, 'loginUser') ? undefined : json['loginUser'],
103
- 'password': !exists(json, 'password') ? undefined : json['password'],
104
- 'privateKey': !exists(json, 'privateKey') ? undefined : json['privateKey'],
105
- 'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
106
- 'accessKey': !exists(json, 'accessKey') ? undefined : json['accessKey'],
107
- 'accessSecret': !exists(json, 'accessSecret') ? undefined : json['accessSecret'],
108
- 'accessToken': !exists(json, 'accessToken') ? undefined : json['accessToken'],
109
- 'refreshToken': !exists(json, 'refreshToken') ? undefined : json['refreshToken'],
110
- 'certificate': !exists(json, 'certificate') ? undefined : json['certificate'],
129
+ 'authnMethod': json['authnMethod'] == null ? undefined : AuthnEnumFromJSON(json['authnMethod']),
130
+ 'loginUser': json['loginUser'] == null ? undefined : json['loginUser'],
131
+ 'password': json['password'] == null ? undefined : json['password'],
132
+ 'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
133
+ 'publicKey': json['publicKey'] == null ? undefined : json['publicKey'],
134
+ 'accessKey': json['accessKey'] == null ? undefined : json['accessKey'],
135
+ 'accessSecret': json['accessSecret'] == null ? undefined : json['accessSecret'],
136
+ 'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
137
+ 'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
138
+ 'tmsPrivateKey': json['tmsPrivateKey'] == null ? undefined : json['tmsPrivateKey'],
139
+ 'tmsPublicKey': json['tmsPublicKey'] == null ? undefined : json['tmsPublicKey'],
140
+ 'tmsFingerprint': json['tmsFingerprint'] == null ? undefined : json['tmsFingerprint'],
141
+ 'certificate': json['certificate'] == null ? undefined : json['certificate'],
111
142
  };
112
143
  }
113
144
 
114
- export function CredentialToJSON(value?: Credential | null): any {
115
- if (value === undefined) {
116
- return undefined;
117
- }
118
- if (value === null) {
119
- return null;
145
+ export function CredentialToJSON(json: any): Credential {
146
+ return CredentialToJSONTyped(json, false);
147
+ }
148
+
149
+ export function CredentialToJSONTyped(value?: Credential | null, ignoreDiscriminator: boolean = false): any {
150
+ if (value == null) {
151
+ return value;
120
152
  }
153
+
121
154
  return {
122
155
 
123
- 'authnMethod': AuthnEnumToJSON(value.authnMethod),
124
- 'loginUser': value.loginUser,
125
- 'password': value.password,
126
- 'privateKey': value.privateKey,
127
- 'publicKey': value.publicKey,
128
- 'accessKey': value.accessKey,
129
- 'accessSecret': value.accessSecret,
130
- 'accessToken': value.accessToken,
131
- 'refreshToken': value.refreshToken,
132
- 'certificate': value.certificate,
156
+ 'authnMethod': AuthnEnumToJSON(value['authnMethod']),
157
+ 'loginUser': value['loginUser'],
158
+ 'password': value['password'],
159
+ 'privateKey': value['privateKey'],
160
+ 'publicKey': value['publicKey'],
161
+ 'accessKey': value['accessKey'],
162
+ 'accessSecret': value['accessSecret'],
163
+ 'accessToken': value['accessToken'],
164
+ 'refreshToken': value['refreshToken'],
165
+ 'tmsPrivateKey': value['tmsPrivateKey'],
166
+ 'tmsPublicKey': value['tmsPublicKey'],
167
+ 'tmsFingerprint': value['tmsFingerprint'],
168
+ 'certificate': value['certificate'],
133
169
  };
134
170
  }
135
171
 
@@ -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).
@@ -12,17 +12,30 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  *
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum DatatypeEnum {
21
- String = 'STRING',
22
- Integer = 'INTEGER',
23
- Boolean = 'BOOLEAN',
24
- Number = 'NUMBER',
25
- Timestamp = 'TIMESTAMP'
20
+ export const DatatypeEnum = {
21
+ String: 'STRING',
22
+ Integer: 'INTEGER',
23
+ Boolean: 'BOOLEAN',
24
+ Number: 'NUMBER',
25
+ Timestamp: 'TIMESTAMP'
26
+ } as const;
27
+ export type DatatypeEnum = typeof DatatypeEnum[keyof typeof DatatypeEnum];
28
+
29
+
30
+ export function instanceOfDatatypeEnum(value: any): boolean {
31
+ for (const key in DatatypeEnum) {
32
+ if (Object.prototype.hasOwnProperty.call(DatatypeEnum, key)) {
33
+ if (DatatypeEnum[key as keyof typeof DatatypeEnum] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
26
39
  }
27
40
 
28
41
  export function DatatypeEnumFromJSON(json: any): DatatypeEnum {
@@ -37,3 +50,7 @@ export function DatatypeEnumToJSON(value?: DatatypeEnum | null): any {
37
50
  return value as any;
38
51
  }
39
52
 
53
+ export function DatatypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DatatypeEnum {
54
+ return value as DatatypeEnum;
55
+ }
56
+
@@ -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).
@@ -12,13 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
+ import type { RuntimeTypeEnum } from './RuntimeTypeEnum';
16
17
  import {
17
- RuntimeTypeEnum,
18
18
  RuntimeTypeEnumFromJSON,
19
19
  RuntimeTypeEnumFromJSONTyped,
20
20
  RuntimeTypeEnumToJSON,
21
- } from './';
21
+ RuntimeTypeEnumToJSONTyped,
22
+ } from './RuntimeTypeEnum';
22
23
 
23
24
  /**
24
25
  *
@@ -40,32 +41,44 @@ export interface JobRuntime {
40
41
  version?: string;
41
42
  }
42
43
 
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the JobRuntime interface.
48
+ */
49
+ export function instanceOfJobRuntime(value: object): value is JobRuntime {
50
+ if (!('runtimeType' in value) || value['runtimeType'] === undefined) return false;
51
+ return true;
52
+ }
53
+
43
54
  export function JobRuntimeFromJSON(json: any): JobRuntime {
44
55
  return JobRuntimeFromJSONTyped(json, false);
45
56
  }
46
57
 
47
58
  export function JobRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobRuntime {
48
- if ((json === undefined) || (json === null)) {
59
+ if (json == null) {
49
60
  return json;
50
61
  }
51
62
  return {
52
63
 
53
64
  'runtimeType': RuntimeTypeEnumFromJSON(json['runtimeType']),
54
- 'version': !exists(json, 'version') ? undefined : json['version'],
65
+ 'version': json['version'] == null ? undefined : json['version'],
55
66
  };
56
67
  }
57
68
 
58
- export function JobRuntimeToJSON(value?: JobRuntime | null): any {
59
- if (value === undefined) {
60
- return undefined;
61
- }
62
- if (value === null) {
63
- return null;
69
+ export function JobRuntimeToJSON(json: any): JobRuntime {
70
+ return JobRuntimeToJSONTyped(json, false);
71
+ }
72
+
73
+ export function JobRuntimeToJSONTyped(value?: JobRuntime | null, ignoreDiscriminator: boolean = false): any {
74
+ if (value == null) {
75
+ return value;
64
76
  }
77
+
65
78
  return {
66
79
 
67
- 'runtimeType': RuntimeTypeEnumToJSON(value.runtimeType),
68
- 'version': value.version,
80
+ 'runtimeType': RuntimeTypeEnumToJSON(value['runtimeType']),
81
+ 'version': value['version'],
69
82
  };
70
83
  }
71
84
 
@@ -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).
@@ -12,16 +12,29 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  *
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum KeyValueInputModeEnum {
21
- Required = 'REQUIRED',
22
- Fixed = 'FIXED',
23
- IncludeOnDemand = 'INCLUDE_ON_DEMAND',
24
- IncludeByDefault = 'INCLUDE_BY_DEFAULT'
20
+ export const KeyValueInputModeEnum = {
21
+ Required: 'REQUIRED',
22
+ Fixed: 'FIXED',
23
+ IncludeOnDemand: 'INCLUDE_ON_DEMAND',
24
+ IncludeByDefault: 'INCLUDE_BY_DEFAULT'
25
+ } as const;
26
+ export type KeyValueInputModeEnum = typeof KeyValueInputModeEnum[keyof typeof KeyValueInputModeEnum];
27
+
28
+
29
+ export function instanceOfKeyValueInputModeEnum(value: any): boolean {
30
+ for (const key in KeyValueInputModeEnum) {
31
+ if (Object.prototype.hasOwnProperty.call(KeyValueInputModeEnum, key)) {
32
+ if (KeyValueInputModeEnum[key as keyof typeof KeyValueInputModeEnum] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
25
38
  }
26
39
 
27
40
  export function KeyValueInputModeEnumFromJSON(json: any): KeyValueInputModeEnum {
@@ -36,3 +49,7 @@ export function KeyValueInputModeEnumToJSON(value?: KeyValueInputModeEnum | null
36
49
  return value as any;
37
50
  }
38
51
 
52
+ export function KeyValueInputModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyValueInputModeEnum {
53
+ return value as KeyValueInputModeEnum;
54
+ }
55
+
@@ -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).
@@ -12,13 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
+ import type { KeyValueInputModeEnum } from './KeyValueInputModeEnum';
16
17
  import {
17
- KeyValueInputModeEnum,
18
18
  KeyValueInputModeEnumFromJSON,
19
19
  KeyValueInputModeEnumFromJSONTyped,
20
20
  KeyValueInputModeEnumToJSON,
21
- } from './';
21
+ KeyValueInputModeEnumToJSONTyped,
22
+ } from './KeyValueInputModeEnum';
22
23
 
23
24
  /**
24
25
  *
@@ -58,38 +59,50 @@ export interface KeyValuePair {
58
59
  notes?: object;
59
60
  }
60
61
 
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the KeyValuePair interface.
66
+ */
67
+ export function instanceOfKeyValuePair(value: object): value is KeyValuePair {
68
+ if (!('key' in value) || value['key'] === undefined) return false;
69
+ return true;
70
+ }
71
+
61
72
  export function KeyValuePairFromJSON(json: any): KeyValuePair {
62
73
  return KeyValuePairFromJSONTyped(json, false);
63
74
  }
64
75
 
65
76
  export function KeyValuePairFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyValuePair {
66
- if ((json === undefined) || (json === null)) {
77
+ if (json == null) {
67
78
  return json;
68
79
  }
69
80
  return {
70
81
 
71
82
  'key': json['key'],
72
- 'value': !exists(json, 'value') ? undefined : json['value'],
73
- 'description': !exists(json, 'description') ? undefined : json['description'],
74
- 'inputMode': !exists(json, 'inputMode') ? undefined : KeyValueInputModeEnumFromJSON(json['inputMode']),
75
- 'notes': !exists(json, 'notes') ? undefined : json['notes'],
83
+ 'value': json['value'] == null ? undefined : json['value'],
84
+ 'description': json['description'] == null ? undefined : json['description'],
85
+ 'inputMode': json['inputMode'] == null ? undefined : KeyValueInputModeEnumFromJSON(json['inputMode']),
86
+ 'notes': json['notes'] == null ? undefined : json['notes'],
76
87
  };
77
88
  }
78
89
 
79
- export function KeyValuePairToJSON(value?: KeyValuePair | null): any {
80
- if (value === undefined) {
81
- return undefined;
82
- }
83
- if (value === null) {
84
- return null;
90
+ export function KeyValuePairToJSON(json: any): KeyValuePair {
91
+ return KeyValuePairToJSONTyped(json, false);
92
+ }
93
+
94
+ export function KeyValuePairToJSONTyped(value?: KeyValuePair | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
85
97
  }
98
+
86
99
  return {
87
100
 
88
- 'key': value.key,
89
- 'value': value.value,
90
- 'description': value.description,
91
- 'inputMode': KeyValueInputModeEnumToJSON(value.inputMode),
92
- 'notes': value.notes,
101
+ 'key': value['key'],
102
+ 'value': value['value'],
103
+ 'description': value['description'],
104
+ 'inputMode': KeyValueInputModeEnumToJSON(value['inputMode']),
105
+ 'notes': value['notes'],
93
106
  };
94
107
  }
95
108