blob: 3f489bbaabbd9e6edab42cf23d0c65cf330c1a08 [file] [log] [blame]
Michael Landoa5445102018-03-04 14:53:33 +02001export class PolicyMetadata {
2 public uniqueId: string;
Michael Lando5b593492018-07-29 16:13:45 +03003 public name:string;
4 public icon:string;
Michael Landoa5445102018-03-04 14:53:33 +02005 public type: string;
6 public version: string;
7 public description: string;
8 public creationTime: number;
9 public modificationTime: number;
10 public highestVersion: boolean;
11 public empty: boolean;
12
13 deserialize (response): PolicyMetadata {
14 this.uniqueId = response.uniqueId;
15 this.type = response.type;
Michael Lando5b593492018-07-29 16:13:45 +030016 this.name = response.name;
17 this.icon = response.icon;
Michael Landoa5445102018-03-04 14:53:33 +020018 this.version = response.version;
19 this.description = response.description;
20 this.creationTime = response.creationTime;
21 this.modificationTime = response.modificationTime;
22 this.highestVersion = response.highestVersion;
23 this.empty = response.empty;
24
25 return this;
26 }
27}
28
29export interface PolicyTpes {
30 policyTypes: Array<PolicyMetadata>;
31 excludeMapping: ExcludedPolicyTypes;
32}
33
34export interface ExcludedPolicyTypes {
35 componentType: string;
36 excludedPolicyTypes: Array<string>;
37}