-
Notifications
You must be signed in to change notification settings - Fork 10
/
AnalyticsVirtualLicenseRequest.ts
50 lines (43 loc) · 1.48 KB
/
AnalyticsVirtualLicenseRequest.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
import {map, mapArray} from '../common/Mapper';
import AnalyticsLicenseCustomDataFieldLabels from './AnalyticsLicenseCustomDataFieldLabels';
import AnalyticsVirtualLicenseLicensesListItem from './AnalyticsVirtualLicenseLicensesListItem';
/**
* @export
* @class AnalyticsVirtualLicenseRequest
*/
export class AnalyticsVirtualLicenseRequest {
/**
* Name of the Analytics Virtual License (required)
* @type {string}
* @memberof AnalyticsVirtualLicenseRequest
*/
public name?: string;
/**
* The timezone of the Analytics Virtual License (required)
* @type {string}
* @memberof AnalyticsVirtualLicenseRequest
*/
public timezone?: string;
/**
* List of Analytics Licenses (required)
* @type {AnalyticsVirtualLicenseLicensesListItem[]}
* @memberof AnalyticsVirtualLicenseRequest
*/
public licenses?: AnalyticsVirtualLicenseLicensesListItem[];
/**
* Labels for Custom Data fields
* @type {AnalyticsLicenseCustomDataFieldLabels}
* @memberof AnalyticsVirtualLicenseRequest
*/
public customDataFieldLabels?: AnalyticsLicenseCustomDataFieldLabels;
constructor(obj?: Partial<AnalyticsVirtualLicenseRequest>) {
if(!obj) {
return;
}
this.name = map(obj.name);
this.timezone = map(obj.timezone);
this.licenses = mapArray(obj.licenses, AnalyticsVirtualLicenseLicensesListItem);
this.customDataFieldLabels = map(obj.customDataFieldLabels, AnalyticsLicenseCustomDataFieldLabels);
}
}
export default AnalyticsVirtualLicenseRequest;