-
Notifications
You must be signed in to change notification settings - Fork 10
/
SimpleEncodingLiveJobResponse.ts
124 lines (108 loc) · 3.93 KB
/
SimpleEncodingLiveJobResponse.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import {map, mapArray} from '../common/Mapper';
import SimpleEncodingLiveCloudRegion from './SimpleEncodingLiveCloudRegion';
import SimpleEncodingLiveJobInput from './SimpleEncodingLiveJobInput';
import SimpleEncodingLiveJobOutput from './SimpleEncodingLiveJobOutput';
import SimpleEncodingLiveJobStatus from './SimpleEncodingLiveJobStatus';
import SimpleEncodingLiveProfile from './SimpleEncodingLiveProfile';
import SimpleEncodingVodJobErrors from './SimpleEncodingVodJobErrors';
/**
* @export
* @class SimpleEncodingLiveJobResponse
*/
export class SimpleEncodingLiveJobResponse {
/**
* The identifier of the Simple Encoding Live Job
* @type {string}
* @memberof SimpleEncodingLiveJobResponse
*/
public id?: string;
/**
* The current status of the Simple Encoding Live Job
* @type {SimpleEncodingLiveJobStatus}
* @memberof SimpleEncodingLiveJobResponse
*/
public status?: SimpleEncodingLiveJobStatus;
/**
* 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 SimpleEncodingLiveJobResponse
*/
public encodingId?: string;
/**
* The IP address of the encoder for this job request. This is only returned once the job execution has been successful and the encoding could be started. Ingest is expected to be sent to this IP address.
* @type {string}
* @memberof SimpleEncodingLiveJobResponse
*/
public encoderIp?: string;
/**
* Stream key of the live encoder
* @type {string}
* @memberof SimpleEncodingLiveJobResponse
*/
public streamKey?: string;
/**
* @type {SimpleEncodingLiveJobInput}
* @memberof SimpleEncodingLiveJobResponse
*/
public input?: SimpleEncodingLiveJobInput;
/**
* @type {SimpleEncodingLiveJobOutput[]}
* @memberof SimpleEncodingLiveJobResponse
*/
public outputs?: SimpleEncodingLiveJobOutput[];
/**
* Describes all the errors in cases the status of the job is 'error'.
* @type {SimpleEncodingVodJobErrors[]}
* @memberof SimpleEncodingLiveJobResponse
*/
public errors?: SimpleEncodingVodJobErrors[];
/**
* Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof SimpleEncodingLiveJobResponse
*/
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 SimpleEncodingLiveJobResponse
*/
public modifiedAt?: Date;
/**
* This property will be used for naming the encoding and the manifests.
* @type {string}
* @memberof SimpleEncodingLiveJobResponse
*/
public name?: string;
/**
* The cloud region that will be used for the live encoding
* @type {SimpleEncodingLiveCloudRegion}
* @memberof SimpleEncodingLiveJobResponse
*/
public cloudRegion?: SimpleEncodingLiveCloudRegion;
/**
* The profile that will be used for the live encoding.
* @type {SimpleEncodingLiveProfile}
* @memberof SimpleEncodingLiveJobResponse
*/
public encodingProfile?: SimpleEncodingLiveProfile;
constructor(obj?: Partial<SimpleEncodingLiveJobResponse>) {
if(!obj) {
return;
}
this.id = map(obj.id);
this.status = map(obj.status);
this.encodingId = map(obj.encodingId);
this.encoderIp = map(obj.encoderIp);
this.streamKey = map(obj.streamKey);
this.input = map(obj.input, SimpleEncodingLiveJobInput);
this.outputs = mapArray(obj.outputs, SimpleEncodingLiveJobOutput);
this.errors = mapArray(obj.errors, SimpleEncodingVodJobErrors);
this.createdAt = map(obj.createdAt, Date);
this.modifiedAt = map(obj.modifiedAt, Date);
this.name = map(obj.name);
this.cloudRegion = map(obj.cloudRegion);
this.encodingProfile = map(obj.encodingProfile);
}
}
export default SimpleEncodingLiveJobResponse;