-
Notifications
You must be signed in to change notification settings - Fork 10
/
AnalyticsVirtualLicense.ts
90 lines (78 loc) · 2.55 KB
/
AnalyticsVirtualLicense.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import {map, mapArray} from '../common/Mapper';
import AnalyticsLicenseCustomDataFieldLabels from './AnalyticsLicenseCustomDataFieldLabels';
import AnalyticsVirtualLicenseLicensesListItem from './AnalyticsVirtualLicenseLicensesListItem';
/**
* @export
* @class AnalyticsVirtualLicense
*/
export class AnalyticsVirtualLicense {
/**
* Analytics Virtual License Key/Id
* @type {string}
* @memberof AnalyticsVirtualLicense
*/
public id?: string;
/**
* Name of the Analytics Virtual License
* @type {string}
* @memberof AnalyticsVirtualLicense
*/
public name?: string;
/**
* The timezone of the Analytics Virtual License
* @type {string}
* @memberof AnalyticsVirtualLicense
*/
public timezone?: string;
/**
* Retention time of impressions, returned as ISO 8601 duration format: P(n)Y(n)M(n)DT(n)H(n)M(n)S
* @type {string}
* @memberof AnalyticsVirtualLicense
*/
public retentionTime?: string;
/**
* Retention time for compressed data, returned as ISO 8601 duration format: P(n)Y(n)M(n)DT(n)H(n)M(n)S
* @type {string}
* @memberof AnalyticsVirtualLicense
*/
public compressedRetentionTime?: string;
/**
* List of Analytics Licenses
* @type {AnalyticsVirtualLicenseLicensesListItem[]}
* @memberof AnalyticsVirtualLicense
*/
public licenses?: AnalyticsVirtualLicenseLicensesListItem[];
/**
* The number of customData fields available
* @type {number}
* @memberof AnalyticsVirtualLicense
*/
public customDataFieldsCount?: number;
/**
* Labels for Custom Data fields
* @type {AnalyticsLicenseCustomDataFieldLabels}
* @memberof AnalyticsVirtualLicense
*/
public customDataFieldLabels?: AnalyticsLicenseCustomDataFieldLabels;
/**
* The expiration date of the license if applicable, returned as ISO 8601 date-time format
* @type {Date}
* @memberof AnalyticsVirtualLicense
*/
public planExpiredAt?: Date;
constructor(obj?: Partial<AnalyticsVirtualLicense>) {
if(!obj) {
return;
}
this.id = map(obj.id);
this.name = map(obj.name);
this.timezone = map(obj.timezone);
this.retentionTime = map(obj.retentionTime);
this.compressedRetentionTime = map(obj.compressedRetentionTime);
this.licenses = mapArray(obj.licenses, AnalyticsVirtualLicenseLicensesListItem);
this.customDataFieldsCount = map(obj.customDataFieldsCount);
this.customDataFieldLabels = map(obj.customDataFieldLabels, AnalyticsLicenseCustomDataFieldLabels);
this.planExpiredAt = map(obj.planExpiredAt, Date);
}
}
export default AnalyticsVirtualLicense;