forked from cloudforet-io/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.ts
25 lines (23 loc) · 814 Bytes
/
create.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
import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type {
BudgetNotification, BudgetPlannedLimit, BudgetTimeUnit,
} from '@/api-clients/cost-analysis/budget/schema/type';
import type { Currency } from '@/store/display/type';
export interface BudgetCreateParameters {
name?: string;
limit?: number;
planned_limits?: BudgetPlannedLimit[];
currency: Currency;
time_unit: BudgetTimeUnit;
start: string;
end: string;
notification?: BudgetNotification;
tags?: Tags;
resource_group: Extract<ResourceGroupType, 'WORKSPACE'|'PROJECT'>;
workspace_id?: string;
project_id?: string;
service_account_id?: string;
budget_manager_id?: string;
budget_year?: string;
}