-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloud-account.ts
35 lines (31 loc) · 926 Bytes
/
cloud-account.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
/**
* Cloud account object
* @param id The id of the cloud account
* @param name The name of the cloud account
* @param provider The provider of the cloud account
* @param status The status of the cloud account
* @param accessKeyId The access key id of the cloud account
*/
export type CloudAccountResponse = {
id: number,
name: string,
provider: string,
status: CloudAccountStatus,
accessKeyId?: string,
[key: string]: any
};
/**
* The cloud account providers
* @param AWS Amazon Web Services provider
* @param GCP Google Cloud Platform provider
*/
export type CloudAccountProvider = 'AWS' | 'GCP';
/**
* The cloud account status
* @param active Active status
* @param draft Pending status
* @param change-draft Pending change status
* @param error Error status
* @param 404 Deleted status
*/
export type CloudAccountStatus = 'active' | 'draft' | 'change-draft' | 'error' | 404;