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