fog 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Rakefile +90 -1
- data/bin/fog +5 -1
- data/changelog.txt +156 -0
- data/docs/_layouts/default.html +1 -0
- data/docs/about/press.markdown +4 -0
- data/docs/compute/index.markdown +4 -0
- data/docs/storage/index.markdown +4 -0
- data/fog.gemspec +3 -3
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/iam.rb +7 -6
- data/lib/fog/aws/models/rds/server.rb +27 -23
- data/lib/fog/aws/parsers/iam/get_group.rb +2 -2
- data/lib/fog/aws/requests/iam/update_server_certificate.rb +37 -0
- data/lib/fog/bin.rb +2 -1
- data/lib/fog/bin/dynect.rb +30 -0
- data/lib/fog/bin/rackspace.rb +4 -0
- data/lib/fog/cdn.rb +4 -0
- data/lib/fog/cdn/aws.rb +6 -0
- data/lib/fog/cdn/parsers/aws/get_invalidation_list.rb +43 -0
- data/lib/fog/cdn/parsers/aws/get_streaming_distribution_list.rb +59 -0
- data/lib/fog/cdn/parsers/aws/streaming_distribution.rb +59 -0
- data/lib/fog/cdn/requests/aws/delete_streaming_distribution.rb +28 -0
- data/lib/fog/cdn/requests/aws/get_invalidation_list.rb +42 -0
- data/lib/fog/cdn/requests/aws/get_streaming_distribution.rb +50 -0
- data/lib/fog/cdn/requests/aws/get_streaming_distribution_list.rb +59 -0
- data/lib/fog/cdn/requests/aws/post_streaming_distribution.rb +78 -0
- data/lib/fog/cdn/requests/aws/put_streaming_distribution_config.rb +83 -0
- data/lib/fog/compute.rb +6 -2
- data/lib/fog/compute/aws.rb +12 -1
- data/lib/fog/compute/brightbox.rb +22 -12
- data/lib/fog/compute/models/aws/image.rb +5 -0
- data/lib/fog/compute/models/aws/server.rb +19 -22
- data/lib/fog/compute/models/aws/tag.rb +1 -1
- data/lib/fog/compute/models/bluebox/server.rb +2 -18
- data/lib/fog/compute/models/brightbox/account.rb +1 -1
- data/lib/fog/compute/models/brightbox/server.rb +2 -2
- data/lib/fog/compute/models/go_grid/server.rb +2 -18
- data/lib/fog/compute/models/linode/server.rb +5 -5
- data/lib/fog/compute/models/ninefold/server.rb +2 -2
- data/lib/fog/compute/models/rackspace/server.rb +2 -18
- data/lib/fog/compute/models/server.rb +27 -0
- data/lib/fog/compute/models/slicehost/server.rb +2 -18
- data/lib/fog/compute/models/storm_on_demand/server.rb +3 -3
- data/lib/fog/compute/models/voxel/server.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_images.rb +15 -3
- data/lib/fog/compute/parsers/aws/describe_instances.rb +1 -1
- data/lib/fog/compute/parsers/aws/describe_security_groups.rb +31 -7
- data/lib/fog/compute/requests/aws/describe_images.rb +33 -14
- data/lib/fog/compute/requests/aws/describe_volumes.rb +1 -0
- data/lib/fog/compute/requests/aws/modify_image_attribute.rb +39 -0
- data/lib/fog/compute/requests/aws/modify_instance_attribute.rb +37 -0
- data/lib/fog/compute/requests/aws/modify_snapshot_attribute.rb +10 -10
- data/lib/fog/compute/requests/aws/register_image.rb +54 -13
- data/lib/fog/compute/requests/aws/run_instances.rb +5 -0
- data/lib/fog/compute/requests/aws/stop_instances.rb +2 -1
- data/lib/fog/compute/requests/brightbox/activate_console_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/add_listeners_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/create_api_client.rb +2 -8
- data/lib/fog/compute/requests/brightbox/create_cloud_ip.rb +2 -8
- data/lib/fog/compute/requests/brightbox/create_image.rb +2 -8
- data/lib/fog/compute/requests/brightbox/create_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/create_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/destroy_api_client.rb +2 -8
- data/lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb +2 -8
- data/lib/fog/compute/requests/brightbox/destroy_image.rb +2 -8
- data/lib/fog/compute/requests/brightbox/destroy_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/destroy_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_account.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_api_client.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_cloud_ip.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_image.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_interface.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_server_type.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_user.rb +2 -8
- data/lib/fog/compute/requests/brightbox/get_zone.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_api_clients.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_cloud_ips.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_images.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_load_balancers.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_server_types.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_servers.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_users.rb +2 -8
- data/lib/fog/compute/requests/brightbox/list_zones.rb +2 -8
- data/lib/fog/compute/requests/brightbox/map_cloud_ip.rb +2 -8
- data/lib/fog/compute/requests/brightbox/remove_listeners_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb +2 -8
- data/lib/fog/compute/requests/brightbox/shutdown_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/snapshot_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/start_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/stop_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb +2 -8
- data/lib/fog/compute/requests/brightbox/update_account.rb +2 -8
- data/lib/fog/compute/requests/brightbox/update_api_client.rb +2 -8
- data/lib/fog/compute/requests/brightbox/update_image.rb +2 -8
- data/lib/fog/compute/requests/brightbox/update_load_balancer.rb +2 -8
- data/lib/fog/compute/requests/brightbox/update_server.rb +2 -8
- data/lib/fog/compute/requests/brightbox/update_user.rb +2 -8
- data/lib/fog/core.rb +1 -0
- data/lib/fog/core/credentials.rb +1 -1
- data/lib/fog/core/errors.rb +3 -1
- data/lib/fog/core/json.rb +20 -0
- data/lib/fog/core/provider.rb +3 -1
- data/lib/fog/core/service.rb +5 -0
- data/lib/fog/dns.rb +8 -1
- data/lib/fog/dns/dynect.rb +80 -0
- data/lib/fog/dns/models/dynect/record.rb +67 -0
- data/lib/fog/dns/models/dynect/records.rb +53 -0
- data/lib/fog/dns/models/dynect/zone.rb +60 -0
- data/lib/fog/dns/models/dynect/zones.rb +29 -0
- data/lib/fog/dns/requests/dynect/delete_record.rb +24 -0
- data/lib/fog/dns/requests/dynect/delete_zone.rb +21 -0
- data/lib/fog/dns/requests/dynect/get_node_list.rb +23 -0
- data/lib/fog/dns/requests/dynect/get_record.rb +25 -0
- data/lib/fog/dns/requests/dynect/get_zone.rb +22 -0
- data/lib/fog/dns/requests/dynect/post_record.rb +27 -0
- data/lib/fog/dns/requests/dynect/post_session.rb +36 -0
- data/lib/fog/dns/requests/dynect/post_zone.rb +32 -0
- data/lib/fog/dns/requests/dynect/put_zone.rb +26 -0
- data/lib/fog/dns/zerigo.rb +1 -1
- data/lib/fog/providers.rb +1 -0
- data/lib/fog/providers/dynect.rb +14 -0
- data/lib/fog/providers/rackspace.rb +1 -0
- data/lib/fog/rackspace/load_balancers.rb +179 -0
- data/lib/fog/rackspace/models/load_balancers/access_rule.rb +39 -0
- data/lib/fog/rackspace/models/load_balancers/access_rules.rb +29 -0
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +216 -0
- data/lib/fog/rackspace/models/load_balancers/load_balancers.rb +27 -0
- data/lib/fog/rackspace/models/load_balancers/node.rb +58 -0
- data/lib/fog/rackspace/models/load_balancers/nodes.rb +29 -0
- data/lib/fog/rackspace/models/load_balancers/virtual_ip.rb +35 -0
- data/lib/fog/rackspace/models/load_balancers/virtual_ips.rb +32 -0
- data/lib/fog/rackspace/requests/load_balancers/create_access_rule.rb +24 -0
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +26 -0
- data/lib/fog/rackspace/requests/load_balancers/create_node.rb +27 -0
- data/lib/fog/rackspace/requests/load_balancers/create_virtual_ip.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_access_rule.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_all_access_rules.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_node.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +17 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_virtual_ip.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_connection_logging.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_connection_throttling.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer_usage.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/get_monitor.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_node.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_session_persistence.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_usage.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/list_access_rules.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_algorithms.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_nodes.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_protocols.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_virtual_ips.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_connection_throttling.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_monitor.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_session_persistence.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_connection_throttling.rb +22 -0
- data/lib/fog/rackspace/requests/load_balancers/set_monitor.rb +31 -0
- data/lib/fog/rackspace/requests/load_balancers/set_session_persistence.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +24 -0
- data/lib/fog/rackspace/requests/load_balancers/update_node.rb +26 -0
- data/lib/fog/storage.rb +5 -1
- data/lib/fog/storage/aws.rb +3 -0
- data/lib/fog/storage/models/aws/directory.rb +1 -3
- data/lib/fog/storage/models/aws/file.rb +1 -1
- data/lib/fog/storage/models/google/file.rb +1 -1
- data/lib/fog/storage/models/local/file.rb +8 -6
- data/lib/fog/storage/models/ninefold/file.rb +0 -1
- data/lib/fog/storage/requests/aws/copy_object.rb +1 -1
- data/lib/fog/storage/requests/aws/get_bucket.rb +14 -11
- data/lib/fog/storage/requests/aws/post_object_hidden_fields.rb +2 -4
- data/tests/aws/models/rds/server_tests.rb +4 -4
- data/tests/compute/models/aws/server_tests.rb +15 -1
- data/tests/compute/requests/aws/helper.rb +0 -4
- data/tests/compute/requests/aws/image_tests.rb +40 -9
- data/tests/compute/requests/brightbox/account_tests.rb +1 -1
- data/tests/compute/requests/brightbox/helper.rb +3 -0
- data/tests/compute/requests/brightbox/load_balancer_tests.rb +1 -1
- data/tests/compute/requests/voxel/server_tests.rb +2 -2
- data/tests/dns/helper.rb +18 -0
- data/tests/dns/models/record_tests.rb +3 -2
- data/tests/dns/models/records_tests.rb +2 -2
- data/tests/dns/models/zone_tests.rb +2 -2
- data/tests/dns/models/zones_tests.rb +1 -1
- data/tests/dns/requests/bluebox/dns_tests.rb +0 -12
- data/tests/dns/requests/dnsimple/dns_tests.rb +0 -12
- data/tests/dns/requests/dnsmadeeasy/dns_tests.rb +0 -12
- data/tests/dns/requests/dynect/dns_tests.rb +132 -0
- data/tests/dns/requests/linode/dns_tests.rb +1 -13
- data/tests/dns/requests/slicehost/dns_tests.rb +1 -13
- data/tests/helper.rb +1 -1
- data/tests/helpers/collection_helper.rb +2 -2
- data/tests/helpers/formats_helper.rb +2 -0
- data/tests/helpers/mock_helper.rb +4 -1
- data/tests/rackspace/helper.rb +24 -0
- data/tests/rackspace/load_balancer_tests.rb +21 -0
- data/tests/rackspace/models/access_list_tests.rb +12 -0
- data/tests/rackspace/models/access_lists_tests.rb +12 -0
- data/tests/rackspace/models/load_balancer_tests.rb +116 -0
- data/tests/rackspace/models/load_balancers_tests.rb +19 -0
- data/tests/rackspace/models/node_tests.rb +19 -0
- data/tests/rackspace/models/nodes_tests.rb +12 -0
- data/tests/rackspace/models/virtual_ip_tests.rb +16 -0
- data/tests/rackspace/models/virtual_ips_tests.rb +12 -0
- data/tests/rackspace/requests/access_list_tests.rb +56 -0
- data/tests/rackspace/requests/algorithm_tests.rb +19 -0
- data/tests/rackspace/requests/connection_logging_tests.rb +25 -0
- data/tests/rackspace/requests/connection_throttling_tests.rb +37 -0
- data/tests/rackspace/requests/helper.rb +112 -0
- data/tests/rackspace/requests/load_balancer_tests.rb +63 -0
- data/tests/rackspace/requests/load_balancer_usage_tests.rb +19 -0
- data/tests/rackspace/requests/monitor_tests.rb +46 -0
- data/tests/rackspace/requests/node_tests.rb +87 -0
- data/tests/rackspace/requests/protocol_tests.rb +21 -0
- data/tests/rackspace/requests/session_persistence_tests.rb +33 -0
- data/tests/rackspace/requests/usage_tests.rb +17 -0
- data/tests/rackspace/requests/virtual_ip_tests.rb +40 -0
- data/tests/storage/requests/aws/bucket_tests.rb +53 -0
- metadata +127 -8
- data/lib/fog/compute/requests/aws/modify_image_attributes.rb +0 -37
@@ -0,0 +1,40 @@
|
|
1
|
+
Shindo.tests('Fog::Rackspace::LoadBalancers | virtual_ip_tests', ['rackspace']) do
|
2
|
+
|
3
|
+
pending if Fog.mocking?
|
4
|
+
|
5
|
+
given_a_load_balancer_service do
|
6
|
+
given_a_load_balancer do
|
7
|
+
tests('success') do
|
8
|
+
|
9
|
+
@lb.wait_for { ready? }
|
10
|
+
tests('#create_virtual_ip').formats(VIRTUAL_IP_FORMAT) do
|
11
|
+
data = @service.create_virtual_ip(@lb.id, 'PUBLIC').body
|
12
|
+
@virtual_ip_id = data['id']
|
13
|
+
data
|
14
|
+
end
|
15
|
+
|
16
|
+
@lb.wait_for { ready? }
|
17
|
+
tests("list_virtual_ips").formats(VIRTUAL_IPS_FORMAT) do
|
18
|
+
@service.list_virtual_ips(@lb.id).body
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
tests('failure') do
|
23
|
+
#TODO - I feel like this should really be a BadRequest, need to dig in
|
24
|
+
tests('create_virtual_ip(invalid type)').raises(Fog::Rackspace::LoadBalancers::ServiceError) do
|
25
|
+
@service.create_virtual_ip(@lb.id, 'badtype')
|
26
|
+
end
|
27
|
+
tests('delete_virtual_ip(0)').raises(Fog::Rackspace::LoadBalancers::NotFound) do
|
28
|
+
@service.delete_virtual_ip(@lb.id, 0)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
tests('success') do
|
33
|
+
@lb.wait_for { ready? }
|
34
|
+
tests("#delete_virtual_ip(#{@lb.id}, #{@virtual_ip_id})").succeeds do
|
35
|
+
@service.delete_virtual_ip(@lb.id, @virtual_ip_id)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -49,6 +49,59 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', [:aws]) do
|
|
49
49
|
|
50
50
|
file.destroy
|
51
51
|
|
52
|
+
file1 = Fog::Storage[:aws].directories.get('fogbuckettests').files.create(:body => 'a', :key => 'a/a1/file1')
|
53
|
+
file2 = Fog::Storage[:aws].directories.get('fogbuckettests').files.create(:body => 'ab', :key => 'a/file2')
|
54
|
+
file3 = Fog::Storage[:aws].directories.get('fogbuckettests').files.create(:body => 'abc', :key => 'b/file3')
|
55
|
+
file4 = Fog::Storage[:aws].directories.get('fogbuckettests').files.create(:body => 'abcd', :key => 'file4')
|
56
|
+
|
57
|
+
tests("#get_bucket('fogbuckettests')") do
|
58
|
+
before do
|
59
|
+
@bucket = Fog::Storage[:aws].get_bucket('fogbuckettests')
|
60
|
+
end
|
61
|
+
|
62
|
+
tests(".body['Contents'].map{|n| n['Key']}").returns(["a/a1/file1", "a/file2", "b/file3", "file4"]) do
|
63
|
+
@bucket.body['Contents'].map{|n| n['Key']}
|
64
|
+
end
|
65
|
+
|
66
|
+
tests(".body['Contents'].map{|n| n['Size']}").returns([1, 2, 3, 4]) do
|
67
|
+
@bucket.body['Contents'].map{|n| n['Size']}
|
68
|
+
end
|
69
|
+
|
70
|
+
tests(".body['CommonPrefixes']").returns([]) do
|
71
|
+
@bucket.body['CommonPrefixes']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
tests("#get_bucket('fogbuckettests', 'delimiter' => '/')") do
|
76
|
+
before do
|
77
|
+
@bucket = Fog::Storage[:aws].get_bucket('fogbuckettests', 'delimiter' => '/')
|
78
|
+
end
|
79
|
+
|
80
|
+
tests(".body['Contents'].map{|n| n['Key']}").returns(['file4']) do
|
81
|
+
@bucket.body['Contents'].map{|n| n['Key']}
|
82
|
+
end
|
83
|
+
|
84
|
+
tests(".body['CommonPrefixes']").returns(['a/', 'b/']) do
|
85
|
+
@bucket.body['CommonPrefixes']
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
tests("#get_bucket('fogbuckettests', 'delimiter' => '/', 'prefix' => 'a/')") do
|
90
|
+
before do
|
91
|
+
@bucket = Fog::Storage[:aws].get_bucket('fogbuckettests', 'delimiter' => '/', 'prefix' => 'a/')
|
92
|
+
end
|
93
|
+
|
94
|
+
tests(".body['Contents'].map{|n| n['Key']}").returns(['a/file2']) do
|
95
|
+
@bucket.body['Contents'].map{|n| n['Key']}
|
96
|
+
end
|
97
|
+
|
98
|
+
tests(".body['CommonPrefixes']").returns(['a/a1/']) do
|
99
|
+
@bucket.body['CommonPrefixes']
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
file1.destroy; file2.destroy; file3.destroy; file4.destroy
|
104
|
+
|
52
105
|
tests("#get_bucket_location('fogbuckettests)").formats('LocationConstraint' => NilClass) do
|
53
106
|
Fog::Storage[:aws].get_bucket_location('fogbuckettests').body
|
54
107
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 11
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.11.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- geemus (Wesley Beary)
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|
@@ -239,9 +239,9 @@ dependencies:
|
|
239
239
|
hash: 57
|
240
240
|
segments:
|
241
241
|
- 0
|
242
|
-
-
|
243
|
-
-
|
244
|
-
version: 0.
|
242
|
+
- 9
|
243
|
+
- 1
|
244
|
+
version: 0.9.1
|
245
245
|
version_requirements: *id015
|
246
246
|
name: virtualbox
|
247
247
|
prerelease: false
|
@@ -531,6 +531,7 @@ files:
|
|
531
531
|
- lib/fog/aws/requests/iam/update_access_key.rb
|
532
532
|
- lib/fog/aws/requests/iam/update_group.rb
|
533
533
|
- lib/fog/aws/requests/iam/update_login_profile.rb
|
534
|
+
- lib/fog/aws/requests/iam/update_server_certificate.rb
|
534
535
|
- lib/fog/aws/requests/iam/update_signing_certificate.rb
|
535
536
|
- lib/fog/aws/requests/iam/update_user.rb
|
536
537
|
- lib/fog/aws/requests/iam/upload_server_certificate.rb
|
@@ -606,6 +607,7 @@ files:
|
|
606
607
|
- lib/fog/bin/brightbox.rb
|
607
608
|
- lib/fog/bin/dnsimple.rb
|
608
609
|
- lib/fog/bin/dnsmadeeasy.rb
|
610
|
+
- lib/fog/bin/dynect.rb
|
609
611
|
- lib/fog/bin/ecloud.rb
|
610
612
|
- lib/fog/bin/go_grid.rb
|
611
613
|
- lib/fog/bin/google.rb
|
@@ -625,14 +627,23 @@ files:
|
|
625
627
|
- lib/fog/cdn/aws.rb
|
626
628
|
- lib/fog/cdn/parsers/aws/distribution.rb
|
627
629
|
- lib/fog/cdn/parsers/aws/get_distribution_list.rb
|
630
|
+
- lib/fog/cdn/parsers/aws/get_invalidation_list.rb
|
631
|
+
- lib/fog/cdn/parsers/aws/get_streaming_distribution_list.rb
|
628
632
|
- lib/fog/cdn/parsers/aws/post_invalidation.rb
|
633
|
+
- lib/fog/cdn/parsers/aws/streaming_distribution.rb
|
629
634
|
- lib/fog/cdn/rackspace.rb
|
630
635
|
- lib/fog/cdn/requests/aws/delete_distribution.rb
|
636
|
+
- lib/fog/cdn/requests/aws/delete_streaming_distribution.rb
|
631
637
|
- lib/fog/cdn/requests/aws/get_distribution.rb
|
632
638
|
- lib/fog/cdn/requests/aws/get_distribution_list.rb
|
639
|
+
- lib/fog/cdn/requests/aws/get_invalidation_list.rb
|
640
|
+
- lib/fog/cdn/requests/aws/get_streaming_distribution.rb
|
641
|
+
- lib/fog/cdn/requests/aws/get_streaming_distribution_list.rb
|
633
642
|
- lib/fog/cdn/requests/aws/post_distribution.rb
|
634
643
|
- lib/fog/cdn/requests/aws/post_invalidation.rb
|
644
|
+
- lib/fog/cdn/requests/aws/post_streaming_distribution.rb
|
635
645
|
- lib/fog/cdn/requests/aws/put_distribution_config.rb
|
646
|
+
- lib/fog/cdn/requests/aws/put_streaming_distribution_config.rb
|
636
647
|
- lib/fog/cdn/requests/rackspace/get_containers.rb
|
637
648
|
- lib/fog/cdn/requests/rackspace/head_container.rb
|
638
649
|
- lib/fog/cdn/requests/rackspace/post_container.rb
|
@@ -745,6 +756,7 @@ files:
|
|
745
756
|
- lib/fog/compute/models/rackspace/images.rb
|
746
757
|
- lib/fog/compute/models/rackspace/server.rb
|
747
758
|
- lib/fog/compute/models/rackspace/servers.rb
|
759
|
+
- lib/fog/compute/models/server.rb
|
748
760
|
- lib/fog/compute/models/slicehost/flavor.rb
|
749
761
|
- lib/fog/compute/models/slicehost/flavors.rb
|
750
762
|
- lib/fog/compute/models/slicehost/image.rb
|
@@ -889,7 +901,8 @@ files:
|
|
889
901
|
- lib/fog/compute/requests/aws/get_console_output.rb
|
890
902
|
- lib/fog/compute/requests/aws/get_password_data.rb
|
891
903
|
- lib/fog/compute/requests/aws/import_key_pair.rb
|
892
|
-
- lib/fog/compute/requests/aws/
|
904
|
+
- lib/fog/compute/requests/aws/modify_image_attribute.rb
|
905
|
+
- lib/fog/compute/requests/aws/modify_instance_attribute.rb
|
893
906
|
- lib/fog/compute/requests/aws/modify_snapshot_attribute.rb
|
894
907
|
- lib/fog/compute/requests/aws/monitor_instances.rb
|
895
908
|
- lib/fog/compute/requests/aws/purchase_reserved_instances_offering.rb
|
@@ -1168,6 +1181,7 @@ files:
|
|
1168
1181
|
- lib/fog/core/deprecation.rb
|
1169
1182
|
- lib/fog/core/errors.rb
|
1170
1183
|
- lib/fog/core/hmac.rb
|
1184
|
+
- lib/fog/core/json.rb
|
1171
1185
|
- lib/fog/core/mock.rb
|
1172
1186
|
- lib/fog/core/model.rb
|
1173
1187
|
- lib/fog/core/parser.rb
|
@@ -1183,6 +1197,7 @@ files:
|
|
1183
1197
|
- lib/fog/dns/bluebox.rb
|
1184
1198
|
- lib/fog/dns/dnsimple.rb
|
1185
1199
|
- lib/fog/dns/dnsmadeeasy.rb
|
1200
|
+
- lib/fog/dns/dynect.rb
|
1186
1201
|
- lib/fog/dns/linode.rb
|
1187
1202
|
- lib/fog/dns/models/aws/record.rb
|
1188
1203
|
- lib/fog/dns/models/aws/records.rb
|
@@ -1200,6 +1215,10 @@ files:
|
|
1200
1215
|
- lib/fog/dns/models/dnsmadeeasy/records.rb
|
1201
1216
|
- lib/fog/dns/models/dnsmadeeasy/zone.rb
|
1202
1217
|
- lib/fog/dns/models/dnsmadeeasy/zones.rb
|
1218
|
+
- lib/fog/dns/models/dynect/record.rb
|
1219
|
+
- lib/fog/dns/models/dynect/records.rb
|
1220
|
+
- lib/fog/dns/models/dynect/zone.rb
|
1221
|
+
- lib/fog/dns/models/dynect/zones.rb
|
1203
1222
|
- lib/fog/dns/models/linode/record.rb
|
1204
1223
|
- lib/fog/dns/models/linode/records.rb
|
1205
1224
|
- lib/fog/dns/models/linode/zone.rb
|
@@ -1283,6 +1302,15 @@ files:
|
|
1283
1302
|
- lib/fog/dns/requests/dnsmadeeasy/list_secondary.rb
|
1284
1303
|
- lib/fog/dns/requests/dnsmadeeasy/update_record.rb
|
1285
1304
|
- lib/fog/dns/requests/dnsmadeeasy/update_secondary.rb
|
1305
|
+
- lib/fog/dns/requests/dynect/delete_record.rb
|
1306
|
+
- lib/fog/dns/requests/dynect/delete_zone.rb
|
1307
|
+
- lib/fog/dns/requests/dynect/get_node_list.rb
|
1308
|
+
- lib/fog/dns/requests/dynect/get_record.rb
|
1309
|
+
- lib/fog/dns/requests/dynect/get_zone.rb
|
1310
|
+
- lib/fog/dns/requests/dynect/post_record.rb
|
1311
|
+
- lib/fog/dns/requests/dynect/post_session.rb
|
1312
|
+
- lib/fog/dns/requests/dynect/post_zone.rb
|
1313
|
+
- lib/fog/dns/requests/dynect/put_zone.rb
|
1286
1314
|
- lib/fog/dns/requests/linode/domain_create.rb
|
1287
1315
|
- lib/fog/dns/requests/linode/domain_delete.rb
|
1288
1316
|
- lib/fog/dns/requests/linode/domain_list.rb
|
@@ -1321,6 +1349,7 @@ files:
|
|
1321
1349
|
- lib/fog/providers/brightbox.rb
|
1322
1350
|
- lib/fog/providers/dnsimple.rb
|
1323
1351
|
- lib/fog/providers/dnsmadeeasy.rb
|
1352
|
+
- lib/fog/providers/dynect.rb
|
1324
1353
|
- lib/fog/providers/ecloud.rb
|
1325
1354
|
- lib/fog/providers/go_grid.rb
|
1326
1355
|
- lib/fog/providers/google.rb
|
@@ -1335,6 +1364,48 @@ files:
|
|
1335
1364
|
- lib/fog/providers/virtual_box.rb
|
1336
1365
|
- lib/fog/providers/voxel.rb
|
1337
1366
|
- lib/fog/providers/zerigo.rb
|
1367
|
+
- lib/fog/rackspace/load_balancers.rb
|
1368
|
+
- lib/fog/rackspace/models/load_balancers/access_rule.rb
|
1369
|
+
- lib/fog/rackspace/models/load_balancers/access_rules.rb
|
1370
|
+
- lib/fog/rackspace/models/load_balancers/load_balancer.rb
|
1371
|
+
- lib/fog/rackspace/models/load_balancers/load_balancers.rb
|
1372
|
+
- lib/fog/rackspace/models/load_balancers/node.rb
|
1373
|
+
- lib/fog/rackspace/models/load_balancers/nodes.rb
|
1374
|
+
- lib/fog/rackspace/models/load_balancers/virtual_ip.rb
|
1375
|
+
- lib/fog/rackspace/models/load_balancers/virtual_ips.rb
|
1376
|
+
- lib/fog/rackspace/requests/load_balancers/create_access_rule.rb
|
1377
|
+
- lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb
|
1378
|
+
- lib/fog/rackspace/requests/load_balancers/create_node.rb
|
1379
|
+
- lib/fog/rackspace/requests/load_balancers/create_virtual_ip.rb
|
1380
|
+
- lib/fog/rackspace/requests/load_balancers/delete_access_rule.rb
|
1381
|
+
- lib/fog/rackspace/requests/load_balancers/delete_all_access_rules.rb
|
1382
|
+
- lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb
|
1383
|
+
- lib/fog/rackspace/requests/load_balancers/delete_node.rb
|
1384
|
+
- lib/fog/rackspace/requests/load_balancers/delete_nodes.rb
|
1385
|
+
- lib/fog/rackspace/requests/load_balancers/delete_virtual_ip.rb
|
1386
|
+
- lib/fog/rackspace/requests/load_balancers/get_connection_logging.rb
|
1387
|
+
- lib/fog/rackspace/requests/load_balancers/get_connection_throttling.rb
|
1388
|
+
- lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb
|
1389
|
+
- lib/fog/rackspace/requests/load_balancers/get_load_balancer_usage.rb
|
1390
|
+
- lib/fog/rackspace/requests/load_balancers/get_monitor.rb
|
1391
|
+
- lib/fog/rackspace/requests/load_balancers/get_node.rb
|
1392
|
+
- lib/fog/rackspace/requests/load_balancers/get_session_persistence.rb
|
1393
|
+
- lib/fog/rackspace/requests/load_balancers/get_usage.rb
|
1394
|
+
- lib/fog/rackspace/requests/load_balancers/list_access_rules.rb
|
1395
|
+
- lib/fog/rackspace/requests/load_balancers/list_algorithms.rb
|
1396
|
+
- lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb
|
1397
|
+
- lib/fog/rackspace/requests/load_balancers/list_nodes.rb
|
1398
|
+
- lib/fog/rackspace/requests/load_balancers/list_protocols.rb
|
1399
|
+
- lib/fog/rackspace/requests/load_balancers/list_virtual_ips.rb
|
1400
|
+
- lib/fog/rackspace/requests/load_balancers/remove_connection_throttling.rb
|
1401
|
+
- lib/fog/rackspace/requests/load_balancers/remove_monitor.rb
|
1402
|
+
- lib/fog/rackspace/requests/load_balancers/remove_session_persistence.rb
|
1403
|
+
- lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
|
1404
|
+
- lib/fog/rackspace/requests/load_balancers/set_connection_throttling.rb
|
1405
|
+
- lib/fog/rackspace/requests/load_balancers/set_monitor.rb
|
1406
|
+
- lib/fog/rackspace/requests/load_balancers/set_session_persistence.rb
|
1407
|
+
- lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
|
1408
|
+
- lib/fog/rackspace/requests/load_balancers/update_node.rb
|
1338
1409
|
- lib/fog/storage.rb
|
1339
1410
|
- lib/fog/storage/aws.rb
|
1340
1411
|
- lib/fog/storage/google.rb
|
@@ -1706,6 +1777,7 @@ files:
|
|
1706
1777
|
- tests/dns/requests/bluebox/dns_tests.rb
|
1707
1778
|
- tests/dns/requests/dnsimple/dns_tests.rb
|
1708
1779
|
- tests/dns/requests/dnsmadeeasy/dns_tests.rb
|
1780
|
+
- tests/dns/requests/dynect/dns_tests.rb
|
1709
1781
|
- tests/dns/requests/linode/dns_tests.rb
|
1710
1782
|
- tests/dns/requests/slicehost/dns_tests.rb
|
1711
1783
|
- tests/dns/requests/zerigo/dns_tests.rb
|
@@ -1721,6 +1793,29 @@ files:
|
|
1721
1793
|
- tests/helpers/responds_to_helper.rb
|
1722
1794
|
- tests/helpers/succeeds_helper.rb
|
1723
1795
|
- tests/lorem.txt
|
1796
|
+
- tests/rackspace/helper.rb
|
1797
|
+
- tests/rackspace/load_balancer_tests.rb
|
1798
|
+
- tests/rackspace/models/access_list_tests.rb
|
1799
|
+
- tests/rackspace/models/access_lists_tests.rb
|
1800
|
+
- tests/rackspace/models/load_balancer_tests.rb
|
1801
|
+
- tests/rackspace/models/load_balancers_tests.rb
|
1802
|
+
- tests/rackspace/models/node_tests.rb
|
1803
|
+
- tests/rackspace/models/nodes_tests.rb
|
1804
|
+
- tests/rackspace/models/virtual_ip_tests.rb
|
1805
|
+
- tests/rackspace/models/virtual_ips_tests.rb
|
1806
|
+
- tests/rackspace/requests/access_list_tests.rb
|
1807
|
+
- tests/rackspace/requests/algorithm_tests.rb
|
1808
|
+
- tests/rackspace/requests/connection_logging_tests.rb
|
1809
|
+
- tests/rackspace/requests/connection_throttling_tests.rb
|
1810
|
+
- tests/rackspace/requests/helper.rb
|
1811
|
+
- tests/rackspace/requests/load_balancer_tests.rb
|
1812
|
+
- tests/rackspace/requests/load_balancer_usage_tests.rb
|
1813
|
+
- tests/rackspace/requests/monitor_tests.rb
|
1814
|
+
- tests/rackspace/requests/node_tests.rb
|
1815
|
+
- tests/rackspace/requests/protocol_tests.rb
|
1816
|
+
- tests/rackspace/requests/session_persistence_tests.rb
|
1817
|
+
- tests/rackspace/requests/usage_tests.rb
|
1818
|
+
- tests/rackspace/requests/virtual_ip_tests.rb
|
1724
1819
|
- tests/storage/helper.rb
|
1725
1820
|
- tests/storage/models/directories_tests.rb
|
1726
1821
|
- tests/storage/models/directory_test.rb
|
@@ -1961,6 +2056,7 @@ test_files:
|
|
1961
2056
|
- tests/dns/requests/bluebox/dns_tests.rb
|
1962
2057
|
- tests/dns/requests/dnsimple/dns_tests.rb
|
1963
2058
|
- tests/dns/requests/dnsmadeeasy/dns_tests.rb
|
2059
|
+
- tests/dns/requests/dynect/dns_tests.rb
|
1964
2060
|
- tests/dns/requests/linode/dns_tests.rb
|
1965
2061
|
- tests/dns/requests/slicehost/dns_tests.rb
|
1966
2062
|
- tests/dns/requests/zerigo/dns_tests.rb
|
@@ -1976,6 +2072,29 @@ test_files:
|
|
1976
2072
|
- tests/helpers/responds_to_helper.rb
|
1977
2073
|
- tests/helpers/succeeds_helper.rb
|
1978
2074
|
- tests/lorem.txt
|
2075
|
+
- tests/rackspace/helper.rb
|
2076
|
+
- tests/rackspace/load_balancer_tests.rb
|
2077
|
+
- tests/rackspace/models/access_list_tests.rb
|
2078
|
+
- tests/rackspace/models/access_lists_tests.rb
|
2079
|
+
- tests/rackspace/models/load_balancer_tests.rb
|
2080
|
+
- tests/rackspace/models/load_balancers_tests.rb
|
2081
|
+
- tests/rackspace/models/node_tests.rb
|
2082
|
+
- tests/rackspace/models/nodes_tests.rb
|
2083
|
+
- tests/rackspace/models/virtual_ip_tests.rb
|
2084
|
+
- tests/rackspace/models/virtual_ips_tests.rb
|
2085
|
+
- tests/rackspace/requests/access_list_tests.rb
|
2086
|
+
- tests/rackspace/requests/algorithm_tests.rb
|
2087
|
+
- tests/rackspace/requests/connection_logging_tests.rb
|
2088
|
+
- tests/rackspace/requests/connection_throttling_tests.rb
|
2089
|
+
- tests/rackspace/requests/helper.rb
|
2090
|
+
- tests/rackspace/requests/load_balancer_tests.rb
|
2091
|
+
- tests/rackspace/requests/load_balancer_usage_tests.rb
|
2092
|
+
- tests/rackspace/requests/monitor_tests.rb
|
2093
|
+
- tests/rackspace/requests/node_tests.rb
|
2094
|
+
- tests/rackspace/requests/protocol_tests.rb
|
2095
|
+
- tests/rackspace/requests/session_persistence_tests.rb
|
2096
|
+
- tests/rackspace/requests/usage_tests.rb
|
2097
|
+
- tests/rackspace/requests/virtual_ip_tests.rb
|
1979
2098
|
- tests/storage/helper.rb
|
1980
2099
|
- tests/storage/models/directories_tests.rb
|
1981
2100
|
- tests/storage/models/directory_test.rb
|
@@ -1,37 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Compute
|
3
|
-
class AWS
|
4
|
-
class Real
|
5
|
-
|
6
|
-
require 'fog/compute/parsers/aws/basic'
|
7
|
-
|
8
|
-
# Modify image attributes
|
9
|
-
#
|
10
|
-
# ==== Parameters
|
11
|
-
# * image_id<~String> - Id of machine image to modify
|
12
|
-
# * attribute<~String> - Attribute to modify, in ['launchPermission', 'productCodes']
|
13
|
-
# * operation_type<~String> - Operation to perform on attribute, in ['add', 'remove']
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyImageAttribute.html]
|
18
|
-
#
|
19
|
-
def modify_image_attributes(image_id, attribute, operation_type, options = {})
|
20
|
-
params = {}
|
21
|
-
params.merge!(Fog::AWS.indexed_param('UserId', options['UserId']))
|
22
|
-
params.merge!(Fog::AWS.indexed_param('UserGroup', options['UserGroup']))
|
23
|
-
params.merge!(Fog::AWS.indexed_param('ProductCode', options['ProductCode']))
|
24
|
-
request({
|
25
|
-
'Action' => 'ModifyImageAttribute',
|
26
|
-
'Attribute' => attribute,
|
27
|
-
'ImageId' => image_id,
|
28
|
-
'OperationType' => operation_type,
|
29
|
-
:idempotent => true,
|
30
|
-
:parser => Fog::Parsers::Compute::AWS::Basic.new
|
31
|
-
}.merge!(params))
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|