aws-sdk-core 2.1.21 → 2.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7937e7acff5f5ad0fc15ab35fad9c340823d3d70
4
- data.tar.gz: 287b8405d091d13d0d66acd3d9bf46953d10bf73
3
+ metadata.gz: 927236e19189222860215b607d5c6a881bc6107b
4
+ data.tar.gz: f2ea6f950e6acee96c7173362c38e7751393bbd5
5
5
  SHA512:
6
- metadata.gz: cd5e89f2326689b92be689e580745bd4b5281d4bc09fbf9cbe796432218d6b8761812121b38bbd7ef32bcd7f409e14e70bfa66c82721952f1463a9e181c52079
7
- data.tar.gz: ca7c631b1e339568c3c9d483e3a1b75cb725d803e4f1f9c8446c70e6216ecf3333e1c51af85b431e4480eb4ad01a48480727320d1c521a58ed147ed188667b66
6
+ metadata.gz: b2d8777f7b46f310120c7815725fe02bfa1ec2028bf3207b24b30196c9e5b08de160bfcbe3bc1cb01c37cfcbf15dcf3f5e900f5501f30a8eb7adbf1310e71914
7
+ data.tar.gz: 73148dd23d3329937f26e026e2fbb38c4c846620956da8fe8cbfa06c377c6f39fd228a434824c0488b1a38d99e0b84a83d1bead174744d9da2b811afa9143622
@@ -194,8 +194,18 @@
194
194
  },
195
195
  "input":{"shape":"GetBucketLifecycleRequest"},
196
196
  "output":{"shape":"GetBucketLifecycleOutput"},
197
+ "deprecated":true,
197
198
  "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlifecycle.html"
198
199
  },
200
+ "GetBucketLifecycleConfiguration":{
201
+ "name":"GetBucketLifecycleConfiguration",
202
+ "http":{
203
+ "method":"GET",
204
+ "requestUri":"/{Bucket}?lifecycle"
205
+ },
206
+ "input":{"shape":"GetBucketLifecycleConfigurationRequest"},
207
+ "output":{"shape":"GetBucketLifecycleConfigurationOutput"}
208
+ },
199
209
  "GetBucketLocation":{
200
210
  "name":"GetBucketLocation",
201
211
  "http":{
@@ -451,8 +461,17 @@
451
461
  "requestUri":"/{Bucket}?lifecycle"
452
462
  },
453
463
  "input":{"shape":"PutBucketLifecycleRequest"},
464
+ "deprecated":true,
454
465
  "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html"
455
466
  },
467
+ "PutBucketLifecycleConfiguration":{
468
+ "name":"PutBucketLifecycleConfiguration",
469
+ "http":{
470
+ "method":"PUT",
471
+ "requestUri":"/{Bucket}?lifecycle"
472
+ },
473
+ "input":{"shape":"PutBucketLifecycleConfigurationRequest"}
474
+ },
456
475
  "PutBucketLogging":{
457
476
  "name":"PutBucketLogging",
458
477
  "http":{
@@ -690,6 +709,16 @@
690
709
  "authenticated-read"
691
710
  ]
692
711
  },
712
+ "BucketLifecycleConfiguration":{
713
+ "type":"structure",
714
+ "required":["Rules"],
715
+ "members":{
716
+ "Rules":{
717
+ "shape":"LifecycleRules",
718
+ "locationName":"Rule"
719
+ }
720
+ }
721
+ },
693
722
  "BucketLocationConstraint":{
694
723
  "type":"string",
695
724
  "enum":[
@@ -736,6 +765,7 @@
736
765
  },
737
766
  "CORSConfiguration":{
738
767
  "type":"structure",
768
+ "required":["CORSRules"],
739
769
  "members":{
740
770
  "CORSRules":{
741
771
  "shape":"CORSRules",
@@ -745,6 +775,10 @@
745
775
  },
746
776
  "CORSRule":{
747
777
  "type":"structure",
778
+ "required":[
779
+ "AllowedMethods",
780
+ "AllowedOrigins"
781
+ ],
748
782
  "members":{
749
783
  "AllowedHeaders":{
750
784
  "shape":"AllowedHeaders",
@@ -1363,7 +1397,8 @@
1363
1397
  },
1364
1398
  "CreationDate":{"type":"timestamp"},
1365
1399
  "Date":{
1366
- "type":"timestamp"
1400
+ "type":"timestamp",
1401
+ "timestampFormat":"iso8601"
1367
1402
  },
1368
1403
  "Days":{"type":"integer"},
1369
1404
  "Delete":{
@@ -1589,7 +1624,8 @@
1589
1624
  "type":"structure",
1590
1625
  "required":["Bucket"],
1591
1626
  "members":{
1592
- "Bucket":{"shape":"BucketName"}
1627
+ "Bucket":{"shape":"BucketName"},
1628
+ "StorageClass":{"shape":"StorageClass"}
1593
1629
  }
1594
1630
  },
1595
1631
  "DisplayName":{"type":"string"},
@@ -1715,6 +1751,26 @@
1715
1751
  }
1716
1752
  }
1717
1753
  },
1754
+ "GetBucketLifecycleConfigurationOutput":{
1755
+ "type":"structure",
1756
+ "members":{
1757
+ "Rules":{
1758
+ "shape":"LifecycleRules",
1759
+ "locationName":"Rule"
1760
+ }
1761
+ }
1762
+ },
1763
+ "GetBucketLifecycleConfigurationRequest":{
1764
+ "type":"structure",
1765
+ "required":["Bucket"],
1766
+ "members":{
1767
+ "Bucket":{
1768
+ "shape":"BucketName",
1769
+ "location":"uri",
1770
+ "locationName":"Bucket"
1771
+ }
1772
+ }
1773
+ },
1718
1774
  "GetBucketLifecycleOutput":{
1719
1775
  "type":"structure",
1720
1776
  "members":{
@@ -2522,6 +2578,33 @@
2522
2578
  "Days":{"shape":"Days"}
2523
2579
  }
2524
2580
  },
2581
+ "LifecycleRule":{
2582
+ "type":"structure",
2583
+ "required":[
2584
+ "Prefix",
2585
+ "Status"
2586
+ ],
2587
+ "members":{
2588
+ "Expiration":{"shape":"LifecycleExpiration"},
2589
+ "ID":{"shape":"ID"},
2590
+ "Prefix":{"shape":"Prefix"},
2591
+ "Status":{"shape":"ExpirationStatus"},
2592
+ "Transitions":{
2593
+ "shape":"TransitionList",
2594
+ "locationName":"Transition"
2595
+ },
2596
+ "NoncurrentVersionTransitions":{
2597
+ "shape":"NoncurrentVersionTransitionList",
2598
+ "locationName":"NoncurrentVersionTransition"
2599
+ },
2600
+ "NoncurrentVersionExpiration":{"shape":"NoncurrentVersionExpiration"}
2601
+ }
2602
+ },
2603
+ "LifecycleRules":{
2604
+ "type":"list",
2605
+ "member":{"shape":"LifecycleRule"},
2606
+ "flattened":true
2607
+ },
2525
2608
  "ListBucketsOutput":{
2526
2609
  "type":"structure",
2527
2610
  "members":{
@@ -2868,6 +2951,11 @@
2868
2951
  "StorageClass":{"shape":"TransitionStorageClass"}
2869
2952
  }
2870
2953
  },
2954
+ "NoncurrentVersionTransitionList":{
2955
+ "type":"list",
2956
+ "member":{"shape":"NoncurrentVersionTransition"},
2957
+ "flattened":true
2958
+ },
2871
2959
  "NotificationConfiguration":{
2872
2960
  "type":"structure",
2873
2961
  "members":{
@@ -2944,7 +3032,10 @@
2944
3032
  "member":{"shape":"ObjectIdentifier"},
2945
3033
  "flattened":true
2946
3034
  },
2947
- "ObjectKey":{"type":"string"},
3035
+ "ObjectKey":{
3036
+ "type":"string",
3037
+ "min":1
3038
+ },
2948
3039
  "ObjectList":{
2949
3040
  "type":"list",
2950
3041
  "member":{"shape":"Object"},
@@ -3090,7 +3181,10 @@
3090
3181
  },
3091
3182
  "PutBucketCorsRequest":{
3092
3183
  "type":"structure",
3093
- "required":["Bucket"],
3184
+ "required":[
3185
+ "Bucket",
3186
+ "CORSConfiguration"
3187
+ ],
3094
3188
  "members":{
3095
3189
  "Bucket":{
3096
3190
  "shape":"BucketName",
@@ -3110,6 +3204,23 @@
3110
3204
  },
3111
3205
  "payload":"CORSConfiguration"
3112
3206
  },
3207
+ "PutBucketLifecycleConfigurationRequest":{
3208
+ "type":"structure",
3209
+ "required":["Bucket"],
3210
+ "members":{
3211
+ "Bucket":{
3212
+ "shape":"BucketName",
3213
+ "location":"uri",
3214
+ "locationName":"Bucket"
3215
+ },
3216
+ "LifecycleConfiguration":{
3217
+ "shape":"BucketLifecycleConfiguration",
3218
+ "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"},
3219
+ "locationName":"LifecycleConfiguration"
3220
+ }
3221
+ },
3222
+ "payload":"LifecycleConfiguration"
3223
+ },
3113
3224
  "PutBucketLifecycleRequest":{
3114
3225
  "type":"structure",
3115
3226
  "required":["Bucket"],
@@ -3860,7 +3971,8 @@
3860
3971
  "type":"string",
3861
3972
  "enum":[
3862
3973
  "STANDARD",
3863
- "REDUCED_REDUNDANCY"
3974
+ "REDUCED_REDUNDANCY",
3975
+ "STANDARD_IA"
3864
3976
  ]
3865
3977
  },
3866
3978
  "Suffix":{"type":"string"},
@@ -3953,9 +4065,17 @@
3953
4065
  "StorageClass":{"shape":"TransitionStorageClass"}
3954
4066
  }
3955
4067
  },
4068
+ "TransitionList":{
4069
+ "type":"list",
4070
+ "member":{"shape":"Transition"},
4071
+ "flattened":true
4072
+ },
3956
4073
  "TransitionStorageClass":{
3957
4074
  "type":"string",
3958
- "enum":["GLACIER"]
4075
+ "enum":[
4076
+ "GLACIER",
4077
+ "STANDARD_IA"
4078
+ ]
3959
4079
  },
3960
4080
  "Type":{
3961
4081
  "type":"string",
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.1.21'
2
+ VERSION = '2.1.22'
3
3
  end
@@ -12,7 +12,7 @@ module Aws
12
12
 
13
13
  def new(parent, ref, result = nil)
14
14
  if self == Frame
15
- frame = frame_class(ref && ref.shape).allocate
15
+ frame = frame_class(ref).allocate
16
16
  frame.send(:initialize, parent, ref, result)
17
17
  frame
18
18
  else
@@ -22,11 +22,11 @@ module Aws
22
22
 
23
23
  private
24
24
 
25
- def frame_class(shape)
26
- klass = FRAME_CLASSES[shape.class]
27
- if ListFrame == klass && shape[:flattened]
25
+ def frame_class(ref)
26
+ klass = FRAME_CLASSES[ref.shape.class]
27
+ if ListFrame == klass && ref[:flattened]
28
28
  FlatListFrame
29
- elsif MapFrame == klass && shape[:flattened]
29
+ elsif MapFrame == klass && ref[:flattened]
30
30
  MapEntryFrame
31
31
  else
32
32
  klass
@@ -24,12 +24,6 @@ module Seahorse
24
24
  # @return [Shape]
25
25
  attr_accessor :shape
26
26
 
27
- # @return [String, nil]
28
- attr_accessor :location
29
-
30
- # @return [String, nil]
31
- attr_accessor :location_name
32
-
33
27
  # @return [Boolean]
34
28
  attr_accessor :required
35
29
 
@@ -39,6 +33,24 @@ module Seahorse
39
33
  # @return [Boolean]
40
34
  attr_accessor :deprecated
41
35
 
36
+ # @return [String, nil]
37
+ def location
38
+ @location || (shape && shape[:location])
39
+ end
40
+
41
+ def location= location
42
+ @location = location
43
+ end
44
+
45
+ # @return [String, nil]
46
+ def location_name
47
+ @location_name || (shape && shape[:location_name])
48
+ end
49
+
50
+ def location_name= location_name
51
+ @location_name = location_name
52
+ end
53
+
42
54
  # Gets metadata for the given `key`.
43
55
  def [](key)
44
56
  if @metadata.key?(key.to_s)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.21
4
+ version: 2.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath