-
Notifications
You must be signed in to change notification settings - Fork 10
/
GceAccount.ts
42 lines (36 loc) · 1007 Bytes
/
GceAccount.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
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
/**
* @export
* @class GceAccount
*/
export class GceAccount extends BitmovinResource {
/**
* Email address of the Google service account that will be used to spin up VMs (required)
* @type {string}
* @memberof GceAccount
*/
public serviceAccountEmail?: string;
/**
* Google private key of the Google service account that will be used to spin up VMs (required)
* @type {string}
* @memberof GceAccount
*/
public privateKey?: string;
/**
* ID of the GCP project in which the VMs are supposed to run. (required)
* @type {string}
* @memberof GceAccount
*/
public projectId?: string;
constructor(obj?: Partial<GceAccount>) {
super(obj);
if(!obj) {
return;
}
this.serviceAccountEmail = map(obj.serviceAccountEmail);
this.privateKey = map(obj.privateKey);
this.projectId = map(obj.projectId);
}
}
export default GceAccount;