Merge lp:~axwalk/gwacl/rolesizes-fix-dg-names into lp:gwacl

Proposed by Andrew Wilkins
Status: Merged
Approved by: Ian Booth
Approved revision: 241
Merged at revision: 241
Proposed branch: lp:~axwalk/gwacl/rolesizes-fix-dg-names
Merge into: lp:gwacl
Diff against target: 1086 lines (+473/-444)
2 files modified
rolesizes.go (+469/-442)
rolesizes_test.go (+4/-2)
To merge this branch: bzr merge lp:~axwalk/gwacl/rolesizes-fix-dg-names
Reviewer Review Type Date Requested Status
Ian Booth Approve
Review via email: mp+243478@code.launchpad.net

Commit message

Fix role size names

D1 should be Standard_D1, etc. I've added aliases so we
can improve the user experience.

Description of the change

Fix role size names

D1 should be Standard_D1, etc. I've added aliases so we
can improve the user experience.

To post a comment you must log in.
Revision history for this message
Ian Booth (wallyworld) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'rolesizes.go'
--- rolesizes.go 2014-12-02 00:36:45 +0000
+++ rolesizes.go 2014-12-03 02:15:59 +0000
@@ -26,7 +26,16 @@
26//26//
27// Sizes and costs last updated 2014-06-23.27// Sizes and costs last updated 2014-06-23.
28type RoleSize struct {28type RoleSize struct {
29 Name string29 // Name is the name that Azure assigns to role sizes.
30 Name string
31
32 // Alias is an alternative name for the role size. This may be empty.
33 //
34 // Alias exists because the canonical role size names are inconsistent.
35 // There are currently three different formats for "standard" role sizes:
36 // e.g. ExtraSmall, A6, Standard_D1.
37 Alias string
38
30 CpuCores uint6439 CpuCores uint64
31 Mem uint64 // In MB40 Mem uint64 // In MB
32 OSDiskSpace uint64 // In MB41 OSDiskSpace uint64 // In MB
@@ -85,35 +94,40 @@
8594
86// Standard tier roles.95// Standard tier roles.
87var standardRoleSizes = []RoleSize{{ // A0..A4: general purpose96var standardRoleSizes = []RoleSize{{ // A0..A4: general purpose
88 Name: "ExtraSmall", // A097 Name: "ExtraSmall",
89 CpuCores: 1, // shared98 Alias: "A0",
99 CpuCores: 1, // shared
90 Mem: 768 * MB,100 Mem: 768 * MB,
91 OSDiskSpace: 127 * GB,101 OSDiskSpace: 127 * GB,
92 TempDiskSpace: 20 * GB,102 TempDiskSpace: 20 * GB,
93 MaxDataDisks: 1,103 MaxDataDisks: 1,
94}, {104}, {
95 Name: "Small", // A1105 Name: "Small",
106 Alias: "A1",
96 CpuCores: 1,107 CpuCores: 1,
97 Mem: 1.75 * GB,108 Mem: 1.75 * GB,
98 OSDiskSpace: 127 * GB,109 OSDiskSpace: 127 * GB,
99 TempDiskSpace: 70 * GB,110 TempDiskSpace: 70 * GB,
100 MaxDataDisks: 2,111 MaxDataDisks: 2,
101}, {112}, {
102 Name: "Medium", // A2113 Name: "Medium",
114 Alias: "A2",
103 CpuCores: 2,115 CpuCores: 2,
104 Mem: 3.5 * GB,116 Mem: 3.5 * GB,
105 OSDiskSpace: 127 * GB,117 OSDiskSpace: 127 * GB,
106 TempDiskSpace: 135 * GB,118 TempDiskSpace: 135 * GB,
107 MaxDataDisks: 4,119 MaxDataDisks: 4,
108}, {120}, {
109 Name: "Large", // A3121 Name: "Large",
122 Alias: "A3",
110 CpuCores: 4,123 CpuCores: 4,
111 Mem: 7 * GB,124 Mem: 7 * GB,
112 OSDiskSpace: 127 * GB,125 OSDiskSpace: 127 * GB,
113 TempDiskSpace: 285 * GB,126 TempDiskSpace: 285 * GB,
114 MaxDataDisks: 8,127 MaxDataDisks: 8,
115}, {128}, {
116 Name: "ExtraLarge", // A4129 Name: "ExtraLarge",
130 Alias: "A4",
117 CpuCores: 8,131 CpuCores: 8,
118 Mem: 14 * GB,132 Mem: 14 * GB,
119 OSDiskSpace: 127 * GB,133 OSDiskSpace: 127 * GB,
@@ -155,552 +169,565 @@
155 TempDiskSpace: 382 * GB,169 TempDiskSpace: 382 * GB,
156 MaxDataDisks: 16,170 MaxDataDisks: 16,
157}, { // D Series - xeon v3 and ssd local171}, { // D Series - xeon v3 and ssd local
158 Name: "D1",172 Name: "Standard_D1",
173 Alias: "D1",
159 CpuCores: 1,174 CpuCores: 1,
160 Mem: 3.5 * GB,175 Mem: 3.5 * GB,
161 OSDiskSpace: 127 * GB,176 OSDiskSpace: 127 * GB,
162 TempDiskSpace: 50 * GB,177 TempDiskSpace: 50 * GB,
163 MaxDataDisks: 2,178 MaxDataDisks: 2,
164}, {179}, {
165 Name: "D2",180 Name: "Standard_D2",
181 Alias: "D2",
166 CpuCores: 2,182 CpuCores: 2,
167 Mem: 7 * GB,183 Mem: 7 * GB,
168 OSDiskSpace: 127 * GB,184 OSDiskSpace: 127 * GB,
169 TempDiskSpace: 100 * GB,185 TempDiskSpace: 100 * GB,
170 MaxDataDisks: 4,186 MaxDataDisks: 4,
171}, {187}, {
172 Name: "D3",188 Name: "Standard_D3",
189 Alias: "D3",
173 CpuCores: 4,190 CpuCores: 4,
174 Mem: 14 * GB,191 Mem: 14 * GB,
175 OSDiskSpace: 127 * GB,192 OSDiskSpace: 127 * GB,
176 TempDiskSpace: 200 * GB,193 TempDiskSpace: 200 * GB,
177 MaxDataDisks: 8,194 MaxDataDisks: 8,
178}, {195}, {
179 Name: "D4",196 Name: "Standard_D4",
197 Alias: "D4",
180 CpuCores: 8,198 CpuCores: 8,
181 Mem: 28 * GB,199 Mem: 28 * GB,
182 OSDiskSpace: 127 * GB,200 OSDiskSpace: 127 * GB,
183 TempDiskSpace: 400 * GB,201 TempDiskSpace: 400 * GB,
184 MaxDataDisks: 16,202 MaxDataDisks: 16,
185}, {203}, {
186 Name: "D11",204 Name: "Standard_D11",
205 Alias: "D11",
187 CpuCores: 2,206 CpuCores: 2,
188 Mem: 14 * GB,207 Mem: 14 * GB,
189 OSDiskSpace: 127 * GB,208 OSDiskSpace: 127 * GB,
190 TempDiskSpace: 100 * GB,209 TempDiskSpace: 100 * GB,
191 MaxDataDisks: 4,210 MaxDataDisks: 4,
192}, {211}, {
193 Name: "D12",212 Name: "Standard_D12",
213 Alias: "D12",
194 CpuCores: 4,214 CpuCores: 4,
195 Mem: 28 * GB,215 Mem: 28 * GB,
196 OSDiskSpace: 127 * GB,216 OSDiskSpace: 127 * GB,
197 TempDiskSpace: 200 * GB,217 TempDiskSpace: 200 * GB,
198 MaxDataDisks: 8,218 MaxDataDisks: 8,
199}, {219}, {
200 Name: "D13",220 Name: "Standard_D13",
221 Alias: "D12",
201 CpuCores: 8,222 CpuCores: 8,
202 Mem: 56 * GB,223 Mem: 56 * GB,
203 OSDiskSpace: 127 * GB,224 OSDiskSpace: 127 * GB,
204 TempDiskSpace: 400 * GB,225 TempDiskSpace: 400 * GB,
205 MaxDataDisks: 16,226 MaxDataDisks: 16,
206}, {227}, {
207 Name: "D14",228 Name: "Standard_D14",
229 Alias: "D12",
208 CpuCores: 16,230 CpuCores: 16,
209 Mem: 112 * GB,231 Mem: 112 * GB,
210 OSDiskSpace: 127 * GB,232 OSDiskSpace: 127 * GB,
211 TempDiskSpace: 800 * GB,233 TempDiskSpace: 800 * GB,
212 MaxDataDisks: 16,234 MaxDataDisks: 16,
213}, { // G Series Large Compute + SSD Local235}, { // G Series Large Compute + SSD Local
214 Name: "G1",236 Name: "Standard_G1",
237 Alias: "G1",
215 CpuCores: 2,238 CpuCores: 2,
216 Mem: 28 * GB,239 Mem: 28 * GB,
217 OSDiskSpace: 127 * GB,240 OSDiskSpace: 127 * GB,
218 TempDiskSpace: 406 * GB,241 TempDiskSpace: 406 * GB,
219 MaxDataDisks: 4,242 MaxDataDisks: 4,
220}, {243}, {
221 Name: "G2",244 Name: "Standard_G2",
245 Alias: "G2",
222 CpuCores: 4,246 CpuCores: 4,
223 Mem: 56 * GB,247 Mem: 56 * GB,
224 OSDiskSpace: 127 * GB,248 OSDiskSpace: 127 * GB,
225 TempDiskSpace: 812 * GB,249 TempDiskSpace: 812 * GB,
226 MaxDataDisks: 8,250 MaxDataDisks: 8,
227}, {251}, {
228 Name: "G3",252 Name: "Standard_G3",
253 Alias: "G3",
229 CpuCores: 8,254 CpuCores: 8,
230 Mem: 112 * GB,255 Mem: 112 * GB,
231 OSDiskSpace: 127 * GB,256 OSDiskSpace: 127 * GB,
232 TempDiskSpace: 1630 * GB,257 TempDiskSpace: 1630 * GB,
233 MaxDataDisks: 16,258 MaxDataDisks: 16,
234}, {259}, {
235 Name: "G4",260 Name: "Standard_G4",
261 Alias: "G4",
236 CpuCores: 16,262 CpuCores: 16,
237 Mem: 224 * GB,263 Mem: 224 * GB,
238 OSDiskSpace: 127 * GB,264 OSDiskSpace: 127 * GB,
239 TempDiskSpace: 3250 * GB,265 TempDiskSpace: 3250 * GB,
240 MaxDataDisks: 16,266 MaxDataDisks: 16,
241}, {267}, {
242 Name: "G5",268 Name: "Standard_G5",
269 Alias: "G5",
243 CpuCores: 32,270 CpuCores: 32,
244 Mem: 448 * GB,271 Mem: 448 * GB,
245 OSDiskSpace: 127 * GB,272 OSDiskSpace: 127 * GB,
246 TempDiskSpace: 6500 * GB,273 TempDiskSpace: 6500 * GB,
247 MaxDataDisks: 16},274 MaxDataDisks: 16,
248}275}}
249276
250// RoleSizes describes all known role sizes.277// RoleSizes describes all known role sizes.
251var RoleSizes = append(append([]RoleSize{}, basicRoleSizes...), standardRoleSizes...)278var RoleSizes = append(append([]RoleSize{}, basicRoleSizes...), standardRoleSizes...)
252279
253var allRegionRoleCosts = map[string]map[string]decicentsPerHour{280var allRegionRoleCosts = map[string]map[string]decicentsPerHour{
254 "East US": {281 "East US": {
255 "Basic_A0": 18,282 "Basic_A0": 18,
256 "Basic_A1": 44,283 "Basic_A1": 44,
257 "Basic_A2": 88,284 "Basic_A2": 88,
258 "Basic_A3": 176,285 "Basic_A3": 176,
259 "Basic_A4": 352,286 "Basic_A4": 352,
260 "ExtraSmall": 20,287 "ExtraSmall": 20,
261 "Small": 60,288 "Small": 60,
262 "Medium": 120,289 "Medium": 120,
263 "Large": 240,290 "Large": 240,
264 "ExtraLarge": 480,291 "ExtraLarge": 480,
265 "A5": 250,292 "A5": 250,
266 "A6": 500,293 "A6": 500,
267 "A7": 1000,294 "A7": 1000,
268 "A8": 1970,295 "A8": 1970,
269 "A9": 4470,296 "A9": 4470,
270 "D1": 94,297 "Standard_D1": 94,
271 "D2": 188,298 "Standard_D2": 188,
272 "D3": 376,299 "Standard_D3": 376,
273 "D4": 752,300 "Standard_D4": 752,
274 "D11": 238,301 "Standard_D11": 238,
275 "D12": 476,302 "Standard_D12": 476,
276 "D13": 857,303 "Standard_D13": 857,
277 "D14": 1542,304 "Standard_D14": 1542,
278 "G1": 8940, // Estimate, price is not public305 "Standard_G1": 8940, // Estimate, price is not public
279 "G2": 8950, // Estimate, price is not public306 "Standard_G2": 8950, // Estimate, price is not public
280 "G3": 8960, // Estimate, price is not public307 "Standard_G3": 8960, // Estimate, price is not public
281 "G4": 8970, // Estimate, price is not public308 "Standard_G4": 8970, // Estimate, price is not public
282 "G5": 8980, // Estimate, price is not public309 "Standard_G5": 8980, // Estimate, price is not public
283 },310 },
284 "East US 2": {311 "East US 2": {
285 "Basic_A0": 18,312 "Basic_A0": 18,
286 "Basic_A1": 44,313 "Basic_A1": 44,
287 "Basic_A2": 88,314 "Basic_A2": 88,
288 "Basic_A3": 176,315 "Basic_A3": 176,
289 "Basic_A4": 352,316 "Basic_A4": 352,
290 "ExtraSmall": 20,317 "ExtraSmall": 20,
291 "Small": 60,318 "Small": 60,
292 "Medium": 120,319 "Medium": 120,
293 "Large": 240,320 "Large": 240,
294 "ExtraLarge": 480,321 "ExtraLarge": 480,
295 "A5": 220,322 "A5": 220,
296 "A6": 440,323 "A6": 440,
297 "A7": 880,324 "A7": 880,
298 "A8": 1970,325 "A8": 1970,
299 "A9": 4470,326 "A9": 4470,
300 "D1": 85,327 "Standard_D1": 85,
301 "D2": 170,328 "Standard_D2": 170,
302 "D3": 340,329 "Standard_D3": 340,
303 "D4": 680,330 "Standard_D4": 680,
304 "D11": 214,331 "Standard_D11": 214,
305 "D12": 428,332 "Standard_D12": 428,
306 "D13": 770,333 "Standard_D13": 770,
307 "D14": 1387,334 "Standard_D14": 1387,
308 "G1": 8940, // Estimate, price is not public335 "Standard_G1": 8940, // Estimate, price is not public
309 "G2": 8950, // Estimate, price is not public336 "Standard_G2": 8950, // Estimate, price is not public
310 "G3": 8960, // Estimate, price is not public337 "Standard_G3": 8960, // Estimate, price is not public
311 "G4": 8970, // Estimate, price is not public338 "Standard_G4": 8970, // Estimate, price is not public
312 "G5": 8980, // Estimate, price is not public339 "Standard_G5": 8980, // Estimate, price is not public
313 },340 },
314 "West US": {341 "West US": {
315 "Basic_A0": 18,342 "Basic_A0": 18,
316 "Basic_A1": 47,343 "Basic_A1": 47,
317 "Basic_A2": 94,344 "Basic_A2": 94,
318 "Basic_A3": 188,345 "Basic_A3": 188,
319 "Basic_A4": 376,346 "Basic_A4": 376,
320 "ExtraSmall": 20,347 "ExtraSmall": 20,
321 "Small": 60,348 "Small": 60,
322 "Medium": 120,349 "Medium": 120,
323 "Large": 240,350 "Large": 240,
324 "ExtraLarge": 480,351 "ExtraLarge": 480,
325 "A5": 250,352 "A5": 250,
326 "A6": 500,353 "A6": 500,
327 "A7": 1000,354 "A7": 1000,
328 "A8": 1970,355 "A8": 1970,
329 "A9": 4470,356 "A9": 4470,
330 "D1": 94,357 "Standard_D1": 94,
331 "D2": 188,358 "Standard_D2": 188,
332 "D3": 376,359 "Standard_D3": 376,
333 "D4": 752,360 "Standard_D4": 752,
334 "D11": 238,361 "Standard_D11": 238,
335 "D12": 476,362 "Standard_D12": 476,
336 "D13": 857,363 "Standard_D13": 857,
337 "D14": 1542,364 "Standard_D14": 1542,
338 "G1": 8940, // Estimate, price is not public365 "Standard_G1": 8940, // Estimate, price is not public
339 "G2": 8950, // Estimate, price is not public366 "Standard_G2": 8950, // Estimate, price is not public
340 "G3": 8960, // Estimate, price is not public367 "Standard_G3": 8960, // Estimate, price is not public
341 "G4": 8970, // Estimate, price is not public368 "Standard_G4": 8970, // Estimate, price is not public
342 "G5": 8980, // Estimate, price is not public369 "Standard_G5": 8980, // Estimate, price is not public
343 },370 },
344371
345 "Central US": {372 "Central US": {
346 "Basic_A0": 18,373 "Basic_A0": 18,
347 "Basic_A1": 60,374 "Basic_A1": 60,
348 "Basic_A2": 94,375 "Basic_A2": 94,
349 "Basic_A3": 188,376 "Basic_A3": 188,
350 "Basic_A4": 376,377 "Basic_A4": 376,
351 "ExtraSmall": 20,378 "ExtraSmall": 20,
352 "Small": 60,379 "Small": 60,
353 "Medium": 120,380 "Medium": 120,
354 "Large": 240,381 "Large": 240,
355 "ExtraLarge": 480,382 "ExtraLarge": 480,
356 "A5": 250,383 "A5": 250,
357 "A6": 500,384 "A6": 500,
358 "A7": 1000,385 "A7": 1000,
359 "A8": 1970,386 "A8": 1970,
360 "A9": 4470,387 "A9": 4470,
361 "D1": 94,388 "Standard_D1": 94,
362 "D2": 188,389 "Standard_D2": 188,
363 "D3": 376,390 "Standard_D3": 376,
364 "D4": 752,391 "Standard_D4": 752,
365 "D11": 238,392 "Standard_D11": 238,
366 "D12": 476,393 "Standard_D12": 476,
367 "D13": 857,394 "Standard_D13": 857,
368 "D14": 1542,395 "Standard_D14": 1542,
369 "G1": 8940, // Estimate, price is not public396 "Standard_G1": 8940, // Estimate, price is not public
370 "G2": 8950, // Estimate, price is not public397 "Standard_G2": 8950, // Estimate, price is not public
371 "G3": 8960, // Estimate, price is not public398 "Standard_G3": 8960, // Estimate, price is not public
372 "G4": 8970, // Estimate, price is not public399 "Standard_G4": 8970, // Estimate, price is not public
373 "G5": 8980, // Estimate, price is not public400 "Standard_G5": 8980, // Estimate, price is not public
374 },401 },
375 "North Central US": {402 "North Central US": {
376 "Basic_A0": 18,403 "Basic_A0": 18,
377 "Basic_A1": 47,404 "Basic_A1": 47,
378 "Basic_A2": 94,405 "Basic_A2": 94,
379 "Basic_A3": 188,406 "Basic_A3": 188,
380 "Basic_A4": 376,407 "Basic_A4": 376,
381 "ExtraSmall": 20,408 "ExtraSmall": 20,
382 "Small": 60,409 "Small": 60,
383 "Medium": 120,410 "Medium": 120,
384 "Large": 240,411 "Large": 240,
385 "ExtraLarge": 480,412 "ExtraLarge": 480,
386 "A5": 250,413 "A5": 250,
387 "A6": 500,414 "A6": 500,
388 "A7": 1000,415 "A7": 1000,
389 "A8": 1970,416 "A8": 1970,
390 "A9": 4470,417 "A9": 4470,
391 "D1": 94,418 "Standard_D1": 94,
392 "D2": 188,419 "Standard_D2": 188,
393 "D3": 376,420 "Standard_D3": 376,
394 "D4": 752,421 "Standard_D4": 752,
395 "D11": 238,422 "Standard_D11": 238,
396 "D12": 476,423 "Standard_D12": 476,
397 "D13": 857,424 "Standard_D13": 857,
398 "D14": 1542,425 "Standard_D14": 1542,
399 "G1": 8940, // Estimate, price is not public426 "Standard_G1": 8940, // Estimate, price is not public
400 "G2": 8950, // Estimate, price is not public427 "Standard_G2": 8950, // Estimate, price is not public
401 "G3": 8960, // Estimate, price is not public428 "Standard_G3": 8960, // Estimate, price is not public
402 "G4": 8970, // Estimate, price is not public429 "Standard_G4": 8970, // Estimate, price is not public
403 "G5": 8980, // Estimate, price is not public430 "Standard_G5": 8980, // Estimate, price is not public
404 },431 },
405 "South Central US": {432 "South Central US": {
406 "Basic_A0": 18,433 "Basic_A0": 18,
407 "Basic_A1": 44,434 "Basic_A1": 44,
408 "Basic_A2": 88,435 "Basic_A2": 88,
409 "Basic_A3": 176,436 "Basic_A3": 176,
410 "Basic_A4": 352,437 "Basic_A4": 352,
411 "ExtraSmall": 20,438 "ExtraSmall": 20,
412 "Small": 60,439 "Small": 60,
413 "Medium": 120,440 "Medium": 120,
414 "Large": 240,441 "Large": 240,
415 "ExtraLarge": 480,442 "ExtraLarge": 480,
416 "A5": 220,443 "A5": 220,
417 "A6": 440,444 "A6": 440,
418 "A7": 880,445 "A7": 880,
419 "A8": 1970,446 "A8": 1970,
420 "A9": 4470,447 "A9": 4470,
421 "D1": 85,448 "Standard_D1": 85,
422 "D2": 170,449 "Standard_D2": 170,
423 "D3": 340,450 "Standard_D3": 340,
424 "D4": 680,451 "Standard_D4": 680,
425 "D11": 214,452 "Standard_D11": 214,
426 "D12": 428,453 "Standard_D12": 428,
427 "D13": 770,454 "Standard_D13": 770,
428 "D14": 1387,455 "Standard_D14": 1387,
429 "G1": 8940, // Estimate, price is not public456 "Standard_G1": 8940, // Estimate, price is not public
430 "G2": 8950, // Estimate, price is not public457 "Standard_G2": 8950, // Estimate, price is not public
431 "G3": 8960, // Estimate, price is not public458 "Standard_G3": 8960, // Estimate, price is not public
432 "G4": 8970, // Estimate, price is not public459 "Standard_G4": 8970, // Estimate, price is not public
433 "G5": 8980, // Estimate, price is not public460 "Standard_G5": 8980, // Estimate, price is not public
434 },461 },
435 "North Europe": {462 "North Europe": {
436 "Basic_A0": 18,463 "Basic_A0": 18,
437 "Basic_A1": 47,464 "Basic_A1": 47,
438 "Basic_A2": 94,465 "Basic_A2": 94,
439 "Basic_A3": 188,466 "Basic_A3": 188,
440 "Basic_A4": 376,467 "Basic_A4": 376,
441 "ExtraSmall": 20,468 "ExtraSmall": 20,
442 "Small": 60,469 "Small": 60,
443 "Medium": 120,470 "Medium": 120,
444 "Large": 240,471 "Large": 240,
445 "ExtraLarge": 480,472 "ExtraLarge": 480,
446 "A5": 248,473 "A5": 248,
447 "A6": 496,474 "A6": 496,
448 "A7": 992,475 "A7": 992,
449 "A8": 1970,476 "A8": 1970,
450 "A9": 4470,477 "A9": 4470,
451 "D1": 94,478 "Standard_D1": 94,
452 "D2": 188,479 "Standard_D2": 188,
453 "D3": 376,480 "Standard_D3": 376,
454 "D4": 752,481 "Standard_D4": 752,
455 "D11": 238,482 "Standard_D11": 238,
456 "D12": 476,483 "Standard_D12": 476,
457 "D13": 857,484 "Standard_D13": 857,
458 "D14": 1542,485 "Standard_D14": 1542,
459 "G1": 8940, // Estimate, price is not public486 "Standard_G1": 8940, // Estimate, price is not public
460 "G2": 8950, // Estimate, price is not public487 "Standard_G2": 8950, // Estimate, price is not public
461 "G3": 8960, // Estimate, price is not public488 "Standard_G3": 8960, // Estimate, price is not public
462 "G4": 8970, // Estimate, price is not public489 "Standard_G4": 8970, // Estimate, price is not public
463 "G5": 8980, // Estimate, price is not public490 "Standard_G5": 8980, // Estimate, price is not public
464 },491 },
465 "West Europe": {492 "West Europe": {
466 "Basic_A0": 18,493 "Basic_A0": 18,
467 "Basic_A1": 51,494 "Basic_A1": 51,
468 "Basic_A2": 102,495 "Basic_A2": 102,
469 "Basic_A3": 204,496 "Basic_A3": 204,
470 "Basic_A4": 408,497 "Basic_A4": 408,
471 "ExtraSmall": 20,498 "ExtraSmall": 20,
472 "Small": 60,499 "Small": 60,
473 "Medium": 120,500 "Medium": 120,
474 "Large": 240,501 "Large": 240,
475 "ExtraLarge": 480,502 "ExtraLarge": 480,
476 "A5": 270,503 "A5": 270,
477 "A6": 540,504 "A6": 540,
478 "A7": 1080,505 "A7": 1080,
479 "A8": 1970,506 "A8": 1970,
480 "A9": 4470,507 "A9": 4470,
481 "D1": 115,508 "Standard_D1": 115,
482 "D2": 230,509 "Standard_D2": 230,
483 "D3": 460,510 "Standard_D3": 460,
484 "D4": 920,511 "Standard_D4": 920,
485 "D11": 273,512 "Standard_D11": 273,
486 "D12": 546,513 "Standard_D12": 546,
487 "D13": 983,514 "Standard_D13": 983,
488 "D14": 1769,515 "Standard_D14": 1769,
489 "G1": 8940, // Estimate, price is not public516 "Standard_G1": 8940, // Estimate, price is not public
490 "G2": 8950, // Estimate, price is not public517 "Standard_G2": 8950, // Estimate, price is not public
491 "G3": 8960, // Estimate, price is not public518 "Standard_G3": 8960, // Estimate, price is not public
492 "G4": 8970, // Estimate, price is not public519 "Standard_G4": 8970, // Estimate, price is not public
493 "G5": 8980, // Estimate, price is not public520 "Standard_G5": 8980, // Estimate, price is not public
494 },521 },
495 "Southeast Asia": {522 "Southeast Asia": {
496 "Basic_A0": 18,523 "Basic_A0": 18,
497 "Basic_A1": 58,524 "Basic_A1": 58,
498 "Basic_A2": 116,525 "Basic_A2": 116,
499 "Basic_A3": 232,526 "Basic_A3": 232,
500 "Basic_A4": 464,527 "Basic_A4": 464,
501 "ExtraSmall": 20,528 "ExtraSmall": 20,
502 "Small": 60,529 "Small": 60,
503 "Medium": 120,530 "Medium": 120,
504 "Large": 240,531 "Large": 240,
505 "ExtraLarge": 480,532 "ExtraLarge": 480,
506 "A5": 270,533 "A5": 270,
507 "A6": 540,534 "A6": 540,
508 "A7": 1080,535 "A7": 1080,
509 "A8": 1970,536 "A8": 1970,
510 "A9": 4470,537 "A9": 4470,
511 "D1": 120,538 "Standard_D1": 120,
512 "D2": 240,539 "Standard_D2": 240,
513 "D3": 480,540 "Standard_D3": 480,
514 "D4": 960,541 "Standard_D4": 960,
515 "D11": 256,542 "Standard_D11": 256,
516 "D12": 512,543 "Standard_D12": 512,
517 "D13": 922,544 "Standard_D13": 922,
518 "D14": 1659,545 "Standard_D14": 1659,
519 "G1": 8940, // Estimate, price is not public546 "Standard_G1": 8940, // Estimate, price is not public
520 "G2": 8950, // Estimate, price is not public547 "Standard_G2": 8950, // Estimate, price is not public
521 "G3": 8960, // Estimate, price is not public548 "Standard_G3": 8960, // Estimate, price is not public
522 "G4": 8970, // Estimate, price is not public549 "Standard_G4": 8970, // Estimate, price is not public
523 "G5": 8980, // Estimate, price is not public550 "Standard_G5": 8980, // Estimate, price is not public
524 },551 },
525 "East Asia": {552 "East Asia": {
526 "Basic_A0": 18,553 "Basic_A0": 18,
527 "Basic_A1": 58,554 "Basic_A1": 58,
528 "Basic_A2": 116,555 "Basic_A2": 116,
529 "Basic_A3": 232,556 "Basic_A3": 232,
530 "Basic_A4": 464,557 "Basic_A4": 464,
531 "ExtraSmall": 20,558 "ExtraSmall": 20,
532 "Small": 60,559 "Small": 60,
533 "Medium": 120,560 "Medium": 120,
534 "Large": 240,561 "Large": 240,
535 "ExtraLarge": 480,562 "ExtraLarge": 480,
536 "A5": 294,563 "A5": 294,
537 "A6": 588,564 "A6": 588,
538 "A7": 1176,565 "A7": 1176,
539 "A8": 1970,566 "A8": 1970,
540 "A9": 4470,567 "A9": 4470,
541 "D1": 138,568 "Standard_D1": 138,
542 "D2": 276,569 "Standard_D2": 276,
543 "D3": 552,570 "Standard_D3": 552,
544 "D4": 1104,571 "Standard_D4": 1104,
545 "D11": 295,572 "Standard_D11": 295,
546 "D12": 590,573 "Standard_D12": 590,
547 "D13": 1062,574 "Standard_D13": 1062,
548 "D14": 1912,575 "Standard_D14": 1912,
549 "G1": 8940, // Estimate, price is not public576 "Standard_G1": 8940, // Estimate, price is not public
550 "G2": 8950, // Estimate, price is not public577 "Standard_G2": 8950, // Estimate, price is not public
551 "G3": 8960, // Estimate, price is not public578 "Standard_G3": 8960, // Estimate, price is not public
552 "G4": 8970, // Estimate, price is not public579 "Standard_G4": 8970, // Estimate, price is not public
553 "G5": 8980, // Estimate, price is not public580 "Standard_G5": 8980, // Estimate, price is not public
554 },581 },
555 "Japan East": {582 "Japan East": {
556 "Basic_A0": 18,583 "Basic_A0": 18,
557 "Basic_A1": 69,584 "Basic_A1": 69,
558 "Basic_A2": 138,585 "Basic_A2": 138,
559 "Basic_A3": 276,586 "Basic_A3": 276,
560 "Basic_A4": 552,587 "Basic_A4": 552,
561 "ExtraSmall": 27,588 "ExtraSmall": 27,
562 "Small": 81,589 "Small": 81,
563 "Medium": 162,590 "Medium": 162,
564 "Large": 324,591 "Large": 324,
565 "ExtraLarge": 648,592 "ExtraLarge": 648,
566 "A5": 281,593 "A5": 281,
567 "A6": 562,594 "A6": 562,
568 "A7": 1124,595 "A7": 1124,
569 "A8": 2325,596 "A8": 2325,
570 "A9": 5275,597 "A9": 5275,
571 "D1": 142,598 "Standard_D1": 142,
572 "D2": 284,599 "Standard_D2": 284,
573 "D3": 568,600 "Standard_D3": 568,
574 "D4": 1136,601 "Standard_D4": 1136,
575 "D11": 295,602 "Standard_D11": 295,
576 "D12": 590,603 "Standard_D12": 590,
577 "D13": 1062,604 "Standard_D13": 1062,
578 "D14": 1912,605 "Standard_D14": 1912,
579 "G1": 8940, // Estimate, price is not public606 "Standard_G1": 8940, // Estimate, price is not public
580 "G2": 8950, // Estimate, price is not public607 "Standard_G2": 8950, // Estimate, price is not public
581 "G3": 8960, // Estimate, price is not public608 "Standard_G3": 8960, // Estimate, price is not public
582 "G4": 8970, // Estimate, price is not public609 "Standard_G4": 8970, // Estimate, price is not public
583 "G5": 8980, // Estimate, price is not public610 "Standard_G5": 8980, // Estimate, price is not public
584 },611 },
585 "Japan West": {612 "Japan West": {
586 "Basic_A0": 19,613 "Basic_A0": 19,
587 "Basic_A1": 61,614 "Basic_A1": 61,
588 "Basic_A2": 122,615 "Basic_A2": 122,
589 "Basic_A3": 244,616 "Basic_A3": 244,
590 "Basic_A4": 488,617 "Basic_A4": 488,
591 "ExtraSmall": 21,618 "ExtraSmall": 21,
592 "Small": 73,619 "Small": 73,
593 "Medium": 146,620 "Medium": 146,
594 "Large": 292,621 "Large": 292,
595 "ExtraLarge": 584,622 "ExtraLarge": 584,
596 "A5": 258,623 "A5": 258,
597 "A6": 516,624 "A6": 516,
598 "A7": 1032,625 "A7": 1032,
599 "A8": 2088,626 "A8": 2088,
600 "A9": 4738,627 "A9": 4738,
601 "D1": 123,628 "Standard_D1": 123,
602 "D2": 246,629 "Standard_D2": 246,
603 "D3": 492,630 "Standard_D3": 492,
604 "D4": 984,631 "Standard_D4": 984,
605 "D11": 256,632 "Standard_D11": 256,
606 "D12": 512,633 "Standard_D12": 512,
607 "D13": 922,634 "Standard_D13": 922,
608 "D14": 1659,635 "Standard_D14": 1659,
609 "G1": 8940, // Estimate, price is not public636 "Standard_G1": 8940, // Estimate, price is not public
610 "G2": 8950, // Estimate, price is not public637 "Standard_G2": 8950, // Estimate, price is not public
611 "G3": 8960, // Estimate, price is not public638 "Standard_G3": 8960, // Estimate, price is not public
612 "G4": 8970, // Estimate, price is not public639 "Standard_G4": 8970, // Estimate, price is not public
613 "G5": 8980, // Estimate, price is not public640 "Standard_G5": 8980, // Estimate, price is not public
614 },641 },
615 "Brazil South": {642 "Brazil South": {
616 "Basic_A0": 22,643 "Basic_A0": 22,
617 "Basic_A1": 58,644 "Basic_A1": 58,
618 "Basic_A2": 116,645 "Basic_A2": 116,
619 "Basic_A3": 232,646 "Basic_A3": 232,
620 "Basic_A4": 464,647 "Basic_A4": 464,
621 "ExtraSmall": 24,648 "ExtraSmall": 24,
622 "Small": 80,649 "Small": 80,
623 "Medium": 160,650 "Medium": 160,
624 "Large": 320,651 "Large": 320,
625 "ExtraLarge": 640,652 "ExtraLarge": 640,
626 "A5": 291,653 "A5": 291,
627 "A6": 582,654 "A6": 582,
628 "A7": 1164,655 "A7": 1164,
629 "A8": 2403,656 "A8": 2403,
630 "A9": 5453,657 "A9": 5453,
631 "D1": 116,658 "Standard_D1": 116,
632 "D2": 232,659 "Standard_D2": 232,
633 "D3": 464,660 "Standard_D3": 464,
634 "D4": 928,661 "Standard_D4": 928,
635 "D11": 290,662 "Standard_D11": 290,
636 "D12": 580,663 "Standard_D12": 580,
637 "D13": 1044,664 "Standard_D13": 1044,
638 "D14": 1879,665 "Standard_D14": 1879,
639 "G1": 8940, // Estimate, price is not public666 "Standard_G1": 8940, // Estimate, price is not public
640 "G2": 8950, // Estimate, price is not public667 "Standard_G2": 8950, // Estimate, price is not public
641 "G3": 8960, // Estimate, price is not public668 "Standard_G3": 8960, // Estimate, price is not public
642 "G4": 8970, // Estimate, price is not public669 "Standard_G4": 8970, // Estimate, price is not public
643 "G5": 8980, // Estimate, price is not public670 "Standard_G5": 8980, // Estimate, price is not public
644 },671 },
645 "Australia East": {672 "Australia East": {
646 "Basic_A0": 24,673 "Basic_A0": 24,
647 "Basic_A1": 58,674 "Basic_A1": 58,
648 "Basic_A2": 116,675 "Basic_A2": 116,
649 "Basic_A3": 232,676 "Basic_A3": 232,
650 "Basic_A4": 464,677 "Basic_A4": 464,
651 "ExtraSmall": 29,678 "ExtraSmall": 29,
652 "Small": 71,679 "Small": 71,
653 "Medium": 142,680 "Medium": 142,
654 "Large": 284,681 "Large": 284,
655 "ExtraLarge": 568,682 "ExtraLarge": 568,
656 "A5": 278,683 "A5": 278,
657 "A6": 556,684 "A6": 556,
658 "A7": 1112,685 "A7": 1112,
659 "A8": 2224,686 "A8": 2224,
660 "A9": 4448,687 "A9": 4448,
661 "D1": 120,688 "Standard_D1": 120,
662 "D2": 239,689 "Standard_D2": 239,
663 "D3": 478,690 "Standard_D3": 478,
664 "D4": 956,691 "Standard_D4": 956,
665 "D11": 256,692 "Standard_D11": 256,
666 "D12": 512,693 "Standard_D12": 512,
667 "D13": 922,694 "Standard_D13": 922,
668 "D14": 1660,695 "Standard_D14": 1660,
669 "G1": 8940, // Estimate, price is not public696 "Standard_G1": 8940, // Estimate, price is not public
670 "G2": 8950, // Estimate, price is not public697 "Standard_G2": 8950, // Estimate, price is not public
671 "G3": 8960, // Estimate, price is not public698 "Standard_G3": 8960, // Estimate, price is not public
672 "G4": 8970, // Estimate, price is not public699 "Standard_G4": 8970, // Estimate, price is not public
673 "G5": 8980, // Estimate, price is not public700 "Standard_G5": 8980, // Estimate, price is not public
674 },701 },
675 "Australia Southeast": {702 "Australia Southeast": {
676 "Basic_A0": 24,703 "Basic_A0": 24,
677 "Basic_A1": 58,704 "Basic_A1": 58,
678 "Basic_A2": 116,705 "Basic_A2": 116,
679 "Basic_A3": 232,706 "Basic_A3": 232,
680 "Basic_A4": 464,707 "Basic_A4": 464,
681 "ExtraSmall": 29,708 "ExtraSmall": 29,
682 "Small": 71,709 "Small": 71,
683 "Medium": 142,710 "Medium": 142,
684 "Large": 284,711 "Large": 284,
685 "ExtraLarge": 568,712 "ExtraLarge": 568,
686 "A5": 278,713 "A5": 278,
687 "A6": 556,714 "A6": 556,
688 "A7": 1112,715 "A7": 1112,
689 "A8": 2224,716 "A8": 2224,
690 "A9": 4448,717 "A9": 4448,
691 "D1": 120,718 "Standard_D1": 120,
692 "D2": 239,719 "Standard_D2": 239,
693 "D3": 478,720 "Standard_D3": 478,
694 "D4": 956,721 "Standard_D4": 956,
695 "D11": 256,722 "Standard_D11": 256,
696 "D12": 512,723 "Standard_D12": 512,
697 "D13": 922,724 "Standard_D13": 922,
698 "D14": 1660,725 "Standard_D14": 1660,
699 "G1": 8940, // Estimate, price is not public726 "Standard_G1": 8940, // Estimate, price is not public
700 "G2": 8950, // Estimate, price is not public727 "Standard_G2": 8950, // Estimate, price is not public
701 "G3": 8960, // Estimate, price is not public728 "Standard_G3": 8960, // Estimate, price is not public
702 "G4": 8970, // Estimate, price is not public729 "Standard_G4": 8970, // Estimate, price is not public
703 "G5": 8980, // Estimate, price is not public730 "Standard_G5": 8980, // Estimate, price is not public
704 },731 },
705}732}
706733
707734
=== modified file 'rolesizes_test.go'
--- rolesizes_test.go 2014-12-02 00:36:45 +0000
+++ rolesizes_test.go 2014-12-03 02:15:59 +0000
@@ -32,8 +32,10 @@
32var knownSizes = []string{32var knownSizes = []string{
33 "Basic_A0", "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4",33 "Basic_A0", "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4",
34 "ExtraSmall", "Small", "Medium", "Large", "ExtraLarge",34 "ExtraSmall", "Small", "Medium", "Large", "ExtraLarge",
35 "A5", "A6", "A7", "A8", "A9", "D1", "D2", "D3", "D4", "D11",35 "A5", "A6", "A7", "A8", "A9", "Standard_D1", "Standard_D2",
36 "D12", "D13", "D14", "G1", "G2", "G3", "G4", "G5",36 "Standard_D3", "Standard_D4", "Standard_D11", "Standard_D12",
37 "Standard_D13", "Standard_D14", "Standard_G1", "Standard_G2",
38 "Standard_G3", "Standard_G4", "Standard_G5",
37}39}
3840
39func (suite *rolesizeSuite) TestRoleCostKnownRegions(c *C) {41func (suite *rolesizeSuite) TestRoleCostKnownRegions(c *C) {

Subscribers

People subscribed via source and target branches

to all changes: