@tapis/tapis-typescript-sk 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 +16 -6
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -4
- package/dist/apis/AdminApi.d.ts +26 -0
- package/dist/apis/AdminApi.js +128 -0
- package/dist/apis/GeneralApi.d.ts +25 -16
- package/dist/apis/GeneralApi.js +72 -23
- package/dist/apis/RoleApi.d.ts +99 -76
- package/dist/apis/RoleApi.js +540 -340
- package/dist/apis/ShareApi.d.ts +110 -0
- package/dist/apis/ShareApi.js +469 -0
- package/dist/apis/UserApi.d.ts +84 -126
- package/dist/apis/UserApi.js +467 -538
- package/dist/apis/VaultApi.d.ts +52 -49
- package/dist/apis/VaultApi.js +413 -341
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -6
- package/dist/models/Options.d.ts +8 -3
- package/dist/models/Options.js +23 -15
- package/dist/models/ReqAddChildRole.d.ts +11 -6
- package/dist/models/ReqAddChildRole.js +33 -19
- package/dist/models/ReqAddRolePermission.d.ts +18 -6
- package/dist/models/ReqAddRolePermission.js +36 -19
- package/dist/models/ReqCreateRole.d.ts +18 -6
- package/dist/models/ReqCreateRole.js +36 -19
- package/dist/models/ReqGrantRole.d.ts +51 -0
- package/dist/models/ReqGrantRole.js +62 -0
- package/dist/models/ReqGrantRoleWithPermission.d.ts +57 -0
- package/dist/models/ReqGrantRoleWithPermission.js +66 -0
- package/dist/models/ReqGrantUserPermission.d.ts +11 -6
- package/dist/models/ReqGrantUserPermission.js +33 -19
- package/dist/models/ReqPreviewPathPrefix.d.ts +19 -7
- package/dist/models/ReqPreviewPathPrefix.js +46 -27
- package/dist/models/ReqRemoveChildRole.d.ts +11 -6
- package/dist/models/ReqRemoveChildRole.js +33 -19
- package/dist/models/ReqRemovePermissionFromAllRoles.d.ts +38 -0
- package/dist/models/ReqRemovePermissionFromAllRoles.js +55 -0
- package/dist/models/ReqRemoveRolePermission.d.ts +18 -6
- package/dist/models/ReqRemoveRolePermission.js +36 -19
- package/dist/models/ReqReplacePathPrefix.d.ts +19 -7
- package/dist/models/ReqReplacePathPrefix.js +46 -27
- package/dist/models/ReqRevokeRole.d.ts +51 -0
- package/dist/models/ReqRevokeRole.js +62 -0
- package/dist/models/ReqRevokeUserPermission.d.ts +11 -6
- package/dist/models/ReqRevokeUserPermission.js +33 -19
- package/dist/models/ReqRolePermits.d.ts +45 -0
- package/dist/models/ReqRolePermits.js +60 -0
- package/dist/models/ReqShareResource.d.ts +68 -0
- package/dist/models/ReqShareResource.js +73 -0
- package/dist/models/ReqUpdateRoleDescription.d.ts +17 -5
- package/dist/models/ReqUpdateRoleDescription.js +32 -17
- package/dist/models/ReqUpdateRoleName.d.ts +17 -5
- package/dist/models/ReqUpdateRoleName.js +32 -17
- package/dist/models/ReqUpdateRoleOwner.d.ts +17 -5
- package/dist/models/ReqUpdateRoleOwner.js +34 -19
- package/dist/models/ReqUserHasRole.d.ts +18 -6
- package/dist/models/ReqUserHasRole.js +38 -21
- package/dist/models/ReqUserHasRoleMulti.d.ts +11 -6
- package/dist/models/ReqUserHasRoleMulti.js +35 -21
- package/dist/models/ReqUserIsAdmin.d.ts +10 -5
- package/dist/models/ReqUserIsAdmin.js +29 -17
- package/dist/models/ReqUserIsPermitted.d.ts +11 -6
- package/dist/models/ReqUserIsPermitted.js +35 -21
- package/dist/models/ReqUserIsPermittedMulti.d.ts +11 -6
- package/dist/models/ReqUserIsPermittedMulti.js +35 -21
- package/dist/models/ReqValidatePwd.d.ts +44 -0
- package/dist/models/ReqValidatePwd.js +59 -0
- package/dist/models/ReqVersions.d.ts +11 -6
- package/dist/models/ReqVersions.js +33 -19
- package/dist/models/ReqWriteSecret.d.ts +12 -7
- package/dist/models/ReqWriteSecret.js +36 -22
- package/dist/models/RespAuthorized.d.ts +27 -4
- package/dist/models/RespAuthorized.js +36 -22
- package/dist/models/RespBasic.d.ts +26 -3
- package/dist/models/RespBasic.js +35 -21
- package/dist/models/RespBoolean.d.ts +69 -0
- package/dist/models/RespBoolean.js +62 -0
- package/dist/models/RespChangeCount.d.ts +27 -4
- package/dist/models/RespChangeCount.js +36 -22
- package/dist/models/RespName.d.ts +27 -4
- package/dist/models/RespName.js +36 -22
- package/dist/models/RespNameArray.d.ts +27 -4
- package/dist/models/RespNameArray.js +36 -22
- package/dist/models/RespPathPrefixes.d.ts +27 -4
- package/dist/models/RespPathPrefixes.js +36 -22
- package/dist/models/RespProbe.d.ts +27 -4
- package/dist/models/RespProbe.js +36 -22
- package/dist/models/RespResourceUrl.d.ts +27 -4
- package/dist/models/RespResourceUrl.js +36 -22
- package/dist/models/RespRole.d.ts +27 -4
- package/dist/models/RespRole.js +36 -22
- package/dist/models/RespSecret.d.ts +27 -4
- package/dist/models/RespSecret.js +36 -22
- package/dist/models/RespSecretList.d.ts +27 -4
- package/dist/models/RespSecretList.js +36 -22
- package/dist/models/RespSecretMeta.d.ts +27 -4
- package/dist/models/RespSecretMeta.js +36 -22
- package/dist/models/RespSecretVersionMetadata.d.ts +27 -4
- package/dist/models/RespSecretVersionMetadata.js +36 -22
- package/dist/models/RespShare.d.ts +69 -0
- package/dist/models/RespShare.js +62 -0
- package/dist/models/RespShareList.d.ts +69 -0
- package/dist/models/RespShareList.js +62 -0
- package/dist/models/RespVersions.d.ts +26 -3
- package/dist/models/RespVersions.js +35 -21
- package/dist/models/ResultAuthorized.d.ts +8 -3
- package/dist/models/ResultAuthorized.js +23 -15
- package/dist/models/ResultBoolean.d.ts +32 -0
- package/dist/models/ResultBoolean.js +49 -0
- package/dist/models/ResultChangeCount.d.ts +8 -3
- package/dist/models/ResultChangeCount.js +23 -15
- package/dist/models/ResultName.d.ts +8 -3
- package/dist/models/ResultName.js +23 -15
- package/dist/models/ResultNameArray.d.ts +8 -3
- package/dist/models/ResultNameArray.js +23 -15
- package/dist/models/ResultResourceUrl.d.ts +8 -3
- package/dist/models/ResultResourceUrl.js +23 -15
- package/dist/models/RoleTypeEnum.d.ts +28 -0
- package/dist/models/RoleTypeEnum.js +54 -0
- package/dist/models/SkProbe.d.ts +8 -21
- package/dist/models/SkProbe.js +23 -21
- package/dist/models/SkRole.d.ts +19 -7
- package/dist/models/SkRole.js +48 -37
- package/dist/models/SkSecret.d.ts +9 -4
- package/dist/models/SkSecret.js +26 -18
- package/dist/models/SkSecretList.d.ts +8 -3
- package/dist/models/SkSecretList.js +25 -17
- package/dist/models/SkSecretMetadata.d.ts +8 -3
- package/dist/models/SkSecretMetadata.js +29 -21
- package/dist/models/SkSecretVersion.d.ts +8 -3
- package/dist/models/SkSecretVersion.js +29 -21
- package/dist/models/SkSecretVersionMetadata.d.ts +9 -4
- package/dist/models/SkSecretVersionMetadata.js +34 -26
- package/dist/models/SkShare.d.ts +92 -0
- package/dist/models/SkShare.js +69 -0
- package/dist/models/SkShareList.d.ts +33 -0
- package/dist/models/SkShareList.js +50 -0
- package/dist/models/Transformation.d.ts +8 -3
- package/dist/models/Transformation.js +27 -19
- package/dist/models/index.d.ts +14 -6
- package/dist/models/index.js +75 -56
- package/dist/runtime.d.ts +80 -38
- package/dist/runtime.js +313 -171
- package/package.json +6 -2
- package/src/apis/AdminApi.ts +63 -0
- package/src/apis/GeneralApi.ts +48 -24
- package/src/apis/RoleApi.ts +374 -220
- package/src/apis/ShareApi.ts +418 -0
- package/src/apis/UserApi.ts +258 -383
- package/src/apis/VaultApi.ts +347 -275
- package/src/apis/index.ts +2 -0
- package/src/index.ts +2 -2
- package/src/models/Options.ts +21 -12
- package/src/models/ReqAddChildRole.ts +31 -19
- package/src/models/ReqAddRolePermission.ts +49 -19
- package/src/models/ReqCreateRole.ts +49 -19
- package/src/models/ReqGrantRole.ts +102 -0
- package/src/models/ReqGrantRoleWithPermission.ts +111 -0
- package/src/models/ReqGrantUserPermission.ts +31 -19
- package/src/models/ReqPreviewPathPrefix.ts +59 -28
- package/src/models/ReqRemoveChildRole.ts +31 -19
- package/src/models/ReqRemovePermissionFromAllRoles.ts +75 -0
- package/src/models/ReqRemoveRolePermission.ts +49 -19
- package/src/models/ReqReplacePathPrefix.ts +59 -28
- package/src/models/ReqRevokeRole.ts +102 -0
- package/src/models/ReqRevokeUserPermission.ts +31 -19
- package/src/models/ReqRolePermits.ts +94 -0
- package/src/models/ReqShareResource.ts +119 -0
- package/src/models/ReqUpdateRoleDescription.ts +45 -16
- package/src/models/ReqUpdateRoleName.ts +45 -16
- package/src/models/ReqUpdateRoleOwner.ts +47 -18
- package/src/models/ReqUserHasRole.ts +51 -21
- package/src/models/ReqUserHasRoleMulti.ts +33 -21
- package/src/models/ReqUserIsAdmin.ts +27 -16
- package/src/models/ReqUserIsPermitted.ts +33 -21
- package/src/models/ReqUserIsPermittedMulti.ts +33 -21
- package/src/models/ReqValidatePwd.ts +84 -0
- package/src/models/ReqVersions.ts +31 -19
- package/src/models/ReqWriteSecret.ts +36 -23
- package/src/models/RespAuthorized.ts +54 -20
- package/src/models/RespBasic.ts +51 -18
- package/src/models/RespBoolean.ts +121 -0
- package/src/models/RespChangeCount.ts +54 -20
- package/src/models/RespName.ts +54 -20
- package/src/models/RespNameArray.ts +54 -20
- package/src/models/RespPathPrefixes.ts +54 -20
- package/src/models/RespProbe.ts +54 -20
- package/src/models/RespResourceUrl.ts +54 -20
- package/src/models/RespRole.ts +54 -20
- package/src/models/RespSecret.ts +54 -20
- package/src/models/RespSecretList.ts +54 -20
- package/src/models/RespSecretMeta.ts +54 -20
- package/src/models/RespSecretVersionMetadata.ts +54 -20
- package/src/models/RespShare.ts +121 -0
- package/src/models/RespShareList.ts +121 -0
- package/src/models/RespVersions.ts +51 -18
- package/src/models/ResultAuthorized.ts +21 -12
- package/src/models/ResultBoolean.ts +65 -0
- package/src/models/ResultChangeCount.ts +21 -12
- package/src/models/ResultName.ts +21 -12
- package/src/models/ResultNameArray.ts +21 -12
- package/src/models/ResultResourceUrl.ts +21 -12
- package/src/models/RoleTypeEnum.ts +56 -0
- package/src/models/SkProbe.ts +21 -36
- package/src/models/SkRole.ts +65 -38
- package/src/models/SkSecret.ts +26 -16
- package/src/models/SkSecretList.ts +23 -14
- package/src/models/SkSecretMetadata.ts +27 -18
- package/src/models/SkSecretVersion.ts +27 -18
- package/src/models/SkSecretVersionMetadata.ts +34 -24
- package/src/models/SkShare.ts +145 -0
- package/src/models/SkShareList.ts +73 -0
- package/src/models/Transformation.ts +25 -16
- package/src/models/index.ts +14 -6
- package/src/runtime.ts +219 -108
- package/dist/models/ReqGrantAdminRole.d.ts +0 -33
- package/dist/models/ReqGrantAdminRole.js +0 -43
- package/dist/models/ReqGrantUserRole.d.ts +0 -39
- package/dist/models/ReqGrantUserRole.js +0 -45
- package/dist/models/ReqGrantUserRoleWithPermission.d.ts +0 -45
- package/dist/models/ReqGrantUserRoleWithPermission.js +0 -47
- package/dist/models/ReqRevokeAdminRole.d.ts +0 -33
- package/dist/models/ReqRevokeAdminRole.js +0 -43
- package/dist/models/ReqRevokeUserRole.d.ts +0 -39
- package/dist/models/ReqRevokeUserRole.js +0 -45
- package/dist/models/ReqValidateServicePwd.d.ts +0 -39
- package/dist/models/ReqValidateServicePwd.js +0 -45
- package/src/models/ReqGrantAdminRole.ts +0 -64
- package/src/models/ReqGrantUserRole.ts +0 -72
- package/src/models/ReqGrantUserRoleWithPermission.ts +0 -80
- package/src/models/ReqRevokeAdminRole.ts +0 -64
- package/src/models/ReqRevokeUserRole.ts +0 -72
- package/src/models/ReqValidateServicePwd.ts +0 -72
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tapis Security API
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.8.2
|
|
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 { 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
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResultBoolean interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResultBoolean(value: object): value is ResultBoolean {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ResultBooleanFromJSON(json: any): ResultBoolean {
|
|
38
|
+
return ResultBooleanFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ResultBooleanFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultBoolean {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'aBool': json['aBool'] == null ? undefined : json['aBool'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ResultBooleanToJSON(json: any): ResultBoolean {
|
|
52
|
+
return ResultBooleanToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResultBooleanToJSONTyped(value?: ResultBoolean | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'aBool': value['aBool'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Tapis Security API
|
|
5
|
-
* The Tapis Security API provides
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.8.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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -27,30 +27,39 @@ export interface ResultChangeCount {
|
|
|
27
27
|
changes?: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResultChangeCount interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResultChangeCount(value: object): value is ResultChangeCount {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export function ResultChangeCountFromJSON(json: any): ResultChangeCount {
|
|
31
38
|
return ResultChangeCountFromJSONTyped(json, false);
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export function ResultChangeCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultChangeCount {
|
|
35
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
36
43
|
return json;
|
|
37
44
|
}
|
|
38
45
|
return {
|
|
39
46
|
|
|
40
|
-
'changes':
|
|
47
|
+
'changes': json['changes'] == null ? undefined : json['changes'],
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
export function ResultChangeCountToJSON(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
export function ResultChangeCountToJSON(json: any): ResultChangeCount {
|
|
52
|
+
return ResultChangeCountToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResultChangeCountToJSONTyped(value?: ResultChangeCount | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
50
58
|
}
|
|
59
|
+
|
|
51
60
|
return {
|
|
52
61
|
|
|
53
|
-
'changes': value
|
|
62
|
+
'changes': value['changes'],
|
|
54
63
|
};
|
|
55
64
|
}
|
|
56
65
|
|
package/src/models/ResultName.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Tapis Security API
|
|
5
|
-
* The Tapis Security API provides
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.8.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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -27,30 +27,39 @@ export interface ResultName {
|
|
|
27
27
|
name?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResultName interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResultName(value: object): value is ResultName {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export function ResultNameFromJSON(json: any): ResultName {
|
|
31
38
|
return ResultNameFromJSONTyped(json, false);
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export function ResultNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultName {
|
|
35
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
36
43
|
return json;
|
|
37
44
|
}
|
|
38
45
|
return {
|
|
39
46
|
|
|
40
|
-
'name':
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
export function ResultNameToJSON(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
export function ResultNameToJSON(json: any): ResultName {
|
|
52
|
+
return ResultNameToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResultNameToJSONTyped(value?: ResultName | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
50
58
|
}
|
|
59
|
+
|
|
51
60
|
return {
|
|
52
61
|
|
|
53
|
-
'name': value
|
|
62
|
+
'name': value['name'],
|
|
54
63
|
};
|
|
55
64
|
}
|
|
56
65
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Tapis Security API
|
|
5
|
-
* The Tapis Security API provides
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.8.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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -27,30 +27,39 @@ export interface ResultNameArray {
|
|
|
27
27
|
names?: Array<string>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResultNameArray interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResultNameArray(value: object): value is ResultNameArray {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export function ResultNameArrayFromJSON(json: any): ResultNameArray {
|
|
31
38
|
return ResultNameArrayFromJSONTyped(json, false);
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export function ResultNameArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultNameArray {
|
|
35
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
36
43
|
return json;
|
|
37
44
|
}
|
|
38
45
|
return {
|
|
39
46
|
|
|
40
|
-
'names':
|
|
47
|
+
'names': json['names'] == null ? undefined : json['names'],
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
export function ResultNameArrayToJSON(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
export function ResultNameArrayToJSON(json: any): ResultNameArray {
|
|
52
|
+
return ResultNameArrayToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResultNameArrayToJSONTyped(value?: ResultNameArray | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
50
58
|
}
|
|
59
|
+
|
|
51
60
|
return {
|
|
52
61
|
|
|
53
|
-
'names': value
|
|
62
|
+
'names': value['names'],
|
|
54
63
|
};
|
|
55
64
|
}
|
|
56
65
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Tapis Security API
|
|
5
|
-
* The Tapis Security API provides
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.8.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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -27,30 +27,39 @@ export interface ResultResourceUrl {
|
|
|
27
27
|
url?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResultResourceUrl interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResultResourceUrl(value: object): value is ResultResourceUrl {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export function ResultResourceUrlFromJSON(json: any): ResultResourceUrl {
|
|
31
38
|
return ResultResourceUrlFromJSONTyped(json, false);
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export function ResultResourceUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultResourceUrl {
|
|
35
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
36
43
|
return json;
|
|
37
44
|
}
|
|
38
45
|
return {
|
|
39
46
|
|
|
40
|
-
'url':
|
|
47
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
export function ResultResourceUrlToJSON(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
export function ResultResourceUrlToJSON(json: any): ResultResourceUrl {
|
|
52
|
+
return ResultResourceUrlToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResultResourceUrlToJSONTyped(value?: ResultResourceUrl | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
50
58
|
}
|
|
59
|
+
|
|
51
60
|
return {
|
|
52
61
|
|
|
53
|
-
'url': value
|
|
62
|
+
'url': value['url'],
|
|
54
63
|
};
|
|
55
64
|
}
|
|
56
65
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tapis Security API
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.8.2
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const RoleTypeEnum = {
|
|
21
|
+
User: 'USER',
|
|
22
|
+
UserDefault: 'USER_DEFAULT',
|
|
23
|
+
RestrictedSvc: 'RESTRICTED_SVC',
|
|
24
|
+
TenantAdmin: 'TENANT_ADMIN',
|
|
25
|
+
SiteAdmin: 'SITE_ADMIN'
|
|
26
|
+
} as const;
|
|
27
|
+
export type RoleTypeEnum = typeof RoleTypeEnum[keyof typeof RoleTypeEnum];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function instanceOfRoleTypeEnum(value: any): boolean {
|
|
31
|
+
for (const key in RoleTypeEnum) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(RoleTypeEnum, key)) {
|
|
33
|
+
if (RoleTypeEnum[key as keyof typeof RoleTypeEnum] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function RoleTypeEnumFromJSON(json: any): RoleTypeEnum {
|
|
42
|
+
return RoleTypeEnumFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RoleTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleTypeEnum {
|
|
46
|
+
return json as RoleTypeEnum;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RoleTypeEnumToJSON(value?: RoleTypeEnum | null): any {
|
|
50
|
+
return value as any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RoleTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): RoleTypeEnum {
|
|
54
|
+
return value as RoleTypeEnum;
|
|
55
|
+
}
|
|
56
|
+
|
package/src/models/SkProbe.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Tapis Security API
|
|
5
|
-
* The Tapis Security API provides
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.8.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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -25,24 +25,13 @@ export interface SkProbe {
|
|
|
25
25
|
* @memberof SkProbe
|
|
26
26
|
*/
|
|
27
27
|
checkNum?: number;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof SkProbe
|
|
38
|
-
*/
|
|
39
|
-
vaultAccess?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {boolean}
|
|
43
|
-
* @memberof SkProbe
|
|
44
|
-
*/
|
|
45
|
-
tenantsAccess?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SkProbe interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSkProbe(value: object): value is SkProbe {
|
|
34
|
+
return true;
|
|
46
35
|
}
|
|
47
36
|
|
|
48
37
|
export function SkProbeFromJSON(json: any): SkProbe {
|
|
@@ -50,31 +39,27 @@ export function SkProbeFromJSON(json: any): SkProbe {
|
|
|
50
39
|
}
|
|
51
40
|
|
|
52
41
|
export function SkProbeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkProbe {
|
|
53
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
54
43
|
return json;
|
|
55
44
|
}
|
|
56
45
|
return {
|
|
57
46
|
|
|
58
|
-
'checkNum':
|
|
59
|
-
'databaseAccess': !exists(json, 'databaseAccess') ? undefined : json['databaseAccess'],
|
|
60
|
-
'vaultAccess': !exists(json, 'vaultAccess') ? undefined : json['vaultAccess'],
|
|
61
|
-
'tenantsAccess': !exists(json, 'tenantsAccess') ? undefined : json['tenantsAccess'],
|
|
47
|
+
'checkNum': json['checkNum'] == null ? undefined : json['checkNum'],
|
|
62
48
|
};
|
|
63
49
|
}
|
|
64
50
|
|
|
65
|
-
export function SkProbeToJSON(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
51
|
+
export function SkProbeToJSON(json: any): SkProbe {
|
|
52
|
+
return SkProbeToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SkProbeToJSONTyped(value?: SkProbe | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
71
58
|
}
|
|
59
|
+
|
|
72
60
|
return {
|
|
73
61
|
|
|
74
|
-
'checkNum': value
|
|
75
|
-
'databaseAccess': value.databaseAccess,
|
|
76
|
-
'vaultAccess': value.vaultAccess,
|
|
77
|
-
'tenantsAccess': value.tenantsAccess,
|
|
62
|
+
'checkNum': value['checkNum'],
|
|
78
63
|
};
|
|
79
64
|
}
|
|
80
65
|
|
package/src/models/SkRole.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Tapis Security API
|
|
5
|
-
* The Tapis Security API provides
|
|
5
|
+
* The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.8.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,7 +12,15 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RoleTypeEnum } from './RoleTypeEnum';
|
|
17
|
+
import {
|
|
18
|
+
RoleTypeEnumFromJSON,
|
|
19
|
+
RoleTypeEnumFromJSONTyped,
|
|
20
|
+
RoleTypeEnumToJSON,
|
|
21
|
+
RoleTypeEnumToJSONTyped,
|
|
22
|
+
} from './RoleTypeEnum';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,16 +29,16 @@ import { exists, mapValues } from '../runtime';
|
|
|
21
29
|
export interface SkRole {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
25
33
|
* @memberof SkRole
|
|
26
34
|
*/
|
|
27
|
-
|
|
35
|
+
tenant?: string;
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
|
-
* @type {
|
|
38
|
+
* @type {RoleTypeEnum}
|
|
31
39
|
* @memberof SkRole
|
|
32
40
|
*/
|
|
33
|
-
|
|
41
|
+
type?: RoleTypeEnum;
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
44
|
* @type {string}
|
|
@@ -91,6 +99,21 @@ export interface SkRole {
|
|
|
91
99
|
* @memberof SkRole
|
|
92
100
|
*/
|
|
93
101
|
updatedbyTenant?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof SkRole
|
|
106
|
+
*/
|
|
107
|
+
hasChildren?: boolean;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the SkRole interface.
|
|
114
|
+
*/
|
|
115
|
+
export function instanceOfSkRole(value: object): value is SkRole {
|
|
116
|
+
return true;
|
|
94
117
|
}
|
|
95
118
|
|
|
96
119
|
export function SkRoleFromJSON(json: any): SkRole {
|
|
@@ -98,47 +121,51 @@ export function SkRoleFromJSON(json: any): SkRole {
|
|
|
98
121
|
}
|
|
99
122
|
|
|
100
123
|
export function SkRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkRole {
|
|
101
|
-
if (
|
|
124
|
+
if (json == null) {
|
|
102
125
|
return json;
|
|
103
126
|
}
|
|
104
127
|
return {
|
|
105
128
|
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'name':
|
|
109
|
-
'description':
|
|
110
|
-
'owner':
|
|
111
|
-
'ownerTenant':
|
|
112
|
-
'created':
|
|
113
|
-
'createdby':
|
|
114
|
-
'createdbyTenant':
|
|
115
|
-
'updated':
|
|
116
|
-
'updatedby':
|
|
117
|
-
'updatedbyTenant':
|
|
129
|
+
'tenant': json['tenant'] == null ? undefined : json['tenant'],
|
|
130
|
+
'type': json['type'] == null ? undefined : RoleTypeEnumFromJSON(json['type']),
|
|
131
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
132
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
133
|
+
'owner': json['owner'] == null ? undefined : json['owner'],
|
|
134
|
+
'ownerTenant': json['ownerTenant'] == null ? undefined : json['ownerTenant'],
|
|
135
|
+
'created': json['created'] == null ? undefined : json['created'],
|
|
136
|
+
'createdby': json['createdby'] == null ? undefined : json['createdby'],
|
|
137
|
+
'createdbyTenant': json['createdbyTenant'] == null ? undefined : json['createdbyTenant'],
|
|
138
|
+
'updated': json['updated'] == null ? undefined : json['updated'],
|
|
139
|
+
'updatedby': json['updatedby'] == null ? undefined : json['updatedby'],
|
|
140
|
+
'updatedbyTenant': json['updatedbyTenant'] == null ? undefined : json['updatedbyTenant'],
|
|
141
|
+
'hasChildren': json['hasChildren'] == null ? undefined : json['hasChildren'],
|
|
118
142
|
};
|
|
119
143
|
}
|
|
120
144
|
|
|
121
|
-
export function SkRoleToJSON(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
export function SkRoleToJSON(json: any): SkRole {
|
|
146
|
+
return SkRoleToJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function SkRoleToJSONTyped(value?: SkRole | null, ignoreDiscriminator: boolean = false): any {
|
|
150
|
+
if (value == null) {
|
|
151
|
+
return value;
|
|
127
152
|
}
|
|
153
|
+
|
|
128
154
|
return {
|
|
129
155
|
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'name': value
|
|
133
|
-
'description': value
|
|
134
|
-
'owner': value
|
|
135
|
-
'ownerTenant': value
|
|
136
|
-
'created': value
|
|
137
|
-
'createdby': value
|
|
138
|
-
'createdbyTenant': value
|
|
139
|
-
'updated': value
|
|
140
|
-
'updatedby': value
|
|
141
|
-
'updatedbyTenant': value
|
|
156
|
+
'tenant': value['tenant'],
|
|
157
|
+
'type': RoleTypeEnumToJSON(value['type']),
|
|
158
|
+
'name': value['name'],
|
|
159
|
+
'description': value['description'],
|
|
160
|
+
'owner': value['owner'],
|
|
161
|
+
'ownerTenant': value['ownerTenant'],
|
|
162
|
+
'created': value['created'],
|
|
163
|
+
'createdby': value['createdby'],
|
|
164
|
+
'createdbyTenant': value['createdbyTenant'],
|
|
165
|
+
'updated': value['updated'],
|
|
166
|
+
'updatedby': value['updatedby'],
|
|
167
|
+
'updatedbyTenant': value['updatedbyTenant'],
|
|
168
|
+
'hasChildren': value['hasChildren'],
|
|
142
169
|
};
|
|
143
170
|
}
|
|
144
171
|
|