brightbox-cli 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +18 -0
  4. data/Gemfile.lock +18 -19
  5. data/bin/_brightbox-bash-completer +42 -0
  6. data/brightbox-cli.gemspec +5 -5
  7. data/lib/brightbox-cli/accounts.rb +1 -3
  8. data/lib/brightbox-cli/api.rb +27 -8
  9. data/lib/brightbox-cli/cloud_ips.rb +11 -15
  10. data/lib/brightbox-cli/collaborating_account.rb +23 -26
  11. data/lib/brightbox-cli/collaboration.rb +1 -1
  12. data/lib/brightbox-cli/commands/{accounts-accept-invite.rb → accounts/accept-invite.rb} +2 -3
  13. data/lib/brightbox-cli/commands/{accounts-default.rb → accounts/default.rb} +1 -3
  14. data/lib/brightbox-cli/commands/{accounts-list.rb → accounts/list.rb} +1 -1
  15. data/lib/brightbox-cli/commands/{accounts-remove.rb → accounts/remove.rb} +1 -2
  16. data/lib/brightbox-cli/commands/{accounts-reset-ftp-password.rb → accounts/reset-ftp-password.rb} +10 -5
  17. data/lib/brightbox-cli/commands/{accounts-show.rb → accounts/show.rb} +14 -6
  18. data/lib/brightbox-cli/commands/{cloudips-create.rb → cloudips/create.rb} +4 -4
  19. data/lib/brightbox-cli/commands/{cloudips-destroy.rb → cloudips/destroy.rb} +1 -1
  20. data/lib/brightbox-cli/commands/{cloudips-list.rb → cloudips/list.rb} +2 -10
  21. data/lib/brightbox-cli/commands/{cloudips-map.rb → cloudips/map.rb} +2 -8
  22. data/lib/brightbox-cli/commands/{cloudips-show.rb → cloudips/show.rb} +13 -3
  23. data/lib/brightbox-cli/commands/{cloudips-unmap.rb → cloudips/unmap.rb} +1 -1
  24. data/lib/brightbox-cli/commands/{cloudips-update.rb → cloudips/update.rb} +5 -6
  25. data/lib/brightbox-cli/commands/collaborations.rb +3 -9
  26. data/lib/brightbox-cli/commands/{config-client-add.rb → config/client-add.rb} +2 -2
  27. data/lib/brightbox-cli/commands/{config-client-default.rb → config/client-default.rb} +1 -1
  28. data/lib/brightbox-cli/commands/{config-client-list.rb → config/client-list.rb} +3 -3
  29. data/lib/brightbox-cli/commands/{config-client-remove.rb → config/client-remove.rb} +4 -1
  30. data/lib/brightbox-cli/commands/{config-user-add.rb → config/user-add.rb} +1 -1
  31. data/lib/brightbox-cli/commands/{firewall-policies-apply.rb → firewall/policies-apply.rb} +3 -4
  32. data/lib/brightbox-cli/commands/{firewall-policies-create.rb → firewall/policies-create.rb} +3 -4
  33. data/lib/brightbox-cli/commands/{firewall-policies-destroy.rb → firewall/policies-destroy.rb} +2 -3
  34. data/lib/brightbox-cli/commands/{firewall-policies-list.rb → firewall/policies-list.rb} +2 -9
  35. data/lib/brightbox-cli/commands/{firewall-policies-remove.rb → firewall/policies-remove.rb} +2 -3
  36. data/lib/brightbox-cli/commands/{firewall-policies-show.rb → firewall/policies-show.rb} +11 -3
  37. data/lib/brightbox-cli/commands/{firewall-policies-update.rb → firewall/policies-update.rb} +3 -3
  38. data/lib/brightbox-cli/commands/{firewall-rules-create.rb → firewall/rules-create.rb} +4 -4
  39. data/lib/brightbox-cli/commands/{firewall-rules-destroy.rb → firewall/rules-destroy.rb} +2 -4
  40. data/lib/brightbox-cli/commands/{firewall-rules-list.rb → firewall/rules-list.rb} +2 -2
  41. data/lib/brightbox-cli/commands/{firewall-rules-show.rb → firewall/rules-show.rb} +10 -4
  42. data/lib/brightbox-cli/commands/{firewall-rules-update.rb → firewall/rules-update.rb} +3 -3
  43. data/lib/brightbox-cli/commands/{groups-add-server.rb → groups/add-server.rb} +2 -2
  44. data/lib/brightbox-cli/commands/{groups-create.rb → groups/create.rb} +3 -3
  45. data/lib/brightbox-cli/commands/{groups-destroy.rb → groups/destroy.rb} +2 -2
  46. data/lib/brightbox-cli/commands/groups/list.rb +14 -0
  47. data/lib/brightbox-cli/commands/{groups-move_servers.rb → groups/move_servers.rb} +1 -2
  48. data/lib/brightbox-cli/commands/{groups-remove-servers.rb → groups/remove-servers.rb} +1 -1
  49. data/lib/brightbox-cli/commands/{groups-show.rb → groups/show.rb} +1 -1
  50. data/lib/brightbox-cli/commands/{groups-update.rb → groups/update.rb} +5 -10
  51. data/lib/brightbox-cli/commands/{images-destroy.rb → images/destroy.rb} +2 -2
  52. data/lib/brightbox-cli/commands/{images-list.rb → images/list.rb} +2 -10
  53. data/lib/brightbox-cli/commands/{images-register.rb → images/register.rb} +6 -6
  54. data/lib/brightbox-cli/commands/{images-show.rb → images/show.rb} +2 -11
  55. data/lib/brightbox-cli/commands/{images-update.rb → images/update.rb} +8 -8
  56. data/lib/brightbox-cli/commands/{lbs-add-nodes.rb → lbs/add-nodes.rb} +2 -2
  57. data/lib/brightbox-cli/commands/{lbs-create.rb → lbs/create.rb} +16 -10
  58. data/lib/brightbox-cli/commands/{lbs-destroy.rb → lbs/destroy.rb} +1 -1
  59. data/lib/brightbox-cli/commands/{lbs-list.rb → lbs/list.rb} +2 -10
  60. data/lib/brightbox-cli/commands/{lbs-remove-nodes.rb → lbs/remove-nodes.rb} +2 -2
  61. data/lib/brightbox-cli/commands/{lbs-show.rb → lbs/show.rb} +4 -7
  62. data/lib/brightbox-cli/commands/{lbs-update.rb → lbs/update.rb} +16 -10
  63. data/lib/brightbox-cli/commands/{servers-activate-console.rb → servers/activate-console.rb} +3 -3
  64. data/lib/brightbox-cli/commands/{servers-create.rb → servers/create.rb} +4 -4
  65. data/lib/brightbox-cli/commands/{servers-destroy.rb → servers/destroy.rb} +2 -2
  66. data/lib/brightbox-cli/commands/{servers-list.rb → servers/list.rb} +7 -8
  67. data/lib/brightbox-cli/commands/{servers-show.rb → servers/show.rb} +1 -6
  68. data/lib/brightbox-cli/commands/{servers-shutdown.rb → servers/shutdown.rb} +1 -1
  69. data/lib/brightbox-cli/commands/{servers-snapshot.rb → servers/snapshot.rb} +1 -1
  70. data/lib/brightbox-cli/commands/{servers-start.rb → servers/start.rb} +1 -1
  71. data/lib/brightbox-cli/commands/{servers-stop.rb → servers/stop.rb} +1 -1
  72. data/lib/brightbox-cli/commands/{servers-update.rb → servers/update.rb} +2 -2
  73. data/lib/brightbox-cli/commands/sql/instances_create.rb +66 -0
  74. data/lib/brightbox-cli/commands/sql/instances_destroy.rb +28 -0
  75. data/lib/brightbox-cli/commands/sql/instances_list.rb +27 -0
  76. data/lib/brightbox-cli/commands/sql/instances_reset_password.rb +33 -0
  77. data/lib/brightbox-cli/commands/sql/instances_show.rb +26 -0
  78. data/lib/brightbox-cli/commands/sql/instances_snapshot.rb +25 -0
  79. data/lib/brightbox-cli/commands/sql/instances_update.rb +45 -0
  80. data/lib/brightbox-cli/commands/sql/snapshots_destroy.rb +31 -0
  81. data/lib/brightbox-cli/commands/sql/snapshots_list.rb +25 -0
  82. data/lib/brightbox-cli/commands/sql/snapshots_show.rb +26 -0
  83. data/lib/brightbox-cli/commands/sql/snapshots_update.rb +37 -0
  84. data/lib/brightbox-cli/commands/sql/types.rb +53 -0
  85. data/lib/brightbox-cli/commands/types.rb +1 -1
  86. data/lib/brightbox-cli/commands/users/list.rb +17 -0
  87. data/lib/brightbox-cli/commands/{users-show.rb → users/show.rb} +5 -13
  88. data/lib/brightbox-cli/commands/{users-update.rb → users/update.rb} +3 -3
  89. data/lib/brightbox-cli/config.rb +4 -7
  90. data/lib/brightbox-cli/config/accounts.rb +3 -6
  91. data/lib/brightbox-cli/config/api_client.rb +12 -4
  92. data/lib/brightbox-cli/config/authentication_tokens.rb +8 -14
  93. data/lib/brightbox-cli/config/clients.rb +6 -7
  94. data/lib/brightbox-cli/config/section_name_deduplicator.rb +4 -5
  95. data/lib/brightbox-cli/config/sections.rb +7 -10
  96. data/lib/brightbox-cli/config/user_application.rb +15 -7
  97. data/lib/brightbox-cli/connection_manager.rb +1 -2
  98. data/lib/brightbox-cli/database_server.rb +100 -0
  99. data/lib/brightbox-cli/database_snapshot.rb +36 -0
  100. data/lib/brightbox-cli/database_type.rb +44 -0
  101. data/lib/brightbox-cli/detailed_server.rb +8 -7
  102. data/lib/brightbox-cli/error_parser.rb +8 -4
  103. data/lib/brightbox-cli/firewall_rule.rb +5 -5
  104. data/lib/brightbox-cli/firewall_rules.rb +2 -3
  105. data/lib/brightbox-cli/gli_global_hooks.rb +7 -7
  106. data/lib/brightbox-cli/images.rb +13 -14
  107. data/lib/brightbox-cli/legacy/args_adjuster.rb +5 -6
  108. data/lib/brightbox-cli/load_balancers.rb +10 -13
  109. data/lib/brightbox-cli/logging.rb +3 -3
  110. data/lib/brightbox-cli/nilable_hash.rb +1 -1
  111. data/lib/brightbox-cli/ruby_core_ext.rb +1 -2
  112. data/lib/brightbox-cli/server_groups.rb +5 -5
  113. data/lib/brightbox-cli/servers.rb +9 -9
  114. data/lib/brightbox-cli/tables.rb +24 -25
  115. data/lib/brightbox-cli/types.rb +6 -5
  116. data/lib/brightbox-cli/user_collaboration.rb +2 -3
  117. data/lib/brightbox-cli/users.rb +3 -3
  118. data/lib/brightbox-cli/version.rb +1 -1
  119. data/lib/brightbox_cli.rb +10 -2
  120. data/locales/en.yml +205 -0
  121. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_a_collection_of_Accounts.yml +10 -10
  122. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_application/returns_resources_on_the_same_connection.yml +4 -4
  123. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_a_collection_of_Accounts.yml +8 -8
  124. data/spec/cassettes/Brightbox_Account/_all/when_connected_using_an_client/returns_resources_on_the_same_connection.yml +4 -4
  125. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_changes_to_the_config_file.yml +4 -4
  126. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_default_account.yml +4 -4
  127. data/spec/cassettes/Brightbox_BBConfig/_add_section/when_first_and_only_client/saves_the_new_client_as_the_default.yml +4 -4
  128. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_is_not_authenticated/does_not_raise_an_error.yml +176 -176
  129. data/spec/cassettes/Brightbox_BBConfig/_find_or_set_default_account/when_client_may_access_one_account/updates_the_setting.yml +176 -176
  130. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_config_in_use_is_not_the_default/uses_correct_credentials.yml +2 -2
  131. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_a_cached_refresh_token/caches_the_new_tokens.yml +2 -2
  132. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_an_expired_refresh_token/caches_the_new_tokens.yml +4 -4
  133. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/caches_the_new_tokens.yml +2 -2
  134. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_a_user_app_with_no_tokens/prompts_user_to_retry_command.yml +2 -2
  135. data/spec/cassettes/Brightbox_BBConfig/_renew_tokens/when_using_an_API_client_with_no_tokens/caches_a_new_access_token.yml +2 -2
  136. data/spec/cassettes/Brightbox_CloudIP/_find_all_/when_a_Cloud_IP_exists/returns_a_suitable.yml +28 -28
  137. data/spec/cassettes/Brightbox_FirewallPolicy/_apply_to/should_apply_firewall_policy.yml +24 -24
  138. data/spec/cassettes/Brightbox_FirewallPolicy/_create/should_create_firewall_policy.yml +24 -24
  139. data/spec/cassettes/Brightbox_FirewallPolicy/_destroy/should_destroy_firewall_policy.yml +28 -28
  140. data/spec/cassettes/Brightbox_FirewallPolicy/_find_all_/when_a_policy_exists/should_list_firewall_policy.yml +24 -24
  141. data/spec/cassettes/Brightbox_FirewallPolicy/_find_or_call/when_a_policy_exists/should_show_firewall_policy.yml +20 -20
  142. data/spec/cassettes/Brightbox_FirewallRule/_create/when_policy_exists/creates_the_rule_successfully.yml +24 -24
  143. data/spec/cassettes/Brightbox_FirewallRule/_destroy/when_rule_exists/destroys_a_rule.yml +20 -20
  144. data/spec/cassettes/Brightbox_FirewallRule/_find/when_rule_exists/can_display_the_result.yml +24 -24
  145. data/spec/cassettes/Brightbox_FirewallRule/_from_policy/when_policy_exists_with_a_rule/lists_all_rules.yml +32 -32
  146. data/spec/cassettes/Brightbox_Server/_destroy/when_server_exists/should_work.yml +20 -20
  147. data/spec/cassettes/Brightbox_Server/_find_all_/when_a_server_exists/should_print_server_list.yml +28 -28
  148. data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +32 -32
  149. data/spec/cassettes/Brightbox_Server/_shutdown/should_work.yml +32 -32
  150. data/spec/cassettes/Brightbox_Server/_start/should_work.yml +44 -44
  151. data/spec/cassettes/Brightbox_Server/_stop/should_work.yml +32 -32
  152. data/spec/cassettes/Brightbox_Server/_update/when_passing_new_group_membership/should_update_with_group.yml +40 -40
  153. data/spec/cassettes/Brightbox_ServerGroup/_find_all_/when_a_group_exists/list_server_groups.yml +24 -24
  154. data/spec/cassettes/Firewall_policies/update/when_the_policy_does_not_exist/prints_error_to_STDERR.yml +6 -6
  155. data/spec/cassettes/brightbox_accounts/list/_when_access_token_expired_/does_not_report_invalid_token_errors.yml +18 -18
  156. data/spec/cassettes/brightbox_accounts/list/_when_both_tokens_expired_/does_not_report_invalid_token_errors.yml +18 -18
  157. data/spec/cassettes/brightbox_accounts/list/_when_invalid_tokens_/does_not_report_invalid_token_errors.yml +18 -18
  158. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/does_not_report_invalid_token_errors.yml +16 -16
  159. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_/reports_they_were_updated.yml +14 -14
  160. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/does_not_report_invalid_token_errors.yml +14 -14
  161. data/spec/cassettes/brightbox_accounts/list/_when_no_tokens_and_password_incorrect_/reports_unable_to_authenticate.yml +12 -12
  162. data/spec/cassettes/brightbox_accounts/list/does_not_error.yml +6 -6
  163. data/spec/cassettes/brightbox_cloudips/map/when_destination_is_a_server_ID/passes_the_interface_identifier_to_the_API.yml +542 -0
  164. data/spec/cassettes/brightbox_cloudips/map/when_destination_is_another_value/passes_the_identifier_to_the_API.yml +317 -0
  165. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/does_not_error.yml +154 -154
  166. data/spec/cassettes/brightbox_config/client_add/when_adding_a_new_client/sets_up_the_config.yml +154 -154
  167. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_change_the_default_client.yml +154 -154
  168. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/does_not_error.yml +154 -154
  169. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +154 -154
  170. data/spec/cassettes/brightbox_config/client_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +154 -154
  171. data/spec/cassettes/brightbox_config/user_add/when_NO_config_file_on_disk/sets_up_the_config.yml +10 -10
  172. data/spec/cassettes/brightbox_config/user_add/when_a_default_client_is_already_set/does_not_change_the_default_client.yml +4 -4
  173. data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/does_not_error.yml +4 -4
  174. data/spec/cassettes/brightbox_config/user_add/when_application_details_in_config/sets_up_the_config.yml +4 -4
  175. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/display_an_warning_about_preselected_default.yml +4 -4
  176. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/does_not_error.yml +4 -4
  177. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/selects_the_active_account_for_the_default.yml +4 -4
  178. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_only_one_active_account/sets_up_the_config.yml +4 -4
  179. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/display_an_warning_about_preselected_default.yml +4 -4
  180. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/does_not_error.yml +4 -4
  181. data/spec/cassettes/brightbox_config/user_add/when_application_has_access_to_multiple_accounts/sets_up_the_config.yml +4 -4
  182. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_error.yml +4 -4
  183. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/does_not_prompt_to_rerun_the_command.yml +4 -4
  184. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/requests_access_tokens.yml +4 -4
  185. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_this_as_the_default_client.yml +4 -4
  186. data/spec/cassettes/brightbox_config/user_add/when_new_client_is_first_and_only_client/sets_up_the_config.yml +10 -10
  187. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_error.yml +4 -4
  188. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/does_not_prompt_to_rerun_the_command.yml +4 -4
  189. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/requests_access_tokens.yml +4 -4
  190. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments/sets_up_the_config.yml +6 -6
  191. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/does_not_error.yml +4 -4
  192. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/requests_access_tokens.yml +4 -4
  193. data/spec/cassettes/brightbox_config/user_add/when_passing_in_required_arguments_and_api_url/sets_up_the_config.yml +4 -4
  194. data/spec/cassettes/brightbox_database-servers/create/--allow-access_10_0_0_0/correctly_sends_API_parameters.yml +93 -0
  195. data/spec/cassettes/brightbox_database-servers/create/--allow-access_srv-12345_grp-12345/correctly_sends_API_parameters.yml +93 -0
  196. data/spec/cassettes/brightbox_database-servers/create/--engine_mysql/correctly_sends_API_parameters.yml +93 -0
  197. data/spec/cassettes/brightbox_database-servers/create/--engine_mysql_--engine-version_5_6/correctly_sends_API_parameters.yml +93 -0
  198. data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_password.yml +93 -0
  199. data/spec/cassettes/brightbox_database-servers/create/without_arguments/reports_the_new_admin_username.yml +93 -0
  200. data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_active/correctly_sends_API_parameters.yml +181 -0
  201. data/spec/cassettes/brightbox_database-servers/snapshot/when_database_server_can_not_be_snapshotted/reports_an_error_to_the_user.yml +91 -0
  202. data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/does_not_output_to_stderr.yml +93 -0
  203. data/spec/cassettes/brightbox_database-snapshots/list/when_resources_are_available/outputs_table_details_to_stdout.yml +93 -0
  204. data/spec/cassettes/brightbox_database-snapshots/show/when_resource_exists/does_not_output_to_stderr.yml +93 -0
  205. data/spec/commands/accounts/list_spec.rb +1 -1
  206. data/spec/commands/cloudips/map_spec.rb +23 -4
  207. data/spec/commands/config/user_add_spec.rb +1 -1
  208. data/spec/commands/sql/instances/create_spec.rb +69 -0
  209. data/spec/commands/sql/instances/snapshot_spec.rb +36 -0
  210. data/spec/commands/sql/snapshots/list_spec.rb +29 -0
  211. data/spec/commands/sql/snapshots/show_spec.rb +29 -0
  212. data/spec/commands/sql/types/list_spec.rb +18 -0
  213. data/spec/spec_helper.rb +1 -3
  214. data/spec/support/vcr.rb +1 -1
  215. data/spec/unit/brightbox/api/conn_spec.rb +1 -1
  216. data/spec/unit/brightbox/bb_config/add_section_spec.rb +1 -1
  217. data/spec/unit/brightbox/bb_config/renew_tokens_spec.rb +1 -1
  218. data/spec/unit/brightbox/database_server_spec.rb +9 -0
  219. data/spec/unit/brightbox/database_snapshot_spec.rb +9 -0
  220. data/spec/unit/brightbox/database_type_spec.rb +9 -0
  221. data/spec/unit/brightbox/firewall_policy/create_spec.rb +1 -1
  222. data/spec/unit/brightbox/firewall_policy/destroy_spec.rb +1 -1
  223. data/spec/unit/brightbox/firewall_rule/create_spec.rb +1 -1
  224. data/spec/unit/brightbox/firewall_rule/destroy_spec.rb +1 -1
  225. data/spec/unit/brightbox/firewall_rule/find_spec.rb +1 -1
  226. data/spec/unit/brightbox/firewall_rule/from_policy_spec.rb +1 -1
  227. data/spec/unit/brightbox/server/destroy_spec.rb +1 -1
  228. data/spec/unit/brightbox/server/find_or_call_spec.rb +1 -1
  229. data/spec/unit/brightbox/server/shutdown_spec.rb +1 -1
  230. data/spec/unit/brightbox/server/start_spec.rb +1 -1
  231. data/spec/unit/brightbox/server/stop_spec.rb +1 -1
  232. data/spec/unit/brightbox/server/update_spec.rb +1 -1
  233. data/spec/unit/brightbox/server_group/find_spec.rb +1 -1
  234. data/spec/unit/brightbox/user_collaboration/get_for_account_spec.rb +3 -3
  235. metadata +160 -115
  236. data/lib/brightbox-cli/commands/groups-list.rb +0 -21
  237. data/lib/brightbox-cli/commands/users-list.rb +0 -25
@@ -16,7 +16,7 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message:
19
+ message:
20
20
  headers:
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
@@ -43,7 +43,7 @@ http_interactions:
43
43
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T15:54:53Z","default":false},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T16:12:22Z","default":false}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-08-27T15:47:00Z","description":"Applied
44
44
  to the default server group."},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T15:54:12Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:54:13Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:20Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:21Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:56:46Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:06:22Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T16:12:42Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:12:43Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:49Z","description":null}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Teresa
45
45
  Ullrich","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
46
- http_version:
46
+ http_version:
47
47
  recorded_at: Tue, 27 Aug 2013 16:12:51 GMT
48
48
  - request:
49
49
  method: get
@@ -61,7 +61,7 @@ http_interactions:
61
61
  response:
62
62
  status:
63
63
  code: 200
64
- message:
64
+ message:
65
65
  headers:
66
66
  Content-Type:
67
67
  - application/json; charset=utf-8
@@ -82,7 +82,7 @@ http_interactions:
82
82
  body:
83
83
  encoding: UTF-8
84
84
  string: '[{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"il1fol","status":"available","cores":2,"ram":3072,"disk_size":6144,"handle":null},{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"pqut6ge","status":"available","cores":2,"ram":2048,"disk_size":3072,"handle":null},{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"k4yv7e","status":"available","cores":2,"ram":1024,"disk_size":6144,"handle":null},{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"rxmq4xqwri","status":"available","cores":2,"ram":1024,"disk_size":5120,"handle":null}]'
85
- http_version:
85
+ http_version:
86
86
  recorded_at: Tue, 27 Aug 2013 16:12:51 GMT
87
87
  - request:
88
88
  method: post
@@ -100,7 +100,7 @@ http_interactions:
100
100
  response:
101
101
  status:
102
102
  code: 202
103
- message:
103
+ message:
104
104
  headers:
105
105
  Location:
106
106
  - http://api.brightbox.dev/1.0/servers/srv-cuso5
@@ -122,7 +122,7 @@ http_interactions:
122
122
  encoding: UTF-8
123
123
  string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"wow","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:51Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},"cloud_ips":[],"interfaces":[{"id":"int-z94bg","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-z94bg","mac_address":"02:24:19:13:89:a2","ipv4_address":"10.19.137.162","ipv6_address":"2a02:1348:15d:e268:24:19ff:fe13:89a2"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
124
124
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
125
- http_version:
125
+ http_version:
126
126
  recorded_at: Tue, 27 Aug 2013 16:12:52 GMT
127
127
  - request:
128
128
  method: post
@@ -140,7 +140,7 @@ http_interactions:
140
140
  response:
141
141
  status:
142
142
  code: 400
143
- message:
143
+ message:
144
144
  headers:
145
145
  X-Frame-Options:
146
146
  - sameorigin
@@ -166,7 +166,7 @@ http_interactions:
166
166
  encoding: UTF-8
167
167
  string: '{"error":"unauthorized_client","error_description":"The authenticated
168
168
  client is not authorized to use the access grant type provided."}'
169
- http_version:
169
+ http_version:
170
170
  recorded_at: Tue, 27 Aug 2013 17:09:55 GMT
171
171
  - request:
172
172
  method: post
@@ -184,7 +184,7 @@ http_interactions:
184
184
  response:
185
185
  status:
186
186
  code: 400
187
- message:
187
+ message:
188
188
  headers:
189
189
  X-Frame-Options:
190
190
  - sameorigin
@@ -210,7 +210,7 @@ http_interactions:
210
210
  encoding: UTF-8
211
211
  string: '{"error":"unauthorized_client","error_description":"The authenticated
212
212
  client is not authorized to use the access grant type provided."}'
213
- http_version:
213
+ http_version:
214
214
  recorded_at: Tue, 27 Aug 2013 17:09:55 GMT
215
215
  - request:
216
216
  method: post
@@ -228,7 +228,7 @@ http_interactions:
228
228
  response:
229
229
  status:
230
230
  code: 400
231
- message:
231
+ message:
232
232
  headers:
233
233
  X-Frame-Options:
234
234
  - sameorigin
@@ -254,7 +254,7 @@ http_interactions:
254
254
  encoding: UTF-8
255
255
  string: '{"error":"unauthorized_client","error_description":"The authenticated
256
256
  client is not authorized to use the access grant type provided."}'
257
- http_version:
257
+ http_version:
258
258
  recorded_at: Tue, 27 Aug 2013 17:09:56 GMT
259
259
  - request:
260
260
  method: post
@@ -272,7 +272,7 @@ http_interactions:
272
272
  response:
273
273
  status:
274
274
  code: 200
275
- message:
275
+ message:
276
276
  headers:
277
277
  X-Frame-Options:
278
278
  - sameorigin
@@ -299,7 +299,7 @@ http_interactions:
299
299
  body:
300
300
  encoding: UTF-8
301
301
  string: '{"access_token":"5eccdf6b0fa2b108f02d9eb0820c8a4eedc90431","expires_in":7200}'
302
- http_version:
302
+ http_version:
303
303
  recorded_at: Wed, 28 Aug 2013 16:08:32 GMT
304
304
  - request:
305
305
  method: get
@@ -317,7 +317,7 @@ http_interactions:
317
317
  response:
318
318
  status:
319
319
  code: 401
320
- message:
320
+ message:
321
321
  headers:
322
322
  WWW-Authenticate:
323
323
  - OAuth error="invalid_token"
@@ -339,7 +339,7 @@ http_interactions:
339
339
  encoding: UTF-8
340
340
  string: '{"error":"invalid_token","error_description":"The OAuth token can not
341
341
  be found"}'
342
- http_version:
342
+ http_version:
343
343
  recorded_at: Tue, 17 Sep 2013 17:07:46 GMT
344
344
  - request:
345
345
  method: post
@@ -357,7 +357,7 @@ http_interactions:
357
357
  response:
358
358
  status:
359
359
  code: 200
360
- message:
360
+ message:
361
361
  headers:
362
362
  X-Frame-Options:
363
363
  - sameorigin
@@ -384,7 +384,7 @@ http_interactions:
384
384
  body:
385
385
  encoding: UTF-8
386
386
  string: '{"access_token":"294a8f59922ca797a23736ccc4d9b39edc91c7e8","expires_in":7200}'
387
- http_version:
387
+ http_version:
388
388
  recorded_at: Tue, 17 Sep 2013 17:07:46 GMT
389
389
  - request:
390
390
  method: get
@@ -402,7 +402,7 @@ http_interactions:
402
402
  response:
403
403
  status:
404
404
  code: 200
405
- message:
405
+ message:
406
406
  headers:
407
407
  Content-Type:
408
408
  - application/json; charset=utf-8
@@ -426,6 +426,6 @@ http_interactions:
426
426
  new servers are added to this group unless specified otherwise.","created_at":"2013-09-17T08:44:16Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-17T08:44:16Z","description":"Applied
427
427
  to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Kobe
428
428
  Swaniawski Sr.","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]'
429
- http_version:
429
+ http_version:
430
430
  recorded_at: Tue, 17 Sep 2013 17:07:46 GMT
431
431
  recorded_with: VCR 2.5.0
@@ -16,7 +16,7 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message:
19
+ message:
20
20
  headers:
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
@@ -44,7 +44,7 @@ http_interactions:
44
44
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T15:54:53Z","default":false},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T16:12:22Z","default":false}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-08-27T15:47:00Z","description":"Applied
45
45
  to the default server group."},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T15:54:12Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:54:13Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:20Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:21Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:56:46Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:06:22Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T16:12:42Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:12:43Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:49Z","description":null}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Teresa
46
46
  Ullrich","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
47
- http_version:
47
+ http_version:
48
48
  recorded_at: Tue, 27 Aug 2013 16:12:57 GMT
49
49
  - request:
50
50
  method: post
@@ -62,7 +62,7 @@ http_interactions:
62
62
  response:
63
63
  status:
64
64
  code: 202
65
- message:
65
+ message:
66
66
  headers:
67
67
  Location:
68
68
  - http://api.brightbox.dev/1.0/servers/srv-gf3ig
@@ -84,7 +84,7 @@ http_interactions:
84
84
  encoding: UTF-8
85
85
  string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:58Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-xkkoy","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-xkkoy","mac_address":"02:24:19:01:45:a2","ipv4_address":"10.1.69.162","ipv6_address":"2a02:1348:18c:5168:24:19ff:fe01:45a2"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
86
86
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
87
- http_version:
87
+ http_version:
88
88
  recorded_at: Tue, 27 Aug 2013 16:13:00 GMT
89
89
  - request:
90
90
  method: get
@@ -102,7 +102,7 @@ http_interactions:
102
102
  response:
103
103
  status:
104
104
  code: 200
105
- message:
105
+ message:
106
106
  headers:
107
107
  Content-Type:
108
108
  - application/json; charset=utf-8
@@ -133,7 +133,7 @@ http_interactions:
133
133
  servers","status":"active","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"created_at":"2013-08-27T16:12:55Z","started_at":"2013-08-27T16:12:58Z","deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-uehbk","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-uehbk","mac_address":"02:24:19:01:3a:72","ipv4_address":"10.1.58.114","ipv6_address":"2a02:1348:18c:4e9c:24:19ff:fe01:3a72"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
134
134
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]},{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"creating","hostname":"srv-12345","fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"created_at":"2013-08-27T16:12:58Z","started_at":null,"deleted_at":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-xkkoy","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-xkkoy","mac_address":"02:24:19:01:45:a2","ipv4_address":"10.1.69.162","ipv6_address":"2a02:1348:18c:5168:24:19ff:fe01:45a2"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
135
135
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}]'
136
- http_version:
136
+ http_version:
137
137
  recorded_at: Tue, 27 Aug 2013 16:13:01 GMT
138
138
  - request:
139
139
  method: get
@@ -151,7 +151,7 @@ http_interactions:
151
151
  response:
152
152
  status:
153
153
  code: 200
154
- message:
154
+ message:
155
155
  headers:
156
156
  Content-Type:
157
157
  - application/json; charset=utf-8
@@ -173,7 +173,7 @@ http_interactions:
173
173
  encoding: UTF-8
174
174
  string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"active","hostname":"srv-12345","created_at":"2013-08-27T16:12:58Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-xkkoy","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-xkkoy","mac_address":"02:24:19:01:45:a2","ipv4_address":"10.1.69.162","ipv6_address":"2a02:1348:18c:5168:24:19ff:fe01:45a2"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
175
175
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
176
- http_version:
176
+ http_version:
177
177
  recorded_at: Tue, 27 Aug 2013 16:13:02 GMT
178
178
  - request:
179
179
  method: delete
@@ -191,7 +191,7 @@ http_interactions:
191
191
  response:
192
192
  status:
193
193
  code: 202
194
- message:
194
+ message:
195
195
  headers:
196
196
  Content-Type:
197
197
  - application/json; charset=utf-8
@@ -211,7 +211,7 @@ http_interactions:
211
211
  encoding: UTF-8
212
212
  string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"","status":"deleting","hostname":"srv-12345","created_at":"2013-08-27T16:12:58Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-xkkoy","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-xkkoy","mac_address":"02:24:19:01:45:a2","ipv4_address":"10.1.69.162","ipv6_address":"2a02:1348:18c:5168:24:19ff:fe01:45a2"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
213
213
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
214
- http_version:
214
+ http_version:
215
215
  recorded_at: Tue, 27 Aug 2013 16:13:03 GMT
216
216
  - request:
217
217
  method: post
@@ -229,7 +229,7 @@ http_interactions:
229
229
  response:
230
230
  status:
231
231
  code: 400
232
- message:
232
+ message:
233
233
  headers:
234
234
  X-Frame-Options:
235
235
  - sameorigin
@@ -255,7 +255,7 @@ http_interactions:
255
255
  encoding: UTF-8
256
256
  string: '{"error":"unauthorized_client","error_description":"The authenticated
257
257
  client is not authorized to use the access grant type provided."}'
258
- http_version:
258
+ http_version:
259
259
  recorded_at: Tue, 27 Aug 2013 17:09:50 GMT
260
260
  - request:
261
261
  method: post
@@ -273,7 +273,7 @@ http_interactions:
273
273
  response:
274
274
  status:
275
275
  code: 400
276
- message:
276
+ message:
277
277
  headers:
278
278
  X-Frame-Options:
279
279
  - sameorigin
@@ -299,7 +299,7 @@ http_interactions:
299
299
  encoding: UTF-8
300
300
  string: '{"error":"unauthorized_client","error_description":"The authenticated
301
301
  client is not authorized to use the access grant type provided."}'
302
- http_version:
302
+ http_version:
303
303
  recorded_at: Tue, 27 Aug 2013 17:09:50 GMT
304
304
  - request:
305
305
  method: post
@@ -317,7 +317,7 @@ http_interactions:
317
317
  response:
318
318
  status:
319
319
  code: 400
320
- message:
320
+ message:
321
321
  headers:
322
322
  X-Frame-Options:
323
323
  - sameorigin
@@ -343,7 +343,7 @@ http_interactions:
343
343
  encoding: UTF-8
344
344
  string: '{"error":"unauthorized_client","error_description":"The authenticated
345
345
  client is not authorized to use the access grant type provided."}'
346
- http_version:
346
+ http_version:
347
347
  recorded_at: Tue, 27 Aug 2013 17:09:50 GMT
348
348
  - request:
349
349
  method: post
@@ -361,7 +361,7 @@ http_interactions:
361
361
  response:
362
362
  status:
363
363
  code: 400
364
- message:
364
+ message:
365
365
  headers:
366
366
  X-Frame-Options:
367
367
  - sameorigin
@@ -387,7 +387,7 @@ http_interactions:
387
387
  encoding: UTF-8
388
388
  string: '{"error":"unauthorized_client","error_description":"The authenticated
389
389
  client is not authorized to use the access grant type provided."}'
390
- http_version:
390
+ http_version:
391
391
  recorded_at: Tue, 27 Aug 2013 17:09:51 GMT
392
392
  - request:
393
393
  method: post
@@ -405,7 +405,7 @@ http_interactions:
405
405
  response:
406
406
  status:
407
407
  code: 400
408
- message:
408
+ message:
409
409
  headers:
410
410
  X-Frame-Options:
411
411
  - sameorigin
@@ -431,7 +431,7 @@ http_interactions:
431
431
  encoding: UTF-8
432
432
  string: '{"error":"unauthorized_client","error_description":"The authenticated
433
433
  client is not authorized to use the access grant type provided."}'
434
- http_version:
434
+ http_version:
435
435
  recorded_at: Tue, 27 Aug 2013 17:09:51 GMT
436
436
  - request:
437
437
  method: post
@@ -449,7 +449,7 @@ http_interactions:
449
449
  response:
450
450
  status:
451
451
  code: 200
452
- message:
452
+ message:
453
453
  headers:
454
454
  X-Frame-Options:
455
455
  - sameorigin
@@ -476,7 +476,7 @@ http_interactions:
476
476
  body:
477
477
  encoding: UTF-8
478
478
  string: '{"access_token":"4ea3f6f6a9fbaecf838f01544ea312b6e126e2b7","expires_in":7200}'
479
- http_version:
479
+ http_version:
480
480
  recorded_at: Wed, 28 Aug 2013 16:08:47 GMT
481
481
  - request:
482
482
  method: get
@@ -494,7 +494,7 @@ http_interactions:
494
494
  response:
495
495
  status:
496
496
  code: 401
497
- message:
497
+ message:
498
498
  headers:
499
499
  WWW-Authenticate:
500
500
  - OAuth error="invalid_token"
@@ -516,7 +516,7 @@ http_interactions:
516
516
  encoding: UTF-8
517
517
  string: '{"error":"invalid_token","error_description":"The OAuth token can not
518
518
  be found"}'
519
- http_version:
519
+ http_version:
520
520
  recorded_at: Tue, 17 Sep 2013 17:07:47 GMT
521
521
  - request:
522
522
  method: post
@@ -534,7 +534,7 @@ http_interactions:
534
534
  response:
535
535
  status:
536
536
  code: 200
537
- message:
537
+ message:
538
538
  headers:
539
539
  X-Frame-Options:
540
540
  - sameorigin
@@ -561,7 +561,7 @@ http_interactions:
561
561
  body:
562
562
  encoding: UTF-8
563
563
  string: '{"access_token":"06fc4dac3891c02c6f0ba6cd1d084a4dc6cc2a26","expires_in":7200}'
564
- http_version:
564
+ http_version:
565
565
  recorded_at: Tue, 17 Sep 2013 17:07:47 GMT
566
566
  - request:
567
567
  method: get
@@ -579,7 +579,7 @@ http_interactions:
579
579
  response:
580
580
  status:
581
581
  code: 200
582
- message:
582
+ message:
583
583
  headers:
584
584
  Content-Type:
585
585
  - application/json; charset=utf-8
@@ -603,6 +603,6 @@ http_interactions:
603
603
  new servers are added to this group unless specified otherwise.","created_at":"2013-09-17T08:44:16Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-17T08:44:16Z","description":"Applied
604
604
  to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Kobe
605
605
  Swaniawski Sr.","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]'
606
- http_version:
606
+ http_version:
607
607
  recorded_at: Tue, 17 Sep 2013 17:07:47 GMT
608
608
  recorded_with: VCR 2.5.0
@@ -16,7 +16,7 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message:
19
+ message:
20
20
  headers:
21
21
  Content-Type:
22
22
  - application/json; charset=utf-8
@@ -43,7 +43,7 @@ http_interactions:
43
43
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T15:54:53Z","default":false},{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"test","description":null,"created_at":"2013-08-27T16:12:22Z","default":false}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-08-27T15:47:00Z","description":"Applied
44
44
  to the default server group."},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T15:54:12Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:54:13Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:20Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T15:54:21Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T15:56:46Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:06:22Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy_apply","created_at":"2013-08-27T16:12:42Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":"rspec_firewall_policy","created_at":"2013-08-27T16:12:43Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:48Z","description":null},{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":false,"name":null,"created_at":"2013-08-27T16:12:49Z","description":null}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Teresa
45
45
  Ullrich","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}'
46
- http_version:
46
+ http_version:
47
47
  recorded_at: Tue, 27 Aug 2013 16:12:52 GMT
48
48
  - request:
49
49
  method: post
@@ -61,7 +61,7 @@ http_interactions:
61
61
  response:
62
62
  status:
63
63
  code: 202
64
- message:
64
+ message:
65
65
  headers:
66
66
  Location:
67
67
  - http://api.brightbox.dev/1.0/servers/srv-m8jo6
@@ -84,7 +84,7 @@ http_interactions:
84
84
  string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"medium
85
85
  servers","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:55Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-uehbk","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-uehbk","mac_address":"02:24:19:01:3a:72","ipv4_address":"10.1.58.114","ipv6_address":"2a02:1348:18c:4e9c:24:19ff:fe01:3a72"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
86
86
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
87
- http_version:
87
+ http_version:
88
88
  recorded_at: Tue, 27 Aug 2013 16:12:55 GMT
89
89
  - request:
90
90
  method: get
@@ -102,7 +102,7 @@ http_interactions:
102
102
  response:
103
103
  status:
104
104
  code: 200
105
- message:
105
+ message:
106
106
  headers:
107
107
  Content-Type:
108
108
  - application/json; charset=utf-8
@@ -125,7 +125,7 @@ http_interactions:
125
125
  string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"medium
126
126
  servers","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:55Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":null,"status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-uehbk","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-uehbk","mac_address":"02:24:19:01:3a:72","ipv4_address":"10.1.58.114","ipv6_address":"2a02:1348:18c:4e9c:24:19ff:fe01:3a72"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
127
127
  new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
128
- http_version:
128
+ http_version:
129
129
  recorded_at: Tue, 27 Aug 2013 16:12:55 GMT
130
130
  - request:
131
131
  method: get
@@ -143,7 +143,7 @@ http_interactions:
143
143
  response:
144
144
  status:
145
145
  code: 200
146
- message:
146
+ message:
147
147
  headers:
148
148
  Content-Type:
149
149
  - application/json; charset=utf-8
@@ -164,7 +164,7 @@ http_interactions:
164
164
  body:
165
165
  encoding: UTF-8
166
166
  string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":null,"description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
167
- http_version:
167
+ http_version:
168
168
  recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
169
169
  - request:
170
170
  method: get
@@ -182,7 +182,7 @@ http_interactions:
182
182
  response:
183
183
  status:
184
184
  code: 200
185
- message:
185
+ message:
186
186
  headers:
187
187
  Content-Type:
188
188
  - application/json; charset=utf-8
@@ -203,7 +203,7 @@ http_interactions:
203
203
  body:
204
204
  encoding: UTF-8
205
205
  string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":null,"description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
206
- http_version:
206
+ http_version:
207
207
  recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
208
208
  - request:
209
209
  method: get
@@ -221,7 +221,7 @@ http_interactions:
221
221
  response:
222
222
  status:
223
223
  code: 200
224
- message:
224
+ message:
225
225
  headers:
226
226
  Content-Type:
227
227
  - application/json; charset=utf-8
@@ -242,7 +242,7 @@ http_interactions:
242
242
  body:
243
243
  encoding: UTF-8
244
244
  string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":null,"description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
245
- http_version:
245
+ http_version:
246
246
  recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
247
247
  - request:
248
248
  method: post
@@ -260,7 +260,7 @@ http_interactions:
260
260
  response:
261
261
  status:
262
262
  code: 200
263
- message:
263
+ message:
264
264
  headers:
265
265
  X-Frame-Options:
266
266
  - sameorigin
@@ -287,7 +287,7 @@ http_interactions:
287
287
  body:
288
288
  encoding: UTF-8
289
289
  string: '{"access_token":"e0018983861803edad7687f88d46f0a6db2480da","expires_in":7200}'
290
- http_version:
290
+ http_version:
291
291
  recorded_at: Tue, 27 Aug 2013 17:07:21 GMT
292
292
  - request:
293
293
  method: post
@@ -305,7 +305,7 @@ http_interactions:
305
305
  response:
306
306
  status:
307
307
  code: 400
308
- message:
308
+ message:
309
309
  headers:
310
310
  X-Frame-Options:
311
311
  - sameorigin
@@ -331,7 +331,7 @@ http_interactions:
331
331
  encoding: UTF-8
332
332
  string: '{"error":"unauthorized_client","error_description":"The authenticated
333
333
  client is not authorized to use the access grant type provided."}'
334
- http_version:
334
+ http_version:
335
335
  recorded_at: Tue, 27 Aug 2013 17:09:54 GMT
336
336
  - request:
337
337
  method: post
@@ -349,7 +349,7 @@ http_interactions:
349
349
  response:
350
350
  status:
351
351
  code: 400
352
- message:
352
+ message:
353
353
  headers:
354
354
  X-Frame-Options:
355
355
  - sameorigin
@@ -375,7 +375,7 @@ http_interactions:
375
375
  encoding: UTF-8
376
376
  string: '{"error":"unauthorized_client","error_description":"The authenticated
377
377
  client is not authorized to use the access grant type provided."}'
378
- http_version:
378
+ http_version:
379
379
  recorded_at: Tue, 27 Aug 2013 17:09:54 GMT
380
380
  - request:
381
381
  method: post
@@ -393,7 +393,7 @@ http_interactions:
393
393
  response:
394
394
  status:
395
395
  code: 400
396
- message:
396
+ message:
397
397
  headers:
398
398
  X-Frame-Options:
399
399
  - sameorigin
@@ -419,7 +419,7 @@ http_interactions:
419
419
  encoding: UTF-8
420
420
  string: '{"error":"unauthorized_client","error_description":"The authenticated
421
421
  client is not authorized to use the access grant type provided."}'
422
- http_version:
422
+ http_version:
423
423
  recorded_at: Tue, 27 Aug 2013 17:09:55 GMT
424
424
  - request:
425
425
  method: post
@@ -437,7 +437,7 @@ http_interactions:
437
437
  response:
438
438
  status:
439
439
  code: 400
440
- message:
440
+ message:
441
441
  headers:
442
442
  X-Frame-Options:
443
443
  - sameorigin
@@ -463,7 +463,7 @@ http_interactions:
463
463
  encoding: UTF-8
464
464
  string: '{"error":"unauthorized_client","error_description":"The authenticated
465
465
  client is not authorized to use the access grant type provided."}'
466
- http_version:
466
+ http_version:
467
467
  recorded_at: Tue, 27 Aug 2013 17:09:55 GMT
468
468
  - request:
469
469
  method: post
@@ -481,7 +481,7 @@ http_interactions:
481
481
  response:
482
482
  status:
483
483
  code: 400
484
- message:
484
+ message:
485
485
  headers:
486
486
  X-Frame-Options:
487
487
  - sameorigin
@@ -507,7 +507,7 @@ http_interactions:
507
507
  encoding: UTF-8
508
508
  string: '{"error":"unauthorized_client","error_description":"The authenticated
509
509
  client is not authorized to use the access grant type provided."}'
510
- http_version:
510
+ http_version:
511
511
  recorded_at: Tue, 27 Aug 2013 17:09:55 GMT
512
512
  - request:
513
513
  method: post
@@ -525,7 +525,7 @@ http_interactions:
525
525
  response:
526
526
  status:
527
527
  code: 400
528
- message:
528
+ message:
529
529
  headers:
530
530
  X-Frame-Options:
531
531
  - sameorigin
@@ -551,7 +551,7 @@ http_interactions:
551
551
  encoding: UTF-8
552
552
  string: '{"error":"unauthorized_client","error_description":"The authenticated
553
553
  client is not authorized to use the access grant type provided."}'
554
- http_version:
554
+ http_version:
555
555
  recorded_at: Tue, 27 Aug 2013 17:09:55 GMT
556
556
  - request:
557
557
  method: get
@@ -569,7 +569,7 @@ http_interactions:
569
569
  response:
570
570
  status:
571
571
  code: 401
572
- message:
572
+ message:
573
573
  headers:
574
574
  WWW-Authenticate:
575
575
  - OAuth error="invalid_token"
@@ -591,7 +591,7 @@ http_interactions:
591
591
  encoding: UTF-8
592
592
  string: '{"error":"invalid_token","error_description":"The OAuth token can not
593
593
  be found"}'
594
- http_version:
594
+ http_version:
595
595
  recorded_at: Tue, 17 Sep 2013 17:07:46 GMT
596
596
  - request:
597
597
  method: post
@@ -609,7 +609,7 @@ http_interactions:
609
609
  response:
610
610
  status:
611
611
  code: 200
612
- message:
612
+ message:
613
613
  headers:
614
614
  X-Frame-Options:
615
615
  - sameorigin
@@ -636,7 +636,7 @@ http_interactions:
636
636
  body:
637
637
  encoding: UTF-8
638
638
  string: '{"access_token":"aa3b1374e05c2b7f0f100a206b7f41516efdc9e3","expires_in":7200}'
639
- http_version:
639
+ http_version:
640
640
  recorded_at: Tue, 17 Sep 2013 17:07:46 GMT
641
641
  - request:
642
642
  method: get
@@ -654,7 +654,7 @@ http_interactions:
654
654
  response:
655
655
  status:
656
656
  code: 200
657
- message:
657
+ message:
658
658
  headers:
659
659
  Content-Type:
660
660
  - application/json; charset=utf-8
@@ -678,6 +678,6 @@ http_interactions:
678
678
  new servers are added to this group unless specified otherwise.","created_at":"2013-09-17T08:44:16Z","default":true}],"firewall_policies":[{"id":"fwp-12345","resource_type":"firewall_policy","url":"https://api.gb1.brightbox.com/1.0/firewall_policies/fwp-12345","default":true,"name":"default","created_at":"2013-09-17T08:44:16Z","description":"Applied
679
679
  to the default server group."}],"owner":{"id":"usr-12345","resource_type":"user","url":"https://api.gb1.brightbox.com/1.0/users/usr-12345","name":"Kobe
680
680
  Swaniawski Sr.","email_address":"jason.null@brightbox.com"},"users":[],"zones":[{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-a"},{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"}]}]'
681
- http_version:
681
+ http_version:
682
682
  recorded_at: Tue, 17 Sep 2013 17:07:46 GMT
683
683
  recorded_with: VCR 2.5.0