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
@@ -11,10 +11,10 @@ module Fog
|
|
11
11
|
|
12
12
|
# Returns list of servers
|
13
13
|
# @return [Fog::Compute::RackspaceV2::Servers] Retrieves a list servers.
|
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
|
# @note Fog's current implementation only returns 1000 servers
|
19
19
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Servers-d1e2078.html
|
20
20
|
def all
|
@@ -24,10 +24,10 @@ module Fog
|
|
24
24
|
|
25
25
|
# Creates a new server and populates ssh keys
|
26
26
|
# @return [Fog::Compute::RackspaceV2::Server]
|
27
|
-
# @raise [Fog::
|
28
|
-
# @raise [Fog::
|
29
|
-
# @raise [Fog::
|
30
|
-
# @raise [Fog::
|
27
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
28
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
29
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
30
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
31
31
|
# @note This method is incompatible with Cloud Servers utlizing RackConnect. RackConnect users
|
32
32
|
# should use server personalization to install keys. Please see Server#personality for more information.
|
33
33
|
# @example
|
@@ -48,10 +48,10 @@ module Fog
|
|
48
48
|
# Retrieves server
|
49
49
|
# @param [String] server_id for server to be returned
|
50
50
|
# @return [Fog::Compute::RackspaceV2:Server]
|
51
|
-
# @raise [Fog::
|
52
|
-
# @raise [Fog::
|
53
|
-
# @raise [Fog::
|
54
|
-
# @raise [Fog::
|
51
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
52
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
53
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
54
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
55
55
|
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Server_Details-d1e2623.html
|
56
56
|
def get(server_id)
|
57
57
|
data = service.get_server(server_id).body['server']
|
@@ -50,7 +50,7 @@ module Fog
|
|
50
50
|
|
51
51
|
data = service.list_domain_details(zone_id).body
|
52
52
|
new(data)
|
53
|
-
rescue Fog::Rackspace::
|
53
|
+
rescue Fog::DNS::Rackspace::NotFound
|
54
54
|
nil
|
55
55
|
#Accessing a valid (but other customer's) id returns a 503 error
|
56
56
|
rescue Fog::Rackspace::Errors::ServiceUnavailable
|
@@ -25,10 +25,10 @@ module Fog
|
|
25
25
|
|
26
26
|
# Saves account settings (meta_temp_url_key)
|
27
27
|
# @return [Boolean] returns true if successfully updated
|
28
|
-
# @raise [Fog::Rackspace::
|
29
|
-
# @raise [Fog::Rackspace::
|
30
|
-
# @raise [Fog::Rackspace::
|
31
|
-
# @raise [Fog::Rackspace::
|
28
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
29
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
30
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
31
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
32
32
|
def save
|
33
33
|
service.post_set_meta_temp_url_key meta_temp_url_key
|
34
34
|
true
|
@@ -36,10 +36,10 @@ module Fog
|
|
36
36
|
|
37
37
|
# Reload account with latest data from Cloud Files
|
38
38
|
# @return [Fog::Storage::Rackspace::Account] returns itself
|
39
|
-
# @raise [Fog::Rackspace::
|
40
|
-
# @raise [Fog::Rackspace::
|
41
|
-
# @raise [Fog::Rackspace::
|
42
|
-
# @raise [Fog::Rackspace::
|
39
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
40
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
41
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
42
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
43
43
|
def reload
|
44
44
|
response = service.head_containers
|
45
45
|
merge_attributes response.headers
|
@@ -11,10 +11,10 @@ module Fog
|
|
11
11
|
|
12
12
|
# Returns list of directories
|
13
13
|
# @return [Fog::Storage::Rackspace::Directories] Retrieves a list directories.
|
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
|
# @note Fog's current implementation only returns 10,000 directories
|
19
19
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/View_List_of_Containers-d1e1100.html
|
20
20
|
def all
|
@@ -27,10 +27,10 @@ module Fog
|
|
27
27
|
# @param options [Hash]:
|
28
28
|
# @option options [String] cdn_cname CDN CNAME used when calling Directory#public_url
|
29
29
|
# @return [Fog::Storage::Rackspace::Directory]
|
30
|
-
# @raise [Fog::Rackspace::
|
31
|
-
# @raise [Fog::Rackspace::
|
32
|
-
# @raise [Fog::Rackspace::
|
33
|
-
# @raise [Fog::Rackspace::
|
30
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
31
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
32
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
33
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
34
34
|
# @example
|
35
35
|
# directory = fog.directories.get('video', :cdn_cname => 'http://cdn.lunenburg.org')
|
36
36
|
# files = directory.files
|
@@ -58,10 +58,10 @@ module Fog
|
|
58
58
|
|
59
59
|
# Destroy the directory and remove it from CDN
|
60
60
|
# @return [Boolean] returns true if directory was deleted
|
61
|
-
# @raise [Fog::Rackspace::
|
62
|
-
# @raise [Fog::Rackspace::
|
63
|
-
# @raise [Fog::Rackspace::
|
64
|
-
# @raise [Fog::Rackspace::
|
61
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
62
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
63
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
64
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
65
65
|
# @note Directory must be empty before it is destroyed.
|
66
66
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Delete_Container-d1e1765.html
|
67
67
|
def destroy
|
@@ -75,10 +75,10 @@ module Fog
|
|
75
75
|
|
76
76
|
# Returns collection of files in directory
|
77
77
|
# @return [Fog::Storage::Rackspace::Files] collection of files in directory
|
78
|
-
# @raise [Fog::Rackspace::
|
79
|
-
# @raise [Fog::Rackspace::
|
80
|
-
# @raise [Fog::Rackspace::
|
81
|
-
# @raise [Fog::Rackspace::
|
78
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
79
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
80
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
81
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
82
82
|
def files
|
83
83
|
@files ||= begin
|
84
84
|
Fog::Storage::Rackspace::Files.new(
|
@@ -90,10 +90,10 @@ module Fog
|
|
90
90
|
|
91
91
|
# Is directory published to CDN
|
92
92
|
# @return [Boolean] return true if published to CDN
|
93
|
-
# @raise [Fog::Rackspace::
|
94
|
-
# @raise [Fog::Rackspace::
|
95
|
-
# @raise [Fog::Rackspace::
|
96
|
-
# @raise [Fog::Rackspace::
|
93
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
94
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
95
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
96
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
97
97
|
def public?
|
98
98
|
if @public.nil?
|
99
99
|
@public ||= (key && public_url) ? true : false
|
@@ -103,10 +103,10 @@ module Fog
|
|
103
103
|
|
104
104
|
# Reload directory with latest data from Cloud Files
|
105
105
|
# @return [Fog::Storage::Rackspace::Directory] returns itself
|
106
|
-
# @raise [Fog::Rackspace::
|
107
|
-
# @raise [Fog::Rackspace::
|
108
|
-
# @raise [Fog::Rackspace::
|
109
|
-
# @raise [Fog::Rackspace::
|
106
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
107
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
108
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
109
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
110
110
|
def reload
|
111
111
|
@public = nil
|
112
112
|
@urls = nil
|
@@ -123,10 +123,10 @@ module Fog
|
|
123
123
|
# 3. return the default CDN url.
|
124
124
|
#
|
125
125
|
# @return [String] public url for directory
|
126
|
-
# @raise [Fog::Rackspace::
|
127
|
-
# @raise [Fog::Rackspace::
|
128
|
-
# @raise [Fog::Rackspace::
|
129
|
-
# @raise [Fog::Rackspace::
|
126
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
127
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
128
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
129
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
130
130
|
def public_url
|
131
131
|
return nil if urls.empty?
|
132
132
|
return urls[:ssl_uri] if service.ssl?
|
@@ -135,10 +135,10 @@ module Fog
|
|
135
135
|
|
136
136
|
# URL used to stream video to iOS devices. Cloud Files will auto convert to the approprate format.
|
137
137
|
# @return [String] iOS URL
|
138
|
-
# @raise [Fog::Rackspace::
|
139
|
-
# @raise [Fog::Rackspace::
|
140
|
-
# @raise [Fog::Rackspace::
|
141
|
-
# @raise [Fog::Rackspace::
|
138
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
139
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
140
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
141
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
142
142
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/iOS-Streaming-d1f3725.html
|
143
143
|
def ios_url
|
144
144
|
urls[:ios_uri]
|
@@ -146,10 +146,10 @@ module Fog
|
|
146
146
|
|
147
147
|
# URL used to stream resources
|
148
148
|
# @return [String] streaming url
|
149
|
-
# @raise [Fog::Rackspace::
|
150
|
-
# @raise [Fog::Rackspace::
|
151
|
-
# @raise [Fog::Rackspace::
|
152
|
-
# @raise [Fog::Rackspace::
|
149
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
150
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
151
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
152
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
153
153
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Streaming-CDN-Enabled_Containers-d1f3721.html
|
154
154
|
def streaming_url
|
155
155
|
urls[:streaming_uri]
|
@@ -157,10 +157,10 @@ module Fog
|
|
157
157
|
|
158
158
|
# Create or update directory and associated metadata
|
159
159
|
# @return [Boolean] returns true if directory was saved
|
160
|
-
# @raise [Fog::Rackspace::
|
161
|
-
# @raise [Fog::Rackspace::
|
162
|
-
# @raise [Fog::Rackspace::
|
163
|
-
# @raise [Fog::Rackspace::
|
160
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
161
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
162
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
163
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
164
164
|
# @note If public attribute is true, directory will be CDN enabled
|
165
165
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Create_Container-d1e1694.html
|
166
166
|
def save
|
@@ -51,10 +51,10 @@ module Fog
|
|
51
51
|
attr_writer :public
|
52
52
|
|
53
53
|
# Returns the body/contents of file
|
54
|
-
# @raise [Fog::Rackspace::
|
55
|
-
# @raise [Fog::Rackspace::
|
56
|
-
# @raise [Fog::Rackspace::
|
57
|
-
# @raise [Fog::Rackspace::
|
54
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
55
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
56
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
57
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
58
58
|
# @example Retrieve and download contents of Cloud Files object to file system
|
59
59
|
# file_object = directory.files.get('germany.jpg')
|
60
60
|
# File.open('germany.jpg', 'w') {|f| f.write(file_object.body) }
|
@@ -77,10 +77,10 @@ module Fog
|
|
77
77
|
# @param [String] target_directory_key
|
78
78
|
# @param [String] target_file_key
|
79
79
|
# @param options [Hash] used to pass in file attributes
|
80
|
-
# @raise [Fog::Rackspace::
|
81
|
-
# @raise [Fog::Rackspace::
|
82
|
-
# @raise [Fog::Rackspace::
|
83
|
-
# @raise [Fog::Rackspace::
|
80
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
81
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
82
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
83
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
84
84
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Copy_Object-d1e2241.html
|
85
85
|
def copy(target_directory_key, target_file_key, options={})
|
86
86
|
requires :directory, :key
|
@@ -94,10 +94,10 @@ module Fog
|
|
94
94
|
|
95
95
|
# Destroy the file
|
96
96
|
# @return [Boolean] returns true if file is destroyed
|
97
|
-
# @raise [Fog::Rackspace::
|
98
|
-
# @raise [Fog::Rackspace::
|
99
|
-
# @raise [Fog::Rackspace::
|
100
|
-
# @raise [Fog::Rackspace::
|
97
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
98
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
99
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
100
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
101
101
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Delete_Object-d1e2264.html
|
102
102
|
def destroy
|
103
103
|
requires :directory, :key
|
@@ -134,10 +134,10 @@ module Fog
|
|
134
134
|
|
135
135
|
# Is file published to CDN
|
136
136
|
# @return [Boolean] return true if published to CDN
|
137
|
-
# @raise [Fog::Rackspace::
|
138
|
-
# @raise [Fog::Rackspace::
|
139
|
-
# @raise [Fog::Rackspace::
|
140
|
-
# @raise [Fog::Rackspace::
|
137
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
138
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
139
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
140
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
141
141
|
def public?
|
142
142
|
directory.public?
|
143
143
|
end
|
@@ -151,20 +151,20 @@ module Fog
|
|
151
151
|
# 3. return the default CDN url.
|
152
152
|
#
|
153
153
|
# @return [String] public url for file
|
154
|
-
# @raise [Fog::Rackspace::
|
155
|
-
# @raise [Fog::Rackspace::
|
156
|
-
# @raise [Fog::Rackspace::
|
157
|
-
# @raise [Fog::Rackspace::
|
154
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
155
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
156
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
157
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
158
158
|
def public_url
|
159
159
|
Files::file_url directory.public_url, key
|
160
160
|
end
|
161
161
|
|
162
162
|
# URL used to stream video to iOS devices without needing to convert your video
|
163
163
|
# @return [String] iOS URL
|
164
|
-
# @raise [Fog::Rackspace::
|
165
|
-
# @raise [Fog::Rackspace::
|
166
|
-
# @raise [Fog::Rackspace::
|
167
|
-
# @raise [Fog::Rackspace::
|
164
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
165
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
166
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
167
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
168
168
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/iOS-Streaming-d1f3725.html
|
169
169
|
def ios_url
|
170
170
|
Files::file_url directory.ios_url, key
|
@@ -172,20 +172,20 @@ module Fog
|
|
172
172
|
|
173
173
|
# URL used to stream resources
|
174
174
|
# @return [String] streaming url
|
175
|
-
# @raise [Fog::Rackspace::
|
176
|
-
# @raise [Fog::Rackspace::
|
177
|
-
# @raise [Fog::Rackspace::
|
178
|
-
# @raise [Fog::Rackspace::
|
175
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
176
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
177
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
178
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
179
179
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Streaming-CDN-Enabled_Containers-d1f3721.html
|
180
180
|
def streaming_url
|
181
181
|
Files::file_url directory.streaming_url, key
|
182
182
|
end
|
183
183
|
|
184
184
|
# Immediately purge file from the CDN network
|
185
|
-
# @raise [Fog::Rackspace::
|
186
|
-
# @raise [Fog::Rackspace::
|
187
|
-
# @raise [Fog::Rackspace::
|
188
|
-
# @raise [Fog::Rackspace::
|
185
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
186
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
187
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
188
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
189
189
|
# @note You may only PURGE up to 25 objects per day. Any attempt to purge more than this will result in a 498 status code error (Rate Limited).
|
190
190
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Purge_CDN-Enabled_Objects-d1e3858.html
|
191
191
|
def purge_from_cdn
|
@@ -198,10 +198,10 @@ module Fog
|
|
198
198
|
|
199
199
|
# Create or updates file and associated metadata
|
200
200
|
# @param options [Hash] additional parameters to pass to Cloud Files
|
201
|
-
# @raise [Fog::Rackspace::
|
202
|
-
# @raise [Fog::Rackspace::
|
203
|
-
# @raise [Fog::Rackspace::
|
204
|
-
# @raise [Fog::Rackspace::
|
201
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
202
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
203
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
204
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
205
205
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/Create_Update_Object-d1e1965.html
|
206
206
|
def save(options = {})
|
207
207
|
requires :body, :directory, :key
|
@@ -35,10 +35,10 @@ module Fog
|
|
35
35
|
|
36
36
|
# Returns list of files
|
37
37
|
# @return [Fog::Storage::Rackspace::Files] Retrieves a list files.
|
38
|
-
# @raise [Fog::Rackspace::
|
39
|
-
# @raise [Fog::Rackspace::
|
40
|
-
# @raise [Fog::Rackspace::
|
41
|
-
# @raise [Fog::Rackspace::
|
38
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
39
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
40
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
41
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
42
42
|
# @see http://docs.rackspace.com/files/api/v1/cf-devguide/content/List_Objects-d1e1284.html
|
43
43
|
def all(options = {})
|
44
44
|
requires :directory
|
@@ -63,10 +63,10 @@ module Fog
|
|
63
63
|
# Calls block for each file in the directory
|
64
64
|
# @yieldparam [Fog::Storage::Rackspace::File]
|
65
65
|
# @return [Fog::Storage::Rackspace::Directory] returns itself
|
66
|
-
# @raise [Fog::Rackspace::
|
67
|
-
# @raise [Fog::Rackspace::
|
68
|
-
# @raise [Fog::Rackspace::
|
69
|
-
# @raise [Fog::Rackspace::
|
66
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
67
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
68
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
69
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
70
70
|
# @note This method retrieves files in pages. Page size is defined by the limit attribute
|
71
71
|
alias :each_file_this_page :each
|
72
72
|
def each
|
@@ -92,10 +92,10 @@ module Fog
|
|
92
92
|
# @yieldparam [Integer] remaining
|
93
93
|
# @yieldparam [Integer] content_length
|
94
94
|
# @return [Fog::Storage::Rackspace:File]
|
95
|
-
# @raise [Fog::Rackspace::
|
96
|
-
# @raise [Fog::Rackspace::
|
97
|
-
# @raise [Fog::Rackspace::
|
98
|
-
# @raise [Fog::Rackspace::
|
95
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
96
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
97
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
98
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
99
99
|
# @note If a block is provided, the body attribute will be empty. By default chunk size is 1 MB. This value can be changed by passing the parameter :chunk_size
|
100
100
|
# into the :connection_options hash in the service constructor.
|
101
101
|
# @example Download an image from Cloud Files and save it to file
|
@@ -125,10 +125,10 @@ module Fog
|
|
125
125
|
# Returns the public_url for the given object key
|
126
126
|
# @param key of the object
|
127
127
|
# @return [String] url for object
|
128
|
-
# @raise [Fog::Rackspace::
|
129
|
-
# @raise [Fog::Rackspace::
|
130
|
-
# @raise [Fog::Rackspace::
|
131
|
-
# @raise [Fog::Rackspace::
|
128
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
129
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
130
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
131
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
132
132
|
# @see Directory#public_url
|
133
133
|
def get_url(key)
|
134
134
|
requires :directory
|
@@ -141,10 +141,10 @@ module Fog
|
|
141
141
|
# @param key of the object
|
142
142
|
# @param options Required for compatibility with other Fog providers. Not Used.
|
143
143
|
# @return [Fog::Storage::Rackspace::File]
|
144
|
-
# @raise [Fog::Rackspace::
|
145
|
-
# @raise [Fog::Rackspace::
|
146
|
-
# @raise [Fog::Rackspace::
|
147
|
-
# @raise [Fog::Rackspace::
|
144
|
+
# @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
|
145
|
+
# @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
|
146
|
+
# @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
|
147
|
+
# @raise [Fog::Storage::Rackspace::ServiceError]
|
148
148
|
def head(key, options = {})
|
149
149
|
requires :directory
|
150
150
|
data = service.head_object(directory.key, key)
|
@@ -20,10 +20,10 @@ module Fog
|
|
20
20
|
# * 'size' [Fixnum]: - size of the snapshot in GB
|
21
21
|
# * 'display_name' [String]: - display name of snapshot
|
22
22
|
# * 'created_at' [String]: - creation time of snapshot
|
23
|
-
# @raise [Fog::Rackspace::
|
24
|
-
# @raise [Fog::Rackspace::
|
25
|
-
# @raise [Fog::Rackspace::
|
26
|
-
# @raise [Fog::Rackspace::
|
23
|
+
# @raise [Fog::Rackspace::BlockStorage::NotFound] - HTTP 404
|
24
|
+
# @raise [Fog::Rackspace::BlockStorage::BadRequest] - HTTP 400
|
25
|
+
# @raise [Fog::Rackspace::BlockStorage::InternalServerError] - HTTP 500
|
26
|
+
# @raise [Fog::Rackspace::BlockStorage::ServiceError]
|
27
27
|
# @note All writes to the volume should be flushed before creating the snapshot, either by un-mounting any file systems on the volume or by detaching the volume.
|
28
28
|
# @see http://docs.rackspace.com/cbs/api/v1.0/cbs-devguide/content/POST_createSnapshot__v1__tenant_id__snapshots.html
|
29
29
|
def create_snapshot(volume_id, options = {})
|