aws-sdk 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/README.rdoc +4 -4
  2. data/lib/aws-sdk.rb +60 -1
  3. data/lib/aws.rb +1 -50
  4. data/lib/aws/api_config/CloudFront-2012-05-05.yml +864 -899
  5. data/lib/aws/api_config/DataPipeline-2012-10-29.yml +422 -0
  6. data/lib/aws/api_config/EC2-2012-07-20.yml +0 -2
  7. data/lib/aws/api_config/Glacier-2012-06-01.yml +622 -0
  8. data/lib/aws/api_config/ImportExport-2010-06-01.yml +109 -0
  9. data/lib/aws/api_config/{SQS-2011-10-01.yml → SQS-2012-11-05.yml} +3 -1
  10. data/lib/aws/api_config/StorageGateway-2012-06-30.yml +748 -0
  11. data/lib/aws/cloud_front.rb +71 -0
  12. data/lib/aws/cloud_front/client.rb +1307 -0
  13. data/lib/aws/cloud_front/config.rb +18 -0
  14. data/lib/aws/cloud_front/errors.rb +22 -0
  15. data/lib/aws/cloud_front/request.rb +44 -0
  16. data/lib/aws/core.rb +19 -1
  17. data/lib/aws/core/client.rb +7 -0
  18. data/lib/aws/core/collection.rb +1 -1
  19. data/lib/aws/core/configuration.rb +12 -0
  20. data/lib/aws/core/data.rb +13 -8
  21. data/lib/aws/core/json_client.rb +3 -4
  22. data/lib/aws/core/json_parser.rb +76 -0
  23. data/lib/aws/core/json_request_builder.rb +4 -3
  24. data/lib/aws/core/json_response_parser.rb +1 -3
  25. data/lib/aws/core/managed_file.rb +32 -0
  26. data/lib/aws/core/options/json_serializer.rb +82 -0
  27. data/lib/aws/core/options/validator.rb +5 -1
  28. data/lib/aws/core/options/xml_serializer.rb +18 -4
  29. data/lib/aws/core/{rest_client.rb → rest_json_client.rb} +5 -6
  30. data/lib/aws/core/rest_request_builder.rb +59 -35
  31. data/lib/aws/core/rest_response_parser.rb +13 -4
  32. data/lib/aws/core/rest_xml_client.rb +47 -0
  33. data/lib/aws/core/signature/version_4.rb +22 -8
  34. data/lib/aws/data_pipeline.rb +30 -0
  35. data/lib/aws/data_pipeline/client.rb +392 -0
  36. data/lib/aws/data_pipeline/config.rb +18 -0
  37. data/lib/aws/data_pipeline/errors.rb +20 -0
  38. data/lib/aws/data_pipeline/request.rb +26 -0
  39. data/lib/aws/ec2/instance_collection.rb +11 -3
  40. data/lib/aws/ec2/security_group.rb +5 -5
  41. data/lib/aws/ec2/security_group/{egress_ip_permission_collection.rb → ip_permission_collection.rb} +33 -14
  42. data/lib/aws/glacier.rb +50 -0
  43. data/lib/aws/glacier/archive.rb +54 -0
  44. data/lib/aws/glacier/archive_collection.rb +141 -0
  45. data/lib/aws/glacier/client.rb +286 -0
  46. data/lib/aws/glacier/config.rb +19 -0
  47. data/lib/aws/glacier/errors.rb +22 -0
  48. data/lib/aws/glacier/request.rb +34 -0
  49. data/lib/aws/glacier/resource.rb +30 -0
  50. data/lib/aws/glacier/vault.rb +137 -0
  51. data/lib/aws/glacier/vault_collection.rb +75 -0
  52. data/lib/aws/glacier/vault_notification_configuration.rb +27 -0
  53. data/lib/aws/import_export.rb +71 -0
  54. data/lib/aws/import_export/client.rb +109 -0
  55. data/lib/aws/import_export/config.rb +19 -0
  56. data/lib/aws/import_export/errors.rb +22 -0
  57. data/lib/aws/import_export/request.rb +23 -0
  58. data/lib/aws/route_53/client.rb +1 -1
  59. data/lib/aws/s3/bucket_lifecycle_configuration.rb +160 -63
  60. data/lib/aws/s3/client.rb +43 -0
  61. data/lib/aws/s3/client/xml.rb +6 -0
  62. data/lib/aws/s3/cors_rule_collection.rb +1 -1
  63. data/lib/aws/s3/data_options.rb +1 -3
  64. data/lib/aws/s3/request.rb +1 -1
  65. data/lib/aws/s3/s3_object.rb +52 -10
  66. data/lib/aws/sqs/client.rb +9 -3
  67. data/lib/aws/sqs/queue.rb +44 -5
  68. data/lib/aws/storage_gateway.rb +71 -0
  69. data/lib/aws/storage_gateway/client.rb +472 -0
  70. data/lib/aws/storage_gateway/config.rb +18 -0
  71. data/lib/aws/storage_gateway/errors.rb +22 -0
  72. data/lib/aws/storage_gateway/request.rb +28 -0
  73. data/lib/aws/version.rb +1 -1
  74. metadata +45 -10
  75. data/lib/aws/ec2/security_group/ingress_ip_permission_collection.rb +0 -61
@@ -0,0 +1,18 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ AWS::Core::Configuration.module_eval do
15
+
16
+ add_service 'StorageGateway', 'storage_gateway', 'storagegateway.us-east-1.amazonaws.com'
17
+
18
+ end
@@ -0,0 +1,22 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ module AWS
15
+ class StorageGateway
16
+ module Errors
17
+
18
+ extend Core::LazyErrorClasses
19
+
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,28 @@
1
+ # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4
+ # may not use this file except in compliance with the License. A copy of
5
+ # the License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0/
8
+ #
9
+ # or in the "license" file accompanying this file. This file is
10
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ # ANY KIND, either express or implied. See the License for the specific
12
+ # language governing permissions and limitations under the License.
13
+
14
+ module AWS
15
+ class StorageGateway
16
+
17
+ # @private
18
+ class Request < Core::Http::Request
19
+ include Core::Signature::Version4
20
+
21
+ def service
22
+ 'storagegateway'
23
+ end
24
+
25
+ end
26
+
27
+ end
28
+ end
@@ -14,5 +14,5 @@
14
14
 
15
15
  module AWS
16
16
  # Current version of the AWS SDK for Ruby
17
- VERSION = '1.7.1'
17
+ VERSION = '1.8.0'
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-07 00:00:00.000000000 Z
12
+ date: 2012-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools
@@ -124,6 +124,11 @@ files:
124
124
  - lib/aws/cloud_formation/stack_resource_summary_collection.rb
125
125
  - lib/aws/cloud_formation/stack_summary_collection.rb
126
126
  - lib/aws/cloud_formation.rb
127
+ - lib/aws/cloud_front/client.rb
128
+ - lib/aws/cloud_front/config.rb
129
+ - lib/aws/cloud_front/errors.rb
130
+ - lib/aws/cloud_front/request.rb
131
+ - lib/aws/cloud_front.rb
127
132
  - lib/aws/cloud_search/client.rb
128
133
  - lib/aws/cloud_search/config.rb
129
134
  - lib/aws/cloud_search/errors.rb
@@ -162,14 +167,17 @@ files:
162
167
  - lib/aws/core/indifferent_hash.rb
163
168
  - lib/aws/core/inflection.rb
164
169
  - lib/aws/core/json_client.rb
170
+ - lib/aws/core/json_parser.rb
165
171
  - lib/aws/core/json_request_builder.rb
166
172
  - lib/aws/core/json_response_parser.rb
167
173
  - lib/aws/core/lazy_error_classes.rb
168
174
  - lib/aws/core/log_formatter.rb
175
+ - lib/aws/core/managed_file.rb
169
176
  - lib/aws/core/meta_utils.rb
170
177
  - lib/aws/core/model.rb
171
178
  - lib/aws/core/naming.rb
172
179
  - lib/aws/core/option_grammar.rb
180
+ - lib/aws/core/options/json_serializer.rb
173
181
  - lib/aws/core/options/validator.rb
174
182
  - lib/aws/core/options/xml_serializer.rb
175
183
  - lib/aws/core/page_result.rb
@@ -182,10 +190,11 @@ files:
182
190
  - lib/aws/core/resource_cache.rb
183
191
  - lib/aws/core/response.rb
184
192
  - lib/aws/core/response_cache.rb
185
- - lib/aws/core/rest_client.rb
186
193
  - lib/aws/core/rest_error_parser.rb
194
+ - lib/aws/core/rest_json_client.rb
187
195
  - lib/aws/core/rest_request_builder.rb
188
196
  - lib/aws/core/rest_response_parser.rb
197
+ - lib/aws/core/rest_xml_client.rb
189
198
  - lib/aws/core/service_interface.rb
190
199
  - lib/aws/core/signature/version_2.rb
191
200
  - lib/aws/core/signature/version_3.rb
@@ -204,6 +213,11 @@ files:
204
213
  - lib/aws/core/xml/sax_handlers/rexml.rb
205
214
  - lib/aws/core/xml/stub.rb
206
215
  - lib/aws/core.rb
216
+ - lib/aws/data_pipeline/client.rb
217
+ - lib/aws/data_pipeline/config.rb
218
+ - lib/aws/data_pipeline/errors.rb
219
+ - lib/aws/data_pipeline/request.rb
220
+ - lib/aws/data_pipeline.rb
207
221
  - lib/aws/dynamo_db/attribute_collection.rb
208
222
  - lib/aws/dynamo_db/batch_get.rb
209
223
  - lib/aws/dynamo_db/batch_write.rb
@@ -273,9 +287,8 @@ files:
273
287
  - lib/aws/ec2/route_table/route.rb
274
288
  - lib/aws/ec2/route_table.rb
275
289
  - lib/aws/ec2/route_table_collection.rb
276
- - lib/aws/ec2/security_group/egress_ip_permission_collection.rb
277
- - lib/aws/ec2/security_group/ingress_ip_permission_collection.rb
278
290
  - lib/aws/ec2/security_group/ip_permission.rb
291
+ - lib/aws/ec2/security_group/ip_permission_collection.rb
279
292
  - lib/aws/ec2/security_group.rb
280
293
  - lib/aws/ec2/security_group_collection.rb
281
294
  - lib/aws/ec2/snapshot.rb
@@ -332,6 +345,17 @@ files:
332
345
  - lib/aws/emr/request.rb
333
346
  - lib/aws/emr.rb
334
347
  - lib/aws/errors.rb
348
+ - lib/aws/glacier/archive.rb
349
+ - lib/aws/glacier/archive_collection.rb
350
+ - lib/aws/glacier/client.rb
351
+ - lib/aws/glacier/config.rb
352
+ - lib/aws/glacier/errors.rb
353
+ - lib/aws/glacier/request.rb
354
+ - lib/aws/glacier/resource.rb
355
+ - lib/aws/glacier/vault.rb
356
+ - lib/aws/glacier/vault_collection.rb
357
+ - lib/aws/glacier/vault_notification_configuration.rb
358
+ - lib/aws/glacier.rb
335
359
  - lib/aws/iam/access_key.rb
336
360
  - lib/aws/iam/access_key_collection.rb
337
361
  - lib/aws/iam/account_alias_collection.rb
@@ -362,6 +386,11 @@ files:
362
386
  - lib/aws/iam/virtual_mfa_device.rb
363
387
  - lib/aws/iam/virtual_mfa_device_collection.rb
364
388
  - lib/aws/iam.rb
389
+ - lib/aws/import_export/client.rb
390
+ - lib/aws/import_export/config.rb
391
+ - lib/aws/import_export/errors.rb
392
+ - lib/aws/import_export/request.rb
393
+ - lib/aws/import_export.rb
365
394
  - lib/aws/rails.rb
366
395
  - lib/aws/rds/client.rb
367
396
  - lib/aws/rds/config.rb
@@ -519,6 +548,11 @@ files:
519
548
  - lib/aws/sqs/received_sns_message.rb
520
549
  - lib/aws/sqs/request.rb
521
550
  - lib/aws/sqs.rb
551
+ - lib/aws/storage_gateway/client.rb
552
+ - lib/aws/storage_gateway/config.rb
553
+ - lib/aws/storage_gateway/errors.rb
554
+ - lib/aws/storage_gateway/request.rb
555
+ - lib/aws/storage_gateway.rb
522
556
  - lib/aws/sts/client.rb
523
557
  - lib/aws/sts/config.rb
524
558
  - lib/aws/sts/errors.rb
@@ -538,20 +572,24 @@ files:
538
572
  - lib/aws/api_config/CloudFront-2012-05-05.yml
539
573
  - lib/aws/api_config/CloudSearch-2011-02-01.yml
540
574
  - lib/aws/api_config/CloudWatch-2010-08-01.yml
575
+ - lib/aws/api_config/DataPipeline-2012-10-29.yml
541
576
  - lib/aws/api_config/DynamoDB-2011-12-05.yml
542
577
  - lib/aws/api_config/EC2-2012-07-20.yml
543
578
  - lib/aws/api_config/ElastiCache-2012-03-09.yml
544
579
  - lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml
545
580
  - lib/aws/api_config/ELB-2012-06-01.yml
546
581
  - lib/aws/api_config/EMR-2009-03-31.yml
582
+ - lib/aws/api_config/Glacier-2012-06-01.yml
547
583
  - lib/aws/api_config/IAM-2010-05-08.yml
584
+ - lib/aws/api_config/ImportExport-2010-06-01.yml
548
585
  - lib/aws/api_config/RDS-2012-07-31.yml
549
586
  - lib/aws/api_config/Route53-2012-02-29.yml
550
587
  - lib/aws/api_config/SimpleDB-2009-04-15.yml
551
588
  - lib/aws/api_config/SimpleEmailService-2010-12-01.yml
552
589
  - lib/aws/api_config/SimpleWorkflow-2012-01-25.yml
553
590
  - lib/aws/api_config/SNS-2010-03-31.yml
554
- - lib/aws/api_config/SQS-2011-10-01.yml
591
+ - lib/aws/api_config/SQS-2012-11-05.yml
592
+ - lib/aws/api_config/StorageGateway-2012-06-30.yml
555
593
  - lib/aws/api_config/STS-2011-06-15.yml
556
594
  homepage: http://aws.amazon.com/sdkforruby
557
595
  licenses:
@@ -566,9 +604,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
566
604
  - - ! '>='
567
605
  - !ruby/object:Gem::Version
568
606
  version: '0'
569
- segments:
570
- - 0
571
- hash: -2056745554463326016
572
607
  required_rubygems_version: !ruby/object:Gem::Requirement
573
608
  none: false
574
609
  requirements:
@@ -577,7 +612,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
577
612
  version: '0'
578
613
  requirements: []
579
614
  rubyforge_project:
580
- rubygems_version: 1.8.24
615
+ rubygems_version: 1.8.23
581
616
  signing_key:
582
617
  specification_version: 3
583
618
  summary: AWS SDK for Ruby
@@ -1,61 +0,0 @@
1
- # Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You
4
- # may not use this file except in compliance with the License. A copy of
5
- # the License is located at
6
- #
7
- # http://aws.amazon.com/apache2.0/
8
- #
9
- # or in the "license" file accompanying this file. This file is
10
- # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
- # ANY KIND, either express or implied. See the License for the specific
12
- # language governing permissions and limitations under the License.
13
-
14
- module AWS
15
- class EC2
16
- class SecurityGroup < Resource
17
-
18
- class IngressIpPermissionCollection
19
-
20
- include Core::Model
21
- include Enumerable
22
-
23
- def initialize security_group, options = {}
24
- @security_group = security_group
25
- super
26
- end
27
-
28
- # @return [SecurityGroup]
29
- attr_reader :security_group
30
-
31
- def each
32
- security_group.ip_permissions_list.each do |p|
33
-
34
- ports = p[:from_port] ? [p[:from_port], p[:to_port]] : nil
35
-
36
- ip_ranges = p.ip_ranges.collect{|ip| ip.cidr_ip }
37
-
38
- groups = p.groups.collect do |group|
39
- SecurityGroup.new(group.group_id,
40
- :owner_id => group.user_id,
41
- :config => config)
42
- end
43
-
44
- permission = IpPermission.new(security_group, p.ip_protocol, ports,
45
- :ip_ranges => ip_ranges,
46
- :groups => groups,
47
- :config => config)
48
-
49
- yield(permission)
50
-
51
- end
52
- end
53
-
54
- end
55
-
56
- # alias for ingress permissions
57
- IpPermissionCollection = IngressIpPermissionCollection
58
-
59
- end
60
- end
61
- end