fog 1.25.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +113 -0
- data/Rakefile +4 -1
- data/fog.gemspec +9 -5
- data/lib/fog.rb +2 -0
- data/lib/fog/aws/models/auto_scaling/configuration.rb +1 -0
- data/lib/fog/aws/models/storage/file.rb +5 -3
- data/lib/fog/aws/parsers/sts/assume_role_with_saml.rb +26 -0
- data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +3 -0
- data/lib/fog/aws/requests/auto_scaling/describe_launch_configurations.rb +1 -0
- data/lib/fog/aws/requests/compute/describe_network_acls.rb +1 -2
- data/lib/fog/aws/requests/dns/create_health_check.rb +12 -12
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +14 -13
- data/lib/fog/aws/requests/sts/assume_role_with_saml.rb +44 -0
- data/lib/fog/aws/signaturev4.rb +3 -3
- data/lib/fog/aws/storage.rb +140 -34
- data/lib/fog/aws/sts.rb +34 -3
- data/lib/fog/bin.rb +1 -1
- data/lib/fog/core/deprecated/connection.rb +2 -2
- data/lib/fog/digitalocean/models/compute/server.rb +27 -2
- data/lib/fog/digitalocean/requests/compute/create_server.rb +2 -0
- data/lib/fog/fogdocker/models/compute/server.rb +4 -0
- data/lib/fog/fogdocker/requests/compute/container_get.rb +1 -0
- data/lib/fog/google/models/storage/files.rb +5 -1
- data/lib/fog/hp/core.rb +1 -0
- data/lib/fog/ninefold/storage.rb +1 -1
- data/lib/fog/opennebula/compute.rb +1 -1
- data/lib/fog/openstack/examples/compute/block_device_mapping_v2.rb +30 -0
- data/lib/fog/openstack/identity.rb +4 -2
- data/lib/fog/openstack/models/compute/server.rb +5 -3
- data/lib/fog/openstack/models/image/images.rb +2 -2
- data/lib/fog/openstack/models/network/floating_ips.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +23 -11
- data/lib/fog/openstack/requests/image/list_public_images_detailed.rb +7 -5
- data/lib/fog/openstack/requests/storage/head_containers.rb +1 -1
- data/lib/fog/rackspace.rb +1 -0
- data/lib/fog/rackspace/core.rb +1 -0
- data/lib/fog/rackspace/docs/orchestration.md +356 -0
- data/lib/fog/rackspace/models/orchestration/event.rb +18 -0
- data/lib/fog/rackspace/models/orchestration/events.rb +28 -0
- data/lib/fog/rackspace/models/orchestration/resource.rb +30 -0
- data/lib/fog/rackspace/models/orchestration/resource_schemas.rb +16 -0
- data/lib/fog/rackspace/models/orchestration/resources.rb +35 -0
- data/lib/fog/rackspace/models/orchestration/stack.rb +48 -0
- data/lib/fog/rackspace/models/orchestration/stacks.rb +40 -0
- data/lib/fog/rackspace/models/orchestration/template.rb +13 -0
- data/lib/fog/rackspace/models/orchestration/templates.rb +31 -0
- data/lib/fog/rackspace/orchestration.rb +227 -0
- data/lib/fog/rackspace/requests/orchestration/abandon_stack.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/build_info.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/create_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/delete_stack.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/get_stack_template.rb +20 -0
- data/lib/fog/rackspace/requests/orchestration/list_resource_events.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/list_resource_types.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/list_resources.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/list_stack_data.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/list_stack_events.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/preview_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/show_event_details.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_data.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_metadata.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_schema.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_template.rb +20 -0
- data/lib/fog/rackspace/requests/orchestration/show_stack_details.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/update_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/validate_template.rb +16 -0
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +2 -0
- data/spec/fog/bin/atmos_spec.rb +10 -0
- data/spec/fog/bin/aws_spec.rb +10 -0
- data/spec/fog/bin/baremetalcloud_spec.rb +10 -0
- data/spec/fog/bin/bluebox_spec.rb +10 -0
- data/spec/fog/bin/brightbox_spec.rb +31 -0
- data/spec/fog/bin/clodo_spec.rb +10 -0
- data/spec/fog/bin/cloudsigma_spec.rb +10 -0
- data/spec/fog/bin/cloudstack_spec.rb +10 -0
- data/spec/fog/bin/digitalocean_spec.rb +10 -0
- data/spec/fog/bin/dnsimple_spec.rb +10 -0
- data/spec/fog/bin/dnsmadeeasy_spec.rb +10 -0
- data/spec/fog/bin/dreamhost_spec.rb +10 -0
- data/spec/fog/bin/dynect_spec.rb +10 -0
- data/spec/fog/bin/ecloud_spec.rb +10 -0
- data/spec/fog/bin/fogdocker_spec.rb +10 -0
- data/spec/fog/bin/glesys_spec.rb +10 -0
- data/spec/fog/bin/gogrid_spec.rb +10 -0
- data/spec/fog/bin/google_spec.rb +10 -0
- data/spec/fog/bin/hp_spec.rb +10 -0
- data/spec/fog/bin/ibm_spec.rb +10 -0
- data/spec/fog/bin/internetarchive_spec.rb +10 -0
- data/spec/fog/bin/joyent_spec.rb +10 -0
- data/spec/fog/bin/libvirt_spec.rb +10 -0
- data/spec/fog/bin/linode_spec.rb +10 -0
- data/spec/fog/bin/local_spec.rb +10 -0
- data/spec/fog/bin/ninefold_spec.rb +10 -0
- data/spec/fog/bin/opennebula_spec.rb +10 -0
- data/spec/fog/bin/openstack_spec.rb +10 -0
- data/spec/fog/bin/openvz_spec.rb +10 -0
- data/spec/fog/bin/ovirt_spec.rb +10 -0
- data/spec/fog/bin/profitbricks_spec.rb +10 -0
- data/spec/fog/bin/rackspace_spec.rb +10 -0
- data/spec/fog/bin/rage4_spec.rb +10 -0
- data/spec/fog/bin/riakcs_spec.rb +10 -0
- data/spec/fog/bin/sakuracloud_spec.rb +10 -0
- data/spec/fog/bin/serverlove_spec.rb +10 -0
- data/spec/fog/bin/softlayer_spec.rb +10 -0
- data/spec/fog/bin/stormondemand_spec.rb +10 -0
- data/spec/fog/bin/vcloud_spec.rb +10 -0
- data/spec/fog/bin/vclouddirector_spec.rb +10 -0
- data/spec/fog/bin/vmfusion_spec.rb +10 -0
- data/spec/fog/bin/voxel_spec.rb +10 -0
- data/spec/fog/bin/vsphere_spec.rb +10 -0
- data/spec/fog/bin/xenserver_spec.rb +10 -0
- data/spec/fog/bin/zerigo_spec.rb +10 -0
- data/spec/fog/bin_spec.rb +165 -0
- data/spec/fog/compute_spec.rb +8 -0
- data/spec/helpers/bin.rb +30 -0
- data/tests/aws/requests/sts/assume_role_with_saml_tests.rb +18 -0
- data/tests/compute/helper.rb +0 -23
- data/tests/compute/models/flavors_tests.rb +1 -1
- data/tests/compute/models/server_tests.rb +0 -3
- data/tests/compute/models/servers_tests.rb +0 -3
- data/tests/fogdocker/models/compute/server_tests.rb +2 -1
- data/tests/helpers/mock_helper.rb +0 -6
- data/tests/openstack/requests/compute/helper.rb +8 -3
- data/tests/openstack/requests/compute/server_tests.rb +75 -21
- metadata +184 -491
- data/lib/fog/atmos.rb +0 -1
- data/lib/fog/atmos/core.rb +0 -9
- data/lib/fog/atmos/models/storage/directories.rb +0 -44
- data/lib/fog/atmos/models/storage/directory.rb +0 -48
- data/lib/fog/atmos/models/storage/file.rb +0 -108
- data/lib/fog/atmos/models/storage/files.rb +0 -74
- data/lib/fog/atmos/requests/storage/delete_namespace.rb +0 -17
- data/lib/fog/atmos/requests/storage/get_namespace.rb +0 -23
- data/lib/fog/atmos/requests/storage/head_namespace.rb +0 -18
- data/lib/fog/atmos/requests/storage/post_namespace.rb +0 -18
- data/lib/fog/atmos/requests/storage/put_namespace.rb +0 -18
- data/lib/fog/atmos/storage.rb +0 -184
- data/lib/fog/bin/ecloud.rb +0 -33
- data/lib/fog/bin/stormondemand.rb +0 -29
- data/lib/fog/ecloud.rb +0 -1
- data/lib/fog/ecloud/collection.rb +0 -24
- data/lib/fog/ecloud/compute.rb +0 -824
- data/lib/fog/ecloud/core.rb +0 -31
- data/lib/fog/ecloud/generate_collection.rb +0 -127
- data/lib/fog/ecloud/ipaddr.rb +0 -5
- data/lib/fog/ecloud/mock_data_classes.rb +0 -766
- data/lib/fog/ecloud/model.rb +0 -20
- data/lib/fog/ecloud/models/compute/admin_organization.rb +0 -43
- data/lib/fog/ecloud/models/compute/admin_organizations.rb +0 -21
- data/lib/fog/ecloud/models/compute/api_key.rb +0 -20
- data/lib/fog/ecloud/models/compute/api_keys.rb +0 -26
- data/lib/fog/ecloud/models/compute/association.rb +0 -23
- data/lib/fog/ecloud/models/compute/associations.rb +0 -34
- data/lib/fog/ecloud/models/compute/authentication_level.rb +0 -21
- data/lib/fog/ecloud/models/compute/authentication_levels.rb +0 -26
- data/lib/fog/ecloud/models/compute/backup_internet_service.rb +0 -45
- data/lib/fog/ecloud/models/compute/backup_internet_services.rb +0 -41
- data/lib/fog/ecloud/models/compute/catalog.rb +0 -39
- data/lib/fog/ecloud/models/compute/catalog_configuration.rb +0 -22
- data/lib/fog/ecloud/models/compute/catalog_configurations.rb +0 -26
- data/lib/fog/ecloud/models/compute/catalog_item.rb +0 -24
- data/lib/fog/ecloud/models/compute/compute_pool.rb +0 -70
- data/lib/fog/ecloud/models/compute/compute_pools.rb +0 -33
- data/lib/fog/ecloud/models/compute/cpu_usage_detail.rb +0 -16
- data/lib/fog/ecloud/models/compute/cpu_usage_detail_summary.rb +0 -26
- data/lib/fog/ecloud/models/compute/detached_disk.rb +0 -27
- data/lib/fog/ecloud/models/compute/detached_disks.rb +0 -26
- data/lib/fog/ecloud/models/compute/environment.rb +0 -111
- data/lib/fog/ecloud/models/compute/environments.rb +0 -39
- data/lib/fog/ecloud/models/compute/firewall_acl.rb +0 -27
- data/lib/fog/ecloud/models/compute/firewall_acls.rb +0 -27
- data/lib/fog/ecloud/models/compute/group.rb +0 -41
- data/lib/fog/ecloud/models/compute/groups.rb +0 -38
- data/lib/fog/ecloud/models/compute/guest_process.rb +0 -15
- data/lib/fog/ecloud/models/compute/guest_processes.rb +0 -26
- data/lib/fog/ecloud/models/compute/hardware_configuration.rb +0 -18
- data/lib/fog/ecloud/models/compute/hardware_configurations.rb +0 -26
- data/lib/fog/ecloud/models/compute/internet_service.rb +0 -97
- data/lib/fog/ecloud/models/compute/internet_services.rb +0 -44
- data/lib/fog/ecloud/models/compute/ip_address.rb +0 -39
- data/lib/fog/ecloud/models/compute/ip_addresses.rb +0 -32
- data/lib/fog/ecloud/models/compute/layout.rb +0 -20
- data/lib/fog/ecloud/models/compute/layouts.rb +0 -26
- data/lib/fog/ecloud/models/compute/location.rb +0 -22
- data/lib/fog/ecloud/models/compute/locations.rb +0 -28
- data/lib/fog/ecloud/models/compute/login_banner.rb +0 -16
- data/lib/fog/ecloud/models/compute/login_banners.rb +0 -26
- data/lib/fog/ecloud/models/compute/memory_usage_detail.rb +0 -16
- data/lib/fog/ecloud/models/compute/memory_usage_detail_summary.rb +0 -26
- data/lib/fog/ecloud/models/compute/monitor.rb +0 -46
- data/lib/fog/ecloud/models/compute/monitors.rb +0 -30
- data/lib/fog/ecloud/models/compute/network.rb +0 -46
- data/lib/fog/ecloud/models/compute/networks.rb +0 -32
- data/lib/fog/ecloud/models/compute/node.rb +0 -45
- data/lib/fog/ecloud/models/compute/nodes.rb +0 -42
- data/lib/fog/ecloud/models/compute/operating_system.rb +0 -16
- data/lib/fog/ecloud/models/compute/operating_system_families.rb +0 -26
- data/lib/fog/ecloud/models/compute/operating_system_family.rb +0 -21
- data/lib/fog/ecloud/models/compute/operating_systems.rb +0 -25
- data/lib/fog/ecloud/models/compute/organization.rb +0 -78
- data/lib/fog/ecloud/models/compute/organizations.rb +0 -38
- data/lib/fog/ecloud/models/compute/password_complexity_rule.rb +0 -49
- data/lib/fog/ecloud/models/compute/password_complexity_rules.rb +0 -26
- data/lib/fog/ecloud/models/compute/physical_device.rb +0 -21
- data/lib/fog/ecloud/models/compute/physical_devices.rb +0 -26
- data/lib/fog/ecloud/models/compute/public_ip.rb +0 -26
- data/lib/fog/ecloud/models/compute/public_ips.rb +0 -31
- data/lib/fog/ecloud/models/compute/rnat.rb +0 -27
- data/lib/fog/ecloud/models/compute/rnats.rb +0 -26
- data/lib/fog/ecloud/models/compute/role.rb +0 -23
- data/lib/fog/ecloud/models/compute/roles.rb +0 -36
- data/lib/fog/ecloud/models/compute/row.rb +0 -56
- data/lib/fog/ecloud/models/compute/rows.rb +0 -39
- data/lib/fog/ecloud/models/compute/server.rb +0 -323
- data/lib/fog/ecloud/models/compute/server_configuration_option.rb +0 -16
- data/lib/fog/ecloud/models/compute/server_configuration_options.rb +0 -26
- data/lib/fog/ecloud/models/compute/servers.rb +0 -65
- data/lib/fog/ecloud/models/compute/ssh_key.rb +0 -19
- data/lib/fog/ecloud/models/compute/ssh_keys.rb +0 -26
- data/lib/fog/ecloud/models/compute/storage_usage_detail.rb +0 -16
- data/lib/fog/ecloud/models/compute/storage_usage_detail_summary.rb +0 -26
- data/lib/fog/ecloud/models/compute/support_ticket.rb +0 -28
- data/lib/fog/ecloud/models/compute/support_tickets.rb +0 -26
- data/lib/fog/ecloud/models/compute/tag.rb +0 -13
- data/lib/fog/ecloud/models/compute/tags.rb +0 -26
- data/lib/fog/ecloud/models/compute/task.rb +0 -23
- data/lib/fog/ecloud/models/compute/tasks.rb +0 -29
- data/lib/fog/ecloud/models/compute/template.rb +0 -23
- data/lib/fog/ecloud/models/compute/templates.rb +0 -41
- data/lib/fog/ecloud/models/compute/trusted_network_group.rb +0 -33
- data/lib/fog/ecloud/models/compute/trusted_network_groups.rb +0 -27
- data/lib/fog/ecloud/models/compute/user.rb +0 -35
- data/lib/fog/ecloud/models/compute/users.rb +0 -26
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +0 -32
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ips.rb +0 -26
- data/lib/fog/ecloud/requests/compute/admin_disable_support_access.rb +0 -9
- data/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb +0 -32
- data/lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb +0 -30
- data/lib/fog/ecloud/requests/compute/admin_edit_password_complexity_rules.rb +0 -72
- data/lib/fog/ecloud/requests/compute/admin_enable_support_access.rb +0 -9
- data/lib/fog/ecloud/requests/compute/backup_internet_service_create.rb +0 -47
- data/lib/fog/ecloud/requests/compute/backup_internet_service_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/backup_internet_service_edit.rb +0 -47
- data/lib/fog/ecloud/requests/compute/compute_pool_edit.rb +0 -35
- data/lib/fog/ecloud/requests/compute/firewall_acls_create.rb +0 -78
- data/lib/fog/ecloud/requests/compute/firewall_acls_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_admin_organization.rb +0 -23
- data/lib/fog/ecloud/requests/compute/get_api_key.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_api_keys.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_association.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_associations.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_authentication_level.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_authentication_levels.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_backup_internet_service.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_backup_internet_services.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog_configuration.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog_configurations.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog_item.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_compute_pool.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_compute_pools.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_detached_disk.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_detached_disks.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_environment.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_environments.rb +0 -0
- data/lib/fog/ecloud/requests/compute/get_firewall_acl.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_firewall_acls.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_group.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_groups.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_guest_process.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_guest_processes.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_hardware_configuration.rb +0 -29
- data/lib/fog/ecloud/requests/compute/get_hardware_configurations.rb +0 -14
- data/lib/fog/ecloud/requests/compute/get_internet_service.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_internet_services.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_ip_address.rb +0 -20
- data/lib/fog/ecloud/requests/compute/get_layout.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_layouts.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_location.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_locations.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_login_banner.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_login_banners.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_memory_usage_detail.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_memory_usage_detail_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_monitor.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_monitors.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_network.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_network_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_networks.rb +0 -30
- data/lib/fog/ecloud/requests/compute/get_node.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_nodes.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_operating_system.rb +0 -24
- data/lib/fog/ecloud/requests/compute/get_operating_system_families.rb +0 -30
- data/lib/fog/ecloud/requests/compute/get_organization.rb +0 -24
- data/lib/fog/ecloud/requests/compute/get_organizations.rb +0 -23
- data/lib/fog/ecloud/requests/compute/get_password_complexity_rule.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_password_complexity_rules.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_physical_device.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_physical_devices.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_process.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_processes.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_public_ip.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_public_ips.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_rnat.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_rnats.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_role.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_roles.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_row.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_rows.rb +0 -12
- data/lib/fog/ecloud/requests/compute/get_server.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_server_configuration_option.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_server_configuration_options.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_servers.rb +0 -42
- data/lib/fog/ecloud/requests/compute/get_ssh_key.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_ssh_keys.rb +0 -30
- data/lib/fog/ecloud/requests/compute/get_storage_usage_detail.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_storage_usage_detail_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_support_ticket.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_support_tickets.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_tag.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_tags.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_task.rb +0 -13
- data/lib/fog/ecloud/requests/compute/get_tasks.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_template.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_templates.rb +0 -48
- data/lib/fog/ecloud/requests/compute/get_trusted_network_group.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_trusted_network_groups.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_user.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_users.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_virtual_machine_assigned_ips.rb +0 -42
- data/lib/fog/ecloud/requests/compute/groups_create.rb +0 -31
- data/lib/fog/ecloud/requests/compute/groups_delete.rb +0 -26
- data/lib/fog/ecloud/requests/compute/groups_edit.rb +0 -29
- data/lib/fog/ecloud/requests/compute/groups_movedown.rb +0 -9
- data/lib/fog/ecloud/requests/compute/groups_moveup.rb +0 -9
- data/lib/fog/ecloud/requests/compute/internet_service_create.rb +0 -102
- data/lib/fog/ecloud/requests/compute/internet_service_delete.rb +0 -33
- data/lib/fog/ecloud/requests/compute/internet_service_edit.rb +0 -58
- data/lib/fog/ecloud/requests/compute/monitors_create_default.rb +0 -9
- data/lib/fog/ecloud/requests/compute/monitors_create_ecv.rb +0 -40
- data/lib/fog/ecloud/requests/compute/monitors_create_http.rb +0 -44
- data/lib/fog/ecloud/requests/compute/monitors_create_loopback.rb +0 -9
- data/lib/fog/ecloud/requests/compute/monitors_create_ping.rb +0 -35
- data/lib/fog/ecloud/requests/compute/monitors_disable.rb +0 -9
- data/lib/fog/ecloud/requests/compute/monitors_edit_ecv.rb +0 -40
- data/lib/fog/ecloud/requests/compute/monitors_edit_http.rb +0 -44
- data/lib/fog/ecloud/requests/compute/monitors_edit_ping.rb +0 -35
- data/lib/fog/ecloud/requests/compute/monitors_enable.rb +0 -9
- data/lib/fog/ecloud/requests/compute/node_service_create.rb +0 -93
- data/lib/fog/ecloud/requests/compute/node_service_delete.rb +0 -33
- data/lib/fog/ecloud/requests/compute/node_service_edit.rb +0 -39
- data/lib/fog/ecloud/requests/compute/power_off.rb +0 -9
- data/lib/fog/ecloud/requests/compute/power_on.rb +0 -9
- data/lib/fog/ecloud/requests/compute/power_reset.rb +0 -9
- data/lib/fog/ecloud/requests/compute/power_shutdown.rb +0 -9
- data/lib/fog/ecloud/requests/compute/public_ip_activate.rb +0 -9
- data/lib/fog/ecloud/requests/compute/rnat_associations_create_device.rb +0 -32
- data/lib/fog/ecloud/requests/compute/rnat_associations_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/rnat_associations_edit_network.rb +0 -31
- data/lib/fog/ecloud/requests/compute/rows_create.rb +0 -29
- data/lib/fog/ecloud/requests/compute/rows_delete.rb +0 -21
- data/lib/fog/ecloud/requests/compute/rows_edit.rb +0 -29
- data/lib/fog/ecloud/requests/compute/rows_movedown.rb +0 -9
- data/lib/fog/ecloud/requests/compute/rows_moveup.rb +0 -9
- data/lib/fog/ecloud/requests/compute/trusted_network_groups_create.rb +0 -51
- data/lib/fog/ecloud/requests/compute/trusted_network_groups_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/trusted_network_groups_edit.rb +0 -51
- data/lib/fog/ecloud/requests/compute/virtual_machine_attach_disk.rb +0 -61
- data/lib/fog/ecloud/requests/compute/virtual_machine_copy.rb +0 -116
- data/lib/fog/ecloud/requests/compute/virtual_machine_copy_identical.rb +0 -43
- data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +0 -244
- data/lib/fog/ecloud/requests/compute/virtual_machine_delete.rb +0 -46
- data/lib/fog/ecloud/requests/compute/virtual_machine_detach_disk.rb +0 -70
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit.rb +0 -45
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_assigned_ips.rb +0 -80
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_hardware_configuration.rb +0 -75
- data/lib/fog/ecloud/requests/compute/virtual_machine_import.rb +0 -179
- data/lib/fog/ecloud/requests/compute/virtual_machine_upload_file.rb +0 -28
- data/lib/fog/storm_on_demand.rb +0 -9
- data/lib/fog/storm_on_demand/README.md +0 -49
- data/lib/fog/storm_on_demand/account.rb +0 -51
- data/lib/fog/storm_on_demand/billing.rb +0 -55
- data/lib/fog/storm_on_demand/compute.rb +0 -105
- data/lib/fog/storm_on_demand/core.rb +0 -18
- data/lib/fog/storm_on_demand/dns.rb +0 -79
- data/lib/fog/storm_on_demand/models/account/token.rb +0 -20
- data/lib/fog/storm_on_demand/models/account/tokens.rb +0 -17
- data/lib/fog/storm_on_demand/models/billing/invoice.rb +0 -25
- data/lib/fog/storm_on_demand/models/billing/invoices.rb +0 -27
- data/lib/fog/storm_on_demand/models/billing/payment.rb +0 -13
- data/lib/fog/storm_on_demand/models/billing/payments.rb +0 -17
- data/lib/fog/storm_on_demand/models/compute/config.rb +0 -37
- data/lib/fog/storm_on_demand/models/compute/configs.rb +0 -22
- data/lib/fog/storm_on_demand/models/compute/image.rb +0 -37
- data/lib/fog/storm_on_demand/models/compute/images.rb +0 -27
- data/lib/fog/storm_on_demand/models/compute/notification.rb +0 -31
- data/lib/fog/storm_on_demand/models/compute/notifications.rb +0 -27
- data/lib/fog/storm_on_demand/models/compute/product.rb +0 -37
- data/lib/fog/storm_on_demand/models/compute/products.rb +0 -25
- data/lib/fog/storm_on_demand/models/compute/server.rb +0 -91
- data/lib/fog/storm_on_demand/models/compute/servers.rb +0 -27
- data/lib/fog/storm_on_demand/models/compute/template.rb +0 -26
- data/lib/fog/storm_on_demand/models/compute/templates.rb +0 -22
- data/lib/fog/storm_on_demand/models/dns/domain.rb +0 -31
- data/lib/fog/storm_on_demand/models/dns/domains.rb +0 -17
- data/lib/fog/storm_on_demand/models/dns/record.rb +0 -61
- data/lib/fog/storm_on_demand/models/dns/records.rb +0 -27
- data/lib/fog/storm_on_demand/models/dns/reverse.rb +0 -13
- data/lib/fog/storm_on_demand/models/dns/reverses.rb +0 -20
- data/lib/fog/storm_on_demand/models/dns/zone.rb +0 -38
- data/lib/fog/storm_on_demand/models/dns/zones.rb +0 -27
- data/lib/fog/storm_on_demand/models/monitoring/bandwidth.rb +0 -20
- data/lib/fog/storm_on_demand/models/monitoring/bandwidths.rb +0 -21
- data/lib/fog/storm_on_demand/models/monitoring/load.rb +0 -20
- data/lib/fog/storm_on_demand/models/monitoring/loads.rb +0 -21
- data/lib/fog/storm_on_demand/models/monitoring/monitor_service.rb +0 -19
- data/lib/fog/storm_on_demand/models/monitoring/monitor_services.rb +0 -30
- data/lib/fog/storm_on_demand/models/network/balancer.rb +0 -56
- data/lib/fog/storm_on_demand/models/network/balancers.rb +0 -40
- data/lib/fog/storm_on_demand/models/network/firewall.rb +0 -18
- data/lib/fog/storm_on_demand/models/network/firewalls.rb +0 -31
- data/lib/fog/storm_on_demand/models/network/network_ip.rb +0 -21
- data/lib/fog/storm_on_demand/models/network/network_ips.rb +0 -46
- data/lib/fog/storm_on_demand/models/network/pool.rb +0 -30
- data/lib/fog/storm_on_demand/models/network/pools.rb +0 -26
- data/lib/fog/storm_on_demand/models/network/private_ip.rb +0 -15
- data/lib/fog/storm_on_demand/models/network/private_ips.rb +0 -36
- data/lib/fog/storm_on_demand/models/network/ruleset.rb +0 -25
- data/lib/fog/storm_on_demand/models/network/rulesets.rb +0 -27
- data/lib/fog/storm_on_demand/models/network/zone.rb +0 -25
- data/lib/fog/storm_on_demand/models/network/zones.rb +0 -22
- data/lib/fog/storm_on_demand/models/storage/cluster.rb +0 -17
- data/lib/fog/storm_on_demand/models/storage/clusters.rb +0 -17
- data/lib/fog/storm_on_demand/models/storage/volume.rb +0 -51
- data/lib/fog/storm_on_demand/models/storage/volumes.rb +0 -27
- data/lib/fog/storm_on_demand/models/support/alert.rb +0 -16
- data/lib/fog/storm_on_demand/models/support/alerts.rb +0 -17
- data/lib/fog/storm_on_demand/models/support/ticket.rb +0 -70
- data/lib/fog/storm_on_demand/models/support/tickets.rb +0 -30
- data/lib/fog/storm_on_demand/models/vpn/vpn.rb +0 -28
- data/lib/fog/storm_on_demand/models/vpn/vpns.rb +0 -26
- data/lib/fog/storm_on_demand/monitoring.rb +0 -61
- data/lib/fog/storm_on_demand/network.rb +0 -107
- data/lib/fog/storm_on_demand/requests/account/create_token.rb +0 -14
- data/lib/fog/storm_on_demand/requests/account/expire_token.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/get_invoice.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/list_invoices.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/make_payment.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/next_invoice.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/create_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/create_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/current_notifications.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/delete_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_config_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_image_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_notification.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product_code.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product_price.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_template_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_images.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_notifications.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_products.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/resolve_notification.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/restore_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/restore_template.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/server_history.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/server_status.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/shutdown_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/start_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/update_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/update_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/check_zone_delegation.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/create_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/create_record_region.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/create_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_record_region.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_reverse.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/get_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/get_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/list_domains.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/list_records.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/list_zones.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/renew_domain.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_record_region.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_reverse.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/update_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/add_balancer_node.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/add_balancer_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/check_balancer_available.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/check_server_attached.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/create_balancer.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/create_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/create_ruleset.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/delete_balancer.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/delete_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_assignments.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_balancer_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_firewall.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_ip_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_private_ip.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_ruleset.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_balancers.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_network_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_private_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_rulesets.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_zones.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/remove_balancer_node.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/request_new_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/set_default_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_balancer.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_firewall.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_ruleset.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/create_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/delete_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/get_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/list_clusters.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/list_volumes.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/resize_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/update_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/add_feedback.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/authenticate.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/close_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/create_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/get_active_alert.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/get_ticket_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/list_ticket_types.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/list_tickets.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/reopen_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/reply_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/create_vpn.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/get_vpn.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/list_vpn_users.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/update_vpn.rb +0 -14
- data/lib/fog/storm_on_demand/shared.rb +0 -53
- data/lib/fog/storm_on_demand/storage.rb +0 -63
- data/lib/fog/storm_on_demand/support.rb +0 -61
- data/lib/fog/storm_on_demand/vpn.rb +0 -53
- data/tests/atmos/models/storage/file_update_tests.rb +0 -19
- data/tests/atmos/models/storage/nested_directories_tests.rb +0 -23
- data/tests/ecloud/compute/models/admin_organization_tests.rb +0 -16
- data/tests/ecloud/compute/models/compute_pool_tests.rb +0 -17
- data/tests/ecloud/compute/models/detached_disk_tests.rb +0 -26
- data/tests/ecloud/compute/models/environment_tests.rb +0 -23
- data/tests/ecloud/compute/models/internet_service_tests.rb +0 -28
- data/tests/ecloud/compute/models/ip_address_tests.rb +0 -19
- data/tests/ecloud/compute/models/network_tests.rb +0 -17
- data/tests/ecloud/compute/models/operating_system_families_tests.rb +0 -13
- data/tests/ecloud/compute/models/operating_system_tests.rb +0 -22
- data/tests/ecloud/compute/models/organization_tests.rb +0 -21
- data/tests/ecloud/compute/models/public_ip_tests.rb +0 -19
- data/tests/ecloud/compute/models/server_tests.rb +0 -144
- data/tests/ecloud/compute/models/ssh_key_tests.rb +0 -19
- data/tests/ecloud/compute/models/template_tests.rb +0 -20
- data/tests/storm_on_demand/requests/compute/server_tests.rb +0 -64
data/lib/fog/aws/storage.rb
CHANGED
@@ -44,7 +44,7 @@ module Fog
|
|
44
44
|
]
|
45
45
|
|
46
46
|
requires :aws_access_key_id, :aws_secret_access_key
|
47
|
-
recognizes :endpoint, :region, :host, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :path_style, :instrumentor, :instrumentor_name
|
47
|
+
recognizes :endpoint, :region, :host, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :path_style, :instrumentor, :instrumentor_name, :aws_signature_version
|
48
48
|
|
49
49
|
secrets :aws_secret_access_key, :hmac
|
50
50
|
|
@@ -220,13 +220,15 @@ module Fog
|
|
220
220
|
bucket_name = params[:bucket_name]
|
221
221
|
|
222
222
|
path_style = params.fetch(:path_style, @path_style)
|
223
|
-
if !path_style
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
223
|
+
if !path_style
|
224
|
+
if COMPLIANT_BUCKET_NAMES !~ bucket_name
|
225
|
+
Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) is not a valid dns name, which will negatively impact performance. For details see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html")
|
226
|
+
path_style = true
|
227
|
+
elsif scheme == 'https' && bucket_name =~ /\./
|
228
|
+
Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) contains a '.' so is not accessible over https as a virtual hosted bucket, which will negatively impact performance. For details see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html")
|
229
|
+
path_style = true
|
230
|
+
end
|
231
|
+
end
|
230
232
|
|
231
233
|
if path_style
|
232
234
|
path = bucket_to_path bucket_name, path
|
@@ -421,7 +423,8 @@ module Fog
|
|
421
423
|
@instrumentor_name = options[:instrumentor_name] || 'fog.aws.storage'
|
422
424
|
@connection_options = options[:connection_options] || {}
|
423
425
|
@persistent = options.fetch(:persistent, false)
|
424
|
-
|
426
|
+
@signature_version = options.fetch(:aws_signature_version, 4)
|
427
|
+
validate_signature_version!
|
425
428
|
@path_style = options[:path_style] || false
|
426
429
|
|
427
430
|
if @endpoint = options[:endpoint]
|
@@ -445,13 +448,23 @@ module Fog
|
|
445
448
|
|
446
449
|
private
|
447
450
|
|
451
|
+
def validate_signature_version!
|
452
|
+
unless @signature_version == 2 || @signature_version == 4
|
453
|
+
raise "Unknown signature version #{@signature_version}; valid versions are 2 or 4"
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
448
457
|
def setup_credentials(options)
|
449
458
|
@aws_access_key_id = options[:aws_access_key_id]
|
450
459
|
@aws_secret_access_key = options[:aws_secret_access_key]
|
451
460
|
@aws_session_token = options[:aws_session_token]
|
452
461
|
@aws_credentials_expire_at = options[:aws_credentials_expire_at]
|
453
462
|
|
454
|
-
|
463
|
+
if @signature_version == 4
|
464
|
+
@signer = Fog::AWS::SignatureV4.new( @aws_access_key_id, @aws_secret_access_key, @region, 's3')
|
465
|
+
elsif @signature_version == 2
|
466
|
+
@hmac = Fog::HMAC.new('sha1', @aws_secret_access_key)
|
467
|
+
end
|
455
468
|
end
|
456
469
|
|
457
470
|
def connection(scheme, host, port)
|
@@ -478,19 +491,11 @@ module Fog
|
|
478
491
|
|
479
492
|
params[:headers]['x-amz-security-token'] = @aws_session_token if @aws_session_token
|
480
493
|
|
481
|
-
if
|
482
|
-
|
483
|
-
params[:headers]['
|
484
|
-
params[:headers]['
|
485
|
-
|
486
|
-
encoding = "aws-chunked"
|
487
|
-
|
488
|
-
encoding += ", #{params[:headers]['Content-Encoding']}" if params[:headers]['Content-Encoding']
|
489
|
-
params[:headers]['Content-Encoding'] = encoding
|
490
|
-
else
|
491
|
-
params[:headers]['x-amz-content-sha256'] ||= Digest::SHA256.hexdigest(params[:body] || '')
|
494
|
+
if @signature_version == 2
|
495
|
+
expires = date.to_date_header
|
496
|
+
params[:headers]['Date'] = expires
|
497
|
+
params[:headers]['Authorization'] = "AWS #{@aws_access_key_id}:#{signature_v2(params, expires)}"
|
492
498
|
end
|
493
|
-
params[:headers]['x-amz-date'] = date.to_iso8601_basic
|
494
499
|
|
495
500
|
params = request_params(params)
|
496
501
|
scheme = params.delete(:scheme)
|
@@ -498,15 +503,31 @@ module Fog
|
|
498
503
|
port = params.delete(:port) || DEFAULT_SCHEME_PORT[scheme]
|
499
504
|
params[:headers]['Host'] = host
|
500
505
|
|
501
|
-
signature_components = @signer.signature_components(params, date, params[:headers]['x-amz-content-sha256'])
|
502
|
-
params[:headers]['Authorization'] = @signer.components_to_header(signature_components)
|
503
|
-
# FIXME: ToHashParser should make this not needed
|
504
|
-
original_params = params.dup
|
505
506
|
|
506
|
-
if
|
507
|
-
|
508
|
-
params[:
|
507
|
+
if @signature_version == 4
|
508
|
+
params[:headers]['x-amz-date'] = date.to_iso8601_basic
|
509
|
+
if params[:body].respond_to?(:read)
|
510
|
+
# See http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
|
511
|
+
params[:headers]['x-amz-content-sha256'] = 'STREAMING-AWS4-HMAC-SHA256-PAYLOAD'
|
512
|
+
params[:headers]['x-amz-decoded-content-length'] = params[:headers].delete 'Content-Length'
|
513
|
+
|
514
|
+
encoding = "aws-chunked"
|
515
|
+
|
516
|
+
encoding += ", #{params[:headers]['Content-Encoding']}" if params[:headers]['Content-Encoding']
|
517
|
+
params[:headers]['Content-Encoding'] = encoding
|
518
|
+
else
|
519
|
+
params[:headers]['x-amz-content-sha256'] ||= Digest::SHA256.hexdigest(params[:body] || '')
|
520
|
+
end
|
521
|
+
signature_components = @signer.signature_components(params, date, params[:headers]['x-amz-content-sha256'])
|
522
|
+
params[:headers]['Authorization'] = @signer.components_to_header(signature_components)
|
523
|
+
|
524
|
+
if params[:body].respond_to?(:read)
|
525
|
+
body = params.delete :body
|
526
|
+
params[:request_block] = S3Streamer.new(body, signature_components['X-Amz-Signature'], @signer, date)
|
527
|
+
end
|
509
528
|
end
|
529
|
+
# FIXME: ToHashParser should make this not needed
|
530
|
+
original_params = params.dup
|
510
531
|
|
511
532
|
if @instrumentor
|
512
533
|
@instrumentor.instrument("#{@instrumentor_name}.request", params) do
|
@@ -519,28 +540,58 @@ module Fog
|
|
519
540
|
|
520
541
|
def _request(scheme, host, port, params, original_params, &block)
|
521
542
|
connection(scheme, host, port).request(params, &block)
|
522
|
-
rescue Excon::Errors::TemporaryRedirect => error
|
543
|
+
rescue Excon::Errors::MovedPermanently, Excon::Errors::TemporaryRedirect => error
|
523
544
|
headers = (error.response.is_a?(Hash) ? error.response[:headers] : error.response.headers)
|
524
|
-
|
525
|
-
|
526
|
-
|
545
|
+
new_params = {}
|
546
|
+
if headers.has_key?('Location')
|
547
|
+
new_params[:host] = URI.parse(headers['Location']).host
|
548
|
+
else
|
549
|
+
body = error.response.is_a?(Hash) ? error.response[:body] : error.response.body
|
550
|
+
new_params[:bucket_name] = %r{<Bucket>([^<]*)</Bucket>}.match(body).captures.first
|
551
|
+
new_params[:host] = %r{<Endpoint>([^<]*)</Endpoint>}.match(body).captures.first
|
552
|
+
end
|
553
|
+
Fog::Logger.warning("fog: followed redirect to #{host}, connecting to the matching region will be more performant")
|
554
|
+
original_region, original_signer = @region, @signer
|
555
|
+
@region = case new_params[:host]
|
556
|
+
when 's3.amazonaws.com', 's3-external-1.amazonaws.com'
|
557
|
+
DEFAULT_REGION
|
558
|
+
else
|
559
|
+
%r{s3[\.\-]([^\.]*).amazonaws.com}.match(new_params[:host]).captures.first
|
560
|
+
end
|
561
|
+
if @signature_version == 4
|
562
|
+
@signer = Fog::AWS::SignatureV4.new(@aws_access_key_id, @aws_secret_access_key, @region, 's3')
|
563
|
+
original_params[:headers].delete('Authorization')
|
564
|
+
end
|
565
|
+
response = request(original_params.merge(new_params), &block)
|
566
|
+
@region, @signer = original_region, original_signer
|
567
|
+
response
|
527
568
|
end
|
528
569
|
|
529
570
|
# See http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
|
530
571
|
|
531
572
|
class S3Streamer
|
532
|
-
attr_accessor :body, :signature, :signer, :finished, :date
|
573
|
+
attr_accessor :body, :signature, :signer, :finished, :date, :initial_signature
|
533
574
|
def initialize(body, signature, signer, date)
|
534
575
|
self.body = body
|
535
576
|
self.date = date
|
536
577
|
self.signature = signature
|
578
|
+
self.initial_signature = signature
|
537
579
|
self.signer = signer
|
538
580
|
if body.respond_to?(:binmode)
|
539
581
|
body.binmode
|
540
582
|
end
|
583
|
+
|
541
584
|
if body.respond_to?(:pos=)
|
542
585
|
body.pos = 0
|
543
586
|
end
|
587
|
+
|
588
|
+
end
|
589
|
+
|
590
|
+
#called if excon wants to retry the request. As well as rewinding the body
|
591
|
+
#we must also reset the signature
|
592
|
+
def rewind
|
593
|
+
self.signature = initial_signature
|
594
|
+
body.rewind
|
544
595
|
end
|
545
596
|
|
546
597
|
def call
|
@@ -575,6 +626,61 @@ DATA
|
|
575
626
|
hmac.sign(string_to_sign.strip).unpack('H*').first
|
576
627
|
end
|
577
628
|
end
|
629
|
+
|
630
|
+
def signature_v2(params, expires)
|
631
|
+
headers = params[:headers] || {}
|
632
|
+
|
633
|
+
string_to_sign =
|
634
|
+
<<-DATA
|
635
|
+
#{params[:method].to_s.upcase}
|
636
|
+
#{headers['Content-MD5']}
|
637
|
+
#{headers['Content-Type']}
|
638
|
+
#{expires}
|
639
|
+
DATA
|
640
|
+
|
641
|
+
amz_headers, canonical_amz_headers = {}, ''
|
642
|
+
for key, value in headers
|
643
|
+
if key[0..5] == 'x-amz-'
|
644
|
+
amz_headers[key] = value
|
645
|
+
end
|
646
|
+
end
|
647
|
+
amz_headers = amz_headers.sort {|x, y| x[0] <=> y[0]}
|
648
|
+
for key, value in amz_headers
|
649
|
+
canonical_amz_headers << "#{key}:#{value}\n"
|
650
|
+
end
|
651
|
+
string_to_sign << canonical_amz_headers
|
652
|
+
|
653
|
+
query_string = ''
|
654
|
+
if params[:query]
|
655
|
+
query_args = []
|
656
|
+
for key in params[:query].keys.sort
|
657
|
+
if VALID_QUERY_KEYS.include?(key)
|
658
|
+
value = params[:query][key]
|
659
|
+
if value
|
660
|
+
query_args << "#{key}=#{value}"
|
661
|
+
else
|
662
|
+
query_args << key
|
663
|
+
end
|
664
|
+
end
|
665
|
+
end
|
666
|
+
if query_args.any?
|
667
|
+
query_string = '?' + query_args.join('&')
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
canonical_path = (params[:path] || object_to_path(params[:object_name])).to_s
|
672
|
+
canonical_path = '/' + canonical_path if canonical_path[0..0] != '/'
|
673
|
+
|
674
|
+
if params[:bucket_name]
|
675
|
+
canonical_resource = "/#{params[:bucket_name]}#{canonical_path}"
|
676
|
+
else
|
677
|
+
canonical_resource = canonical_path
|
678
|
+
end
|
679
|
+
canonical_resource << query_string
|
680
|
+
string_to_sign << canonical_resource
|
681
|
+
signed_string = @hmac.sign(string_to_sign)
|
682
|
+
Base64.encode64(signed_string).chomp!
|
683
|
+
end
|
578
684
|
end
|
579
685
|
end
|
580
686
|
end
|
data/lib/fog/aws/sts.rb
CHANGED
@@ -7,14 +7,15 @@ module Fog
|
|
7
7
|
|
8
8
|
class EntityAlreadyExists < Fog::AWS::STS::Error; end
|
9
9
|
class ValidationError < Fog::AWS::STS::Error; end
|
10
|
+
class AwsAccessKeysMissing < Fog::AWS::STS::Error; end
|
10
11
|
|
11
|
-
|
12
|
-
recognizes :host, :path, :port, :scheme, :persistent, :aws_session_token, :use_iam_profile, :aws_credentials_expire_at, :instrumentor, :instrumentor_name
|
12
|
+
recognizes :aws_access_key_id, :aws_secret_access_key, :host, :path, :port, :scheme, :persistent, :aws_session_token, :use_iam_profile, :aws_credentials_expire_at, :instrumentor, :instrumentor_name
|
13
13
|
|
14
14
|
request_path 'fog/aws/requests/sts'
|
15
15
|
request :get_federation_token
|
16
16
|
request :get_session_token
|
17
17
|
request :assume_role
|
18
|
+
request :assume_role_with_saml
|
18
19
|
|
19
20
|
class Mock
|
20
21
|
def self.data
|
@@ -99,10 +100,16 @@ module Fog
|
|
99
100
|
@aws_session_token = options[:aws_session_token]
|
100
101
|
@aws_credentials_expire_at = options[:aws_credentials_expire_at]
|
101
102
|
|
102
|
-
|
103
|
+
if (@aws_access_key_id && @aws_secret_access_key)
|
104
|
+
@signer = Fog::AWS::SignatureV4.new(@aws_access_key_id, @aws_secret_access_key, 'us-east-1', 'sts')
|
105
|
+
end
|
103
106
|
end
|
104
107
|
|
105
108
|
def request(params)
|
109
|
+
if (@signer == nil)
|
110
|
+
raise AwsAccessKeysMissing.new("Can't make unsigned requests, need aws_access_key_id and aws_secret_access_key")
|
111
|
+
end
|
112
|
+
|
106
113
|
idempotent = params.delete(:idempotent)
|
107
114
|
parser = params.delete(:parser)
|
108
115
|
|
@@ -129,6 +136,30 @@ module Fog
|
|
129
136
|
end
|
130
137
|
end
|
131
138
|
|
139
|
+
def request_unsigned(params)
|
140
|
+
idempotent = params.delete(:idempotent)
|
141
|
+
parser = params.delete(:parser)
|
142
|
+
|
143
|
+
params['Version'] = '2011-06-15'
|
144
|
+
|
145
|
+
headers = { 'Content-Type' => 'application/x-www-form-urlencoded', 'Host' => @host }
|
146
|
+
body = ''
|
147
|
+
for key in params.keys.sort
|
148
|
+
unless (value = params[key]).nil?
|
149
|
+
body << "#{key}=#{Fog::AWS.escape(value.to_s)}&"
|
150
|
+
end
|
151
|
+
end
|
152
|
+
body.chop!
|
153
|
+
|
154
|
+
if @instrumentor
|
155
|
+
@instrumentor.instrument("#{@instrumentor_name}.request", params) do
|
156
|
+
_request(body, headers, idempotent, parser)
|
157
|
+
end
|
158
|
+
else
|
159
|
+
_request(body, headers, idempotent, parser)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
132
163
|
def _request(body, headers, idempotent, parser)
|
133
164
|
@connection.request({
|
134
165
|
:body => body,
|
data/lib/fog/bin.rb
CHANGED
@@ -85,7 +85,7 @@ require 'fog/bin/profitbricks'
|
|
85
85
|
require 'fog/bin/sakuracloud'
|
86
86
|
require 'fog/bin/serverlove'
|
87
87
|
require 'fog/bin/softlayer'
|
88
|
-
require 'fog/bin/
|
88
|
+
require 'fog/bin/storm_on_demand'
|
89
89
|
require 'fog/bin/terremark'
|
90
90
|
require 'fog/bin/vcloud'
|
91
91
|
require 'fog/bin/vcloud_director'
|
@@ -14,9 +14,9 @@ module Fog
|
|
14
14
|
class Connection < Fog::XML::Connection
|
15
15
|
def request(params, &block)
|
16
16
|
if params.key?(:parser)
|
17
|
-
Fog::Logger.deprecation("Fog::
|
17
|
+
Fog::Logger.deprecation("Fog::Connection is deprecated use Fog::XML::Connection instead [light_black](#{caller.first})[/]")
|
18
18
|
else
|
19
|
-
Fog::Logger.deprecation("Fog::
|
19
|
+
Fog::Logger.deprecation("Fog::Connection is deprecated use Fog::Core::Connection instead [light_black](#{caller.first})[/]")
|
20
20
|
end
|
21
21
|
super(params)
|
22
22
|
end
|
@@ -16,7 +16,8 @@ module Fog
|
|
16
16
|
# available nevertheless
|
17
17
|
attribute :public_ip_address, :aliases => 'ip_address'
|
18
18
|
attribute :private_ip_address
|
19
|
-
attribute :
|
19
|
+
attribute :private_networking
|
20
|
+
attribute :backups_active, :aliases => 'backups_enabled'
|
20
21
|
attribute :created_at
|
21
22
|
|
22
23
|
attr_writer :ssh_keys
|
@@ -125,7 +126,8 @@ module Fog
|
|
125
126
|
options[:ssh_key_ids] = @ssh_keys.map(&:id)
|
126
127
|
end
|
127
128
|
|
128
|
-
options[:private_networking] =
|
129
|
+
options[:private_networking] = private_networking
|
130
|
+
options[:backups_active] = backups_active
|
129
131
|
|
130
132
|
data = service.create_server name,
|
131
133
|
flavor_id,
|
@@ -174,6 +176,29 @@ module Fog
|
|
174
176
|
msg = 'DigitalOcean servers do not support updates'
|
175
177
|
raise NotImplementedError.new(msg)
|
176
178
|
end
|
179
|
+
|
180
|
+
# Helper method to get the flavor name
|
181
|
+
def flavor
|
182
|
+
requires :flavor_id
|
183
|
+
@flavor ||= service.flavors.get(flavor_id.to_i)
|
184
|
+
end
|
185
|
+
|
186
|
+
# Helper method to get the image name
|
187
|
+
def image
|
188
|
+
requires :image_id
|
189
|
+
@image ||= service.images.get(image_id.to_i)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Helper method to get the region name
|
193
|
+
def region
|
194
|
+
requires :region_id
|
195
|
+
@region ||= service.regions.get(region_id.to_i)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Helper method to get an array with all available IP addresses
|
199
|
+
def ip_addresses
|
200
|
+
[public_ip_address, private_ip_address].flatten.select(&:present?)
|
201
|
+
end
|
177
202
|
end
|
178
203
|
end
|
179
204
|
end
|
@@ -36,6 +36,7 @@ module Fog
|
|
36
36
|
attribute :image
|
37
37
|
attribute :exposed_ports, :aliases => 'config_exposed_ports'
|
38
38
|
attribute :volumes
|
39
|
+
attribute :environment_variables, :aliases => 'config_env'
|
39
40
|
|
40
41
|
#raw = {"ID"=>"2ce79789656e4f7474624be6496dc6d988899af30d556574389a19aade2f9650",
|
41
42
|
# "Created"=>"2014-01-16T12:42:38.081665295Z",
|
@@ -53,6 +54,9 @@ module Fog
|
|
53
54
|
# "AttachStderr"=>true,
|
54
55
|
# "PortSpecs"=>nil,
|
55
56
|
# "ExposedPorts"=>{},
|
57
|
+
# "Env": [
|
58
|
+
# "HOME=/mydir",
|
59
|
+
# ],
|
56
60
|
# "State"=>{
|
57
61
|
# "Running"=>true,
|
58
62
|
# "Pid"=>1505,
|
@@ -40,6 +40,7 @@ module Fog
|
|
40
40
|
'config_exposed_ports' => { "29321/tcp" => {}, "39212/tcp" => {} },
|
41
41
|
'sizerw' => 0,
|
42
42
|
'sizerootfs' => 0,
|
43
|
+
'environment_variables' => ["HOME=/mydir", "SAMPLEENV=samplevalue"],
|
43
44
|
'name' => '123123123',
|
44
45
|
'names' => ['/boring_engelbert']}
|
45
46
|
end
|
@@ -60,7 +60,11 @@ module Fog
|
|
60
60
|
def get(key, options = {}, &block)
|
61
61
|
requires :directory
|
62
62
|
data = service.get_object(directory.key, key, options, &block)
|
63
|
-
file_data =
|
63
|
+
file_data = {}
|
64
|
+
data.headers.each do |key, value|
|
65
|
+
file_data[key] = value
|
66
|
+
end
|
67
|
+
file_data.merge!({
|
64
68
|
:body => data.body,
|
65
69
|
:key => key
|
66
70
|
})
|
data/lib/fog/hp/core.rb
CHANGED
data/lib/fog/ninefold/storage.rb
CHANGED