aws-sdk-s3 1.48.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3/bucket.rb +14 -9
- data/lib/aws-sdk-s3/client.rb +161 -144
- data/lib/aws-sdk-s3/client_api.rb +8 -0
- data/lib/aws-sdk-s3/customizations/bucket.rb +4 -0
- data/lib/aws-sdk-s3/customizations/object.rb +65 -43
- data/lib/aws-sdk-s3/encryption/client.rb +4 -0
- data/lib/aws-sdk-s3/file_part.rb +9 -6
- data/lib/aws-sdk-s3/file_uploader.rb +13 -12
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +14 -11
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +59 -0
- data/lib/aws-sdk-s3/plugins/md5s.rb +3 -4
- data/lib/aws-sdk-s3/presigned_post.rb +4 -0
- data/lib/aws-sdk-s3/types.rb +43 -3
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 405e7f5e7a8427ca6cc93230e12617a824d6e5bb
|
|
4
|
+
data.tar.gz: c126a861f72e68802c44ec099d2116668d044a89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5de3b39b07f4aebdcbcd5303960c35d5df0cb4c317b5e45a818c0e45db47bac37bb970750508ce8fcb796fcf0206b651dc46c864ac8bf419ae00538cfdf8977
|
|
7
|
+
data.tar.gz: 3606c43636bb1ca8f629fe35481d080f44ba353610afe8de2bed1094b42f11cccd7f4c417a653f4e537cdff7193025831b02257dad4a039b4f8f7dac9d025f29
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
|
@@ -596,29 +596,34 @@ module Aws::S3
|
|
|
596
596
|
# delimiter: "Delimiter",
|
|
597
597
|
# encoding_type: "url", # accepts url
|
|
598
598
|
# prefix: "Prefix",
|
|
599
|
+
# fetch_owner: false,
|
|
600
|
+
# start_after: "StartAfter",
|
|
599
601
|
# request_payer: "requester", # accepts requester
|
|
600
602
|
# })
|
|
601
603
|
# @param [Hash] options ({})
|
|
602
604
|
# @option options [String] :delimiter
|
|
603
605
|
# A delimiter is a character you use to group keys.
|
|
604
606
|
# @option options [String] :encoding_type
|
|
605
|
-
#
|
|
606
|
-
# specifies the encoding method to use. An object key may contain any
|
|
607
|
-
# Unicode character; however, XML 1.0 parser cannot parse some
|
|
608
|
-
# characters, such as characters with an ASCII value from 0 to 10. For
|
|
609
|
-
# characters that are not supported in XML 1.0, you can add this
|
|
610
|
-
# parameter to request that Amazon S3 encode the keys in the response.
|
|
607
|
+
# Encoding type used by Amazon S3 to encode object keys in the response.
|
|
611
608
|
# @option options [String] :prefix
|
|
612
609
|
# Limits the response to keys that begin with the specified prefix.
|
|
610
|
+
# @option options [Boolean] :fetch_owner
|
|
611
|
+
# The owner field is not present in listV2 by default, if you want to
|
|
612
|
+
# return owner field with each key in the result then set the fetch
|
|
613
|
+
# owner field to true
|
|
614
|
+
# @option options [String] :start_after
|
|
615
|
+
# StartAfter is where you want Amazon S3 to start listing from. Amazon
|
|
616
|
+
# S3 starts listing after this specified key. StartAfter can be any key
|
|
617
|
+
# in the bucket
|
|
613
618
|
# @option options [String] :request_payer
|
|
614
619
|
# Confirms that the requester knows that she or he will be charged for
|
|
615
|
-
# the list objects request. Bucket owners need not specify
|
|
616
|
-
# parameter in their requests.
|
|
620
|
+
# the list objects request in V2 style. Bucket owners need not specify
|
|
621
|
+
# this parameter in their requests.
|
|
617
622
|
# @return [ObjectSummary::Collection]
|
|
618
623
|
def objects(options = {})
|
|
619
624
|
batches = Enumerator.new do |y|
|
|
620
625
|
options = options.merge(bucket: @name)
|
|
621
|
-
resp = @client.
|
|
626
|
+
resp = @client.list_objects_v2(options)
|
|
622
627
|
resp.each_page do |page|
|
|
623
628
|
batch = []
|
|
624
629
|
page.data.contents.each do |c|
|