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