24 lines
369 B
TypeScript
24 lines
369 B
TypeScript
|
export type Provider = {
|
||
|
uuid: string
|
||
|
name: string
|
||
|
api: string
|
||
|
description?: string
|
||
|
price: PriceTable
|
||
|
}
|
||
|
|
||
|
type Unit = {
|
||
|
unit: string
|
||
|
count: number
|
||
|
}
|
||
|
|
||
|
type ComputingUnit = {
|
||
|
cpu: number | Unit
|
||
|
mem: number | Unit
|
||
|
persistence: number | Unit
|
||
|
bandwitch: number | Unit
|
||
|
}
|
||
|
|
||
|
type PriceTable = {
|
||
|
[x: string]: ComputingUnit | Unit
|
||
|
}
|