f82310872afae8555a90992b882496ebfd7adcad
[ccsdk/cds.git] /
1 import { Any, JsonObject, JsonProperty } from 'json2typescript';
2
3 @JsonObject('topology_template')
4 export class TemplateTopology {
5     public content: string;
6 }
7
8 @JsonObject
9 export class VlbDefinition {
10
11     // tslint:disable-next-line:variable-name
12     tosca_definitions_version: string;
13     metadata: Metadata;
14     imports: Import[];
15     // tslint:disable-next-line: variable-name
16     dsl_definitions: DslContent;
17     // tslint:disable-next-line: variable-name
18     topology_template: TemplateTopology;
19 }
20
21 @JsonObject('dsl_definitions')
22 export class DslContent {
23
24 }
25 // Refactor varaibles name and use JsonConverteri
26 @JsonObject('metadata')
27 export class Metadata {
28     @JsonProperty('template_author')
29     // tslint:disable-next-line:variable-name
30     template_author: string;
31     'author-email': string;
32     'user-groups': string;
33     @JsonProperty('template_name')
34     // tslint:disable-next-line:variable-name
35     template_name: string;
36     @JsonProperty('template_version')
37     // tslint:disable-next-line:variable-name
38     template_version: string;
39     @JsonProperty('template_tag')
40     // tslint:disable-next-line:variable-name
41     template_tags: string;
42
43     @JsonProperty('dictionary_group')
44     // tslint:disable-next-line:variable-name
45     dictionary_group: string;
46     @JsonProperty('template_tags')
47     templateTags: string;
48     @JsonProperty('template_description')
49         // tslint:disable-next-line:variable-name
50     template_description: string;
51
52
53     /* @JsonProperty('custom_keys', {String}, false)
54      mapOfCustomKeys: Map<string, string> = new Map<string, string>();*/
55 }
56
57 export class Import {
58     file: string;
59 }