-
Notifications
You must be signed in to change notification settings - Fork 10
/
SimpleEncodingVodJobResponse.ts
108 lines (94 loc) · 3.34 KB
/
SimpleEncodingVodJobResponse.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import {map, mapArray} from '../common/Mapper';
import EncodingTemplate from './EncodingTemplate';
import SimpleEncodingVodJobErrors from './SimpleEncodingVodJobErrors';
import SimpleEncodingVodJobInput from './SimpleEncodingVodJobInput';
import SimpleEncodingVodJobOptions from './SimpleEncodingVodJobOptions';
import SimpleEncodingVodJobOutput from './SimpleEncodingVodJobOutput';
import SimpleEncodingVodJobStatus from './SimpleEncodingVodJobStatus';
/**
* @export
* @class SimpleEncodingVodJobResponse
*/
export class SimpleEncodingVodJobResponse {
/**
* The identifier of the Simple Encoding VOD Job
* @type {string}
* @memberof SimpleEncodingVodJobResponse
*/
public id?: string;
/**
* The current status of the Simple Encoding VOD Job
* @type {SimpleEncodingVodJobStatus}
* @memberof SimpleEncodingVodJobResponse
*/
public status?: SimpleEncodingVodJobStatus;
/**
* The template that has been used for the encoding.
* @type {EncodingTemplate}
* @memberof SimpleEncodingVodJobResponse
*/
public encodingTemplate?: EncodingTemplate;
/**
* The identifier of the encoding that has been created based on the job request. This is only returned once the job execution has been successful and the encoding could be started.
* @type {string}
* @memberof SimpleEncodingVodJobResponse
*/
public encodingId?: string;
/**
* @type {SimpleEncodingVodJobInput[]}
* @memberof SimpleEncodingVodJobResponse
*/
public inputs?: SimpleEncodingVodJobInput[];
/**
* @type {SimpleEncodingVodJobOutput[]}
* @memberof SimpleEncodingVodJobResponse
*/
public outputs?: SimpleEncodingVodJobOutput[];
/**
* Options to customize the Simple Encoding Job
* @type {SimpleEncodingVodJobOptions}
* @memberof SimpleEncodingVodJobResponse
*/
public options?: SimpleEncodingVodJobOptions;
/**
* Describes all the errors in cases the status of the job is 'error'.
* @type {SimpleEncodingVodJobErrors[]}
* @memberof SimpleEncodingVodJobResponse
*/
public errors?: SimpleEncodingVodJobErrors[];
/**
* Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof SimpleEncodingVodJobResponse
*/
public createdAt?: Date;
/**
* Modified timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ. The job is updated for example when the status changes
* @type {Date}
* @memberof SimpleEncodingVodJobResponse
*/
public modifiedAt?: Date;
/**
* This property will be used for naming the encoding and the manifests.
* @type {string}
* @memberof SimpleEncodingVodJobResponse
*/
public name?: string;
constructor(obj?: Partial<SimpleEncodingVodJobResponse>) {
if(!obj) {
return;
}
this.id = map(obj.id);
this.status = map(obj.status);
this.encodingTemplate = map(obj.encodingTemplate);
this.encodingId = map(obj.encodingId);
this.inputs = mapArray(obj.inputs, SimpleEncodingVodJobInput);
this.outputs = mapArray(obj.outputs, SimpleEncodingVodJobOutput);
this.options = map(obj.options, SimpleEncodingVodJobOptions);
this.errors = mapArray(obj.errors, SimpleEncodingVodJobErrors);
this.createdAt = map(obj.createdAt, Date);
this.modifiedAt = map(obj.modifiedAt, Date);
this.name = map(obj.name);
}
}
export default SimpleEncodingVodJobResponse;