-
Notifications
You must be signed in to change notification settings - Fork 10
/
CheckOutputPermissionsResponse.ts
57 lines (49 loc) · 1.64 KB
/
CheckOutputPermissionsResponse.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
import {map, mapArray} from '../common/Mapper';
import OutputType from './OutputType';
/**
* @export
* @class CheckOutputPermissionsResponse
*/
export class CheckOutputPermissionsResponse {
/**
* Id of the output for which permissions were checked
* @type {string}
* @memberof CheckOutputPermissionsResponse
*/
public outputId?: string;
/**
* The type of the output for which permissions were checked
* @type {OutputType}
* @memberof CheckOutputPermissionsResponse
*/
public outputType?: OutputType;
/**
* The path on the storage for which permissions were checked. In AWS S3 terminology, this corresponds to a \"prefix\". An empty string corresponds to the root directory.
* @type {string}
* @memberof CheckOutputPermissionsResponse
*/
public path?: string;
/**
* Indicates if permissions on the storage are configured correctly to be used as output target by the Bitmovin encoder. If \"false\", *failureReason* will provide additional information.
* @type {boolean}
* @memberof CheckOutputPermissionsResponse
*/
public passed?: boolean;
/**
* Contains nothing if the check succeeded. Otherwise, contains a message explaining why it failed.
* @type {string}
* @memberof CheckOutputPermissionsResponse
*/
public failureReason?: string;
constructor(obj?: Partial<CheckOutputPermissionsResponse>) {
if(!obj) {
return;
}
this.outputId = map(obj.outputId);
this.outputType = map(obj.outputType);
this.path = map(obj.path);
this.passed = map(obj.passed);
this.failureReason = map(obj.failureReason);
}
}
export default CheckOutputPermissionsResponse;