-
Notifications
You must be signed in to change notification settings - Fork 10
/
AzureAccount.ts
42 lines (36 loc) · 1.01 KB
/
AzureAccount.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 AzureAccount
*/
export class AzureAccount extends BitmovinResource {
/**
* Your Azure Subscription ID (The ID of your subscription where you intend to run the Encoding VMs) (required)
* @type {string}
* @memberof AzureAccount
*/
public subscriptionId?: string;
/**
* The name of the resource group where you intend to run the Encoding VMs (required)
* @type {string}
* @memberof AzureAccount
*/
public resourceGroupId?: string;
/**
* The ID of your Active Directory where your subscription runs in (required)
* @type {string}
* @memberof AzureAccount
*/
public tenantId?: string;
constructor(obj?: Partial<AzureAccount>) {
super(obj);
if(!obj) {
return;
}
this.subscriptionId = map(obj.subscriptionId);
this.resourceGroupId = map(obj.resourceGroupId);
this.tenantId = map(obj.tenantId);
}
}
export default AzureAccount;