fog 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION +1 -1
  3. data/bin/fog +18 -11
  4. data/fog.gemspec +43 -14
  5. data/lib/fog.rb +7 -1
  6. data/lib/fog/aws/ec2.rb +0 -7
  7. data/lib/fog/aws/models/ec2/address.rb +22 -26
  8. data/lib/fog/aws/models/ec2/addresses.rb +7 -22
  9. data/lib/fog/aws/models/ec2/instance.rb +2 -15
  10. data/lib/fog/aws/models/ec2/instances.rb +6 -23
  11. data/lib/fog/aws/models/ec2/key_pair.rb +2 -17
  12. data/lib/fog/aws/models/ec2/key_pairs.rb +6 -23
  13. data/lib/fog/aws/models/ec2/security_group.rb +18 -22
  14. data/lib/fog/aws/models/ec2/security_groups.rb +6 -23
  15. data/lib/fog/aws/models/ec2/snapshot.rb +2 -15
  16. data/lib/fog/aws/models/ec2/snapshots.rb +7 -20
  17. data/lib/fog/aws/models/ec2/volume.rb +23 -22
  18. data/lib/fog/aws/models/ec2/volumes.rb +8 -22
  19. data/lib/fog/aws/models/s3/bucket.rb +1 -1
  20. data/lib/fog/aws/models/s3/buckets.rb +3 -20
  21. data/lib/fog/aws/models/s3/objects.rb +11 -22
  22. data/lib/fog/aws/requests/ec2/allocate_address.rb +1 -1
  23. data/lib/fog/aws/requests/ec2/associate_address.rb +2 -2
  24. data/lib/fog/aws/requests/ec2/attach_volume.rb +2 -2
  25. data/lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb +1 -1
  26. data/lib/fog/aws/requests/ec2/create_key_pair.rb +2 -2
  27. data/lib/fog/aws/requests/ec2/create_security_group.rb +2 -2
  28. data/lib/fog/aws/requests/ec2/create_snapshot.rb +2 -2
  29. data/lib/fog/aws/requests/ec2/create_volume.rb +3 -3
  30. data/lib/fog/aws/requests/ec2/delete_key_pair.rb +1 -1
  31. data/lib/fog/aws/requests/ec2/delete_security_group.rb +2 -2
  32. data/lib/fog/aws/requests/ec2/delete_snapshot.rb +2 -2
  33. data/lib/fog/aws/requests/ec2/delete_volume.rb +2 -2
  34. data/lib/fog/aws/requests/ec2/describe_addresses.rb +2 -2
  35. data/lib/fog/aws/requests/ec2/describe_availability_zones.rb +1 -1
  36. data/lib/fog/aws/requests/ec2/describe_images.rb +1 -1
  37. data/lib/fog/aws/requests/ec2/describe_instances.rb +2 -2
  38. data/lib/fog/aws/requests/ec2/describe_key_pairs.rb +2 -2
  39. data/lib/fog/aws/requests/ec2/describe_regions.rb +1 -1
  40. data/lib/fog/aws/requests/ec2/describe_security_groups.rb +2 -2
  41. data/lib/fog/aws/requests/ec2/describe_snapshots.rb +2 -2
  42. data/lib/fog/aws/requests/ec2/describe_volumes.rb +2 -2
  43. data/lib/fog/aws/requests/ec2/detach_volume.rb +2 -2
  44. data/lib/fog/aws/requests/ec2/disassociate_address.rb +2 -2
  45. data/lib/fog/aws/requests/ec2/get_console_output.rb +2 -2
  46. data/lib/fog/aws/requests/ec2/reboot_instances.rb +2 -2
  47. data/lib/fog/aws/requests/ec2/release_address.rb +2 -2
  48. data/lib/fog/aws/requests/ec2/revoke_security_group_ingress.rb +1 -1
  49. data/lib/fog/aws/requests/ec2/run_instances.rb +2 -2
  50. data/lib/fog/aws/requests/ec2/terminate_instances.rb +2 -2
  51. data/lib/fog/aws/requests/s3/copy_object.rb +2 -2
  52. data/lib/fog/aws/requests/s3/delete_bucket.rb +3 -3
  53. data/lib/fog/aws/requests/s3/delete_object.rb +2 -2
  54. data/lib/fog/aws/requests/s3/get_bucket.rb +2 -2
  55. data/lib/fog/aws/requests/s3/get_bucket_location.rb +2 -2
  56. data/lib/fog/aws/requests/s3/get_object.rb +2 -2
  57. data/lib/fog/aws/requests/s3/get_request_payment.rb +2 -2
  58. data/lib/fog/aws/requests/s3/get_service.rb +1 -1
  59. data/lib/fog/aws/requests/s3/head_object.rb +1 -1
  60. data/lib/fog/aws/requests/s3/put_bucket.rb +1 -1
  61. data/lib/fog/aws/requests/s3/put_object.rb +2 -2
  62. data/lib/fog/aws/requests/s3/put_request_payment.rb +1 -1
  63. data/lib/fog/aws/requests/simpledb/batch_put_attributes.rb +2 -2
  64. data/lib/fog/aws/requests/simpledb/create_domain.rb +1 -1
  65. data/lib/fog/aws/requests/simpledb/delete_attributes.rb +2 -2
  66. data/lib/fog/aws/requests/simpledb/delete_domain.rb +1 -1
  67. data/lib/fog/aws/requests/simpledb/domain_metadata.rb +2 -2
  68. data/lib/fog/aws/requests/simpledb/get_attributes.rb +2 -2
  69. data/lib/fog/aws/requests/simpledb/list_domains.rb +1 -1
  70. data/lib/fog/aws/requests/simpledb/put_attributes.rb +1 -1
  71. data/lib/fog/aws/requests/simpledb/select.rb +1 -1
  72. data/lib/fog/aws/s3.rb +0 -7
  73. data/lib/fog/aws/simpledb.rb +0 -4
  74. data/lib/fog/collection.rb +35 -7
  75. data/lib/fog/connection.rb +10 -130
  76. data/lib/fog/model.rb +18 -13
  77. data/lib/fog/parser.rb +0 -5
  78. data/lib/fog/rackspace.rb +35 -15
  79. data/lib/fog/rackspace/files.rb +36 -6
  80. data/lib/fog/rackspace/models/servers/server.rb +2 -16
  81. data/lib/fog/rackspace/models/servers/servers.rb +6 -21
  82. data/lib/fog/rackspace/requests/files/delete_container.rb +38 -0
  83. data/lib/fog/rackspace/requests/files/delete_object.rb +39 -0
  84. data/lib/fog/rackspace/requests/files/get_container.rb +61 -0
  85. data/lib/fog/rackspace/requests/files/get_containers.rb +5 -7
  86. data/lib/fog/rackspace/requests/files/head_container.rb +44 -0
  87. data/lib/fog/rackspace/requests/files/head_containers.rb +1 -1
  88. data/lib/fog/rackspace/requests/files/put_container.rb +38 -0
  89. data/lib/fog/rackspace/requests/files/put_object.rb +41 -0
  90. data/lib/fog/rackspace/requests/servers/create_image.rb +6 -0
  91. data/lib/fog/rackspace/requests/servers/create_server.rb +21 -2
  92. data/lib/fog/rackspace/requests/servers/delete_server.rb +18 -3
  93. data/lib/fog/rackspace/requests/servers/get_server_details.rb +17 -5
  94. data/lib/fog/rackspace/requests/servers/list_addresses.rb +52 -0
  95. data/lib/fog/rackspace/requests/servers/list_flavors.rb +2 -4
  96. data/lib/fog/rackspace/requests/servers/list_flavors_detail.rb +41 -0
  97. data/lib/fog/rackspace/requests/servers/list_images.rb +1 -1
  98. data/lib/fog/rackspace/requests/servers/list_images_detail.rb +1 -1
  99. data/lib/fog/rackspace/requests/servers/list_private_addresses.rb +50 -0
  100. data/lib/fog/rackspace/requests/servers/list_public_addresses.rb +50 -0
  101. data/lib/fog/rackspace/requests/servers/list_servers.rb +11 -2
  102. data/lib/fog/rackspace/requests/servers/list_servers_detail.rb +17 -2
  103. data/lib/fog/rackspace/requests/servers/reboot_server.rb +3 -6
  104. data/lib/fog/rackspace/requests/servers/update_server.rb +18 -5
  105. data/lib/fog/rackspace/servers.rb +20 -0
  106. data/spec/aws/models/ec2/address_spec.rb +4 -4
  107. data/spec/aws/models/ec2/instance_spec.rb +6 -6
  108. data/spec/aws/models/ec2/key_pair_spec.rb +5 -5
  109. data/spec/aws/models/ec2/security_group_spec.rb +5 -5
  110. data/spec/aws/models/ec2/snapshot_spec.rb +8 -8
  111. data/spec/aws/models/ec2/snapshots_spec.rb +6 -6
  112. data/spec/aws/models/ec2/volume_spec.rb +6 -5
  113. data/spec/aws/models/ec2/volumes_spec.rb +4 -4
  114. data/spec/aws/requests/ec2/associate_address_spec.rb +2 -2
  115. data/spec/aws/requests/ec2/attach_volume_spec.rb +2 -2
  116. data/spec/aws/requests/ec2/create_key_pair_spec.rb +1 -1
  117. data/spec/aws/requests/ec2/create_security_group_spec.rb +1 -1
  118. data/spec/aws/requests/ec2/create_snapshot_spec.rb +1 -1
  119. data/spec/aws/requests/ec2/delete_security_group_spec.rb +1 -1
  120. data/spec/aws/requests/ec2/delete_snapshot_spec.rb +1 -1
  121. data/spec/aws/requests/ec2/delete_volume_spec.rb +2 -2
  122. data/spec/aws/requests/ec2/describe_addresses_spec.rb +1 -1
  123. data/spec/aws/requests/ec2/describe_instances_spec.rb +1 -1
  124. data/spec/aws/requests/ec2/describe_key_pairs_spec.rb +1 -1
  125. data/spec/aws/requests/ec2/describe_security_groups_spec.rb +1 -1
  126. data/spec/aws/requests/ec2/describe_snapshots_spec.rb +1 -1
  127. data/spec/aws/requests/ec2/describe_volumes_spec.rb +1 -1
  128. data/spec/aws/requests/ec2/detach_volume_spec.rb +1 -1
  129. data/spec/aws/requests/ec2/disassociate_address_spec.rb +1 -1
  130. data/spec/aws/requests/ec2/get_console_output_spec.rb +1 -1
  131. data/spec/aws/requests/ec2/reboot_instances_spec.rb +1 -1
  132. data/spec/aws/requests/ec2/release_address_spec.rb +1 -1
  133. data/spec/aws/requests/ec2/terminate_instances_spec.rb +1 -1
  134. data/spec/aws/requests/s3/copy_object_spec.rb +4 -5
  135. data/spec/aws/requests/s3/delete_bucket_spec.rb +3 -4
  136. data/spec/aws/requests/s3/delete_object_spec.rb +2 -3
  137. data/spec/aws/requests/s3/get_bucket_location_spec.rb +1 -1
  138. data/spec/aws/requests/s3/get_bucket_spec.rb +4 -6
  139. data/spec/aws/requests/s3/get_object_spec.rb +6 -10
  140. data/spec/aws/requests/s3/get_request_payment_spec.rb +1 -1
  141. data/spec/aws/requests/s3/head_object_spec.rb +2 -4
  142. data/spec/aws/requests/s3/put_object_spec.rb +4 -7
  143. data/spec/aws/requests/s3/put_request_payment_spec.rb +1 -1
  144. data/spec/aws/requests/simpledb/batch_put_attributes_spec.rb +1 -1
  145. data/spec/aws/requests/simpledb/delete_attributes_spec.rb +1 -1
  146. data/spec/aws/requests/simpledb/domain_metadata_spec.rb +1 -1
  147. data/spec/aws/requests/simpledb/get_attributes_spec.rb +1 -1
  148. data/spec/aws/requests/simpledb/put_attributes_spec.rb +1 -1
  149. data/spec/rackspace/requests/files/delete_container_spec.rb +24 -0
  150. data/spec/rackspace/requests/files/delete_object_spec.rb +37 -0
  151. data/spec/rackspace/requests/files/get_container_spec.rb +33 -0
  152. data/spec/rackspace/requests/files/get_containers_spec.rb +12 -1
  153. data/spec/rackspace/requests/files/head_container_spec.rb +30 -0
  154. data/spec/rackspace/requests/files/head_containers_spec.rb +9 -1
  155. data/spec/rackspace/requests/files/put_container_spec.rb +15 -0
  156. data/spec/rackspace/requests/files/put_object_spec.rb +20 -0
  157. data/spec/rackspace/requests/servers/create_image_spec.rb +16 -2
  158. data/spec/rackspace/requests/servers/create_server_spec.rb +1 -1
  159. data/spec/rackspace/requests/servers/delete_image_spec.rb +32 -0
  160. data/spec/rackspace/requests/servers/delete_server_spec.rb +1 -1
  161. data/spec/rackspace/requests/servers/get_server_details_spec.rb +1 -1
  162. data/spec/rackspace/requests/servers/list_addresses_spec.rb +34 -0
  163. data/spec/rackspace/requests/servers/list_flavors_detail_spec.rb +17 -0
  164. data/spec/rackspace/requests/servers/list_flavors_spec.rb +6 -3
  165. data/spec/rackspace/requests/servers/list_images_detail_spec.rb +18 -0
  166. data/spec/rackspace/requests/servers/list_images_spec.rb +5 -2
  167. data/spec/rackspace/requests/servers/list_private_addresses_spec.rb +32 -0
  168. data/spec/rackspace/requests/servers/list_public_addresses_spec.rb +32 -0
  169. data/spec/rackspace/requests/servers/list_servers_detail_spec.rb +1 -1
  170. data/spec/rackspace/requests/servers/reboot_server_spec.rb +31 -0
  171. data/spec/rackspace/requests/servers/update_server_spec.rb +33 -0
  172. data/spec/spec_helper.rb +5 -1
  173. metadata +50 -14
  174. data/benchs/headers_split_vs_match.rb +0 -18
  175. data/benchs/stripping.rb +0 -26
  176. data/lib/fog/errors.rb +0 -145
  177. data/lib/fog/response.rb +0 -12
  178. data/spec/rackspace/requests/servers/delete_image.rb +0 -12
  179. data/spec/rackspace/requests/servers/list_images_detail.rb +0 -12
  180. data/spec/rackspace/requests/servers/reboot_server.rb +0 -12
  181. data/spec/rackspace/requests/servers/update_server.rb +0 -12
@@ -14,7 +14,7 @@ unless Fog.mocking?
14
14
  # * 'InstanceId'<~String> - Id of instance to associate volume with
15
15
  #
16
16
  # ==== Returns
17
- # * response<~Fog::AWS::Response>:
17
+ # * response<~Excon::Response>:
18
18
  # * body<~Hash>:
19
19
  # * 'attachTime'<~Time> - Time of attachment was initiated at
20
20
  # * 'device'<~String> - Device as it is exposed to the instance
@@ -50,7 +50,7 @@ else
50
50
  }.merge!(data)
51
51
  else
52
52
  response.status = 400
53
- raise(Fog::Errors.status_error(200, 400, response))
53
+ raise(Excon::Errors.status_error(200, 400, response))
54
54
  end
55
55
  response
56
56
  end
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * public_ip<~String> - Public ip to assign to instance
11
11
  #
12
12
  # ==== Returns
13
- # * response<~Fog::AWS::Response>:
13
+ # * response<~Excon::Response>:
14
14
  # * body<~Hash>:
15
15
  # * 'requestId'<~String> - Id of request
16
16
  # * 'return'<~Boolean> - success?
@@ -43,7 +43,7 @@ else
43
43
  }
44
44
  else
45
45
  response.status = 400
46
- raise(Fog::Errors.status_error(200, 400, response))
46
+ raise(Excon::Errors.status_error(200, 400, response))
47
47
  end
48
48
  response
49
49
  end
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * instance_id<~String> - Id of instance to get console output from
11
11
  #
12
12
  # ==== Returns
13
- # # * response<~Fog::AWS::Response>:
13
+ # # * response<~Excon::Response>:
14
14
  # * body<~Hash>:
15
15
  # * 'instanceId'<~String> - Id of instance
16
16
  # * 'output'<~String> - Console output
@@ -45,7 +45,7 @@ else
45
45
  }
46
46
  else
47
47
  response.status = 400
48
- raise(Fog::Errors.status_error(200, 400, response))
48
+ raise(Excon::Errors.status_error(200, 400, response))
49
49
  end
50
50
  response
51
51
  end
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * instance_id<~Array> - Ids of instances to reboot
11
11
  #
12
12
  # ==== Returns
13
- # # * response<~Fog::AWS::Response>:
13
+ # # * response<~Excon::Response>:
14
14
  # * body<~Hash>:
15
15
  # * 'requestId'<~String> - Id of request
16
16
  # * 'return'<~Boolean> - success?
@@ -45,7 +45,7 @@ else
45
45
  }
46
46
  else
47
47
  response.status = 400
48
- raise(Fog::Errors.status_error(200, 400, response))
48
+ raise(Excon::Errors.status_error(200, 400, response))
49
49
  end
50
50
  response
51
51
  end
@@ -7,7 +7,7 @@ unless Fog.mocking?
7
7
  # Release an elastic IP address.
8
8
  #
9
9
  # ==== Returns
10
- # * response<~Fog::AWS::Response>:
10
+ # * response<~Excon::Response>:
11
11
  # * body<~Hash>:
12
12
  # * 'requestId'<~String> - Id of request
13
13
  # * 'return'<~Boolean> - success?
@@ -38,7 +38,7 @@ else
38
38
  }
39
39
  else
40
40
  response.status = 400
41
- raise(Fog::Errors.status_error(200, 400, response))
41
+ raise(Excon::Errors.status_error(200, 400, response))
42
42
  end
43
43
  response
44
44
  end
@@ -19,7 +19,7 @@ unless Fog.mocking?
19
19
  # * 'ToPort' - End of port range (or -1 for ICMP wildcard)
20
20
  #
21
21
  # === Returns
22
- # * response<~Fog::AWS::Response>:
22
+ # * response<~Excon::Response>:
23
23
  # * body<~Hash>:
24
24
  # * 'requestId'<~String> - Id of request
25
25
  # * 'return'<~Boolean> - success?
@@ -35,7 +35,7 @@ unless Fog.mocking?
35
35
  # * 'VirtualName'<~String> - ?
36
36
  #
37
37
  # ==== Returns
38
- # * response<~Fog::AWS::Response>:
38
+ # * response<~Excon::Response>:
39
39
  # * body<~Hash>:
40
40
  # * 'groupSet'<~Array>: groups the instances are members in
41
41
  # * 'groupName'<~String> - Name of group
@@ -115,7 +115,7 @@ else
115
115
  'ramdiskId' => options['RamdiskId'] || Fog::AWS::Mock.ramdisk_id,
116
116
  'reason' => '',
117
117
  'reservationId' => reservation_id,
118
- 'state' => 'pending'
118
+ 'instanceState' => 'pending'
119
119
  }
120
120
  Fog::AWS::EC2.data[:instances][instance_id] = data
121
121
  instances_set << data.reject{|key,value| !['amiLaunchIndex', 'dnsName', 'imageId', 'instanceId', 'instanceState', 'instanceType', 'kernelId', 'keyName', 'launchTime', 'monitoring', 'placement', 'privateDnsName', 'productCodes', 'ramdiskId', 'reason'].include?(key)}
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * instance_id<~Array> - Ids of instances to terminates
11
11
  #
12
12
  # ==== Returns
13
- # # * response<~Fog::AWS::Response>:
13
+ # # * response<~Excon::Response>:
14
14
  # * body<~Hash>:
15
15
  # * 'requestId'<~String> - Id of request
16
16
  # * 'instancesSet'<~Array>:
@@ -72,7 +72,7 @@ else
72
72
  end
73
73
  else
74
74
  response.status = 400
75
- raise(Fog::Errors.status_error(200, 400, response))
75
+ raise(Excon::Errors.status_error(200, 400, response))
76
76
  end
77
77
  response
78
78
  end
@@ -19,7 +19,7 @@ unless Fog.mocking?
19
19
  # * 'x-amz-copy_source-if-unmodified-since'<~Time> - Copies object it it has not been modified since this time
20
20
  #
21
21
  # ==== Returns
22
- # * response<~Fog::AWS::Response>:
22
+ # * response<~Excon::Response>:
23
23
  # * body<~Hash>:
24
24
  # * 'ETag'<~String> - etag of new object
25
25
  # * 'LastModified'<~Time> - date object was last modified
@@ -66,7 +66,7 @@ else
66
66
  }
67
67
  else
68
68
  response.status = 404
69
- raise(Fog::Errors.status_error(200, 404, response))
69
+ raise(Excon::Errors.status_error(200, 404, response))
70
70
  end
71
71
 
72
72
  response
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * bucket_name<~String> - name of bucket to delete
11
11
  #
12
12
  # ==== Returns
13
- # * response<~Fog::AWS::Response>:
13
+ # * response<~Excon::Response>:
14
14
  # * status<~Integer> - 204
15
15
  def delete_bucket(bucket_name)
16
16
  request({
@@ -35,10 +35,10 @@ else
35
35
  response = Fog::Response.new
36
36
  if Fog::AWS::S3.data[:buckets][bucket_name].nil?
37
37
  response.status = 404
38
- raise(Fog::Errors.status_error(204, 404, response))
38
+ raise(Excon::Errors.status_error(204, 404, response))
39
39
  elsif Fog::AWS::S3.data[:buckets][bucket_name] && !Fog::AWS::S3.data[:buckets][bucket_name][:objects].empty?
40
40
  response.status = 409
41
- raise(Fog::Errors.status_error(204, 409, response))
41
+ raise(Excon::Errors.status_error(204, 409, response))
42
42
  else
43
43
  Fog::AWS::S3.data[:buckets].delete(bucket_name)
44
44
  response.status = 204
@@ -11,7 +11,7 @@ unless Fog.mocking?
11
11
  # * object_name<~String> - Name of object to delete
12
12
  #
13
13
  # ==== Returns
14
- # * response<~Fog::AWS::Response>:
14
+ # * response<~Excon::Response>:
15
15
  # * status<~Integer> - 204
16
16
  def delete_object(bucket_name, object_name)
17
17
  request({
@@ -40,7 +40,7 @@ else
40
40
  bucket[:objects].delete(object_name)
41
41
  else
42
42
  response.status = 404
43
- raise(Fog::Errors.status_error(204, 404, response))
43
+ raise(Excon::Errors.status_error(204, 404, response))
44
44
  end
45
45
  response
46
46
  end
@@ -17,7 +17,7 @@ unless Fog.mocking?
17
17
  # value and the first occurence of delimiter to be rolled up
18
18
  #
19
19
  # ==== Returns
20
- # * response<~Fog::AWS::Response>:
20
+ # * response<~Excon::Response>:
21
21
  # * body<~Hash>:
22
22
  # * 'Delimeter'<~String> - Delimiter specified for query
23
23
  # * 'Marker'<~String> - Marker specified for query
@@ -94,7 +94,7 @@ else
94
94
  end
95
95
  else
96
96
  response.status = 404
97
- raise(Fog::Errors.status_error(200, 404, response))
97
+ raise(Excon::Errors.status_error(200, 404, response))
98
98
  end
99
99
  response
100
100
  end
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * bucket_name<~String> - name of bucket to get location constraint for
11
11
  #
12
12
  # ==== Returns
13
- # * response<~Fog::AWS::Response>:
13
+ # * response<~Excon::Response>:
14
14
  # * body<~Hash>:
15
15
  # * 'LocationConstraint'<~String> - Location constraint of the bucket
16
16
  def get_bucket_location(bucket_name)
@@ -41,7 +41,7 @@ else
41
41
  response.body = {'LocationConstraint' => bucket['LocationConstraint'] }
42
42
  else
43
43
  response.status = 404
44
- raise(Fog::Errors.status_error(200, 404, response))
44
+ raise(Excon::Errors.status_error(200, 404, response))
45
45
  end
46
46
  response
47
47
  end
@@ -16,7 +16,7 @@ unless Fog.mocking?
16
16
  # * 'If-Unmodified-Since'<~Time> - Returns object only if it has not been modified since this time, otherwise returns 412 (Precodition Failed).
17
17
  # * 'Range'<~String> - Range of object to download
18
18
  # ==== Returns
19
- # * response<~Fog::AWS::Response>:
19
+ # * response<~Excon::Response>:
20
20
  # * body<~String> - Contents of object
21
21
  # * headers<~Hash>:
22
22
  # * 'Content-Length'<~String> - Size of object contents
@@ -108,7 +108,7 @@ else
108
108
  end
109
109
  else
110
110
  response.status = 404
111
- raise(Fog::Errors.status_error(200, 404, response))
111
+ raise(Excon::Errors.status_error(200, 404, response))
112
112
  end
113
113
  response
114
114
  end
@@ -10,7 +10,7 @@ unless Fog.mocking?
10
10
  # * bucket_name<~String> - name of bucket to get payer for
11
11
  #
12
12
  # ==== Returns
13
- # * response<~Fog::AWS::Response>:
13
+ # * response<~Excon::Response>:
14
14
  # * body<~Hash>:
15
15
  # * 'Payer'<~String> - Specifies who pays for download and requests
16
16
  def get_request_payment(bucket_name)
@@ -41,7 +41,7 @@ else
41
41
  response.body = { 'Payer' => bucket['Payer'] }
42
42
  else
43
43
  response.status = 404
44
- raise(Fog::Errors.status_error(200, 404, response))
44
+ raise(Excon::Errors.status_error(200, 404, response))
45
45
  end
46
46
  response
47
47
  end
@@ -7,7 +7,7 @@ unless Fog.mocking?
7
7
  # List information about S3 buckets for authorized user
8
8
  #
9
9
  # ==== Returns
10
- # * response<~Fog::AWS::Response>:
10
+ # * response<~Excon::Response>:
11
11
  # * body<~Hash>:
12
12
  # * 'Buckets'<~Hash>:
13
13
  # * 'Name'<~String> - Name of bucket
@@ -17,7 +17,7 @@ unless Fog.mocking?
17
17
  # * 'Range'<~String> - Range of object to download
18
18
  #
19
19
  # ==== Returns
20
- # * response<~Fog::AWS::Response>:
20
+ # * response<~Excon::Response>:
21
21
  # * body<~String> - Contents of object
22
22
  # * headers<~Hash>:
23
23
  # * 'Content-Length'<~String> - Size of object contents
@@ -12,7 +12,7 @@ unless Fog.mocking?
12
12
  # * :location_constraint<~Symbol> - sets the location for the bucket
13
13
  #
14
14
  # ==== Returns
15
- # * response<~Fog::AWS::Response>:
15
+ # * response<~Excon::Response>:
16
16
  # * status<~Integer> - 200
17
17
  def put_bucket(bucket_name, options = {})
18
18
  if options['LocationConstraint']
@@ -21,7 +21,7 @@ unless Fog.mocking?
21
21
  # * "x-amz-meta-#{name}" - Headers to be returned with object, note total size of request without body must be less than 8 KB.
22
22
  #
23
23
  # ==== Returns
24
- # * response<~Fog::AWS::Response>:
24
+ # * response<~Excon::Response>:
25
25
  # * headers<~Hash>:
26
26
  # * 'ETag'<~String> - etag of new object
27
27
  def put_object(bucket_name, object_name, data, options = {})
@@ -64,7 +64,7 @@ else
64
64
  bucket[:objects][object_name]['Content-Type'] = data[:headers]['Content-Type']
65
65
  else
66
66
  response.status = 404
67
- raise(Fog::Errors.status_error(200, 404, response))
67
+ raise(Excon::Errors.status_error(200, 404, response))
68
68
  end
69
69
  response
70
70
  end
@@ -43,7 +43,7 @@ else
43
43
  bucket['Payer'] = payer
44
44
  else
45
45
  response.status = 404
46
- raise(Fog::Errors.status_error(200, 404, response))
46
+ raise(Excon::Errors.status_error(200, 404, response))
47
47
  end
48
48
  response
49
49
  end
@@ -17,7 +17,7 @@ unless Fog.mocking?
17
17
  # not valid. Each name and value can be up to 1024 bytes long.
18
18
  #
19
19
  # ==== Returns
20
- # * response<~Fog::AWS::Response>:
20
+ # * response<~Excon::Response>:
21
21
  # * body<~Hash>:
22
22
  # * 'BoxUsage'
23
23
  # * 'RequestId'
@@ -59,7 +59,7 @@ else
59
59
  }
60
60
  else
61
61
  response.status = 400
62
- raise(Fog::Errors.status_error(200, 400, response))
62
+ raise(Excon::Errors.status_error(200, 400, response))
63
63
  end
64
64
  response
65
65
  end
@@ -11,7 +11,7 @@ unless Fog.mocking?
11
11
  # following characters: a-z, A-Z, 0-9, '_', '-' and '.'.
12
12
  #
13
13
  # ==== Returns
14
- # * response<~Fog::AWS::Response>:
14
+ # * response<~Excon::Response>:
15
15
  # * body<~Hash>:
16
16
  # * 'BoxUsage'
17
17
  # * 'RequestId'
@@ -19,7 +19,7 @@ unless Fog.mocking?
19
19
  # bytes long.
20
20
  #
21
21
  # ==== Returns
22
- # * response<~Fog::AWS::Response>:
22
+ # * response<~Excon::Response>:
23
23
  # * body<~Hash>:
24
24
  # * 'BoxUsage'
25
25
  # * 'RequestId'
@@ -60,7 +60,7 @@ else
60
60
  }
61
61
  else
62
62
  response.status = 400
63
- raise(Fog::Errors.status_error(200, 400, response))
63
+ raise(Excon::Errors.status_error(200, 400, response))
64
64
  end
65
65
  response
66
66
  end
@@ -11,7 +11,7 @@ unless Fog.mocking?
11
11
  # following characters: a-z, A-Z, 0-9, '_', '-' and '.'.
12
12
  #
13
13
  # ==== Returns
14
- # * response<~Fog::AWS::Response>:
14
+ # * response<~Excon::Response>:
15
15
  # * body<~Hash>:
16
16
  # * 'BoxUsage'
17
17
  # * 'RequestId'
@@ -11,7 +11,7 @@ unless Fog.mocking?
11
11
  # following characters: a-z, A-Z, 0-9, '_', '-' and '.'.
12
12
  #
13
13
  # ==== Returns
14
- # * response<~Fog::AWS::Response>:
14
+ # * response<~Excon::Response>:
15
15
  # * body<~Hash>:
16
16
  # * 'AttributeNameCount' - number of unique attribute names in domain
17
17
  # * 'AttributeNamesSizeBytes' - total size of unique attribute names, in bytes
@@ -68,7 +68,7 @@ else
68
68
  }
69
69
  else
70
70
  response.status = 400
71
- raise(Fog::Errors.status_error(200, 400, response))
71
+ raise(Excon::Errors.status_error(200, 400, response))
72
72
  end
73
73
  response
74
74
  end
@@ -19,7 +19,7 @@ unless Fog.mocking?
19
19
  # bytes long.
20
20
  #
21
21
  # ==== Returns
22
- # * response<~Fog::AWS::Response>:
22
+ # * response<~Excon::Response>:
23
23
  # * body<~Hash>:
24
24
  # * 'Attributes' - list of attribute name/values for the item
25
25
  # * 'BoxUsage'
@@ -63,7 +63,7 @@ else
63
63
  }
64
64
  else
65
65
  response.status = 400
66
- raise(Fog::Errors.status_error(200, 400, response))
66
+ raise(Excon::Errors.status_error(200, 400, response))
67
67
  end
68
68
  response
69
69
  end
@@ -13,7 +13,7 @@ unless Fog.mocking?
13
13
  # * 'NextToken'<~String> - Offset token to start listing, defaults to nil
14
14
  #
15
15
  # ==== Returns
16
- # * response<~Fog::AWS::Response>:
16
+ # * response<~Excon::Response>:
17
17
  # * body<~Hash>:
18
18
  # * 'BoxUsage'
19
19
  # * 'Domains' - array of domain names.
@@ -18,7 +18,7 @@ unless Fog.mocking?
18
18
  # be up to 1024 bytes long.
19
19
  #
20
20
  # ==== Returns
21
- # * response<~Fog::AWS::Response>:
21
+ # * response<~Excon::Response>:
22
22
  # * body<~Hash>:
23
23
  # * 'BoxUsage'
24
24
  # * 'RequestId'
@@ -9,7 +9,7 @@ module Fog
9
9
  # * next_token<~String> - Offset token to start list, defaults to nil.
10
10
  #
11
11
  # ==== Returns
12
- # * response<~Fog::AWS::Response>:
12
+ # * response<~Excon::Response>:
13
13
  # * body<~Hash>:
14
14
  # * 'BoxUsage'<~Float>
15
15
  # * 'RequestId'<~String>