fog 1.10.1 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +1 -0
- data/Gemfile +2 -0
- data/README.md +4 -3
- data/changelog.txt +207 -0
- data/fog.gemspec +4 -3
- data/lib/fog/aws.rb +0 -2
- data/lib/fog/aws/dynamodb.rb +1 -1
- data/lib/fog/aws/elasticache.rb +0 -2
- data/lib/fog/aws/iam.rb +1 -0
- data/lib/fog/aws/models/compute/volume.rb +1 -0
- data/lib/fog/aws/models/iam/user.rb +1 -0
- data/lib/fog/aws/models/storage/directories.rb +1 -1
- data/lib/fog/aws/models/storage/directory.rb +20 -17
- data/lib/fog/aws/models/storage/file.rb +4 -5
- data/lib/fog/aws/parsers/iam/get_user.rb +2 -0
- data/lib/fog/aws/parsers/iam/list_users.rb +2 -0
- data/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb +2 -2
- data/lib/fog/aws/requests/cdn/put_distribution_config.rb +3 -3
- data/lib/fog/aws/requests/cloud_formation/update_stack.rb +3 -3
- data/lib/fog/aws/requests/cloud_formation/validate_template.rb +5 -5
- data/lib/fog/aws/requests/iam/create_user.rb +5 -4
- data/lib/fog/aws/requests/iam/get_user.rb +5 -4
- data/lib/fog/aws/requests/iam/list_users.rb +5 -4
- data/lib/fog/aws/requests/rds/create_db_instance.rb +25 -25
- data/lib/fog/aws/requests/storage/abort_multipart_upload.rb +3 -3
- data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +2 -2
- data/lib/fog/aws/requests/storage/copy_object.rb +2 -2
- data/lib/fog/aws/requests/storage/delete_bucket.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_cors.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_policy.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_website.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_multiple_objects.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_object.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_acl.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_cors.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_location.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_logging.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_policy.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_website.rb +1 -1
- data/lib/fog/aws/requests/storage/get_object.rb +2 -2
- data/lib/fog/aws/requests/storage/get_object_acl.rb +2 -2
- data/lib/fog/aws/requests/storage/get_object_http_url.rb +1 -19
- data/lib/fog/aws/requests/storage/get_object_torrent.rb +2 -2
- data/lib/fog/aws/requests/storage/get_object_url.rb +5 -14
- data/lib/fog/aws/requests/storage/get_request_payment.rb +1 -1
- data/lib/fog/aws/requests/storage/head_object.rb +2 -2
- data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +2 -2
- data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +7 -8
- data/lib/fog/aws/requests/storage/list_parts.rb +2 -2
- data/lib/fog/aws/requests/storage/put_bucket.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_acl.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_cors.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_policy.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_website.rb +1 -1
- data/lib/fog/aws/requests/storage/put_object.rb +2 -2
- data/lib/fog/aws/requests/storage/put_object_acl.rb +8 -8
- data/lib/fog/aws/requests/storage/put_object_url.rb +5 -7
- data/lib/fog/aws/requests/storage/put_request_payment.rb +1 -1
- data/lib/fog/aws/requests/storage/upload_part.rb +2 -2
- data/lib/fog/aws/storage.rb +201 -97
- data/lib/fog/bin/google.rb +47 -1
- data/lib/fog/bluebox/models/compute/server.rb +3 -1
- data/lib/fog/brightbox/compute.rb +11 -26
- data/lib/fog/brightbox/compute/image_selector.rb +45 -0
- data/lib/fog/cloudstack/compute.rb +70 -2
- data/lib/fog/cloudstack/models/compute/disk_offering.rb +46 -0
- data/lib/fog/cloudstack/models/compute/disk_offerings.rb +27 -0
- data/lib/fog/cloudstack/models/compute/image.rb +1 -1
- data/lib/fog/cloudstack/models/compute/servers.rb +3 -2
- data/lib/fog/cloudstack/requests/compute/create_disk_offering.rb +51 -0
- data/lib/fog/cloudstack/requests/compute/delete_disk_offering.rb +31 -0
- data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +44 -2
- data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +9 -0
- data/lib/fog/cloudstack/requests/compute/list_os_types.rb +9 -0
- data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +21 -0
- data/lib/fog/core/errors.rb +3 -0
- data/lib/fog/core/json.rb +48 -7
- data/lib/fog/core/model.rb +11 -10
- data/lib/fog/core/service.rb +1 -1
- data/lib/fog/digitalocean/CHANGELOG.md +1 -1
- data/lib/fog/dreamhost/dns.rb +1 -3
- data/lib/fog/google.rb +1 -0
- data/lib/fog/google/compute.rb +131 -0
- data/lib/fog/google/models/compute/flavor.rb +24 -0
- data/lib/fog/google/models/compute/flavors.rb +28 -0
- data/lib/fog/google/models/compute/image.rb +19 -0
- data/lib/fog/google/models/compute/images.rb +28 -0
- data/lib/fog/google/models/compute/server.rb +80 -0
- data/lib/fog/google/models/compute/servers.rb +61 -0
- data/lib/fog/google/requests/compute/delete_disk.rb +31 -0
- data/lib/fog/google/requests/compute/delete_firewall.rb +30 -0
- data/lib/fog/google/requests/compute/delete_image.rb +30 -0
- data/lib/fog/google/requests/compute/delete_network.rb +30 -0
- data/lib/fog/google/requests/compute/delete_operation.rb +30 -0
- data/lib/fog/google/requests/compute/delete_server.rb +40 -0
- data/lib/fog/google/requests/compute/get_disk.rb +31 -0
- data/lib/fog/google/requests/compute/get_firewall.rb +30 -0
- data/lib/fog/google/requests/compute/get_image.rb +30 -0
- data/lib/fog/google/requests/compute/get_machine_type.rb +30 -0
- data/lib/fog/google/requests/compute/get_network.rb +30 -0
- data/lib/fog/google/requests/compute/get_server.rb +31 -0
- data/lib/fog/google/requests/compute/get_zone.rb +30 -0
- data/lib/fog/google/requests/compute/insert_disk.rb +35 -0
- data/lib/fog/google/requests/compute/insert_firewall.rb +37 -0
- data/lib/fog/google/requests/compute/insert_image.rb +38 -0
- data/lib/fog/google/requests/compute/insert_network.rb +34 -0
- data/lib/fog/google/requests/compute/insert_server.rb +49 -0
- data/lib/fog/google/requests/compute/list_disks.rb +30 -0
- data/lib/fog/google/requests/compute/list_firewalls.rb +29 -0
- data/lib/fog/google/requests/compute/list_global_operations.rb +28 -0
- data/lib/fog/google/requests/compute/list_images.rb +29 -0
- data/lib/fog/google/requests/compute/list_machine_types.rb +29 -0
- data/lib/fog/google/requests/compute/list_networks.rb +29 -0
- data/lib/fog/google/requests/compute/list_servers.rb +30 -0
- data/lib/fog/google/requests/compute/list_zone_operations.rb +28 -0
- data/lib/fog/google/requests/compute/list_zones.rb +29 -0
- data/lib/fog/google/requests/compute/set_metadata.rb +36 -0
- data/lib/fog/hp.rb +1 -1
- data/lib/fog/hp/storage.rb +1 -1
- data/lib/fog/internet_archive/models/storage/ia_attributes.rb +1 -1
- data/lib/fog/internet_archive/requests/storage/head_object.rb +1 -2
- data/lib/fog/internet_archive/requests/storage/list_multipart_uploads.rb +5 -6
- data/lib/fog/openstack.rb +29 -1
- data/lib/fog/openstack/CHANGELOG.md +1 -1
- data/lib/fog/openstack/compute.rb +3 -2
- data/lib/fog/openstack/identity.rb +1 -5
- data/lib/fog/openstack/image.rb +8 -9
- data/lib/fog/openstack/models/compute/server.rb +24 -0
- data/lib/fog/openstack/network.rb +7 -28
- data/lib/fog/openstack/requests/compute/allocate_address.rb +1 -1
- data/lib/fog/openstack/requests/compute/attach_volume.rb +11 -6
- 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_volume.rb +15 -14
- data/lib/fog/openstack/requests/compute/create_volume_snapshot.rb +1 -1
- data/lib/fog/openstack/requests/compute/delete_volume.rb +9 -2
- data/lib/fog/openstack/requests/compute/detach_volume.rb +7 -2
- data/lib/fog/openstack/requests/compute/get_server_volumes.rb +10 -0
- data/lib/fog/openstack/requests/compute/get_volume_details.rb +7 -16
- data/lib/fog/openstack/requests/compute/list_tenants.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_volumes.rb +4 -26
- data/lib/fog/openstack/requests/compute/revert_resize_server.rb +2 -2
- 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/volume/create_volume.rb +1 -1
- data/lib/fog/openstack/requests/volume/create_volume_snapshot.rb +1 -1
- data/lib/fog/openstack/requests/volume/get_quota.rb +31 -0
- data/lib/fog/openstack/requests/volume/get_quota_defaults.rb +31 -0
- data/lib/fog/openstack/requests/volume/update_quota.rb +32 -0
- data/lib/fog/openstack/volume.rb +11 -7
- data/lib/fog/rackspace.rb +11 -5
- data/lib/fog/rackspace/block_storage.rb +2 -1
- data/lib/fog/rackspace/cdn.rb +15 -15
- data/lib/fog/rackspace/compute.rb +2 -2
- data/lib/fog/rackspace/compute_v2.rb +8 -5
- data/lib/fog/rackspace/databases.rb +2 -1
- data/lib/fog/rackspace/dns.rb +2 -1
- data/lib/fog/rackspace/errors.rb +27 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -1
- data/lib/fog/rackspace/mock_data.rb +5 -6
- data/lib/fog/rackspace/models/block_storage/snapshot.rb +8 -8
- data/lib/fog/rackspace/models/block_storage/snapshots.rb +8 -8
- data/lib/fog/rackspace/models/block_storage/volume.rb +16 -16
- data/lib/fog/rackspace/models/block_storage/volume_types.rb +8 -8
- data/lib/fog/rackspace/models/block_storage/volumes.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/attachment.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/attachments.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/flavors.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/image.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/images.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/metadata.rb +12 -12
- data/lib/fog/rackspace/models/compute_v2/metadatum.rb +8 -8
- data/lib/fog/rackspace/models/compute_v2/server.rb +94 -55
- data/lib/fog/rackspace/models/compute_v2/servers.rb +12 -12
- data/lib/fog/rackspace/models/dns/records.rb +1 -1
- data/lib/fog/rackspace/models/dns/zones.rb +1 -1
- data/lib/fog/rackspace/models/storage/account.rb +8 -8
- data/lib/fog/rackspace/models/storage/directories.rb +8 -8
- data/lib/fog/rackspace/models/storage/directory.rb +32 -32
- data/lib/fog/rackspace/models/storage/file.rb +36 -36
- data/lib/fog/rackspace/models/storage/files.rb +20 -20
- data/lib/fog/rackspace/requests/block_storage/create_snapshot.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/delete_snapshot.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/delete_volume.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/get_snapshot.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/get_volume.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/get_volume_type.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/list_snapshots.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/list_volume_types.rb +4 -4
- data/lib/fog/rackspace/requests/block_storage/list_volumes.rb +4 -4
- data/lib/fog/rackspace/requests/cdn/delete_object.rb +4 -4
- data/lib/fog/rackspace/requests/cdn/get_containers.rb +4 -4
- data/lib/fog/rackspace/requests/cdn/head_container.rb +4 -4
- data/lib/fog/rackspace/requests/cdn/post_container.rb +4 -4
- data/lib/fog/rackspace/requests/cdn/put_container.rb +4 -4
- data/lib/fog/rackspace/requests/compute/delete_image.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/attach_volume.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/change_server_password.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/confirm_resize_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/create_image.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/create_server.rb +11 -5
- data/lib/fog/rackspace/requests/compute_v2/delete_attachment.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/delete_image.rb +5 -4
- data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/get_attachment.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/get_flavor.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/get_image.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/get_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_addresses.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_addresses_by_network.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_attachments.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_flavors.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_images.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/list_servers.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/reboot_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/rebuild_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/rescue_server.rb +43 -0
- data/lib/fog/rackspace/requests/compute_v2/resize_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/revert_resize_server.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/unrescue_server.rb +40 -0
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +4 -4
- data/lib/fog/rackspace/requests/compute_v2/update_server.rb +4 -4
- data/lib/fog/rackspace/requests/storage/copy_object.rb +4 -4
- data/lib/fog/rackspace/requests/storage/delete_container.rb +4 -4
- data/lib/fog/rackspace/requests/storage/delete_object.rb +4 -4
- data/lib/fog/rackspace/requests/storage/get_container.rb +4 -4
- data/lib/fog/rackspace/requests/storage/get_containers.rb +4 -4
- data/lib/fog/rackspace/requests/storage/get_object.rb +4 -4
- data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +4 -4
- data/lib/fog/rackspace/requests/storage/head_container.rb +4 -4
- data/lib/fog/rackspace/requests/storage/head_containers.rb +4 -4
- data/lib/fog/rackspace/requests/storage/head_object.rb +4 -4
- data/lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb +4 -4
- data/lib/fog/rackspace/requests/storage/put_container.rb +4 -4
- data/lib/fog/rackspace/requests/storage/put_object.rb +4 -4
- data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +4 -4
- data/lib/fog/rackspace/service.rb +1 -1
- data/lib/fog/rackspace/storage.rb +12 -6
- data/lib/fog/riakcs.rb +3 -3
- data/lib/fog/riakcs/provisioning.rb +1 -3
- 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 +0 -1
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vsphere/compute.rb +21 -14
- data/lib/fog/vsphere/models/compute/networks.rb +2 -2
- data/lib/fog/vsphere/models/compute/server.rb +10 -0
- data/lib/fog/vsphere/requests/compute/get_resource_pool.rb +1 -1
- data/lib/fog/vsphere/requests/compute/get_template.rb +16 -0
- data/lib/fog/vsphere/requests/compute/list_datacenters.rb +1 -1
- data/lib/fog/vsphere/requests/compute/list_templates.rb +49 -0
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +9 -6
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +41 -27
- data/lib/fog/xenserver/CHANGELOG.md +1 -1
- data/lib/fog/xenserver/models/compute/network.rb +2 -2
- data/lib/tasks/changelog_task.rb +2 -1
- data/tests/aws/models/storage/directory_tests.rb +41 -5
- data/tests/aws/models/storage/file_tests.rb +1 -2
- data/tests/aws/models/storage/files_tests.rb +6 -4
- data/tests/aws/models/storage/url_tests.rb +7 -5
- data/tests/aws/models/storage/version_tests.rb +2 -2
- data/tests/aws/models/storage/versions_tests.rb +5 -5
- data/tests/aws/requests/iam/user_tests.rb +10 -8
- data/tests/aws/requests/storage/multipart_upload_tests.rb +1 -1
- data/tests/aws/requests/storage/object_tests.rb +15 -13
- data/tests/brightbox/compute/image_selector_tests.rb +103 -0
- data/tests/cloudstack/compute/models/disk_offering_tests.rb +5 -0
- data/tests/cloudstack/compute/models/snapshot_tests.rb +5 -20
- data/tests/cloudstack/requests/disk_offering_tests.rb +3 -3
- data/tests/cloudstack/requests/os_type_tests.rb +2 -3
- data/tests/compute/helper.rb +9 -0
- data/tests/core/json_tests.rb +62 -0
- data/tests/dynect/requests/dns/dns_tests.rb +0 -3
- data/tests/google/models/compute/server_tests.rb +24 -0
- data/tests/google/requests/compute/disk_tests.rb +88 -0
- data/tests/google/requests/compute/firewall_tests.rb +85 -0
- data/tests/google/requests/compute/image_tests.rb +80 -0
- data/tests/google/requests/compute/network_tests.rb +74 -0
- data/tests/google/requests/compute/operation_tests.rb +19 -0
- data/tests/google/requests/compute/server_tests.rb +84 -0
- data/tests/google/requests/compute/zone_tests.rb +46 -0
- data/tests/helpers/mock_helper.rb +4 -0
- data/tests/openstack/models/compute/server_tests.rb +91 -1
- data/tests/openstack/requests/compute/volume_tests.rb +11 -9
- data/tests/openstack/requests/volume/quota_tests.rb +51 -0
- data/tests/openstack/version_tests.rb +55 -0
- data/tests/rackspace/helper.rb +10 -0
- data/tests/rackspace/models/compute_v2/server_tests.rb +26 -1
- data/tests/rackspace/requests/compute/image_tests.rb +1 -1
- data/tests/rackspace/requests/compute_v2/image_tests.rb +2 -2
- data/tests/rackspace/requests/compute_v2/server_tests.rb +13 -0
- data/tests/rackspace/requests/dns/dns_tests.rb +1 -1
- data/tests/rackspace/requests/dns/records_tests.rb +3 -3
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +10 -0
- metadata +109 -747
@@ -10,10 +10,10 @@ module Fog
|
|
10
10
|
# @return [Excon::Response] response:
|
11
11
|
# * body [Hash]:
|
12
12
|
# * meta [Hash]:
|
13
|
-
# @raise [Fog::
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
16
|
-
# @raise [Fog::
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
17
17
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Metadata_Item-d1e5507.html
|
18
18
|
def get_metadata_item(collection, obj_id, key)
|
19
19
|
request(
|
@@ -33,10 +33,10 @@ module Fog
|
|
33
33
|
# * tenant_id [String] - The tenant ID.
|
34
34
|
# * updated [String] - updated timestamp
|
35
35
|
# * user_id [Array] - The user ID.
|
36
|
-
# @raise [Fog::
|
37
|
-
# @raise [Fog::
|
38
|
-
# @raise [Fog::
|
39
|
-
# @raise [Fog::
|
36
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
37
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
38
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
39
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
40
40
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Server_Details-d1e2623.html
|
41
41
|
def get_server(server_id)
|
42
42
|
request(
|
@@ -8,10 +8,10 @@ module Fog
|
|
8
8
|
# @return [Excon::Response] response:
|
9
9
|
# * body [Hash]:
|
10
10
|
# * addresses [Hash] - key is the network name and the value are an array of addresses allocated for that network
|
11
|
-
# @raise [Fog::
|
12
|
-
# @raise [Fog::
|
13
|
-
# @raise [Fog::
|
14
|
-
# @raise [Fog::
|
11
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
12
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
15
15
|
def list_addresses(server_id)
|
16
16
|
request(
|
17
17
|
:method => 'GET',
|
@@ -14,10 +14,10 @@ module Fog
|
|
14
14
|
# * [Hash]:
|
15
15
|
# * version [Fixnum] - version of the address
|
16
16
|
# * addr [String] - ip address
|
17
|
-
# @raise [Fog::
|
18
|
-
# @raise [Fog::
|
19
|
-
# @raise [Fog::
|
20
|
-
# @raise [Fog::
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
18
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
19
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
20
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
21
21
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Addresses_by_Network-d1e3118.html
|
22
22
|
def list_addresses_by_network(server_id, network_id)
|
23
23
|
request(
|
@@ -13,10 +13,10 @@ module Fog
|
|
13
13
|
# * serverId [String] - The id of the server that attached the volume
|
14
14
|
# * id [String] - The id of the attachment
|
15
15
|
# * volumeId [String] - The id of the volume that was attached
|
16
|
-
# @raise [Fog::
|
17
|
-
# @raise [Fog::
|
18
|
-
# @raise [Fog::
|
19
|
-
# @raise [Fog::
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
18
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
19
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
20
20
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Volume_Attachments.html
|
21
21
|
def list_attachments(server_id)
|
22
22
|
request(
|
@@ -11,10 +11,10 @@ module Fog
|
|
11
11
|
# * id [String] - flavor id
|
12
12
|
# * links [Array] - flavor links
|
13
13
|
# * name [String] - flavor name
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
16
|
-
# @raise [Fog::
|
17
|
-
# @raise [Fog::
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
18
18
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Flavors-d1e4188.html
|
19
19
|
def list_flavors
|
20
20
|
request(
|
@@ -11,10 +11,10 @@ module Fog
|
|
11
11
|
# * id [String] - flavor id
|
12
12
|
# * links [Array] - image links
|
13
13
|
# * name [String] - image name
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
16
|
-
# @raise [Fog::
|
17
|
-
# @raise [Fog::
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
18
18
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Flavors-d1e4188.html
|
19
19
|
def list_images
|
20
20
|
request(
|
@@ -9,10 +9,10 @@ module Fog
|
|
9
9
|
# @return [Excon::Response] response:
|
10
10
|
# * body [Hash]:
|
11
11
|
# * meta [Hash]:
|
12
|
-
# @raise [Fog::
|
13
|
-
# @raise [Fog::
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
12
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
16
16
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Metadata-d1e5089.html
|
17
17
|
def list_metadata(collection, obj_id)
|
18
18
|
request(
|
@@ -32,10 +32,10 @@ module Fog
|
|
32
32
|
# * tenant_id [String] - The tenant ID.
|
33
33
|
# * updated [String] - updated timestamp
|
34
34
|
# * user_id [Array] - The user ID.
|
35
|
-
# @raise [Fog::
|
36
|
-
# @raise [Fog::
|
37
|
-
# @raise [Fog::
|
38
|
-
# @raise [Fog::
|
35
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
36
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
37
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
38
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
39
39
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Servers-d1e2078.html
|
40
40
|
def list_servers
|
41
41
|
request(
|
@@ -6,10 +6,10 @@ module Fog
|
|
6
6
|
# Reboots server
|
7
7
|
# @param [String] server_id
|
8
8
|
# @param [String<SOFT,HARD>] type type of reboot
|
9
|
-
# @raise [Fog::
|
10
|
-
# @raise [Fog::
|
11
|
-
# @raise [Fog::
|
12
|
-
# @raise [Fog::
|
9
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
10
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
11
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
12
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
13
13
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Reboot_Server-d1e3371.html
|
14
14
|
def reboot_server(server_id, type)
|
15
15
|
data = {
|
@@ -31,10 +31,10 @@ module Fog
|
|
31
31
|
# * networks [Array]:
|
32
32
|
# * [Hash]:
|
33
33
|
# * uuid [String] - uuid of attached network
|
34
|
-
# @raise [Fog::
|
35
|
-
# @raise [Fog::
|
36
|
-
# @raise [Fog::
|
37
|
-
# @raise [Fog::
|
34
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
35
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
36
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
37
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
38
38
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Rebuild_Server-d1e3538.html
|
39
39
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Server_Metadata-d1e2529.html
|
40
40
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Server_Personality-d1e2543.html
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class RackspaceV2
|
4
|
+
class Real
|
5
|
+
# Puts server into rescue mode
|
6
|
+
# @param [String] server_id id of server to rescue
|
7
|
+
# @return [Excon::Response] response
|
8
|
+
# @raise [Fog::Rackspace::Errors::NotFound] - HTTP 404
|
9
|
+
# @raise [Fog::Rackspace::Errors::BadRequest] - HTTP 400
|
10
|
+
# @raise [Fog::Rackspace::Errors::InternalServerError] - HTTP 500
|
11
|
+
# @raise [Fog::Rackspace::Errors::ServiceError]
|
12
|
+
# @note Rescue mode is only guaranteed to be active for 90 minutes
|
13
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/rescue_mode.html
|
14
|
+
#
|
15
|
+
# * Status Transition:
|
16
|
+
# * PREP_RESCUE -> RESCUE
|
17
|
+
# * PREP_RESCUE -> ACTIVE (on error)
|
18
|
+
def rescue_server(server_id)
|
19
|
+
data = {
|
20
|
+
'rescue' => nil
|
21
|
+
}
|
22
|
+
|
23
|
+
request(
|
24
|
+
:body => Fog::JSON.encode(data),
|
25
|
+
:expects => [200],
|
26
|
+
:method => 'POST',
|
27
|
+
:path => "servers/#{server_id}/action"
|
28
|
+
)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class Mock
|
33
|
+
def rescue_server(server_id)
|
34
|
+
server = self.data[:servers][server_id]
|
35
|
+
server["status"] = "RESCUE"
|
36
|
+
admin_pass = Fog::Mock.random_letters(12)
|
37
|
+
server_response = { 'adminPass' => admin_pass }
|
38
|
+
response(:status => 200, :body => server_response)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -7,10 +7,10 @@ module Fog
|
|
7
7
|
# @param [String] server_id id of server to resize
|
8
8
|
# @param [String] flavor_id id of the desired flavor
|
9
9
|
# @return [Excon::Response] response
|
10
|
-
# @raise [Fog::
|
11
|
-
# @raise [Fog::
|
12
|
-
# @raise [Fog::
|
13
|
-
# @raise [Fog::
|
10
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
11
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
12
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
14
14
|
# @note All resizes are automatically confirmed after 24 hours if you do not explicitly confirm or revert the resize.
|
15
15
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Revert_Resized_Server-d1e4024.html
|
16
16
|
#
|
@@ -6,10 +6,10 @@ module Fog
|
|
6
6
|
# Reverts server resize operation
|
7
7
|
# @param [String] server_id
|
8
8
|
# @return [Excon::Response] response
|
9
|
-
# @raise [Fog::
|
10
|
-
# @raise [Fog::
|
11
|
-
# @raise [Fog::
|
12
|
-
# @raise [Fog::
|
9
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
10
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
11
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
12
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
13
13
|
# @note All resizes are automatically confirmed after 24 hours if you do not explicitly confirm or revert the resize.
|
14
14
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Revert_Resized_Server-d1e4024.html
|
15
15
|
# @see Server#resize
|
@@ -10,10 +10,10 @@ module Fog
|
|
10
10
|
# @return [Excon::Response] response:
|
11
11
|
# * body [Hash]:
|
12
12
|
# * metadata [Hash]:
|
13
|
-
# @raise [Fog::
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
16
|
-
# @raise [Fog::
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
17
17
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Create_or_Replace_Metadata-d1e5358.html
|
18
18
|
def set_metadata(collection, obj_id, metadata = {})
|
19
19
|
request(
|
@@ -11,10 +11,10 @@ module Fog
|
|
11
11
|
# @return [Excon::Response] response:
|
12
12
|
# * body [Hash]:
|
13
13
|
# * meta [Hash]:
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
16
|
-
# @raise [Fog::
|
17
|
-
# @raise [Fog::
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
18
18
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Create_or_Update_a_Metadata_Item-d1e5633.html
|
19
19
|
def set_metadata_item(collection, obj_id, key, value)
|
20
20
|
request(
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class RackspaceV2
|
4
|
+
class Real
|
5
|
+
# Take server out of rescue mode
|
6
|
+
# @param [String] server_id id of server
|
7
|
+
# @return [Excon::Response] response
|
8
|
+
# @raise [Fog::Rackspace::Errors::NotFound] - HTTP 404
|
9
|
+
# @raise [Fog::Rackspace::Errors::BadRequest] - HTTP 400
|
10
|
+
# @raise [Fog::Rackspace::Errors::InternalServerError] - HTTP 500
|
11
|
+
# @raise [Fog::Rackspace::Errors::ServiceError]
|
12
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/exit_rescue_mode.html
|
13
|
+
#
|
14
|
+
# * Status Transition:
|
15
|
+
# * RESCUE -> PREP_UNRESCUE -> ACTIVE
|
16
|
+
# * RESCUE -> ERROR (on error)
|
17
|
+
def unrescue_server(server_id)
|
18
|
+
data = {
|
19
|
+
'unrescue' => nil
|
20
|
+
}
|
21
|
+
|
22
|
+
request(
|
23
|
+
:body => Fog::JSON.encode(data),
|
24
|
+
:expects => [202],
|
25
|
+
:method => 'POST',
|
26
|
+
:path => "servers/#{server_id}/action"
|
27
|
+
)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class Mock
|
32
|
+
def unrescue_server(server_id)
|
33
|
+
server = self.data[:servers][server_id]
|
34
|
+
server["status"] = "ACTIVE"
|
35
|
+
response(:status => 202)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -10,10 +10,10 @@ module Fog
|
|
10
10
|
# @return [Excon::Response] response:
|
11
11
|
# * body [Hash]:
|
12
12
|
# * metadata [Hash]:
|
13
|
-
# @raise [Fog::
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
16
|
-
# @raise [Fog::
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
17
17
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Update_Metadata-d1e5208.html
|
18
18
|
def update_metadata(collection, obj_id, metadata = {})
|
19
19
|
request(
|
@@ -9,10 +9,10 @@ module Fog
|
|
9
9
|
# @option options [Hash] name name for server
|
10
10
|
# @option options [String] accessIPv4 The IP version 4 address.
|
11
11
|
# @option options [Hash] accessIPv6 The IP version 6 address.
|
12
|
-
# @raise [Fog::
|
13
|
-
# @raise [Fog::
|
14
|
-
# @raise [Fog::
|
15
|
-
# @raise [Fog::
|
12
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
16
16
|
# @note If you edit the server name, the server host name does not change. Also, server names are not guaranteed to be unique.
|
17
17
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ServerUpdate.html
|
18
18
|
def update_server(server_id, options={})
|
@@ -11,10 +11,10 @@ module Fog
|
|
11
11
|
# * target_container_name<~String> - Name of bucket to create copy in
|
12
12
|
# * target_object_name<~String> - Name for new copy of object
|
13
13
|
# * options<~Hash> - Additional headers
|
14
|
-
# @raise [Fog::Rackspace::
|
15
|
-
# @raise [Fog::Rackspace::
|
16
|
-
# @raise [Fog::Rackspace::
|
17
|
-
# @raise [Fog::Rackspace::
|
14
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
15
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
16
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
17
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
18
18
|
def copy_object(source_container_name, source_object_name, target_container_name, target_object_name, options={})
|
19
19
|
headers = { 'X-Copy-From' => "/#{source_container_name}/#{source_object_name}" }.merge(options)
|
20
20
|
request({
|
@@ -7,10 +7,10 @@ module Fog
|
|
7
7
|
#
|
8
8
|
# ==== Parameters
|
9
9
|
# * name<~String> - Name of container to delete
|
10
|
-
# @raise [Fog::Rackspace::
|
11
|
-
# @raise [Fog::Rackspace::
|
12
|
-
# @raise [Fog::Rackspace::
|
13
|
-
# @raise [Fog::Rackspace::
|
10
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
11
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
12
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
13
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
14
14
|
def delete_container(name)
|
15
15
|
request(
|
16
16
|
:expects => 204,
|
@@ -8,10 +8,10 @@ module Fog
|
|
8
8
|
# ==== Parameters
|
9
9
|
# * container<~String> - Name of container to delete
|
10
10
|
# * object<~String> - Name of object to delete
|
11
|
-
# @raise [Fog::Rackspace::
|
12
|
-
# @raise [Fog::Rackspace::
|
13
|
-
# @raise [Fog::Rackspace::
|
14
|
-
# @raise [Fog::Rackspace::
|
11
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
12
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
13
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
14
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
15
15
|
def delete_object(container, object)
|
16
16
|
request(
|
17
17
|
:expects => 204,
|
@@ -28,10 +28,10 @@ module Fog
|
|
28
28
|
# * 'hash'<~String> - Hash of object (etag?)
|
29
29
|
# * 'last_modified'<~String> - Last modified timestamp
|
30
30
|
# * 'name'<~String> - Name of object
|
31
|
-
# @raise [Fog::Rackspace::
|
32
|
-
# @raise [Fog::Rackspace::
|
33
|
-
# @raise [Fog::Rackspace::
|
34
|
-
# @raise [Fog::Rackspace::
|
31
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
32
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
33
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
34
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
35
35
|
def get_container(container, options = {})
|
36
36
|
options = options.reject {|key, value| value.nil?}
|
37
37
|
request(
|
@@ -17,10 +17,10 @@ module Fog
|
|
17
17
|
# * 'bytes'<~Integer>: - Number of bytes used by container
|
18
18
|
# * 'count'<~Integer>: - Number of items in container
|
19
19
|
# * 'name'<~String>: - Name of container
|
20
|
-
# @raise [Fog::Rackspace::
|
21
|
-
# @raise [Fog::Rackspace::
|
22
|
-
# @raise [Fog::Rackspace::
|
23
|
-
# @raise [Fog::Rackspace::
|
20
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
21
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
22
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
23
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
24
24
|
def get_containers(options = {})
|
25
25
|
options = options.reject {|key, value| value.nil?}
|
26
26
|
request(
|
@@ -8,10 +8,10 @@ module Fog
|
|
8
8
|
# ==== Parameters
|
9
9
|
# * container<~String> - Name of container to look in
|
10
10
|
# * object<~String> - Name of object to look for
|
11
|
-
# @raise [Fog::Rackspace::
|
12
|
-
# @raise [Fog::Rackspace::
|
13
|
-
# @raise [Fog::Rackspace::
|
14
|
-
# @raise [Fog::Rackspace::
|
11
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
12
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
13
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
14
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
15
15
|
def get_object(container, object, &block)
|
16
16
|
params = {}
|
17
17
|
|