aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/policy-metadata.ts
blob: 33e0185e33357030cf71c837dca751539a0b1173 (plain)
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
export class PolicyMetadata {
    public uniqueId: string;
    public type: string;
    public version: string;
    public description: string;
    public creationTime: number;
    public modificationTime: number;
    public highestVersion: boolean;
    public empty: boolean;

    deserialize (response): PolicyMetadata {
        this.uniqueId = response.uniqueId;
        this.type = response.type;
        this.version = response.version;
        this.description = response.description;
        this.creationTime = response.creationTime;
        this.modificationTime = response.modificationTime;
        this.highestVersion = response.highestVersion;
        this.empty = response.empty;

        return this;
    }
}

export interface PolicyTpes {
    policyTypes: Array<PolicyMetadata>;
    excludeMapping: ExcludedPolicyTypes;
}

export interface ExcludedPolicyTypes {
    componentType: string;
    excludedPolicyTypes: Array<string>;
}