-
Notifications
You must be signed in to change notification settings - Fork 10
/
GcsInput.ts
59 lines (51 loc) · 1.25 KB
/
GcsInput.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
import {map, mapArray} from '../common/Mapper';
import GoogleCloudRegion from './GoogleCloudRegion';
import Input from './Input';
import InputType from './InputType';
/**
* @export
* @class GcsInput
*/
export class GcsInput extends Input {
/**
* Discriminator property for Input
* @type {string}
* @memberof GcsInput
*/
public readonly type: InputType = InputType.GCS;
/**
* Name of the bucket (required)
* @type {string}
* @memberof GcsInput
*/
public bucketName?: string;
/**
* The cloud region in which the bucket is located. Is used to determine the ideal location for your encodings automatically.
* @type {GoogleCloudRegion}
* @memberof GcsInput
*/
public cloudRegion?: GoogleCloudRegion;
/**
* GCS access key (required)
* @type {string}
* @memberof GcsInput
*/
public accessKey?: string;
/**
* GCS secret key (required)
* @type {string}
* @memberof GcsInput
*/
public secretKey?: string;
constructor(obj?: Partial<GcsInput>) {
super(obj);
if(!obj) {
return;
}
this.bucketName = map(obj.bucketName);
this.cloudRegion = map(obj.cloudRegion);
this.accessKey = map(obj.accessKey);
this.secretKey = map(obj.secretKey);
}
}
export default GcsInput;