1 import { Any, JsonObject, JsonProperty } from 'json2typescript';
3 @JsonObject('topology_template')
4 export class TemplateTopology {
5 public content: string;
9 export class VlbDefinition {
11 // tslint:disable-next-line:variable-name
12 tosca_definitions_version: string;
15 // tslint:disable-next-line: variable-name
16 dsl_definitions: DslContent;
17 // tslint:disable-next-line: variable-name
18 topology_template: TemplateTopology;
21 @JsonObject('dsl_definitions')
22 export class DslContent {
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;
43 @JsonProperty('dictionary_group')
44 // tslint:disable-next-line:variable-name
45 dictionary_group: string;
46 @JsonProperty('template_tags')
48 @JsonProperty('template_description')
49 // tslint:disable-next-line:variable-name
50 template_description: string;
53 /* @JsonProperty('custom_keys', {String}, false)
54 mapOfCustomKeys: Map<string, string> = new Map<string, string>();*/