fog 1.11.1 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/Rakefile +5 -0
- data/changelog.txt +192 -0
- data/fog.gemspec +4 -4
- data/lib/fog.rb +3 -0
- data/lib/fog/account.rb +25 -0
- data/lib/fog/aws/cloud_formation.rb +5 -3
- data/lib/fog/aws/compute.rb +1 -0
- data/lib/fog/aws/iam.rb +2 -0
- data/lib/fog/aws/models/compute/server.rb +38 -32
- data/lib/fog/aws/models/dns/record.rb +1 -1
- data/lib/fog/aws/models/iam/role.rb +36 -0
- data/lib/fog/aws/models/iam/roles.rb +40 -0
- data/lib/fog/aws/models/rds/snapshots.rb +19 -3
- data/lib/fog/aws/models/storage/file.rb +1 -1
- data/lib/fog/aws/models/storage/files.rb +1 -1
- data/lib/fog/aws/parsers/cloud_formation/list_stack_resources.rb +32 -0
- data/lib/fog/aws/parsers/cloud_formation/list_stacks.rb +34 -0
- data/lib/fog/aws/parsers/compute/copy_image.rb +22 -0
- data/lib/fog/aws/parsers/compute/describe_instances.rb +11 -4
- data/lib/fog/aws/parsers/compute/run_instances.rb +5 -4
- data/lib/fog/aws/parsers/dns/get_hosted_zone.rb +2 -0
- data/lib/fog/aws/rds.rb +1 -1
- data/lib/fog/aws/requests/cloud_formation/list_stack_resources.rb +36 -0
- data/lib/fog/aws/requests/cloud_formation/list_stacks.rb +37 -0
- data/lib/fog/aws/requests/compute/copy_image.rb +63 -0
- data/lib/fog/aws/requests/compute/describe_instances.rb +1 -1
- data/lib/fog/aws/requests/compute/run_instances.rb +3 -1
- data/lib/fog/aws/requests/storage/post_object_restore.rb +54 -0
- data/lib/fog/aws/storage.rb +5 -5
- data/lib/fog/billing.rb +23 -0
- data/lib/fog/bin.rb +2 -0
- data/lib/fog/bin/cloudsigma.rb +29 -0
- data/lib/fog/bin/openvz.rb +31 -0
- data/lib/fog/bluebox/models/dns/zone.rb +1 -1
- data/lib/fog/brightbox/compute.rb +15 -9
- data/lib/fog/brightbox/oauth2.rb +5 -3
- data/lib/fog/brightbox/requests/compute/activate_console_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +11 -3
- data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_api_client.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_application.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_image.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_server.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_server_group.rb +2 -1
- data/lib/fog/brightbox/requests/compute/{destroy_api_client.rb → delete_api_client.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_application.rb → delete_application.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_cloud_ip.rb → delete_cloud_ip.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_firewall_policy.rb → delete_firewall_policy.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_firewall_rule.rb → delete_firewall_rule.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_image.rb → delete_image.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_load_balancer.rb → delete_load_balancer.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_server.rb → delete_server.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_server_group.rb → delete_server_group.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/get_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_interface.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server_type.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_user.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_zone.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_accounts.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_api_clients.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_applications.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_cloud_ips.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_images.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_load_balancers.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_server_groups.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_server_types.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_servers.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_users.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_zones.rb +1 -1
- data/lib/fog/brightbox/requests/compute/map_cloud_ip.rb +2 -1
- data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +12 -3
- data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +11 -3
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +1 -2
- data/lib/fog/brightbox/requests/compute/reset_secret_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/shutdown_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/snapshot_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/start_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/stop_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/unmap_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_account.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_api_client.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_application.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_image.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_scoped_account.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_server.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_server_group.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_user.rb +2 -1
- data/lib/fog/cloudsigma.rb +9 -0
- data/lib/fog/cloudsigma/compute.rb +221 -0
- data/lib/fog/cloudsigma/connection.rb +197 -0
- data/lib/fog/cloudsigma/error.rb +45 -0
- data/lib/fog/cloudsigma/mock_data.rb +46 -0
- data/lib/fog/cloudsigma/models/balance.rb +12 -0
- data/lib/fog/cloudsigma/models/current_usage.rb +19 -0
- data/lib/fog/cloudsigma/models/ip.rb +22 -0
- data/lib/fog/cloudsigma/models/ipconf.rb +12 -0
- data/lib/fog/cloudsigma/models/ips.rb +27 -0
- data/lib/fog/cloudsigma/models/lib_volume.rb +50 -0
- data/lib/fog/cloudsigma/models/lib_volumes.rb +27 -0
- data/lib/fog/cloudsigma/models/mountpoint.rb +25 -0
- data/lib/fog/cloudsigma/models/nic.rb +22 -0
- data/lib/fog/cloudsigma/models/obj_ref.rb +12 -0
- data/lib/fog/cloudsigma/models/price_calculation.rb +13 -0
- data/lib/fog/cloudsigma/models/price_record.rb +38 -0
- data/lib/fog/cloudsigma/models/pricing.rb +20 -0
- data/lib/fog/cloudsigma/models/profile.rb +50 -0
- data/lib/fog/cloudsigma/models/server.rb +208 -0
- data/lib/fog/cloudsigma/models/servers.rb +27 -0
- data/lib/fog/cloudsigma/models/subscription.rb +53 -0
- data/lib/fog/cloudsigma/models/subscriptions.rb +41 -0
- data/lib/fog/cloudsigma/models/usage_record.rb +13 -0
- data/lib/fog/cloudsigma/models/vlan.rb +29 -0
- data/lib/fog/cloudsigma/models/vlans.rb +27 -0
- data/lib/fog/cloudsigma/models/volume.rb +71 -0
- data/lib/fog/cloudsigma/models/volumes.rb +27 -0
- data/lib/fog/cloudsigma/nested_model.rb +60 -0
- data/lib/fog/cloudsigma/requests/calculate_subscription_price.rb +18 -0
- data/lib/fog/cloudsigma/requests/clone_libvolume.rb +32 -0
- data/lib/fog/cloudsigma/requests/clone_server.rb +32 -0
- data/lib/fog/cloudsigma/requests/clone_volume.rb +32 -0
- data/lib/fog/cloudsigma/requests/close_vnc.rb +30 -0
- data/lib/fog/cloudsigma/requests/create_server.rb +33 -0
- data/lib/fog/cloudsigma/requests/create_subscription.rb +40 -0
- data/lib/fog/cloudsigma/requests/create_volume.rb +30 -0
- data/lib/fog/cloudsigma/requests/delete_server.rb +18 -0
- data/lib/fog/cloudsigma/requests/delete_volume.rb +18 -0
- data/lib/fog/cloudsigma/requests/extend_subscription.rb +22 -0
- data/lib/fog/cloudsigma/requests/get_balance.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_current_usage.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_ip.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_lib_volume.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_pricing.rb +28 -0
- data/lib/fog/cloudsigma/requests/get_profile.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_server.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_subscription.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_vlan.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_volume.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_ips.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_lib_volumes.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_servers.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_subscriptions.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_vlans.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_volumes.rb +18 -0
- data/lib/fog/cloudsigma/requests/open_vnc.rb +34 -0
- data/lib/fog/cloudsigma/requests/start_server.rb +32 -0
- data/lib/fog/cloudsigma/requests/stop_server.rb +33 -0
- data/lib/fog/cloudsigma/requests/update_profile.rb +18 -0
- data/lib/fog/cloudsigma/requests/update_server.rb +40 -0
- data/lib/fog/cloudsigma/requests/update_vlan.rb +20 -0
- data/lib/fog/cloudsigma/requests/update_volume.rb +18 -0
- data/lib/fog/cloudstack/models/compute/servers.rb +3 -2
- data/lib/fog/core/json.rb +6 -48
- data/lib/fog/dns.rb +10 -6
- data/lib/fog/dnsimple/models/dns/record.rb +0 -1
- data/lib/fog/dnsmadeeasy/models/dns/record.rb +1 -1
- data/lib/fog/dreamhost/dns.rb +3 -1
- data/lib/fog/dynect/models/dns/zone.rb +1 -1
- data/lib/fog/hp.rb +1 -1
- data/lib/fog/internet_archive/models/storage/file.rb +1 -1
- data/lib/fog/internet_archive/models/storage/files.rb +1 -1
- data/lib/fog/joyent/compute.rb +59 -42
- data/lib/fog/joyent/errors.rb +2 -2
- data/lib/fog/joyent/models/compute/network.rb +13 -0
- data/lib/fog/joyent/models/compute/networks.rb +15 -0
- data/lib/fog/joyent/models/compute/server.rb +2 -1
- data/lib/fog/joyent/models/compute/servers.rb +3 -1
- data/lib/fog/joyent/requests/compute/delete_machine.rb +1 -1
- data/lib/fog/joyent/requests/compute/get_machine.rb +1 -1
- data/lib/fog/joyent/requests/compute/list_machines.rb +2 -1
- data/lib/fog/joyent/requests/compute/list_networks.rb +26 -0
- data/lib/fog/joyent/requests/compute/resize_machine.rb +2 -1
- data/lib/fog/libvirt/models/compute/nic.rb +1 -0
- data/lib/fog/linode/models/dns/record.rb +0 -1
- data/lib/fog/linode/models/dns/zone.rb +0 -1
- data/lib/fog/local/models/storage/files.rb +13 -13
- data/lib/fog/monitoring.rb +24 -0
- data/lib/fog/network.rb +4 -1
- data/lib/fog/openstack/compute.rb +5 -0
- data/lib/fog/openstack/identity.rb +2 -1
- data/lib/fog/openstack/image.rb +4 -1
- data/lib/fog/openstack/models/image/images.rb +1 -0
- data/lib/fog/openstack/models/network/lb_health_monitor.rb +68 -0
- data/lib/fog/openstack/models/network/lb_health_monitors.rb +34 -0
- data/lib/fog/openstack/models/network/lb_member.rb +53 -0
- data/lib/fog/openstack/models/network/lb_members.rb +34 -0
- data/lib/fog/openstack/models/network/lb_pool.rb +78 -0
- data/lib/fog/openstack/models/network/lb_pools.rb +34 -0
- data/lib/fog/openstack/models/network/lb_vip.rb +59 -0
- data/lib/fog/openstack/models/network/lb_vips.rb +34 -0
- data/lib/fog/openstack/network.rb +52 -4
- data/lib/fog/openstack/requests/compute/add_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/allocate_address.rb +1 -1
- data/lib/fog/openstack/requests/compute/attach_volume.rb +1 -1
- data/lib/fog/openstack/requests/compute/boot_from_snapshot.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_flavor.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_key_pair.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_security_group.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +4 -6
- data/lib/fog/openstack/requests/compute/create_volume.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_volume_snapshot.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_address_pools.rb +10 -0
- data/lib/fog/openstack/requests/compute/list_tenants.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/openstack/requests/compute/remove_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/update_quota.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_ec2_credential.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_role.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_user.rb +1 -1
- data/lib/fog/openstack/requests/identity/update_user.rb +1 -1
- data/lib/fog/openstack/requests/image/update_image_members.rb +1 -1
- data/lib/fog/openstack/requests/network/associate_lb_health_monitor.rb +39 -0
- data/lib/fog/openstack/requests/network/create_lb_health_monitor.rb +56 -0
- data/lib/fog/openstack/requests/network/create_lb_member.rb +53 -0
- data/lib/fog/openstack/requests/network/create_lb_pool.rb +60 -0
- data/lib/fog/openstack/requests/network/create_lb_vip.rb +60 -0
- data/lib/fog/openstack/requests/network/delete_lb_health_monitor.rb +30 -0
- data/lib/fog/openstack/requests/network/delete_lb_member.rb +30 -0
- data/lib/fog/openstack/requests/network/delete_lb_pool.rb +30 -0
- data/lib/fog/openstack/requests/network/delete_lb_vip.rb +30 -0
- data/lib/fog/openstack/requests/network/disassociate_lb_health_monitor.rb +31 -0
- data/lib/fog/openstack/requests/network/get_lb_health_monitor.rb +30 -0
- data/lib/fog/openstack/requests/network/get_lb_member.rb +30 -0
- data/lib/fog/openstack/requests/network/get_lb_pool.rb +30 -0
- data/lib/fog/openstack/requests/network/get_lb_pool_stats.rb +35 -0
- data/lib/fog/openstack/requests/network/get_lb_vip.rb +30 -0
- data/lib/fog/openstack/requests/network/list_lb_health_monitors.rb +27 -0
- data/lib/fog/openstack/requests/network/list_lb_members.rb +27 -0
- data/lib/fog/openstack/requests/network/list_lb_pools.rb +27 -0
- data/lib/fog/openstack/requests/network/list_lb_vips.rb +27 -0
- data/lib/fog/openstack/requests/network/update_lb_health_monitor.rb +45 -0
- data/lib/fog/openstack/requests/network/update_lb_member.rb +41 -0
- data/lib/fog/openstack/requests/network/update_lb_pool.rb +42 -0
- data/lib/fog/openstack/requests/network/update_lb_vip.rb +44 -0
- data/lib/fog/openstack/requests/storage/put_object_manifest.rb +19 -6
- data/lib/fog/openstack/requests/volume/create_volume.rb +1 -1
- data/lib/fog/openstack/requests/volume/create_volume_snapshot.rb +1 -1
- data/lib/fog/openstack/volume.rb +4 -1
- data/lib/fog/openvz.rb +9 -0
- data/lib/fog/openvz/README.md +188 -0
- data/lib/fog/openvz/compute.rb +176 -0
- data/lib/fog/openvz/models/compute/server.rb +194 -0
- data/lib/fog/openvz/models/compute/servers.rb +27 -0
- data/lib/fog/openvz/requests/compute/compact_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/convert_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/create_server.rb +23 -0
- data/lib/fog/openvz/requests/compute/destroy_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/exec2_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/exec_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/get_server_details.rb +21 -0
- data/lib/fog/openvz/requests/compute/list_servers.rb +21 -0
- data/lib/fog/openvz/requests/compute/mount_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/quotainit_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/quotaoff_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/quotaon_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/restart_server.rb +24 -0
- data/lib/fog/openvz/requests/compute/resume_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/runscript_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/set_server.rb +27 -0
- data/lib/fog/openvz/requests/compute/snapshot_delete_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_list_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_mount_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_switch_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_umount_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/start_server.rb +24 -0
- data/lib/fog/openvz/requests/compute/status_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/stop_server.rb +24 -0
- data/lib/fog/openvz/requests/compute/suspend_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/umount_server.rb +21 -0
- data/lib/fog/rackspace.rb +1 -1
- data/lib/fog/rackspace/block_storage.rb +2 -1
- data/lib/fog/rackspace/compute.rb +2 -1
- data/lib/fog/rackspace/compute_v2.rb +8 -7
- data/lib/fog/rackspace/databases.rb +2 -1
- data/lib/fog/rackspace/dns.rb +2 -1
- data/lib/fog/rackspace/docs/storage.md +35 -1
- data/lib/fog/rackspace/examples/storage/upload_large_files.rb +103 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -1
- data/lib/fog/rackspace/models/compute_v2/server.rb +0 -1
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +7 -7
- data/lib/fog/rackspace/models/storage/file.rb +18 -0
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +1 -1
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +2 -1
- data/lib/fog/rackspace/requests/storage/put_object.rb +7 -4
- data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +24 -9
- data/lib/fog/rackspace/service.rb +2 -1
- data/lib/fog/rackspace/storage.rb +2 -1
- data/lib/fog/riakcs.rb +2 -2
- data/lib/fog/riakcs/provisioning.rb +3 -1
- data/lib/fog/riakcs/requests/provisioning/create_user.rb +2 -2
- data/lib/fog/riakcs/requests/provisioning/get_user.rb +1 -1
- data/lib/fog/riakcs/requests/provisioning/list_users.rb +1 -1
- data/lib/fog/riakcs/requests/usage/get_usage.rb +1 -1
- data/lib/fog/riakcs/usage.rb +1 -0
- data/lib/fog/serverlove/compute.rb +26 -23
- data/lib/fog/serverlove/models/compute/server.rb +1 -1
- data/lib/fog/storage.rb +3 -0
- data/lib/fog/storm_on_demand.rb +9 -1
- data/lib/fog/storm_on_demand/README.md +49 -0
- data/lib/fog/storm_on_demand/account.rb +58 -0
- data/lib/fog/storm_on_demand/billing.rb +61 -0
- data/lib/fog/storm_on_demand/compute.rb +33 -58
- data/lib/fog/storm_on_demand/dns.rb +85 -0
- data/lib/fog/storm_on_demand/models/account/token.rb +23 -0
- data/lib/fog/storm_on_demand/models/account/tokens.rb +20 -0
- data/lib/fog/storm_on_demand/models/billing/invoice.rb +28 -0
- data/lib/fog/storm_on_demand/models/billing/invoices.rb +30 -0
- data/lib/fog/storm_on_demand/models/billing/payment.rb +17 -0
- data/lib/fog/storm_on_demand/models/billing/payments.rb +19 -0
- data/lib/fog/storm_on_demand/models/compute/config.rb +18 -4
- data/lib/fog/storm_on_demand/models/compute/configs.rb +6 -2
- data/lib/fog/storm_on_demand/models/compute/image.rb +22 -1
- data/lib/fog/storm_on_demand/models/compute/images.rb +12 -2
- data/lib/fog/storm_on_demand/models/compute/notification.rb +34 -0
- data/lib/fog/storm_on_demand/models/compute/notifications.rb +30 -0
- data/lib/fog/storm_on_demand/models/compute/product.rb +40 -0
- data/lib/fog/storm_on_demand/models/compute/products.rb +28 -0
- data/lib/fog/storm_on_demand/models/compute/server.rb +33 -9
- data/lib/fog/storm_on_demand/models/compute/servers.rb +7 -2
- data/lib/fog/storm_on_demand/models/compute/template.rb +7 -1
- data/lib/fog/storm_on_demand/models/compute/templates.rb +7 -2
- data/lib/fog/storm_on_demand/models/dns/domain.rb +34 -0
- data/lib/fog/storm_on_demand/models/dns/domains.rb +20 -0
- data/lib/fog/storm_on_demand/models/dns/record.rb +64 -0
- data/lib/fog/storm_on_demand/models/dns/records.rb +30 -0
- data/lib/fog/storm_on_demand/models/dns/reverse.rb +15 -0
- data/lib/fog/storm_on_demand/models/dns/reverses.rb +23 -0
- data/lib/fog/storm_on_demand/models/dns/zone.rb +40 -0
- data/lib/fog/storm_on_demand/models/dns/zones.rb +30 -0
- data/lib/fog/storm_on_demand/models/monitoring/bandwidth.rb +23 -0
- data/lib/fog/storm_on_demand/models/monitoring/bandwidths.rb +23 -0
- data/lib/fog/storm_on_demand/models/{compute/stat.rb → monitoring/load.rb} +6 -6
- data/lib/fog/storm_on_demand/models/monitoring/loads.rb +24 -0
- data/lib/fog/storm_on_demand/models/monitoring/monitor_service.rb +22 -0
- data/lib/fog/storm_on_demand/models/monitoring/monitor_services.rb +32 -0
- data/lib/fog/storm_on_demand/models/{compute → network}/balancer.rb +27 -5
- data/lib/fog/storm_on_demand/models/network/balancers.rb +44 -0
- data/lib/fog/storm_on_demand/models/network/firewall.rb +20 -0
- data/lib/fog/storm_on_demand/models/network/firewalls.rb +32 -0
- data/lib/fog/storm_on_demand/models/network/network_ip.rb +23 -0
- data/lib/fog/storm_on_demand/models/network/network_ips.rb +48 -0
- data/lib/fog/storm_on_demand/models/network/pool.rb +32 -0
- data/lib/fog/storm_on_demand/models/network/pools.rb +28 -0
- data/lib/fog/storm_on_demand/models/{compute → network}/private_ip.rb +2 -3
- data/lib/fog/storm_on_demand/models/network/private_ips.rb +40 -0
- data/lib/fog/storm_on_demand/models/network/ruleset.rb +27 -0
- data/lib/fog/storm_on_demand/models/network/rulesets.rb +28 -0
- data/lib/fog/storm_on_demand/models/network/zone.rb +27 -0
- data/lib/fog/storm_on_demand/models/network/zones.rb +24 -0
- data/lib/fog/storm_on_demand/models/storage/cluster.rb +20 -0
- data/lib/fog/storm_on_demand/models/storage/clusters.rb +20 -0
- data/lib/fog/storm_on_demand/models/storage/volume.rb +54 -0
- data/lib/fog/storm_on_demand/models/storage/volumes.rb +30 -0
- data/lib/fog/storm_on_demand/models/support/alert.rb +19 -0
- data/lib/fog/storm_on_demand/models/support/alerts.rb +20 -0
- data/lib/fog/storm_on_demand/models/support/ticket.rb +74 -0
- data/lib/fog/storm_on_demand/models/support/tickets.rb +33 -0
- data/lib/fog/storm_on_demand/models/vpn/vpn.rb +30 -0
- data/lib/fog/storm_on_demand/models/vpn/vpns.rb +27 -0
- data/lib/fog/storm_on_demand/monitoring.rb +68 -0
- data/lib/fog/storm_on_demand/network.rb +113 -0
- data/lib/fog/storm_on_demand/requests/account/create_token.rb +16 -0
- data/lib/fog/storm_on_demand/requests/account/expire_token.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/get_invoice.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/list_invoices.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/make_payment.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/next_invoice.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/create_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/create_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/current_notifications.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/delete_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/get_config_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_image_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_notification.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product_code.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product_price.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/get_template_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/list_images.rb +2 -2
- data/lib/fog/storm_on_demand/requests/compute/list_notifications.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_products.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +2 -2
- data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +2 -2
- data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/resolve_notification.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/restore_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/restore_template.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/server_history.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/server_status.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/shutdown_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/start_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/update_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/update_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/check_zone_delegation.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/create_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/create_record_region.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/create_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_record_region.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_reverse.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/get_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/get_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/list_domains.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/list_records.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/list_zones.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/renew_domain.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_record_region.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_reverse.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/update_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/add_balancer_node.rb +2 -2
- data/lib/fog/storm_on_demand/requests/network/add_balancer_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/check_balancer_available.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/check_server_attached.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/create_balancer.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/create_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/create_ruleset.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/delete_balancer.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/delete_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_assignments.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_balancer_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_firewall.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_ip_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_private_ip.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_ruleset.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/list_balancers.rb +3 -3
- data/lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/list_network_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/list_private_ips.rb +3 -3
- data/lib/fog/storm_on_demand/requests/network/list_rulesets.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/list_zones.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/remove_balancer_node.rb +2 -2
- data/lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/request_new_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/set_default_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_balancer.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_firewall.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_ruleset.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/create_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/delete_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/get_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/list_clusters.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/list_volumes.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/resize_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/update_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/add_feedback.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/authenticate.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/close_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/create_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/get_active_alert.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/get_ticket_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/list_ticket_types.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/list_tickets.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/reopen_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/reply_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/create_vpn.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/get_vpn.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/list_vpn_users.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/update_vpn.rb +16 -0
- data/lib/fog/storm_on_demand/shared.rb +55 -0
- data/lib/fog/storm_on_demand/storage.rb +69 -0
- data/lib/fog/storm_on_demand/support.rb +68 -0
- data/lib/fog/storm_on_demand/vpn.rb +58 -0
- data/lib/fog/support.rb +26 -0
- data/lib/fog/vcloud/compute.rb +6 -0
- data/lib/fog/vcloud/models/compute/server.rb +20 -0
- data/lib/fog/vcloud/models/compute/tag.rb +18 -0
- data/lib/fog/vcloud/models/compute/tags.rb +32 -0
- data/lib/fog/vcloud/requests/compute/configure_metadata.rb +36 -0
- data/lib/fog/vcloud/requests/compute/configure_vm_customization_script.rb +33 -0
- data/lib/fog/vcloud/requests/compute/delete_metadata.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_metadata.rb +10 -0
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vpn.rb +25 -0
- data/lib/fog/vsphere/requests/compute/get_folder.rb +1 -1
- data/lib/fog/zerigo/models/dns/record.rb +0 -1
- data/lib/fog/zerigo/models/dns/zone.rb +1 -1
- data/lib/fog/zerigo/models/dns/zones.rb +2 -2
- data/lib/fog/zerigo/requests/dns/list_zones.rb +7 -1
- data/lib/tasks/changelog_task.rb +1 -0
- data/tests/aws/models/iam/roles_tests.rb +63 -0
- data/tests/aws/requests/cloud_formation/stack_tests.rb +10 -0
- data/tests/aws/requests/compute/image_tests.rb +20 -0
- data/tests/aws/requests/compute/instance_tests.rb +50 -54
- data/tests/aws/requests/storage/object_tests.rb +7 -0
- data/tests/brightbox/oauth2_tests.rb +8 -1
- data/tests/cloudsigma/models/server_tests.rb +72 -0
- data/tests/cloudsigma/models/servers_tests.rb +7 -0
- data/tests/cloudsigma/models/volume_tests.rb +21 -0
- data/tests/cloudsigma/models/volumes_tests.rb +9 -0
- data/tests/cloudsigma/requests/server_tests.rb +81 -0
- data/tests/cloudsigma/requests/volumes_tests.rb +55 -0
- data/tests/dynect/requests/dns/dns_tests.rb +4 -4
- data/tests/helper.rb +3 -1
- data/tests/helpers/mock_helper.rb +3 -1
- data/tests/joyent/requests/compute/networks_tests.rb +39 -0
- data/tests/openstack/models/image/images_tests.rb +5 -0
- data/tests/openstack/models/network/lb_health_monitor_tests.rb +52 -0
- data/tests/openstack/models/network/lb_health_monitors_tests.rb +21 -0
- data/tests/openstack/models/network/lb_member_tests.rb +28 -0
- data/tests/openstack/models/network/lb_members_tests.rb +21 -0
- data/tests/openstack/models/network/lb_pool_tests.rb +53 -0
- data/tests/openstack/models/network/lb_pools_tests.rb +20 -0
- data/tests/openstack/models/network/lb_vip_tests.rb +39 -0
- data/tests/openstack/models/network/lb_vips_tests.rb +21 -0
- data/tests/openstack/requests/compute/address_tests.rb +8 -0
- data/tests/openstack/requests/compute/flavor_tests.rb +12 -0
- data/tests/openstack/requests/network/lb_health_monitor_tests.rb +93 -0
- data/tests/openstack/requests/network/lb_member_tests.rb +60 -0
- data/tests/openstack/requests/network/lb_pool_tests.rb +80 -0
- data/tests/openstack/requests/network/lb_vip_tests.rb +71 -0
- data/tests/openstack/requests/storage/large_object_tests.rb +75 -11
- data/tests/openvz/helper.rb +41 -0
- data/tests/openvz/models/compute/server_tests.rb +56 -0
- data/tests/openvz/models/compute/servers_tests.rb +35 -0
- data/tests/rackspace/block_storage_tests.rb +6 -3
- data/tests/rackspace/cdn_tests.rb +5 -2
- data/tests/rackspace/compute_tests.rb +4 -2
- data/tests/rackspace/compute_v2_tests.rb +4 -2
- data/tests/rackspace/databases_tests.rb +5 -2
- data/tests/rackspace/dns_tests.rb +5 -2
- data/tests/rackspace/load_balancer_tests.rb +4 -2
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +2 -0
- data/tests/rackspace/models/storage/file_tests.rb +30 -0
- data/tests/rackspace/requests/identity/token_tests.rb +9 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +2 -0
- data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +2 -1
- data/tests/rackspace/requests/storage/large_object_tests.rb +75 -11
- data/tests/rackspace/requests/storage/object_tests.rb +32 -2
- data/tests/rackspace/storage_tests.rb +5 -2
- data/tests/vcloud/requests/compute/disk_configure_tests.rb +7 -2
- data/tests/zerigo/requests/dns/dns_tests.rb +59 -13
- metadata +394 -30
- data/lib/fog/storm_on_demand/models/compute/balancers.rb +0 -21
- data/lib/fog/storm_on_demand/models/compute/private_ips.rb +0 -31
- data/lib/fog/storm_on_demand/models/compute/stats.rb +0 -22
- data/lib/fog/storm_on_demand/requests/compute/get_stats.rb +0 -16
- data/tests/core/json_tests.rb +0 -62
@@ -6,15 +6,24 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
# @param [Hash] options
|
9
|
-
# @option options [Array<Hash>] :servers Array of Hashes containing
|
9
|
+
# @option options [Array<Hash>] :servers Array of Hashes containing
|
10
|
+
# +{"server" => server_id}+ for each server to remove
|
10
11
|
# @option options [String] :destination ServerGroup to move servers to
|
11
12
|
#
|
12
|
-
# @return [Hash
|
13
|
+
# @return [Hash] if successful Hash version of JSON object
|
14
|
+
# @return [NilClass] if no options were passed
|
13
15
|
#
|
14
16
|
# @see https://api.gb1.brightbox.com/1.0/#server_group_move_servers_server_group
|
15
17
|
#
|
16
18
|
# @example
|
17
|
-
#
|
19
|
+
# options = {
|
20
|
+
# :destination => "grp-67890",
|
21
|
+
# :servers => [
|
22
|
+
# {"server" => "srv-abcde"},
|
23
|
+
# {"server" => "srv-fghij"}
|
24
|
+
# ]
|
25
|
+
# }
|
26
|
+
# Compute[:brightbox].remove_servers_server_group "grp-12345", options
|
18
27
|
#
|
19
28
|
def move_servers_server_group(identifier, options)
|
20
29
|
return nil if identifier.nil? || identifier == ""
|
@@ -8,7 +8,8 @@ module Fog
|
|
8
8
|
# @param [Hash] options
|
9
9
|
# @option options [String] :server_group Server Group to remove
|
10
10
|
#
|
11
|
-
# @return [Hash
|
11
|
+
# @return [Hash] if successful Hash version of JSON object
|
12
|
+
# @return [NilClass] if no options were passed
|
12
13
|
#
|
13
14
|
# @see https://api.gb1.brightbox.com/1.0/#firewall_policy_remove_firewall_policy
|
14
15
|
#
|
@@ -8,7 +8,8 @@ module Fog
|
|
8
8
|
# @param [Hash] options
|
9
9
|
# @option options [Array] :listeners Array of Listener parameters
|
10
10
|
#
|
11
|
-
# @return [Hash
|
11
|
+
# @return [Hash] if successful Hash version of JSON object
|
12
|
+
# @return [NilClass] if no options were passed
|
12
13
|
#
|
13
14
|
# @see https://api.gb1.brightbox.com/1.0/#load_balancer_remove_listeners_load_balancer
|
14
15
|
#
|
@@ -8,7 +8,8 @@ module Fog
|
|
8
8
|
# @param [Hash] options
|
9
9
|
# @option options [Array] :nodes Array of Node parameters
|
10
10
|
#
|
11
|
-
# @return [Hash
|
11
|
+
# @return [Hash] if successful Hash version of JSON object
|
12
|
+
# @return [NilClass] if no options were passed
|
12
13
|
#
|
13
14
|
# @see https://api.gb1.brightbox.com/1.0/#load_balancer_remove_nodes_load_balancer
|
14
15
|
#
|
@@ -6,14 +6,22 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
# @param [Hash] options
|
9
|
-
# @option options [Array<Hash>] :servers Array of Hashes containing
|
9
|
+
# @option options [Array<Hash>] :servers Array of Hashes containing
|
10
|
+
# +{"server" => server_id}+ for each server
|
10
11
|
#
|
11
|
-
# @return [Hash
|
12
|
+
# @return [Hash] if successful Hash version of JSON object
|
13
|
+
# @return [NilClass] if no options were passed
|
12
14
|
#
|
13
15
|
# @see https://api.gb1.brightbox.com/1.0/#server_group_remove_servers_server_group
|
14
16
|
#
|
15
17
|
# @example
|
16
|
-
#
|
18
|
+
# options = {
|
19
|
+
# :servers => [
|
20
|
+
# {"server" => "srv-abcde"},
|
21
|
+
# {"server" => "srv-fghij"}
|
22
|
+
# ]
|
23
|
+
# }
|
24
|
+
# Compute[:brightbox].remove_servers_server_group "grp-12345", options
|
17
25
|
#
|
18
26
|
def remove_servers_server_group(identifier, options)
|
19
27
|
return nil if identifier.nil? || identifier == ""
|
@@ -11,9 +11,9 @@ module Fog
|
|
11
11
|
# @param [String] identifier Unique reference to identify the resource
|
12
12
|
#
|
13
13
|
# @overload reset_ftp_password_account()
|
14
|
-
# @deprecated Use {Fog::Compute::Brightbox::Real#
|
14
|
+
# @deprecated Use {Fog::Compute::Brightbox::Real#reset_ftp_password_scoped_account} instead
|
15
15
|
#
|
16
|
-
# @return [Hash]
|
16
|
+
# @return [Hash] if successful Hash version of JSON object
|
17
17
|
#
|
18
18
|
# @see https://api.gb1.brightbox.com/1.0/#account_reset_ftp_password_account
|
19
19
|
#
|
@@ -2,7 +2,6 @@ module Fog
|
|
2
2
|
module Compute
|
3
3
|
class Brightbox
|
4
4
|
class Real
|
5
|
-
|
6
5
|
# Resets the secret used by the API client to a new generated value.
|
7
6
|
#
|
8
7
|
# The response is the only time the new secret is available in plaintext.
|
@@ -11,7 +10,7 @@ module Fog
|
|
11
10
|
#
|
12
11
|
# @param [String] identifier Unique reference to identify the resource
|
13
12
|
#
|
14
|
-
# @return [Hash]
|
13
|
+
# @return [Hash] if successful Hash version of JSON object
|
15
14
|
#
|
16
15
|
# @see https://api.gb1.brightbox.com/1.0/#api_client_reset_secret_api_client
|
17
16
|
#
|
@@ -6,7 +6,7 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
#
|
9
|
-
# @return [Hash]
|
9
|
+
# @return [Hash] if successful Hash version of JSON object
|
10
10
|
#
|
11
11
|
# @see https://api.gb1.brightbox.com/1.0/#application_reset_secret_application
|
12
12
|
#
|
@@ -6,7 +6,7 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
#
|
9
|
-
# @return [Hash]
|
9
|
+
# @return [Hash] if successful Hash version of JSON object
|
10
10
|
#
|
11
11
|
# @see https://api.gb1.brightbox.com/1.0/#server_shutdown_server
|
12
12
|
#
|
@@ -6,7 +6,7 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
#
|
9
|
-
# @return [Hash]
|
9
|
+
# @return [Hash] if successful Hash version of JSON object
|
10
10
|
#
|
11
11
|
# @see https://api.gb1.brightbox.com/1.0/#server_snapshot_server
|
12
12
|
#
|
@@ -6,7 +6,7 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
#
|
9
|
-
# @return [Hash]
|
9
|
+
# @return [Hash] if successful Hash version of JSON object
|
10
10
|
#
|
11
11
|
# @see https://api.gb1.brightbox.com/1.0/#server_start_server
|
12
12
|
#
|
@@ -6,7 +6,7 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
#
|
9
|
-
# @return [Hash]
|
9
|
+
# @return [Hash] if successful Hash version of JSON object
|
10
10
|
#
|
11
11
|
# @see https://api.gb1.brightbox.com/1.0/#server_stop_server
|
12
12
|
#
|
@@ -6,7 +6,7 @@ module Fog
|
|
6
6
|
#
|
7
7
|
# @param [String] identifier Unique reference to identify the resource
|
8
8
|
#
|
9
|
-
# @return [Hash]
|
9
|
+
# @return [Hash] if successful Hash version of JSON object
|
10
10
|
#
|
11
11
|
# @see https://api.gb1.brightbox.com/1.0/#cloud_ip_unmap_cloud_ip
|
12
12
|
#
|
@@ -31,7 +31,8 @@ module Fog
|
|
31
31
|
# @option options [String] :vat_registration_number Must be a valid EU VAT number or `nil`
|
32
32
|
# @option options [String] :telephone_number Valid International telephone number in E.164 format prefixed with `+`
|
33
33
|
#
|
34
|
-
# @return [Hash
|
34
|
+
# @return [Hash] if successful Hash version of JSON object
|
35
|
+
# @return [NilClass] if no options were passed
|
35
36
|
#
|
36
37
|
# @see https://api.gb1.brightbox.com/1.0/#account_update_account
|
37
38
|
#
|
@@ -9,7 +9,8 @@ module Fog
|
|
9
9
|
# @option options [String] :name
|
10
10
|
# @option options [String] :description
|
11
11
|
#
|
12
|
-
# @return [Hash
|
12
|
+
# @return [Hash] if successful Hash version of JSON object
|
13
|
+
# @return [NilClass] if no options were passed
|
13
14
|
#
|
14
15
|
# @see https://api.gb1.brightbox.com/1.0/#api_client_update_api_client
|
15
16
|
#
|
@@ -9,7 +9,8 @@ module Fog
|
|
9
9
|
# @option options [String] :name
|
10
10
|
# @option options [String] :description
|
11
11
|
#
|
12
|
-
# @return [Hash
|
12
|
+
# @return [Hash] if successful Hash version of JSON object
|
13
|
+
# @return [NilClass] if no options were passed
|
13
14
|
#
|
14
15
|
# @see https://api.gb1.brightbox.com/1.0/#application_update_application
|
15
16
|
#
|
@@ -10,7 +10,8 @@ module Fog
|
|
10
10
|
# @option options [String] :name Name for Cloud IP
|
11
11
|
# @option options [Array] :port_translators Port on which external clients connect and port on which your service is listening.
|
12
12
|
#
|
13
|
-
# @return [Hash
|
13
|
+
# @return [Hash] if successful Hash version of JSON object
|
14
|
+
# @return [NilClass] if no options were passed
|
14
15
|
#
|
15
16
|
# @see https://api.gb1.brightbox.com/1.0/#cloud_ip_update_cloud_ip
|
16
17
|
#
|
@@ -9,7 +9,8 @@ module Fog
|
|
9
9
|
# @option options [String] :name Editable label
|
10
10
|
# @option options [String] :description Longer editable description
|
11
11
|
#
|
12
|
-
# @return [Hash
|
12
|
+
# @return [Hash] if successful Hash version of JSON object
|
13
|
+
# @return [NilClass] if no options were passed
|
13
14
|
#
|
14
15
|
# @see https://api.gb1.brightbox.com/1.0/#firewall_policy_update_firewall_policy
|
15
16
|
#
|
@@ -14,7 +14,8 @@ module Fog
|
|
14
14
|
# @option options [String] :icmp_type_name
|
15
15
|
# @option options [String] :description
|
16
16
|
#
|
17
|
-
# @return [Hash
|
17
|
+
# @return [Hash] if successful Hash version of JSON object
|
18
|
+
# @return [NilClass] if no options were passed
|
18
19
|
#
|
19
20
|
# @see https://api.gb1.brightbox.com/1.0/#firewall_rule_update_firewall_rule
|
20
21
|
#
|
@@ -14,7 +14,8 @@ module Fog
|
|
14
14
|
# @option options [Boolean] :compatibility_mode
|
15
15
|
# @option options [String] :description
|
16
16
|
#
|
17
|
-
# @return [Hash
|
17
|
+
# @return [Hash] if successful Hash version of JSON object
|
18
|
+
# @return [NilClass] if no options were passed
|
18
19
|
#
|
19
20
|
# @see https://api.gb1.brightbox.com/1.0/#image_update_image
|
20
21
|
#
|
@@ -12,7 +12,8 @@ module Fog
|
|
12
12
|
# @option options [Array] :listeners What port to listen on, port to pass through to and protocol (tcp, http or http+ws) of listener. Timeout is optional and specified in milliseconds (default is 50000).
|
13
13
|
# @option options [String] :healthcheck Healthcheck options - only "port" and "type" required
|
14
14
|
#
|
15
|
-
# @return [Hash
|
15
|
+
# @return [Hash] if successful Hash version of JSON object
|
16
|
+
# @return [NilClass] if no options were passed
|
16
17
|
#
|
17
18
|
# @see https://api.gb1.brightbox.com/1.0/#load_balancer_update_load_balancer
|
18
19
|
#
|
@@ -15,7 +15,8 @@ module Fog
|
|
15
15
|
# @option options [String] :vat_registration_number Must be a valid EU VAT number or `nil`
|
16
16
|
# @option options [String] :telephone_number Valid International telephone number in E.164 format prefixed with `+`
|
17
17
|
#
|
18
|
-
# @return [Hash
|
18
|
+
# @return [Hash] if successful Hash version of JSON object
|
19
|
+
# @return [NilClass] if no options were passed
|
19
20
|
#
|
20
21
|
# @see https://api.gb1.brightbox.com/1.0/#account_update_account
|
21
22
|
#
|
@@ -10,7 +10,8 @@ module Fog
|
|
10
10
|
# @option options [String] :user_data User defined metadata
|
11
11
|
# @option options [Boolean] :compatibility_mode Server needs to be shutdown and restarted for changes to this to take effect
|
12
12
|
#
|
13
|
-
# @return [Hash
|
13
|
+
# @return [Hash] if successful Hash version of JSON object
|
14
|
+
# @return [NilClass] if no options were passed
|
14
15
|
#
|
15
16
|
# @see https://api.gb1.brightbox.com/1.0/#server_update_server
|
16
17
|
#
|
@@ -9,7 +9,8 @@ module Fog
|
|
9
9
|
# @option options [String] :name Editable user label
|
10
10
|
# @option options [String] :description Editable user description
|
11
11
|
#
|
12
|
-
# @return [Hash
|
12
|
+
# @return [Hash] if successful Hash version of JSON object
|
13
|
+
# @return [NilClass] if no options were passed
|
13
14
|
#
|
14
15
|
# @see https://api.gb1.brightbox.com/1.0/#server_group_update_server_group
|
15
16
|
#
|
@@ -12,7 +12,8 @@ module Fog
|
|
12
12
|
# @option options [String] :password A password string that conforms to the minimum requirements
|
13
13
|
# @option options [String] :password_confirmation A password string that conforms to the minimum requirements
|
14
14
|
#
|
15
|
-
# @return [Hash
|
15
|
+
# @return [Hash] if successful Hash version of JSON object
|
16
|
+
# @return [NilClass] if no options were passed
|
16
17
|
#
|
17
18
|
# @see https://api.gb1.brightbox.com/1.0/#user_update_user
|
18
19
|
#
|
@@ -0,0 +1,221 @@
|
|
1
|
+
require 'fog/compute'
|
2
|
+
require 'fog/cloudsigma/connection'
|
3
|
+
|
4
|
+
|
5
|
+
module Fog
|
6
|
+
module Compute
|
7
|
+
class CloudSigma < Fog::Service
|
8
|
+
requires :cloudsigma_password, :cloudsigma_username
|
9
|
+
recognizes :cloudsigma_password, :cloudsigma_username, :cloudsigma_host
|
10
|
+
|
11
|
+
model_path 'fog/cloudsigma/models'
|
12
|
+
request_path 'fog/cloudsigma/requests'
|
13
|
+
|
14
|
+
model :volume
|
15
|
+
collection :volumes
|
16
|
+
request :create_volume
|
17
|
+
request :get_volume
|
18
|
+
request :list_volumes
|
19
|
+
request :update_volume
|
20
|
+
request :delete_volume
|
21
|
+
request :clone_volume
|
22
|
+
|
23
|
+
model :lib_volume
|
24
|
+
collection :lib_volumes
|
25
|
+
request :get_lib_volume
|
26
|
+
request :list_lib_volumes
|
27
|
+
|
28
|
+
model :ipconf
|
29
|
+
model :nic
|
30
|
+
model :mountpoint
|
31
|
+
model :server
|
32
|
+
collection :servers
|
33
|
+
request :create_server
|
34
|
+
request :get_server
|
35
|
+
request :list_servers
|
36
|
+
request :update_server
|
37
|
+
request :delete_server
|
38
|
+
request :start_server
|
39
|
+
request :stop_server
|
40
|
+
request :open_vnc
|
41
|
+
request :close_vnc
|
42
|
+
request :clone_server
|
43
|
+
|
44
|
+
model :ip
|
45
|
+
collection :ips
|
46
|
+
request :list_ips
|
47
|
+
request :get_ip
|
48
|
+
|
49
|
+
model :vlan
|
50
|
+
collection :vlans
|
51
|
+
request :list_vlans
|
52
|
+
request :get_vlan
|
53
|
+
request :update_vlan
|
54
|
+
|
55
|
+
model :subscription
|
56
|
+
collection :subscriptions
|
57
|
+
request :list_subscriptions
|
58
|
+
request :get_subscription
|
59
|
+
request :create_subscription
|
60
|
+
request :extend_subscription
|
61
|
+
|
62
|
+
model :price_calculation
|
63
|
+
request :calculate_subscription_price
|
64
|
+
|
65
|
+
model :profile
|
66
|
+
request :get_profile
|
67
|
+
request :update_profile
|
68
|
+
|
69
|
+
model :balance
|
70
|
+
request :get_balance
|
71
|
+
|
72
|
+
model :current_usage
|
73
|
+
request :get_current_usage
|
74
|
+
|
75
|
+
model :pricing
|
76
|
+
request :get_pricing
|
77
|
+
|
78
|
+
|
79
|
+
module CommonMockAndReal
|
80
|
+
def initialize(options={})
|
81
|
+
@init_options = options
|
82
|
+
|
83
|
+
setup_connection(options)
|
84
|
+
end
|
85
|
+
|
86
|
+
def profile
|
87
|
+
response = get_profile
|
88
|
+
Profile.new(response.body)
|
89
|
+
end
|
90
|
+
|
91
|
+
def balance
|
92
|
+
response = get_balance
|
93
|
+
|
94
|
+
Balance.new(response.body)
|
95
|
+
end
|
96
|
+
|
97
|
+
def current_usage
|
98
|
+
response = get_current_usage
|
99
|
+
|
100
|
+
CurrentUsage.new(response.body['usage'])
|
101
|
+
end
|
102
|
+
|
103
|
+
def currency
|
104
|
+
# Cache since currency does not change
|
105
|
+
@currency ||= profile.currency
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
def pricing
|
110
|
+
resp = get_princing(currency)
|
111
|
+
|
112
|
+
resp.body['objects']
|
113
|
+
end
|
114
|
+
|
115
|
+
def current_pricing_levels
|
116
|
+
resp = get_pricing(currency)
|
117
|
+
|
118
|
+
resp.body['current']
|
119
|
+
end
|
120
|
+
|
121
|
+
def next_pricing_levels
|
122
|
+
resp = get_pricing(currency)
|
123
|
+
|
124
|
+
resp.body['next']
|
125
|
+
end
|
126
|
+
|
127
|
+
def subscription_pricing
|
128
|
+
resp = get_pricing(currency, true)
|
129
|
+
|
130
|
+
current_levels = resp.body['current']
|
131
|
+
current_prices = resp.body['objects']
|
132
|
+
|
133
|
+
current_pricing_pairs = current_levels.map do |resource, level|
|
134
|
+
price_for_resource_and_level = current_prices.detect do |price|
|
135
|
+
price['resource'] == resource
|
136
|
+
end
|
137
|
+
price_for_resource_and_level ||= {}
|
138
|
+
|
139
|
+
[resource, price_for_resource_and_level]
|
140
|
+
end
|
141
|
+
|
142
|
+
Pricing.new(Hash[current_pricing_pairs])
|
143
|
+
end
|
144
|
+
|
145
|
+
def current_pricing
|
146
|
+
resp = get_pricing(currency)
|
147
|
+
|
148
|
+
current_levels = resp.body['current']
|
149
|
+
current_prices = resp.body['objects']
|
150
|
+
|
151
|
+
current_pricing_pairs = current_levels.map do |resource, level|
|
152
|
+
price_for_resource_and_level = current_prices.detect do |price|
|
153
|
+
price['level'] == level && price['resource'] == resource
|
154
|
+
end
|
155
|
+
price_for_resource_and_level ||= {}
|
156
|
+
|
157
|
+
[resource, price_for_resource_and_level]
|
158
|
+
end
|
159
|
+
|
160
|
+
Pricing.new(Hash[current_pricing_pairs])
|
161
|
+
end
|
162
|
+
|
163
|
+
def next_pricing
|
164
|
+
resp = get_pricing(currency)
|
165
|
+
|
166
|
+
current_levels = resp.body['next']
|
167
|
+
current_prices = resp.body['objects']
|
168
|
+
|
169
|
+
current_pricing_pairs = current_levels.map do |resource, level|
|
170
|
+
price_for_resource_and_level = current_prices.detect do |price|
|
171
|
+
price['level'] == level && price['resource'] == resource
|
172
|
+
end
|
173
|
+
price_for_resource_and_level ||= {}
|
174
|
+
|
175
|
+
[resource, price_for_resource_and_level]
|
176
|
+
end
|
177
|
+
|
178
|
+
Pricing.new(Hash[current_pricing_pairs])
|
179
|
+
end
|
180
|
+
|
181
|
+
end
|
182
|
+
|
183
|
+
class Mock
|
184
|
+
include Collections
|
185
|
+
include CommonMockAndReal
|
186
|
+
include Fog::CloudSigma::CloudSigmaConnection::Mock
|
187
|
+
require 'fog/cloudsigma/mock_data'
|
188
|
+
|
189
|
+
def self.data
|
190
|
+
@data ||= Hash.new do |hash, key|
|
191
|
+
hash[key] = mock_data
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
def self.random_uuid
|
196
|
+
# Insert '4' at 13th position and 'a' at 17th as per uuid4 spec
|
197
|
+
hex = Fog::Mock.random_hex(30).insert(12,'4').insert(16, 'a')
|
198
|
+
# Add dashes
|
199
|
+
"#{hex[0...8]}-#{hex[8...12]}-#{hex[12...16]}-#{hex[16...20]}-#{hex[20..32]}"
|
200
|
+
end
|
201
|
+
|
202
|
+
def self.random_mac
|
203
|
+
(0..5).map{Fog::Mock.random_hex(2)}.join(':')
|
204
|
+
end
|
205
|
+
|
206
|
+
def data
|
207
|
+
self.class.data[:test]
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
class Real
|
212
|
+
include Collections
|
213
|
+
include CommonMockAndReal
|
214
|
+
include Fog::CloudSigma::CloudSigmaConnection::Real
|
215
|
+
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|