-
Notifications
You must be signed in to change notification settings - Fork 434
/
types.go
37 lines (31 loc) · 982 Bytes
/
types.go
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
package gcpcomputepricing
type Pricing struct {
Gcp GCP `json:"gcp"`
}
type GCP struct {
Compute Compute `json:"compute"`
}
type Compute struct {
GCE GCE `json:"gce"`
PersistentDisk PersistentDisk `json:"persistent_disk"`
Gpus GPUs `json:"gpus"`
LocalSSD LocalSSD `json:"local_ssd"`
Hyperdisk Hyperdisk `json:"hyperdisk"`
VMImageStorage VMImageStorage `json:"vm_image_storage"`
CloudTPU CloudTPU `json:"cloud_tpu"`
ComputeSolutions ComputeSolutions `json:"compute_solutions"`
}
type Subtype struct {
Description string `json:"description"`
Regions map[string]Region `json:"regions"`
}
type Region struct {
Prices []Price `json:"price"`
Name string `json:"name"`
InternalName string `json:"internal_name"`
}
type Price struct {
Val uint64 `json:"val"`
Currency string `json:"currency"`
Nanos uint64 `json:"nanos"`
}