Skip to content

Commit 9d9926e

Browse files
committed
add DefaultDiskSizeGB for each provider
1 parent baa0b4e commit 9d9926e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

mongodbatlas/clusters.go

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,61 @@ type clustersResponse struct {
115115
TotalCount int `json:"totalCount,omitempty"`
116116
}
117117

118+
// DefaultDiskSizeGB represents the Tier and the default disk size for each one
119+
// it can be use like: DefaultDiskSizeGB["AWS"]["M10"]
120+
var DefaultDiskSizeGB map[string]map[string]float64 = map[string]map[string]float64{
121+
"TENANT": {
122+
"M2": 2,
123+
"M5": 5,
124+
},
125+
"AWS": {
126+
"M10": 10,
127+
"M20": 20,
128+
"M30": 40,
129+
"M40": 80,
130+
"R40": 80,
131+
"M40_NVME": 380,
132+
"M50": 160,
133+
"R50": 160,
134+
"M50_NVME": 760,
135+
"M60": 320,
136+
"R60": 320,
137+
"M60_NVME": 1600,
138+
"M80": 750,
139+
"R80": 750,
140+
"M80_NVME": 1600,
141+
"M140": 1000,
142+
"M200": 1500,
143+
"R200": 1500,
144+
"M200_NVME": 3100,
145+
"M300": 2000,
146+
"R300": 2000,
147+
"R400": 3000,
148+
"M400_NVME": 4000,
149+
},
150+
"GCP": {
151+
"M10": 10,
152+
"M20": 20,
153+
"M30": 40,
154+
"M40": 80,
155+
"M50": 160,
156+
"M60": 320,
157+
"M80": 750,
158+
"M200": 1500,
159+
"M300": 2200,
160+
},
161+
"AZURE": {
162+
"M10": 32,
163+
"M20": 32,
164+
"M30": 32,
165+
"M40": 128,
166+
"M50": 128,
167+
"M60": 128,
168+
"M80": 256,
169+
"M200": 256,
170+
},
171+
}
172+
118173
//List all clusters in the project associated to {GROUP-ID}.
119174
//See more: https://docs.atlas.mongodb.com/reference/api/clusters-get-all/
120175
func (s *ClustersServiceOp) List(ctx context.Context, groupID string, listOptions *ListOptions) ([]Cluster, *Response, error) {

0 commit comments

Comments
 (0)