-
Notifications
You must be signed in to change notification settings - Fork 10
/
GcsServiceAccountOutput.ts
52 lines (45 loc) · 1.32 KB
/
GcsServiceAccountOutput.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
import {map, mapArray} from '../common/Mapper';
import AclEntry from './AclEntry';
import GoogleCloudRegion from './GoogleCloudRegion';
import Output from './Output';
import OutputType from './OutputType';
/**
* @export
* @class GcsServiceAccountOutput
*/
export class GcsServiceAccountOutput extends Output {
/**
* Discriminator property for Output
* @type {string}
* @memberof GcsServiceAccountOutput
*/
public readonly type: OutputType = OutputType.GCS_SERVICE_ACCOUNT;
/**
* GCS projectId (required)
* @type {string}
* @memberof GcsServiceAccountOutput
*/
public serviceAccountCredentials?: string;
/**
* Name of the bucket (required)
* @type {string}
* @memberof GcsServiceAccountOutput
*/
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 GcsServiceAccountOutput
*/
public cloudRegion?: GoogleCloudRegion;
constructor(obj?: Partial<GcsServiceAccountOutput>) {
super(obj);
if(!obj) {
return;
}
this.serviceAccountCredentials = map(obj.serviceAccountCredentials);
this.bucketName = map(obj.bucketName);
this.cloudRegion = map(obj.cloudRegion);
}
}
export default GcsServiceAccountOutput;