-
Notifications
You must be signed in to change notification settings - Fork 10
/
EgressInformation.ts
48 lines (41 loc) · 1.01 KB
/
EgressInformation.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
import {map, mapArray} from '../common/Mapper';
import CloudRegion from './CloudRegion';
import EgressCategory from './EgressCategory';
import OutputType from './OutputType';
/**
* @export
* @class EgressInformation
*/
export class EgressInformation {
/**
* @type {EgressCategory}
* @memberof EgressInformation
*/
public category?: EgressCategory;
/**
* The number of bytes that have been transferred to the output (required)
* @type {number}
* @memberof EgressInformation
*/
public bytes?: number;
/**
* @type {OutputType}
* @memberof EgressInformation
*/
public outputType?: OutputType;
/**
* @type {CloudRegion}
* @memberof EgressInformation
*/
public outputRegion?: CloudRegion;
constructor(obj?: Partial<EgressInformation>) {
if(!obj) {
return;
}
this.category = map(obj.category);
this.bytes = map(obj.bytes);
this.outputType = map(obj.outputType);
this.outputRegion = map(obj.outputRegion);
}
}
export default EgressInformation;