-
Notifications
You must be signed in to change notification settings - Fork 10
/
EncodingOutput.ts
41 lines (35 loc) · 1021 Bytes
/
EncodingOutput.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
import {map, mapArray} from '../common/Mapper';
import AclEntry from './AclEntry';
/**
* @export
* @class EncodingOutput
*/
export class EncodingOutput {
/**
* Id of the corresponding output (required)
* @type {string}
* @memberof EncodingOutput
*/
public outputId?: string;
/**
* Subdirectory where to save the files to (required)
* @type {string}
* @memberof EncodingOutput
*/
public outputPath?: string;
/**
* Determines accessibility of files written to this output. Only applies to output types that support ACLs. Defaults to PUBLIC_READ if the list is empty. The destination (e.g. cloud storage bucket) needs to allow the configured ACL
* @type {AclEntry[]}
* @memberof EncodingOutput
*/
public acl?: AclEntry[];
constructor(obj?: Partial<EncodingOutput>) {
if(!obj) {
return;
}
this.outputId = map(obj.outputId);
this.outputPath = map(obj.outputPath);
this.acl = mapArray(obj.acl, AclEntry);
}
}
export default EncodingOutput;