1# pylint: skip-file 2HARDWARE_ITEMS = [ 3 {'attributes': [], 4 'capacity': '999', 5 'description': 'Unknown', 6 'itemCategory': {'categoryCode': 'unknown', 'id': 325}, 7 'keyName': 'UNKNOWN', 8 'prices': [{'accountRestrictions': [], 9 'currentPriceFlag': '', 10 'hourlyRecurringFee': '0', 11 'id': 1245172, 12 "locationGroupId": '', 13 'itemId': 935954, 14 'laborFee': '0', 15 'onSaleFlag': '', 16 'oneTimeFee': '0', 17 'quantity': '', 18 'recurringFee': '0', 19 'setupFee': '0', 20 'sort': 0}]}, 21 {'attributes': [], 22 'capacity': '64', 23 'description': '1 IPv6 Address', 24 'itemCategory': {'categoryCode': 'pri_ipv6_addresses', 25 'id': 325}, 26 'keyName': '1_IPV6_ADDRESS', 27 'prices': [{'accountRestrictions': [], 28 'currentPriceFlag': '', 29 'hourlyRecurringFee': '0', 30 'id': 17129, 31 "locationGroupId": '', 32 'itemId': 4097, 33 'laborFee': '0', 34 'onSaleFlag': '', 35 'oneTimeFee': '0', 36 'quantity': '', 37 'recurringFee': '0', 38 'setupFee': '0', 39 'sort': 0}]}, 40 {'attributes': [], 41 'capacity': '10', 42 'description': '10 Mbps Public & Private Network Uplinks', 43 'itemCategory': {'categoryCode': 'port_speed', 'id': 26}, 44 'keyName': '10_MBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS', 45 'prices': [{'accountRestrictions': [], 46 'currentPriceFlag': '', 47 'hourlyRecurringFee': '0', 48 'id': 272, 49 "locationGroupId": '', 50 'itemId': 186, 51 'laborFee': '0', 52 'onSaleFlag': '', 53 'oneTimeFee': '0', 54 'quantity': '', 55 'recurringFee': '0', 56 'setupFee': '0', 57 'sort': 5}]}, 58 {'attributes': [], 59 'capacity': '0', 60 'description': 'Ubuntu Linux 14.04 LTS Trusty Tahr (64 bit)', 61 'itemCategory': {'categoryCode': 'os', 'id': 12}, 62 'keyName': 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT', 63 'prices': [{'accountRestrictions': [], 64 'currentPriceFlag': '', 65 'hourlyRecurringFee': '0', 66 'id': 37650, 67 "locationGroupId": '', 68 'itemId': 4702, 69 'laborFee': '0', 70 'onSaleFlag': '', 71 'oneTimeFee': '0', 72 'quantity': '', 73 'recurringFee': '0', 74 'setupFee': '0', 75 'sort': 9}], 76 'softwareDescription': {'id': 1362, 77 'longDescription': 'Ubuntu / 14.04-64', 78 'referenceCode': 'UBUNTU_14_64'}}, 79 {'attributes': [], 80 'capacity': '1', 81 'description': '1 IP Address', 82 'itemCategory': {'categoryCode': 'pri_ip_addresses', 'id': 13}, 83 'keyName': '1_IP_ADDRESS', 84 'prices': [{'accountRestrictions': [], 85 'currentPriceFlag': '', 86 'hourlyRecurringFee': '0', 87 'id': 21, 88 "locationGroupId": '', 89 'itemId': 15, 90 'laborFee': '0', 91 'onSaleFlag': '', 92 'oneTimeFee': '0', 93 'quantity': '', 94 'recurringFee': '0', 95 'setupFee': '0', 96 'sort': 0}]}, 97 {'attributes': [{'attributeTypeKeyName': 'RECLAIM_BYPASS', 98 'id': 1014}], 99 'description': 'Unlimited SSL VPN Users', 100 'itemCategory': {'categoryCode': 'vpn_management', 'id': 31}, 101 'keyName': 'SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT', 102 'prices': [{'accountRestrictions': [], 103 'currentPriceFlag': '', 104 'hourlyRecurringFee': '0', 105 'id': 420, 106 "locationGroupId": '', 107 'itemId': 309, 108 'laborFee': '0', 109 'onSaleFlag': '', 110 'oneTimeFee': '0', 111 'quantity': '', 112 'recurringFee': '0', 113 'setupFee': '0', 114 'sort': 0}]}, 115 {'attributes': [], 116 'description': 'Reboot / KVM over IP', 117 'itemCategory': {'categoryCode': 'remote_management', 118 'id': 46}, 119 'keyName': 'REBOOT_KVM_OVER_IP', 120 'prices': [{'accountRestrictions': [], 121 'currentPriceFlag': '', 122 'hourlyRecurringFee': '0', 123 'id': 906, 124 "locationGroupId": '', 125 'itemId': 504, 126 'laborFee': '0', 127 'onSaleFlag': '', 128 'oneTimeFee': '0', 129 'quantity': '', 130 'recurringFee': '0', 131 'setupFee': '0', 132 'sort': 0}]}, 133 {'attributes': [], 134 'capacity': '0', 135 'description': '0 GB Bandwidth', 136 'itemCategory': {'categoryCode': 'bandwidth', 'id': 10}, 137 'keyName': 'BANDWIDTH_0_GB', 138 'prices': [{'accountRestrictions': [], 139 'currentPriceFlag': '', 140 'id': 22505, 141 "locationGroupId": '', 142 'itemId': 4481, 143 'laborFee': '0', 144 'onSaleFlag': '', 145 'oneTimeFee': '0', 146 'quantity': '', 147 'recurringFee': '0', 148 'setupFee': '0', 149 'sort': 98}]}, 150 {'attributes': [], 151 'capacity': '0', 152 'description': '0 GB Bandwidth', 153 'itemCategory': {'categoryCode': 'bandwidth', 'id': 10}, 154 'keyName': 'BANDWIDTH_0_GB_2', 155 'prices': [{'accountRestrictions': [], 156 'currentPriceFlag': '', 157 'hourlyRecurringFee': '0', 158 'id': 1800, 159 "locationGroupId": '', 160 'itemId': 439, 161 'laborFee': '0', 162 'onSaleFlag': '', 163 'oneTimeFee': '0', 164 'quantity': '', 165 'setupFee': '0', 166 'sort': 99}]}] 167 168ENTERPRISE_PACKAGE = { 169 'categories': [ 170 {'categoryCode': 'storage_service_enterprise'} 171 ], 172 'id': 240, 173 'name': 'Endurance', 174 'items': [ 175 { 176 'capacity': '0', 177 'itemCategory': {'categoryCode': 'storage_service_enterprise'}, 178 'keyName': 'CODENAME_PRIME_STORAGE_SERVICE', 179 'prices': [ 180 { 181 'categories': [ 182 {'categoryCode': 'storage_service_enterprise'} 183 ], 184 'id': 45058, 185 'locationGroupId': '' 186 } 187 ] 188 }, { 189 'capacity': '0', 190 'itemCategory': {'categoryCode': 'storage_file'}, 191 'keyName': 'FILE_STORAGE_2', 192 'prices': [ 193 { 194 'categories': [ 195 {'categoryCode': 'storage_file'} 196 ], 197 'id': 45108, 198 'locationGroupId': '' 199 } 200 ] 201 }, { 202 'capacity': '0', 203 'itemCategory': {'categoryCode': 'storage_block'}, 204 'keyName': 'BLOCK_STORAGE_2', 205 'prices': [ 206 { 207 'categories': [ 208 {'categoryCode': 'storage_block'} 209 ], 210 'id': 45098, 211 'locationGroupId': '' 212 } 213 ] 214 }, { 215 'capacity': '10', 216 'itemCategory': {'categoryCode': 'performance_storage_space'}, 217 'keyName': '10_GB_STORAGE_SPACE', 218 'prices': [ 219 { 220 'capacityRestrictionMaximum': '200', 221 'capacityRestrictionMinimum': '200', 222 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 223 'categories': [ 224 {'categoryCode': 'storage_snapshot_space'} 225 ], 226 'id': 46160, 227 'locationGroupId': '' 228 }, { 229 'capacityRestrictionMaximum': '300', 230 'capacityRestrictionMinimum': '300', 231 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 232 'categories': [ 233 {'categoryCode': 'storage_snapshot_space'} 234 ], 235 'id': 46170, 236 'locationGroupId': '' 237 } 238 ] 239 }, { 240 'capacity': '20', 241 'itemCategory': {'categoryCode': 'performance_storage_space'}, 242 'keyName': '20_GB_PERFORMANCE_STORAGE_SPACE', 243 'prices': [ 244 { 245 'capacityRestrictionMaximum': '200', 246 'capacityRestrictionMinimum': '200', 247 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 248 'categories': [ 249 {'categoryCode': 'storage_snapshot_space'} 250 ], 251 'id': 45860, 252 'locationGroupId': '' 253 }, { 254 'capacityRestrictionMaximum': '200', 255 'capacityRestrictionMinimum': '200', 256 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 257 'categories': [ 258 {'categoryCode': 'performance_storage_replication'} 259 ], 260 'id': 46659, 261 'locationGroupId': '' 262 }, { 263 'capacityRestrictionMaximum': '200', 264 'capacityRestrictionMinimum': '200', 265 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 266 'categories': [ 267 {'categoryCode': 'performance_storage_space'} 268 ], 269 'id': 45128, 270 'locationGroupId': '' 271 } 272 ] 273 }, { 274 'capacity': '1000', 275 'itemCategory': {'categoryCode': 'performance_storage_space'}, 276 'keyName': '1000_GB_PERFORMANCE_STORAGE_SPACE', 277 'prices': [ 278 { 279 'capacityRestrictionMaximum': '300', 280 'capacityRestrictionMinimum': '300', 281 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 282 'categories': [ 283 {'categoryCode': 'performance_storage_replication'} 284 ], 285 'id': 46789, 286 'locationGroupId': '' 287 }, { 288 'capacityRestrictionMaximum': '300', 289 'capacityRestrictionMinimum': '300', 290 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 291 'categories': [ 292 {'categoryCode': 'performance_storage_space'} 293 ], 294 'id': 45318, 295 'locationGroupId': '' 296 } 297 ] 298 }, { 299 'attributes': [ 300 {'value': '300'} 301 ], 302 'capacity': '300', 303 'itemCategory': {'categoryCode': 'storage_tier_level'}, 304 'keyName': 'WRITEHEAVY_TIER', 305 'prices': [ 306 { 307 'categories': [ 308 {'categoryCode': 'storage_tier_level'} 309 ], 310 'id': 45088, 311 'locationGroupId': '' 312 } 313 ] 314 }, { 315 'attributes': [ 316 {'value': '200'} 317 ], 318 'capacity': '200', 319 'itemCategory': {'categoryCode': 'storage_tier_level'}, 320 'keyName': 'READHEAVY_TIER', 321 'prices': [ 322 { 323 'categories': [ 324 {'categoryCode': 'storage_tier_level'} 325 ], 326 'id': 45078, 327 'locationGroupId': '' 328 } 329 ] 330 } 331 ] 332} 333 334PERFORMANCE_PACKAGE = { 335 'categories': [ 336 {'categoryCode': 'performance_storage_iscsi'}, 337 {'categoryCode': 'performance_storage_nfs'} 338 ], 339 'id': 222, 340 'name': 'Performance', 341 'items': [ 342 { 343 'capacity': '0', 344 'itemCategory': {'categoryCode': 'performance_storage_iscsi'}, 345 'keyName': 'BLOCK_STORAGE_PERFORMANCE_ISCSI', 346 'prices': [ 347 { 348 'categories': [ 349 {'categoryCode': 'performance_storage_iscsi'} 350 ], 351 'id': 40672, 352 'locationGroupId': '' 353 } 354 ] 355 }, { 356 'capacity': '0', 357 'itemCategory': {'categoryCode': 'performance_storage_nfs'}, 358 'keyName': 'FILE_STORAGE_PERFORMANCE_NFS', 359 'prices': [ 360 { 361 'categories': [ 362 {'categoryCode': 'performance_storage_nfs'} 363 ], 364 'id': 40662, 365 'locationGroupId': '' 366 } 367 ] 368 }, { 369 'capacity': '20', 370 'itemCategory': {'categoryCode': 'performance_storage_space'}, 371 'keyName': '20_GB_PERFORMANCE_STORAGE_SPACE', 372 'prices': [ 373 { 374 'categories': [ 375 {'categoryCode': 'performance_storage_space'} 376 ], 377 'id': 40682, 378 'locationGroupId': '' 379 } 380 ] 381 }, { 382 'capacity': '1000', 383 'itemCategory': {'categoryCode': 'performance_storage_space'}, 384 'keyName': '1000_GB_PERFORMANCE_STORAGE_SPACE', 385 'prices': [ 386 { 387 'categories': [ 388 {'categoryCode': 'performance_storage_space'} 389 ], 390 'id': 40742, 391 'locationGroupId': '' 392 } 393 ] 394 }, { 395 'capacity': '800', 396 'itemCategory': {'categoryCode': 'performance_storage_iops'}, 397 'keyName': '800_IOPS_4', 398 'prices': [ 399 { 400 'capacityRestrictionMaximum': '1000', 401 'capacityRestrictionMinimum': '100', 402 'capacityRestrictionType': 'STORAGE_SPACE', 403 'categories': [ 404 {'categoryCode': 'performance_storage_iops'} 405 ], 406 'id': 41562, 407 'locationGroupId': '' 408 } 409 ] 410 }, { 411 'capacity': '1000', 412 'itemCategory': {'categoryCode': 'performance_storage_iops'}, 413 'keyName': '1000_IOPS', 414 'prices': [ 415 { 416 'capacityRestrictionMaximum': '20', 417 'capacityRestrictionMinimum': '20', 418 'capacityRestrictionType': 'STORAGE_SPACE', 419 'categories': [ 420 {'categoryCode': 'performance_storage_iops'} 421 ], 422 'id': 40882, 423 'locationGroupId': '' 424 } 425 ] 426 } 427 ] 428} 429 430SAAS_PACKAGE = { 431 'categories': [ 432 {'categoryCode': 'storage_as_a_service'} 433 ], 434 'id': 759, 435 'name': 'Storage As A Service (StaaS)', 436 'items': [ 437 { 438 'capacity': '0', 439 'keyName': '', 440 'prices': [ 441 { 442 'id': 189433, 443 'categories': [ 444 {'categoryCode': 'storage_as_a_service'} 445 ], 446 'locationGroupId': '' 447 } 448 ] 449 }, { 450 'capacity': '0', 451 'keyName': '', 452 'prices': [ 453 { 454 'categories': [ 455 {'categoryCode': 'storage_block'} 456 ], 457 'id': 189443, 458 'locationGroupId': '' 459 } 460 ] 461 }, { 462 'capacity': '0', 463 'keyName': '', 464 'prices': [ 465 { 466 'categories': [ 467 {'categoryCode': 'storage_file'} 468 ], 469 'id': 189453, 470 'locationGroupId': '' 471 } 472 ] 473 }, { 474 'capacity': '0', 475 'capacityMaximum': '999', 476 'capacityMinimum': '500', 477 'itemCategory': {'categoryCode': 'performance_storage_space'}, 478 'keyName': '500_999_GBS', 479 'prices': [ 480 { 481 'id': 189993, 482 'categories': [ 483 {'categoryCode': 'performance_storage_space'} 484 ], 485 'locationGroupId': '' 486 } 487 ] 488 }, { 489 'capacity': '0', 490 'capacityMaximum': '1999', 491 'capacityMinimum': '1000', 492 'itemCategory': {'categoryCode': 'performance_storage_space'}, 493 'keyName': '1000_1999_GBS', 494 'prices': [ 495 { 496 'id': 190113, 497 'categories': [ 498 {'categoryCode': 'performance_storage_space'} 499 ], 500 'locationGroupId': '' 501 } 502 ] 503 }, { 504 'capacity': '0', 505 'capacityMaximum': '12000', 506 'capacityMinimum': '1', 507 'keyName': 'STORAGE_SPACE_FOR_2_IOPS_PER_GB', 508 'prices': [ 509 { 510 'id': 193433, 511 'categories': [ 512 {'categoryCode': 'performance_storage_space'} 513 ], 514 'locationGroupId': '' 515 } 516 ] 517 }, { 518 'capacity': '0', 519 'capacityMaximum': '12000', 520 'capacityMinimum': '1', 521 'keyName': 'STORAGE_SPACE_FOR_4_IOPS_PER_GB', 522 'prices': [ 523 { 524 'id': 194763, 525 'categories': [ 526 {'categoryCode': 'performance_storage_space'} 527 ], 528 'locationGroupId': '' 529 } 530 ] 531 }, { 532 'capacity': '0', 533 'capacityMaximum': '10000', 534 'capacityMinimum': '100', 535 'keyName': '', 536 'itemCategory': {'categoryCode': 'performance_storage_iops'}, 537 'prices': [ 538 { 539 'capacityRestrictionMaximum': '999', 540 'capacityRestrictionMinimum': '500', 541 'capacityRestrictionType': 'STORAGE_SPACE', 542 'categories': [ 543 {'categoryCode': 'performance_storage_iops'} 544 ], 545 'id': 190053, 546 'locationGroupId': '' 547 } 548 ] 549 }, { 550 'capacity': '0', 551 'capacityMaximum': '20000', 552 'capacityMinimum': '100', 553 'keyName': '', 554 'itemCategory': {'categoryCode': 'performance_storage_iops'}, 555 'prices': [ 556 { 557 'capacityRestrictionMaximum': '1999', 558 'capacityRestrictionMinimum': '1000', 559 'capacityRestrictionType': 'STORAGE_SPACE', 560 'categories': [ 561 {'categoryCode': 'performance_storage_iops'} 562 ], 563 'id': 190173, 564 'locationGroupId': '' 565 } 566 ] 567 }, { 568 'capacity': '200', 569 'itemCategory': {'categoryCode': 'storage_tier_level'}, 570 'keyName': '', 571 'prices': [ 572 { 573 'id': 193373, 574 'categories': [ 575 {'categoryCode': 'storage_tier_level'} 576 ], 577 'locationGroupId': '' 578 } 579 ] 580 }, { 581 'capacity': '300', 582 'itemCategory': {'categoryCode': 'storage_tier_level'}, 583 'keyName': '', 584 'prices': [ 585 { 586 'id': 194703, 587 'categories': [ 588 {'categoryCode': 'storage_tier_level'} 589 ], 590 'locationGroupId': '' 591 } 592 ] 593 }, { 594 'capacity': '10', 595 'keyName': '', 596 'prices': [ 597 { 598 'capacityRestrictionMaximum': '48000', 599 'capacityRestrictionMinimum': '100', 600 'capacityRestrictionType': 'IOPS', 601 'categories': [ 602 {'categoryCode': 'storage_snapshot_space'} 603 ], 604 'id': 191193, 605 'locationGroupId': '' 606 }, { 607 'capacityRestrictionMaximum': '200', 608 'capacityRestrictionMinimum': '200', 609 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 610 'categories': [ 611 {'categoryCode': 'storage_snapshot_space'} 612 ], 613 'id': 193613, 614 'locationGroupId': '' 615 }, { 616 'capacityRestrictionMaximum': '300', 617 'capacityRestrictionMinimum': '300', 618 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 619 'categories': [ 620 {'categoryCode': 'storage_snapshot_space'} 621 ], 622 'id': 194943, 623 'locationGroupId': ''}] 624 }, { 625 'capacity': '20', 626 'keyName': '', 627 'prices': [ 628 { 629 'capacityRestrictionMaximum': '200', 630 'capacityRestrictionMinimum': '200', 631 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 632 'categories': [ 633 {'categoryCode': 'storage_snapshot_space'} 634 ], 635 'id': 193853, 636 'locationGroupId': '' 637 } 638 ] 639 }, { 640 'capacity': '0', 641 'itemCategory': { 642 'categoryCode': 'performance_storage_replication' 643 }, 644 'keyName': 'REPLICATION_FOR_IOPSBASED_PERFORMANCE', 645 'prices': [ 646 { 647 'capacityRestrictionMaximum': '48000', 648 'capacityRestrictionMinimum': '1', 649 'capacityRestrictionType': 'IOPS', 650 'categories': [ 651 {'categoryCode': 'performance_storage_replication'} 652 ], 653 'id': 192033, 654 'locationGroupId': '' 655 } 656 ] 657 }, { 658 'capacity': '0', 659 'itemCategory': { 660 'categoryCode': 'performance_storage_replication' 661 }, 662 'keyName': 'REPLICATION_FOR_TIERBASED_PERFORMANCE', 663 'prices': [ 664 { 665 'capacityRestrictionMaximum': '200', 666 'capacityRestrictionMinimum': '200', 667 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 668 'categories': [ 669 {'categoryCode': 'performance_storage_replication'} 670 ], 671 'id': 194693, 672 'locationGroupId': '' 673 } 674 ] 675 } 676 ] 677} 678 679SAAS_REST_PACKAGE = { 680 'categories': [ 681 {'categoryCode': 'storage_as_a_service'} 682 ], 683 'id': 759, 684 'name': 'Storage As A Service (StaaS)', 685 'items': [ 686 { 687 'capacity': '0', 688 'keyName': '', 689 'prices': [ 690 { 691 'id': 189433, 692 'categories': [ 693 {'categoryCode': 'storage_as_a_service'} 694 ], 695 'locationGroupId': None 696 } 697 ] 698 }, { 699 'capacity': '20', 700 'keyName': '', 701 'prices': [ 702 { 703 'capacityRestrictionMaximum': '200', 704 'capacityRestrictionMinimum': '200', 705 'capacityRestrictionType': 'STORAGE_TIER_LEVEL', 706 'categories': [ 707 {'categoryCode': 'storage_snapshot_space'} 708 ], 709 'id': 193853, 710 'locationGroupId': None 711 } 712 ] 713 }, { 714 'capacity': '0', 715 'capacityMaximum': '1999', 716 'capacityMinimum': '1000', 717 'itemCategory': {'categoryCode': 'performance_storage_space'}, 718 'keyName': '1000_1999_GBS', 719 'prices': [ 720 { 721 'id': 190113, 722 'categories': [ 723 {'categoryCode': 'performance_storage_space'} 724 ], 725 'locationGroupId': None 726 } 727 ] 728 }, { 729 'capacity': '0', 730 'capacityMaximum': '20000', 731 'capacityMinimum': '100', 732 'keyName': '', 733 'itemCategory': {'categoryCode': 'performance_storage_iops'}, 734 'prices': [ 735 { 736 'capacityRestrictionMaximum': '1999', 737 'capacityRestrictionMinimum': '1000', 738 'capacityRestrictionType': 'STORAGE_SPACE', 739 'categories': [ 740 {'categoryCode': 'performance_storage_iops'} 741 ], 742 'id': 190173, 743 'locationGroupId': None 744 } 745 ] 746 }, { 747 'capacity': '0', 748 'keyName': '', 749 'prices': [ 750 { 751 'categories': [ 752 {'categoryCode': 'storage_file'} 753 ], 754 'id': 189453, 755 'locationGroupId': None 756 } 757 ] 758 } 759 ] 760} 761 762activePreset1 = { 763 'description': 'Single Xeon 1270, 8GB Ram, 2x1TB SATA disks, Non-RAID', 764 'id': 64, 765 'isActive': '1', 766 'keyName': 'S1270_8GB_2X1TBSATA_NORAID', 767 'name': 'S1270 8GB 2X1TBSATA NORAID', 768 'packageId': 200, 769 'prices': [ 770 { 771 "hourlyRecurringFee": "1.18", 772 "id": 165711, 773 "locationGroupId": '', 774 "recurringFee": "780", 775 } 776 ] 777} 778 779activePreset2 = { 780 'description': 'Dual Xeon Gold, 384GB Ram, 4x960GB SSD, RAID 10', 781 'id': 65, 782 'isActive': '1', 783 'keyName': 'DGOLD_6140_384GB_4X960GB_SSD_SED_RAID_10', 784 'name': 'DGOLD 6140 384GB 4X960GB SSD SED RAID 10', 785 'packageId': 200, 786 'prices': [ 787 { 788 "hourlyRecurringFee": "1.18", 789 "id": 165711, 790 "locationGroupId": '', 791 "recurringFee": "780", 792 } 793 ] 794} 795 796getAllObjects = [{ 797 'activePresets': [activePreset1], 798 'accountRestrictedActivePresets': [activePreset2], 799 'description': 'Bare Metal Server', 800 'firstOrderStepId': 1, 801 'id': 200, 802 'isActive': 1, 803 'items': HARDWARE_ITEMS, 804 'name': 'Bare Metal Server', 805 'regions': [{'description': 'WDC01 - Washington, DC - East Coast U.S.', 806 'keyname': 'WASHINGTON_DC', 807 'location': {'location': {'id': 37473, 808 'longName': 'Washington 1', 809 'name': 'wdc01'}}, 810 'sortOrder': 10}], 811 'subDescription': 'Bare Metal Server', 812 'unitSize': 1, 813 "itemPrices": [ 814 { 815 "hourlyRecurringFee": ".027", 816 "id": 205911, 817 "laborFee": "0", 818 "locationGroupId": 505, 819 "capacityRestrictionMaximum": "40", 820 "capacityRestrictionMinimum": "40", 821 "capacityRestrictionType": "CORE", 822 "item": { 823 "capacity": "0", 824 "description": "Load Balancer Uptime", 825 "id": 10785, 826 "keyName": "LOAD_BALANCER_UPTIME", 827 } 828 }, 829 { 830 "hourlyRecurringFee": "0", 831 "id": 199467, 832 "laborFee": "0", 833 "locationGroupId": '', 834 "recurringFee": "0", 835 "item": { 836 "capacity": "0", 837 "description": "Load Balancer Bandwidth", 838 "id": 10051, 839 "keyName": "LOAD_BALANCER_BANDWIDTH", 840 } 841 }, 842 { 843 "hourlyRecurringFee": ".028", 844 "id": 205913, 845 "laborFee": "0", 846 "locationGroupId": 507, 847 "item": { 848 "capacity": "0", 849 "description": "Load Balancer Uptime", 850 "id": 10785, 851 "keyName": "LOAD_BALANCER_UPTIME", 852 } 853 }] 854}] 855 856getItems = [ 857 { 858 'id': 1234, 859 'keyName': 'KeyName01', 860 'capacity': '1000', 861 'description': 'Public & Private Networks', 862 'itemCategory': {'categoryCode': 'Uplink Port Speeds'}, 863 'softwareDescription': { 864 'id': 1228, 865 'longDescription': 'Redhat EL 5.10-64', 866 'referenceCode': 'REDHAT_5_64' 867 }, 868 'prices': [{'id': 1122, 869 'hourlyRecurringFee': 0.10, 870 'recurringFee': 0.10, 871 'categories': [{'id': 26, 872 'name': 'Uplink Port Speeds', 873 'categoryCode': 'port_speed'}]}], 874 }, 875 { 876 'id': 2233, 877 'keyName': 'KeyName02', 878 'capacity': '1000', 879 'description': 'Public & Private Networks', 880 'itemCategory': {'categoryCode': 'Uplink Port Speeds'}, 881 'prices': [{'id': 4477, 882 'hourlyRecurringFee': 0.10, 883 'recurringFee': 0.10, 884 'categories': [{'id': 26, 885 'name': 'Uplink Port Speeds', 886 'categoryCode': 'port_speed'}]}], 887 }, 888 { 889 'id': 1239, 890 'keyName': 'KeyName03', 891 'capacity': '2', 892 'description': 'RAM', 893 'itemCategory': {'categoryCode': 'RAM'}, 894 'prices': [{'id': 1133, 895 'hourlyRecurringFee': 0.0, 896 'recurringFee': 0.0, 897 'categories': [{'id': 3, 898 'name': 'RAM', 899 'categoryCode': 'ram'}]}], 900 }, 901 { 902 'id': 1240, 903 'keyName': 'KeyName014', 904 'capacity': '4', 905 'units': 'PRIVATE_CORE', 906 'description': 'Computing Instance (Dedicated)', 907 'itemCategory': {'categoryCode': 'Computing Instance'}, 908 'prices': [{'id': 1007, 909 'hourlyRecurringFee': 0.0, 910 'recurringFee': 0.0, 911 'categories': [{'id': 80, 912 'name': 'Computing Instance', 913 'categoryCode': 'guest_core'}]}], 914 }, 915 { 916 'id': 1250, 917 'keyName': 'KeyName015', 918 'capacity': '4', 919 'units': 'CORE', 920 'description': 'Computing Instance', 921 'itemCategory': {'categoryCode': 'Computing Instance'}, 922 'prices': [{'id': 1144, 923 'locationGroupId': None, 924 'hourlyRecurringFee': 0.10, 925 'recurringFee': 0.10, 926 'categories': [{'id': 80, 927 'name': 'Computing Instance', 928 'categoryCode': 'guest_core'}]}], 929 }, 930 { 931 'id': 112233, 932 'keyName': 'KeyName016', 933 'capacity': '55', 934 'units': 'CORE', 935 'description': 'Computing Instance', 936 'itemCategory': {'categoryCode': 'Computing Instance'}, 937 'prices': [{'id': 332211, 938 'locationGroupId': 1, 939 'hourlyRecurringFee': 0.0, 940 'recurringFee': 0.0, 941 'categories': [{'id': 80, 942 'name': 'Computing Instance', 943 'categoryCode': 'guest_core'}]}], 944 }, 945 { 946 'id': 4439, 947 'keyName': 'KeyName017', 948 'capacity': '1', 949 'description': '1 GB iSCSI Storage', 950 'itemCategory': {'categoryCode': 'iscsi'}, 951 'prices': [{'id': 2222, 'hourlyRecurringFee': 0.10, 'recurringFee': 0.10}], 952 }, 953 { 954 'id': 1121, 955 'keyName': 'KeyName081', 956 'capacity': '20', 957 'description': '20 GB iSCSI snapshot', 958 'itemCategory': {'categoryCode': 'iscsi_snapshot_space'}, 959 'prices': [{'id': 2014, 'hourlyRecurringFee': 0.10}], 960 }, 961 { 962 'id': 4440, 963 'keyName': 'KeyName019', 964 'capacity': '4', 965 'description': '4 Portable Public IP Addresses', 966 'itemCategory': {'categoryCode': 'sov_sec_ip_addresses_pub'}, 967 'prices': [{'id': 4444, 'hourlyRecurringFee': 0.10, 'recurringFee': 0.10}], 968 }, 969 { 970 'id': 8880, 971 'keyName': 'KeyName0199', 972 'capacity': '8', 973 'description': '8 Portable Public IP Addresses', 974 'itemCategory': {'categoryCode': 'sov_sec_ip_addresses_pub'}, 975 'prices': [{'id': 8888, 'hourlyRecurringFee': 0.10, 'recurringFee': 0.10}], 976 }, 977 { 978 'id': 44400, 979 'keyName': 'KeyName0155', 980 'capacity': '4', 981 'description': '4 Portable Private IP Addresses', 982 'itemCategory': {'categoryCode': 'sov_sec_ip_addresses_priv'}, 983 'prices': [{'id': 44441, 'hourlyRecurringFee': 0.10, 'recurringFee': 0.10}], 984 }, 985 { 986 'id': 88800, 987 'keyName': 'KeyName0144', 988 'capacity': '8', 989 'description': '8 Portable Private IP Addresses', 990 'itemCategory': {'categoryCode': 'sov_sec_ip_addresses_priv'}, 991 'prices': [{'id': 88881, 'hourlyRecurringFee': 0.0, 'recurringFee': 0.0}], 992 }, 993 { 994 'id': 10, 995 'keyName': 'KeyName0341', 996 'capacity': '0', 997 'description': 'Global IPv4', 998 'itemCategory': {'categoryCode': 'global_ipv4'}, 999 'prices': [{'id': 11, 'hourlyRecurringFee': 0.0, 'recurringFee': 0.0}], 1000 }, 1001 { 1002 'id': 66464, 1003 'keyName': '1_IPV6_ADDRESS', 1004 'capacity': '64', 1005 'description': '/64 Block Portable Public IPv6 Addresses', 1006 'itemCategory': {'categoryCode': 'static_ipv6_addresses'}, 1007 'prices': [{'id': 664641, 'hourlyRecurringFee': '0', 'locationGroupId': '', 'recurringFee': '0'}], 1008 }, 1009 { 1010 'id': 610, 1011 'keyName': 'KeyName031', 1012 'capacity': '0', 1013 'description': 'Global IPv6', 1014 'itemCategory': {'categoryCode': 'global_ipv6'}, 1015 'prices': [{'id': 611, 'hourlyRecurringFee': 0.10, 'recurringFee': 0.10}], 1016 }, 1017 {'attributes': [], 1018 'capacity': '0', 1019 'description': '0 GB Bandwidth', 1020 'itemCategory': {'categoryCode': 'bandwidth', 'id': 10}, 1021 'keyName': 'BANDWIDTH_0_GB_2', 1022 'prices': [{'accountRestrictions': [], 1023 'currentPriceFlag': '', 1024 'hourlyRecurringFee': '0', 1025 'id': 1800, 1026 "locationGroupId": '', 1027 'itemId': 439, 1028 'laborFee': '0', 1029 'onSaleFlag': '', 1030 'oneTimeFee': '0', 1031 'quantity': '', 1032 'setupFee': '0', 1033 'sort': 99}]}, 1034 {'attributes': [], 1035 'capacity': '10', 1036 'description': '10 Mbps Public & Private Network Uplinks', 1037 'itemCategory': {'categoryCode': 'port_speed', 'id': 26}, 1038 'keyName': '10_MBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS', 1039 'prices': [{'accountRestrictions': [], 1040 'currentPriceFlag': '', 1041 'hourlyRecurringFee': '0', 1042 'id': 272, 1043 "locationGroupId": '', 1044 'itemId': 186, 1045 'laborFee': '0', 1046 'onSaleFlag': '', 1047 'oneTimeFee': '0', 1048 'quantity': '', 1049 'recurringFee': '0', 1050 'setupFee': '0', 1051 'sort': 5}]}, 1052 {'attributes': [], 1053 'capacity': '0', 1054 'description': 'Ubuntu Linux 14.04 LTS Trusty Tahr (64 bit)', 1055 'itemCategory': {'categoryCode': 'os', 'id': 12}, 1056 'keyName': 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT', 1057 'prices': [{'accountRestrictions': [], 1058 'currentPriceFlag': '', 1059 'hourlyRecurringFee': '0.10', 1060 'id': 37650, 1061 "locationGroupId": '', 1062 'itemId': 4702, 1063 'laborFee': '0', 1064 'onSaleFlag': '', 1065 'oneTimeFee': '0', 1066 'quantity': '', 1067 'recurringFee': '0.1', 1068 'setupFee': '0.1', 1069 'sort': 9}], 1070 'softwareDescription': {'id': 1362, 1071 'longDescription': 'Ubuntu / 14.04-64', 1072 'referenceCode': 'UBUNTU_14_64'}} 1073] 1074 1075getItemPricesISCSI = [ 1076 { 1077 'currentPriceFlag': '', 1078 'id': 2152, 1079 'item': { 1080 'capacity': '1', 1081 'description': '1 GB iSCSI SAN Storage', 1082 'id': 1111, 1083 'softwareDescriptionId': '', 1084 'units': 'GB', 1085 'upgradeItemId': 547}, 1086 'itemId': 1111, 1087 'laborFee': '0', 1088 'onSaleFlag': '', 1089 'oneTimeFee': '0', 1090 'packageReferences': [{'id': 46626, 1091 'itemPriceId': 2152, 'packageId': 0}], 1092 'quantity': '', 1093 'recurringFee': '.35', 1094 'setupFee': '0', 1095 'sort': 0 1096 }, 1097 { 1098 'currentPriceFlag': '', 1099 'id': 22501, 1100 'item': {'capacity': '1', 1101 'description': '1 GB iSCSI SAN Storage', 1102 'id': 1111, 1103 'softwareDescriptionId': '', 1104 'units': 'GB', 1105 'upgradeItemId': 547}, 1106 'itemId': 1111, 1107 'laborFee': '0', 1108 'onSaleFlag': '', 1109 'oneTimeFee': '0', 1110 'packageReferences': [{ 1111 'id': 252983, 1112 'itemPriceId': 22501, 'packageId': 0 1113 }], 1114 'quantity': '', 1115 'recurringFee': '0', 1116 'setupFee': '0', 1117 'sort': 0 1118 }, 1119 { 1120 'currentPriceFlag': '', 1121 'id': 22441, 1122 'item': { 1123 'capacity': '1', 1124 'description': '1 GB iSCSI SAN Storage', 1125 'id': 1111, 1126 'softwareDescriptionId': '', 1127 'units': 'GB', 1128 'upgradeItemId': 547 1129 }, 1130 'itemId': 1111, 1131 'laborFee': '0', 1132 'onSaleFlag': '', 1133 'oneTimeFee': '0', 1134 'packageReferences': [{'id': 250326, 1135 'itemPriceId': 22441, 'packageId': 0}], 1136 'quantity': '', 1137 'recurringFee': '15', 1138 'setupFee': '0', 1139 'sort': 0 1140 }] 1141 1142getItemsVS = [ 1143 { 1144 'id': 1234, 1145 'keyName': 'KeyName01', 1146 'capacity': '1000', 1147 'description': 'Public & Private Networks', 1148 'itemCategory': {'categoryCode': 'Uplink Port Speeds'}, 1149 'softwareDescription': { 1150 'id': 1228, 1151 'longDescription': 'Redhat EL 5.10-64', 1152 'referenceCode': 'REDHAT_5_64' 1153 }, 1154 'prices': [{'id': 1122, 1155 'hourlyRecurringFee': 0.0, 1156 'recurringFee': 0.0, 1157 'categories': [{'id': 26, 1158 'name': 'Uplink Port Speeds', 1159 'categoryCode': 'port_speed'}]}], 1160 }, 1161 { 1162 'id': 2233, 1163 'keyName': 'KeyName02', 1164 'capacity': '1000', 1165 'description': 'Public & Private Networks', 1166 'itemCategory': {'categoryCode': 'Uplink Port Speeds'}, 1167 'prices': [{'id': 4477, 1168 'hourlyRecurringFee': 0.0, 1169 'recurringFee': 0.0, 1170 'categories': [{'id': 26, 1171 'name': 'Uplink Port Speeds', 1172 'categoryCode': 'port_speed'}]}], 1173 }, 1174 { 1175 'id': 1239, 1176 'keyName': 'KeyName03', 1177 'capacity': '2', 1178 'description': 'RAM', 1179 'itemCategory': {'categoryCode': 'RAM'}, 1180 'prices': [{'id': 1133, 1181 'hourlyRecurringFee': 0.0, 1182 'recurringFee': 0.0, 1183 'categories': [{'id': 3, 1184 'name': 'RAM', 1185 'categoryCode': 'ram'}]}], 1186 } 1187] 1188 1189verifyOrderDH = { 1190 'preTaxSetup': '0', 1191 'storageGroups': [], 1192 'postTaxRecurring': '3.164', 1193 'billingOrderItemId': '', 1194 'presetId': '', 1195 'hardware': [ 1196 { 1197 'domain': 't.com', 1198 'hostname': 't', 1199 'bareMetalInstanceFlag': '', 1200 'hardwareStatusId': '', 1201 'primaryBackendNetworkComponent': { 1202 'router': { 1203 'id': 51218 1204 }, 1205 'networkVlanId': '' 1206 }, 1207 'accountId': '' 1208 } 1209 ], 1210 'prices': [ 1211 { 1212 'itemId': 10195, 1213 'setupFee': '0', 1214 'recurringFee': '0', 1215 'hourlyRecurringFee': '3.164', 1216 'oneTimeFee': '0', 1217 'id': 200269, 1218 'item': { 1219 'thirdPartyPolicyAssignments': [], 1220 'capacity': '56', 1221 'description': '56 Cores X 242 RAM X 1.2 TB', 1222 'bundle': [ 1223 { 1224 'category': { 1225 'categoryCode': 'dedicated_host_ram', 1226 'id': 850, 1227 'name': 'Dedicated Host RAM' 1228 }, 1229 'itemPriceId': 200301, 1230 'itemPrice': { 1231 'itemId': 10199, 1232 'setupFee': '0', 1233 'recurringFee': '0', 1234 'hourlyRecurringFee': '0', 1235 'oneTimeFee': '0', 1236 'id': 200301, 1237 'laborFee': '0' 1238 }, 1239 'bundleItemId': 10195, 1240 'bundleItem': { 1241 'units': 'CORE', 1242 'keyName': '56_CORES_X_242_RAM_X_1_4_TB', 1243 'capacity': '56', 1244 'description': '56 Cores X 242 RAM X 1.2 TB', 1245 'id': 10195 1246 }, 1247 'id': 41763 1248 }, 1249 { 1250 'category': { 1251 'categoryCode': 'dedicated_host_disk', 1252 'id': 851, 1253 'name': 'Dedicated Host Disk' 1254 }, 1255 'itemPriceId': 200299, 1256 'itemPrice': { 1257 'itemId': 10197, 1258 'setupFee': '0', 1259 'recurringFee': '0', 1260 'hourlyRecurringFee': '0', 1261 'oneTimeFee': '0', 1262 'id': 200299, 1263 'laborFee': '0' 1264 }, 1265 'bundleItemId': 10195, 1266 'bundleItem': { 1267 'units': 'CORE', 1268 'keyName': '56_CORES_X_242_RAM_X_1_4_TB', 1269 'capacity': '56', 1270 'description': '56 Cores X 242 RAM X 1.2 TB', 1271 'id': 10195 1272 }, 1273 'id': 41761 1274 } 1275 ], 1276 'keyName': '56_CORES_X_242_RAM_X_1_4_TB', 1277 'units': 'CORE', 1278 'id': 10195 1279 }, 1280 'laborFee': '0', 1281 'categories': [ 1282 { 1283 'categoryCode': 'dedicated_virtual_hosts', 1284 'id': 848, 1285 'name': 'Dedicated Host' 1286 } 1287 ] 1288 } 1289 ], 1290 'sendQuoteEmailFlag': '', 1291 'packageId': 813, 1292 'useHourlyPricing': True, 1293 'preTaxRecurringMonthly': '0', 1294 'message': '', 1295 'preTaxRecurring': '3.164', 1296 'primaryDiskPartitionId': '', 1297 'locationObject': { 1298 'id': 138124, 1299 'name': 'dal05', 1300 'longName': 'Dallas 5' 1301 }, 1302 'taxCompletedFlag': False, 1303 'isManagedOrder': '', 1304 'imageTemplateId': '', 1305 'postTaxRecurringMonthly': '0', 1306 'resourceGroupTemplateId': '', 1307 'postTaxSetup': '0', 1308 'sshKeys': [], 1309 'location': '138124', 1310 'stepId': '', 1311 'proratedInitialCharge': '0', 1312 'totalRecurringTax': '0', 1313 'paymentType': '', 1314 'resourceGroupId': '', 1315 'sourceVirtualGuestId': '', 1316 'bigDataOrderFlag': False, 1317 'extendedHardwareTesting': '', 1318 'preTaxRecurringHourly': '3.164', 1319 'postTaxRecurringHourly': '3.164', 1320 'currencyShortName': 'USD', 1321 'containerSplHash': '000000003699c54000007f38ef8b0102', 1322 'proratedOrderTotal': '0', 1323 'serverCoreCount': '', 1324 'privateCloudOrderFlag': False, 1325 'totalSetupTax': '0', 1326 'quantity': 1 1327} 1328 1329itemsLoadbal = [ 1330 { 1331 "capacity": "0", 1332 "description": "Load Balancer as a Service", 1333 "id": 10043, 1334 "keyName": "LOAD_BALANCER_AS_A_SERVICE", 1335 "itemCategory": { 1336 "categoryCode": "load_balancer_as_a_service", 1337 "id": 1116, 1338 "name": "Load Balancer As A Service", 1339 }, 1340 "prices": [ 1341 { 1342 "hourlyRecurringFee": "0", 1343 "id": 199447, 1344 "locationGroupId": '', 1345 "recurringFee": "0", 1346 } 1347 ] 1348 }, 1349 { 1350 "capacity": "0", 1351 "description": "Load Balancer Uptime", 1352 "id": 10785, 1353 "keyName": "LOAD_BALANCER_UPTIME", 1354 "itemCategory": { 1355 "categoryCode": "load_balancer_uptime", 1356 "id": 1119, 1357 "name": "Load Balancer Uptime", 1358 }, 1359 "prices": [ 1360 { 1361 "hourlyRecurringFee": ".028", 1362 "id": 205913, 1363 "locationGroupId": 507, 1364 }]} 1365] 1366 1367regionsLoadbal = [{'description': 'WDC01 - Washington, DC - East Coast U.S.', 1368 'keyname': 'WASHINGTON_DC', 1369 'location': {'location': {'id': 37473, 1370 'longName': 'Washington 1', 1371 'name': 'wdc01', 1372 "groups": [ 1373 { 1374 "description": "Location Group 4", 1375 "id": 507, 1376 "locationGroupTypeId": 82, 1377 "name": "Location Group 4", 1378 "locationGroupType": { 1379 "name": "PRICING" 1380 } 1381 }, 1382 { 1383 "description": "COS Cross Region - EU", 1384 "id": 1303, 1385 "locationGroupTypeId": 82, 1386 "name": "eu", 1387 "locationGroupType": { 1388 "name": "PRICING" 1389 } 1390 }, 1391 { 1392 "description": "COS Regional Frankfurt", 1393 "id": 1783, 1394 "locationGroupTypeId": 82, 1395 "name": "eu-de", 1396 "locationGroupType": { 1397 "name": "PRICING" 1398 } 1399 } 1400 ] 1401 }}, 1402 'sortOrder': 10}] 1403 1404getAllObjectsLoadbal = [ 1405 { 1406 "id": 805, 1407 "keyName": "LBAAS", 1408 "name": "Load Balancer As A Service (LBaaS)", 1409 "items": itemsLoadbal, 1410 "regions": regionsLoadbal 1411 } 1412] 1413 1414getAllObjectsDH = [{ 1415 "subDescription": "Dedicated Host", 1416 "name": "Dedicated Host", 1417 "items": [{ 1418 "capacity": "56", 1419 "description": "56 Cores X 242 RAM X 1.2 TB", 1420 "bundleItems": [ 1421 { 1422 "capacity": "1200", 1423 "keyName": "1_4_TB_LOCAL_STORAGE_DEDICATED_HOST_CAPACITY", 1424 "categories": [{ 1425 "categoryCode": "dedicated_host_disk" 1426 }] 1427 }, 1428 { 1429 "capacity": "242", 1430 "keyName": "242_GB_RAM", 1431 "categories": [{ 1432 "categoryCode": "dedicated_host_ram" 1433 }] 1434 } 1435 ], 1436 "prices": [ 1437 { 1438 "itemId": 10195, 1439 "setupFee": "0", 1440 "recurringFee": "2099", 1441 "tierMinimumThreshold": "", 1442 "hourlyRecurringFee": "3.164", 1443 "oneTimeFee": "0", 1444 "currentPriceFlag": "", 1445 "id": 200269, 1446 "sort": 0, 1447 "onSaleFlag": "", 1448 "laborFee": "0", 1449 "locationGroupId": "", 1450 "quantity": "" 1451 }, 1452 { 1453 "itemId": 10195, 1454 "setupFee": "0", 1455 "recurringFee": "2161.97", 1456 "tierMinimumThreshold": "", 1457 "hourlyRecurringFee": "3.258", 1458 "oneTimeFee": "0", 1459 "currentPriceFlag": "", 1460 "id": 200271, 1461 "sort": 0, 1462 "onSaleFlag": "", 1463 "laborFee": "0", 1464 "locationGroupId": 503, 1465 "quantity": "" 1466 } 1467 ], 1468 "keyName": "56_CORES_X_242_RAM_X_1_4_TB", 1469 "id": 10195, 1470 "itemCategory": { 1471 "categoryCode": "dedicated_virtual_hosts" 1472 } 1473 }], 1474 "keyName": "DEDICATED_HOST", 1475 "unitSize": "", 1476 "regions": [{ 1477 "location": { 1478 "locationPackageDetails": [{ 1479 "isAvailable": 1, 1480 "locationId": 138124, 1481 "packageId": 813 1482 }], 1483 "location": { 1484 "statusId": 2, 1485 "priceGroups": [{ 1486 "locationGroupTypeId": 82, 1487 "description": "CDN - North America - Akamai", 1488 "locationGroupType": { 1489 "name": "PRICING" 1490 }, 1491 "securityLevelId": "", 1492 "id": 1463, 1493 "name": "NORTH-AMERICA-AKAMAI" 1494 }], 1495 "id": 138124, 1496 "name": "dal05", 1497 "longName": "Dallas 5" 1498 } 1499 }, 1500 "keyname": "DALLAS05", 1501 "description": "DAL05 - Dallas", 1502 "sortOrder": 12 1503 }], 1504 "firstOrderStepId": "", 1505 "id": 813, 1506 "isActive": 1, 1507 "description": "Dedicated Host" 1508}] 1509 1510getAllObjectsDHGpu = [{ 1511 "subDescription": "Dedicated Host", 1512 "name": "Dedicated Host", 1513 "items": [{ 1514 "capacity": "56", 1515 "description": "56 Cores x 360 RAM x 1.2 TB x 2 GPU P100 [encryption enabled]", 1516 "bundleItems": [ 1517 { 1518 "capacity": "1200", 1519 "keyName": "1.2 TB Local Storage (Dedicated Host Capacity)", 1520 "categories": [{ 1521 "categoryCode": "dedicated_host_disk" 1522 }] 1523 }, 1524 { 1525 "capacity": "242", 1526 "keyName": "2_GPU_P100_DEDICATED", 1527 "hardwareGenericComponentModel": { 1528 "capacity": "16", 1529 "id": 849, 1530 "hardwareComponentType": { 1531 "id": 20, 1532 "keyName": "GPU" 1533 } 1534 }, 1535 "categories": [{ 1536 "categoryCode": "dedicated_host_ram" 1537 }] 1538 } 1539 ], 1540 "prices": [ 1541 { 1542 "itemId": 10195, 1543 "setupFee": "0", 1544 "recurringFee": "2099", 1545 "tierMinimumThreshold": "", 1546 "hourlyRecurringFee": "3.164", 1547 "oneTimeFee": "0", 1548 "currentPriceFlag": "", 1549 "id": 200269, 1550 "sort": 0, 1551 "onSaleFlag": "", 1552 "laborFee": "0", 1553 "locationGroupId": "", 1554 "quantity": "" 1555 }, 1556 { 1557 "itemId": 10195, 1558 "setupFee": "0", 1559 "recurringFee": "2161.97", 1560 "tierMinimumThreshold": "", 1561 "hourlyRecurringFee": "3.258", 1562 "oneTimeFee": "0", 1563 "currentPriceFlag": "", 1564 "id": 200271, 1565 "sort": 0, 1566 "onSaleFlag": "", 1567 "laborFee": "0", 1568 "locationGroupId": 503, 1569 "quantity": "" 1570 } 1571 ], 1572 "keyName": "56_CORES_X_484_RAM_X_1_5_TB_X_2_GPU_P100", 1573 "id": 10195, 1574 "itemCategory": { 1575 "categoryCode": "dedicated_virtual_hosts" 1576 } 1577 }], 1578 "keyName": "DEDICATED_HOST", 1579 "unitSize": "", 1580 "regions": [{ 1581 "location": { 1582 "locationPackageDetails": [{ 1583 "isAvailable": 1, 1584 "locationId": 138124, 1585 "packageId": 813 1586 }], 1587 "location": { 1588 "statusId": 2, 1589 "priceGroups": [{ 1590 "locationGroupTypeId": 82, 1591 "description": "CDN - North America - Akamai", 1592 "locationGroupType": { 1593 "name": "PRICING" 1594 }, 1595 "securityLevelId": "", 1596 "id": 1463, 1597 "name": "NORTH-AMERICA-AKAMAI" 1598 }], 1599 "id": 138124, 1600 "name": "dal05", 1601 "longName": "Dallas 5" 1602 } 1603 }, 1604 "keyname": "DALLAS05", 1605 "description": "DAL05 - Dallas", 1606 "sortOrder": 12 1607 }], 1608 "firstOrderStepId": "", 1609 "id": 813, 1610 "isActive": 1, 1611 "description": "Dedicated Host" 1612}] 1613 1614getRegions = [{ 1615 "description": "WDC07 - Washington, DC", 1616 "keyname": "WASHINGTON07", 1617 "location": { 1618 "locationId": 2017603, 1619 "location": { 1620 "id": 2017603, 1621 "longName": "Washington 7", 1622 "name": "wdc07", 1623 "priceGroups": [ 1624 { 1625 "description": "COS Regional - US East", 1626 "id": 1305, 1627 "locationGroupTypeId": 82, 1628 "name": "us-east", 1629 "locationGroupType": { 1630 "name": "PRICING" 1631 } 1632 } 1633 ] 1634 } 1635 }, 1636 "locations": [{ 1637 "location": { 1638 "euCompliantFlag": False, 1639 "id": 2017603, 1640 "longName": "Washington 7", 1641 "name": "wdc07", 1642 "statusId": 2}, 1643 "locationPackageDetails": [{ 1644 "isAvailable": 1, 1645 "locationId": 2017603, 1646 "packageId": 46 1647 }] 1648 }] 1649}] 1650 1651getItemPrices = [ 1652 { 1653 "hourlyRecurringFee": ".093", 1654 "id": 204015, 1655 "recurringFee": "62", 1656 "categories": [ 1657 { 1658 "categoryCode": "guest_core" 1659 } 1660 ], 1661 "item": { 1662 "description": "4 x 2.0 GHz or higher Cores", 1663 "id": 859, 1664 "keyName": "GUEST_CORES_4", 1665 }, 1666 "pricingLocationGroup": { 1667 "id": 503, 1668 "locations": [ 1669 { 1670 "id": 449610, 1671 "longName": "Montreal 1", 1672 "name": "mon01", 1673 "statusId": 2, 1674 "regions": [ 1675 { 1676 "description": "MON01 - Montreal", 1677 "keyname": "MONTREAL", 1678 "sortOrder": 94 1679 } 1680 ] 1681 }, 1682 { 1683 "id": 449618, 1684 "longName": "Montreal 2", 1685 "name": "mon02", 1686 "statusId": 2 1687 }, 1688 { 1689 "id": 448994, 1690 "longName": "Toronto 1", 1691 "name": "tor01", 1692 "statusId": 2 1693 }, 1694 { 1695 "id": 350993, 1696 "longName": "Toronto 2", 1697 "name": "tor02", 1698 "statusId": 2 1699 }, 1700 { 1701 "id": 221894, 1702 "longName": "Amsterdam 2", 1703 "name": "ams02", 1704 "statusId": 2, 1705 "regions": [ 1706 { 1707 "description": "AMS02 POP - Amsterdam", 1708 "keyname": "AMSTERDAM02", 1709 "sortOrder": 12 1710 } 1711 ] 1712 }, 1713 { 1714 "id": 265592, 1715 "longName": "Amsterdam 1", 1716 "name": "ams01", 1717 "statusId": 2 1718 }, 1719 { 1720 "id": 814994, 1721 "longName": "Amsterdam 3", 1722 "name": "ams03", 1723 "statusId": 2 1724 } 1725 ] 1726 } 1727 }, 1728 { 1729 "hourlyRecurringFee": ".006", 1730 "id": 204663, 1731 "recurringFee": "4.1", 1732 "item": { 1733 "description": "100 GB (LOCAL)", 1734 "id": 3899, 1735 "keyName": "GUEST_DISK_100_GB_LOCAL_3", 1736 }, 1737 "pricingLocationGroup": { 1738 "id": 503, 1739 "locations": [ 1740 { 1741 "id": 449610, 1742 "longName": "Montreal 1", 1743 "name": "mon01", 1744 "statusId": 2 1745 }, 1746 { 1747 "id": 449618, 1748 "longName": "Montreal 2", 1749 "name": "mon02", 1750 "statusId": 2 1751 }, 1752 { 1753 "id": 448994, 1754 "longName": "Toronto 1", 1755 "name": "tor01", 1756 "statusId": 2 1757 }, 1758 { 1759 "id": 350993, 1760 "longName": "Toronto 2", 1761 "name": "tor02", 1762 "statusId": 2 1763 }, 1764 { 1765 "id": 221894, 1766 "longName": "Amsterdam 2", 1767 "name": "ams02", 1768 "statusId": 2 1769 }, 1770 { 1771 "id": 265592, 1772 "longName": "Amsterdam 1", 1773 "name": "ams01", 1774 "statusId": 2 1775 }, 1776 { 1777 "id": 814994, 1778 "longName": "Amsterdam 3", 1779 "name": "ams03", 1780 "statusId": 2 1781 } 1782 ] 1783 } 1784 }, 1785 { 1786 "hourlyRecurringFee": ".217", 1787 "id": 204255, 1788 "recurringFee": "144", 1789 "item": { 1790 "description": "16 GB ", 1791 "id": 1017, 1792 "keyName": "RAM_16_GB", 1793 }, 1794 "pricingLocationGroup": { 1795 "id": 503, 1796 "locations": [ 1797 { 1798 "id": 449610, 1799 "longName": "Montreal 1", 1800 "name": "mon01", 1801 "statusId": 2 1802 }, 1803 { 1804 "id": 449618, 1805 "longName": "Montreal 2", 1806 "name": "mon02", 1807 "statusId": 2 1808 }, 1809 { 1810 "id": 448994, 1811 "longName": "Toronto 1", 1812 "name": "tor01", 1813 "statusId": 2 1814 }, 1815 { 1816 "id": 350993, 1817 "longName": "Toronto 2", 1818 "name": "tor02", 1819 "statusId": 2 1820 }, 1821 { 1822 "id": 221894, 1823 "longName": "Amsterdam 2", 1824 "name": "ams02", 1825 "statusId": 2 1826 }, 1827 { 1828 "id": 265592, 1829 "longName": "Amsterdam 1", 1830 "name": "ams01", 1831 "statusId": 2 1832 }, 1833 { 1834 "id": 814994, 1835 "longName": "Amsterdam 3", 1836 "name": "ams03", 1837 "statusId": 2 1838 } 1839 ] 1840 } 1841 } 1842] 1843getActivePresets = [ 1844 { 1845 "description": "M1.64x512x25", 1846 "id": 799, 1847 "isActive": "1", 1848 "keyName": "M1_64X512X25", 1849 "name": "M1.64x512x25", 1850 "packageId": 835 1851 }, 1852 { 1853 "description": "M1.56x448x100", 1854 "id": 797, 1855 "isActive": "1", 1856 "keyName": "M1_56X448X100", 1857 "name": "M1.56x448x100", 1858 "packageId": 835 1859 }, 1860 { 1861 "description": "M1.64x512x100", 1862 "id": 801, 1863 "isActive": "1", 1864 "keyName": "M1_64X512X100", 1865 "name": "M1.64x512x100", 1866 "packageId": 835 1867 } 1868] 1869 1870getAccountRestrictedActivePresets = [] 1871 1872RESERVED_CAPACITY = [{"id": 1059}] 1873getItems_RESERVED_CAPACITY = [ 1874 { 1875 'id': 12273, 1876 'keyName': 'B1_1X2_1_YEAR_TERM', 1877 'description': 'B1 1x2 1 year term', 1878 'capacity': 12, 1879 'itemCategory': { 1880 'categoryCode': 'reserved_capacity', 1881 'id': 2060, 1882 'name': 'Reserved Capacity', 1883 'quantityLimit': 20, 1884 'sortOrder': '' 1885 }, 1886 'prices': [ 1887 { 1888 'currentPriceFlag': '', 1889 'hourlyRecurringFee': '.032', 1890 'id': 217561, 1891 'itemId': 12273, 1892 'laborFee': '0', 1893 'locationGroupId': '', 1894 'onSaleFlag': '', 1895 'oneTimeFee': '0', 1896 'quantity': '', 1897 'setupFee': '0', 1898 'sort': 0, 1899 'tierMinimumThreshold': '', 1900 'categories': [ 1901 { 1902 'categoryCode': 'reserved_capacity', 1903 'id': 2060, 1904 'name': 'Reserved Capacity', 1905 'quantityLimit': 20, 1906 'sortOrder': '' 1907 } 1908 ] 1909 } 1910 ] 1911 } 1912] 1913 1914getItems_1_IPV6_ADDRESS = [ 1915 { 1916 'id': 4097, 1917 'keyName': '1_IPV6_ADDRESS', 1918 'itemCategory': { 1919 'categoryCode': 'pri_ipv6_addresses', 1920 'id': 325, 1921 'name': 'Primary IPv6 Addresses', 1922 'quantityLimit': 0, 1923 'sortOrder': 34 1924 }, 1925 'prices': [ 1926 { 1927 'currentPriceFlag': '', 1928 'hourlyRecurringFee': '0', 1929 'id': 17129, 1930 'itemId': 4097, 1931 'laborFee': '0', 1932 'locationGroupId': '', 1933 'onSaleFlag': '', 1934 'oneTimeFee': '0', 1935 'quantity': '', 1936 'recurringFee': '0', 1937 'setupFee': '0', 1938 'sort': 0, 1939 'tierMinimumThreshold': '', 1940 'categories': [ 1941 { 1942 'categoryCode': 'pri_ipv6_addresses', 1943 'id': 325, 1944 'name': 'Primary IPv6 Addresses', 1945 'quantityLimit': 0, 1946 'sortOrder': 34 1947 } 1948 ] 1949 } 1950 ] 1951 } 1952] 1953 1954getObject = { 1955 'id': 200, 1956 'regions': [{'description': 'WDC01 - Washington, DC - East Coast U.S.', 1957 'keyname': 'WASHINGTON_DC', 1958 'location': {'location': {'id': 37473, 1959 'longName': 'Washington 1', 1960 'name': 'wdc01'}}, 1961 'sortOrder': 10}], 1962 'accountRestrictedActivePresets': [], 1963 'activePresets': [ 1964 { 1965 'description': 'AC2.8x60x25', 1966 'id': 861, 1967 'isActive': '1', 1968 'keyName': 'AC2_8X60X25', 1969 'name': 'AC2.8x60x25', 1970 'packageId': 835 1971 }, 1972 { 1973 'description': 'AC2.8x60x100', 1974 'id': 863, 1975 'isActive': '1', 1976 'keyName': 'AC2_8X60X100', 1977 'name': 'AC2.8x60x100', 1978 'packageId': 835 1979 }], 1980 "items": [{ 1981 "capacity": "56", 1982 "description": "56 Cores x 360 RAM x 1.2 TB x 2 GPU P100 [encryption enabled]", 1983 "bundleItems": [ 1984 { 1985 "capacity": "1200", 1986 "keyName": "1.2 TB Local Storage (Dedicated Host Capacity)", 1987 "categories": [{ 1988 "categoryCode": "dedicated_host_disk" 1989 }] 1990 }, 1991 { 1992 "capacity": "242", 1993 "keyName": "2_GPU_P100_DEDICATED", 1994 "hardwareGenericComponentModel": { 1995 "capacity": "16", 1996 "id": 849, 1997 "hardwareComponentType": { 1998 "id": 20, 1999 "keyName": "GPU" 2000 } 2001 }, 2002 "categories": [{ 2003 "categoryCode": "dedicated_host_ram" 2004 }, { 2005 "capacity": "2", 2006 "description": "2 x 2.0 GHz or higher Cores", 2007 "keyName": "GUEST_CORES_2", 2008 "attributes": [ 2009 { 2010 "id": 8261, 2011 "attributeTypeKeyName": "ORDER_SAVES_USAGE_FEES" 2012 } 2013 ], 2014 "itemCategory": { 2015 "categoryCode": "guest_core", 2016 "id": 80 2017 }}] 2018 } 2019 ], 2020 "prices": [ 2021 { 2022 "itemId": 10195, 2023 "setupFee": "0", 2024 "recurringFee": "2099", 2025 "tierMinimumThreshold": "", 2026 "hourlyRecurringFee": "3.164", 2027 "oneTimeFee": "0", 2028 "currentPriceFlag": "", 2029 "id": 200269, 2030 "sort": 0, 2031 "onSaleFlag": "", 2032 "laborFee": "0", 2033 "locationGroupId": "", 2034 "quantity": "" 2035 }, 2036 { 2037 "itemId": 10195, 2038 "setupFee": "0", 2039 "recurringFee": "2161.97", 2040 "tierMinimumThreshold": "", 2041 "hourlyRecurringFee": "3.258", 2042 "oneTimeFee": "0", 2043 "currentPriceFlag": "", 2044 "id": 200271, 2045 "sort": 0, 2046 "onSaleFlag": "", 2047 "laborFee": "0", 2048 "locationGroupId": 503, 2049 "quantity": "" 2050 } 2051 ], 2052 "keyName": "56_CORES_X_484_RAM_X_1_5_TB_X_2_GPU_P100", 2053 "id": 10195, 2054 "itemCategory": { 2055 "categoryCode": "dedicated_virtual_hosts" 2056 } 2057 }]} 2058 2059getItems_vmware = [{ 2060 "capacity": "2", 2061 "description": "VMware vSAN Enterprise Tier III 65 - 124 TB 6.x", 2062 "id": 9567, 2063 "itemTaxCategoryId": 166, 2064 "keyName": "VMWARE_VSAN_ENTERPRISE_TIER_III_65_124_TB_6_X_2", 2065 "softwareDescriptionId": 1979, 2066 "units": "CPU", 2067 "itemCategory": { 2068 "categoryCode": "software_license", 2069 "id": 438, 2070 "name": "Software License", 2071 "quantityLimit": 1, 2072 }, 2073 "prices": [ 2074 { 2075 "id": 245164, 2076 "itemId": 9567, 2077 "laborFee": "0", 2078 "locationGroupId": None, 2079 "recurringFee": "0", 2080 "setupFee": "0", 2081 "sort": 0, 2082 } 2083 ]}] 2084 2085getItemsVLAN = [{ 2086 "description": "Private Network Vlan", 2087 "id": 1072, 2088 "itemTaxCategoryId": 166, 2089 "keyName": "PRIVATE_NETWORK_VLAN", 2090 "itemCategory": { 2091 "categoryCode": "network_vlan", 2092 "id": 113, 2093 "name": "Network Vlan"}, 2094 "prices": [{ 2095 "id": 203707, 2096 "itemId": 1072, 2097 "laborFee": "0", 2098 "locationGroupId": 505, 2099 "oneTimeFee": "0", 2100 "recurringFee": "0", 2101 "setupFee": "0", 2102 "sort": 10, 2103 }, 2104 { 2105 "id": 203727, 2106 "itemId": 1072, 2107 "laborFee": "0", 2108 "locationGroupId": 545, 2109 "oneTimeFee": "0", 2110 "recurringFee": "0", 2111 "setupFee": "0", 2112 "sort": 10, 2113 }] 2114}, { 2115 "description": "Public Network Vlan", 2116 "id": 1071, 2117 "itemTaxCategoryId": 166, 2118 "keyName": "PUBLIC_NETWORK_VLAN", 2119 "units": "N/A", 2120 "itemCategory": { 2121 "categoryCode": "network_vlan", 2122 "id": 113, 2123 "name": "Network Vlan", 2124 }, 2125 "prices": [{ 2126 "id": 203637, 2127 "itemId": 1071, 2128 "laborFee": "0", 2129 "locationGroupId": 509, 2130 "oneTimeFee": "0", 2131 "recurringFee": "0", 2132 "setupFee": "0", 2133 "sort": 10, 2134 }, 2135 { 2136 "id": 203667, 2137 "itemId": 1071, 2138 "laborFee": "0", 2139 "locationGroupId": 545, 2140 "oneTimeFee": "0", 2141 "recurringFee": "0", 2142 "setupFee": "0", 2143 "sort": 10, 2144 }] 2145} 2146] 2147