/
IPublishedTemplate.ts
133 lines (118 loc) · 2.75 KB
/
IPublishedTemplate.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
import { IExplanationMap } from "@zowe/imperative";
/**
* Interface for z/OSMF API response.
* @export
* @interface IPublishedTemplate
*/
export interface IPublishedTemplate {
/**
* Name of a template.
* @type {string}
* @memberof IPublishedTemplate
*/
name: string;
/**
* Version of a template.
* @type {string}
* @memberof IPublishedTemplate
*/
version: string;
/**
* Template owner ID.
* @type {string}
* @memberof IPublishedTemplate
*/
owner: string;
/**
* Status of a template.
* @type {string}
* @memberof IPublishedTemplate
*/
state: string;
/**
* Description of a template.
* @type {string}
* @memberof IPublishedTemplate
*/
description: string;
/**
* Generated name for a template.
* @type {string}
* @memberof IPublishedTemplate
*/
"generated-name": string;
/**
* The ID that identifies a template.
* @type {string}
* @memberof IPublishedTemplate
*/
"object-id": string;
/**
* The domain the template is associated with.
* @type {string}
* @memberof IPublishedTemplate
*/
"domain-name": string;
/**
* Name of the software that is being provisioned.
* @type {string}
* @memberof IPublishedTemplate
*/
"software-name": string;
}
/**
* Local explanation map for summary
* @memberof IPublishedTemplate
*/
const prettySummary: {
[key: string]: string;
} = {
"name": "Name",
"version": "Version",
"owner": "Owner",
"state": "State",
"description": "Description",
"generated-name": "Generated Name",
"object-id": "Object Id"
};
/**
* Local explanation map for full
* @memberof IPublishedTemplate
*/
const prettyFull: {
[key: string]: string;
} = {
...prettySummary,
"domain-name": "Domain Name",
"software-name": "Software Name"
};
/**
* Main explanation map object for summary output
* @type {IExplanationMap}
* @memberof IPublishedTemplate
*/
export const explainPublishedTemplateSummary: IExplanationMap = {
...prettySummary,
explainedParentKey: "Published Templates",
ignoredKeys: null
};
/**
* Main explanation map object for full output
* @type {IExplanationMap}
* @memberof IPublishedTemplate
*/
export const explainPublishedTemplateFull: IExplanationMap = {
...prettyFull,
explainedParentKey: "Published Templates",
ignoredKeys: null
};