aws-sdk 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +2 -2
- data/lib/aws/auto_scaling/activity.rb +1 -1
- data/lib/aws/auto_scaling/activity_collection.rb +1 -1
- data/lib/aws/auto_scaling/client.rb +1 -1
- data/lib/aws/auto_scaling/group_options.rb +1 -1
- data/lib/aws/auto_scaling/instance.rb +1 -1
- data/lib/aws/auto_scaling/launch_configuration.rb +1 -1
- data/lib/aws/auto_scaling/notification_configuration.rb +2 -2
- data/lib/aws/auto_scaling/notification_configuration_collection.rb +1 -1
- data/lib/aws/auto_scaling/request.rb +1 -1
- data/lib/aws/auto_scaling/scaling_policy.rb +1 -1
- data/lib/aws/auto_scaling/scaling_policy_options.rb +1 -1
- data/lib/aws/auto_scaling/scheduled_action.rb +1 -1
- data/lib/aws/auto_scaling/scheduled_action_collection.rb +1 -1
- data/lib/aws/auto_scaling/tag.rb +1 -1
- data/lib/aws/auto_scaling/tag_collection.rb +1 -1
- data/lib/aws/cloud_formation/client.rb +1 -1
- data/lib/aws/cloud_formation/request.rb +1 -1
- data/lib/aws/cloud_formation/stack.rb +1 -1
- data/lib/aws/cloud_formation/stack_collection.rb +1 -1
- data/lib/aws/cloud_formation/stack_event.rb +1 -1
- data/lib/aws/cloud_formation/stack_options.rb +1 -1
- data/lib/aws/cloud_formation/stack_output.rb +1 -1
- data/lib/aws/cloud_formation/stack_resource.rb +1 -1
- data/lib/aws/cloud_formation/stack_summary_collection.rb +1 -1
- data/lib/aws/cloud_front/client.rb +1 -1
- data/lib/aws/cloud_front/request.rb +1 -1
- data/lib/aws/cloud_search/client.rb +1 -1
- data/lib/aws/cloud_search/request.rb +1 -1
- data/lib/aws/cloud_watch/alarm.rb +1 -1
- data/lib/aws/cloud_watch/alarm_history_item.rb +1 -1
- data/lib/aws/cloud_watch/alarm_history_item_collection.rb +1 -1
- data/lib/aws/cloud_watch/client.rb +1 -1
- data/lib/aws/cloud_watch/metric_alarm_collection.rb +1 -1
- data/lib/aws/cloud_watch/metric_collection.rb +1 -1
- data/lib/aws/cloud_watch/request.rb +1 -1
- data/lib/aws/core.rb +5 -5
- data/lib/aws/core/cacheable.rb +5 -5
- data/lib/aws/core/client.rb +11 -11
- data/lib/aws/core/configuration.rb +4 -4
- data/lib/aws/core/credential_providers.rb +3 -3
- data/lib/aws/core/data.rb +4 -4
- data/lib/aws/core/http/connection_pool.rb +6 -5
- data/lib/aws/core/http/curb_handler.rb +1 -1
- data/lib/aws/core/http/handler.rb +1 -1
- data/lib/aws/core/http/net_http_handler.rb +3 -2
- data/lib/aws/core/http/patch.rb +2 -2
- data/lib/aws/core/http/request.rb +8 -8
- data/lib/aws/core/indifferent_hash.rb +1 -1
- data/lib/aws/core/inflection.rb +1 -1
- data/lib/aws/core/json_parser.rb +1 -1
- data/lib/aws/core/json_request_builder.rb +1 -1
- data/lib/aws/core/json_response_parser.rb +1 -1
- data/lib/aws/core/lazy_error_classes.rb +1 -1
- data/lib/aws/core/log_formatter.rb +1 -1
- data/lib/aws/core/managed_file.rb +1 -1
- data/lib/aws/core/meta_utils.rb +1 -1
- data/lib/aws/core/model.rb +2 -2
- data/lib/aws/core/naming.rb +1 -1
- data/lib/aws/core/option_grammar.rb +17 -17
- data/lib/aws/core/policy.rb +32 -32
- data/lib/aws/core/query_error_parser.rb +1 -1
- data/lib/aws/core/query_request_builder.rb +1 -1
- data/lib/aws/core/query_response_parser.rb +1 -1
- data/lib/aws/core/region_collection.rb +3 -3
- data/lib/aws/core/resource.rb +25 -25
- data/lib/aws/core/resource_cache.rb +1 -1
- data/lib/aws/core/response.rb +4 -4
- data/lib/aws/core/response_cache.rb +1 -1
- data/lib/aws/core/rest_error_parser.rb +1 -1
- data/lib/aws/core/rest_request_builder.rb +1 -1
- data/lib/aws/core/rest_response_parser.rb +1 -1
- data/lib/aws/core/service_interface.rb +2 -2
- data/lib/aws/core/xml/frame_stack.rb +1 -1
- data/lib/aws/data_pipeline/client.rb +1 -1
- data/lib/aws/data_pipeline/request.rb +1 -1
- data/lib/aws/direct_connect/client.rb +1 -1
- data/lib/aws/direct_connect/errors.rb +1 -1
- data/lib/aws/direct_connect/request.rb +1 -1
- data/lib/aws/dynamo_db/attribute_collection.rb +3 -3
- data/lib/aws/dynamo_db/item.rb +2 -2
- data/lib/aws/dynamo_db/item_collection.rb +5 -5
- data/lib/aws/dynamo_db/keys.rb +1 -1
- data/lib/aws/dynamo_db/request.rb +1 -1
- data/lib/aws/dynamo_db/resource.rb +1 -1
- data/lib/aws/dynamo_db/table.rb +1 -1
- data/lib/aws/dynamo_db/table_collection.rb +1 -1
- data/lib/aws/dynamo_db/types.rb +1 -1
- data/lib/aws/ec2/attachment.rb +1 -1
- data/lib/aws/ec2/attachment_collection.rb +1 -1
- data/lib/aws/ec2/availability_zone_collection.rb +1 -1
- data/lib/aws/ec2/block_device_mappings.rb +2 -2
- data/lib/aws/ec2/client.rb +1 -1
- data/lib/aws/ec2/config_transform.rb +1 -1
- data/lib/aws/ec2/customer_gateway.rb +1 -1
- data/lib/aws/ec2/dhcp_options.rb +1 -1
- data/lib/aws/ec2/elastic_ip.rb +4 -4
- data/lib/aws/ec2/errors.rb +1 -1
- data/lib/aws/ec2/export_task.rb +1 -1
- data/lib/aws/ec2/filtered_collection.rb +3 -3
- data/lib/aws/ec2/image.rb +1 -1
- data/lib/aws/ec2/image_collection.rb +3 -3
- data/lib/aws/ec2/instance.rb +7 -7
- data/lib/aws/ec2/instance_collection.rb +3 -3
- data/lib/aws/ec2/internet_gateway/attachment.rb +1 -1
- data/lib/aws/ec2/key_pair_collection.rb +2 -2
- data/lib/aws/ec2/permission_collection.rb +10 -10
- data/lib/aws/ec2/region_collection.rb +1 -1
- data/lib/aws/ec2/request.rb +1 -1
- data/lib/aws/ec2/resource.rb +3 -3
- data/lib/aws/ec2/resource_tag_collection.rb +1 -1
- data/lib/aws/ec2/route_table/association.rb +1 -1
- data/lib/aws/ec2/security_group.rb +9 -9
- data/lib/aws/ec2/snapshot.rb +2 -2
- data/lib/aws/ec2/snapshot_collection.rb +3 -3
- data/lib/aws/ec2/tag.rb +2 -2
- data/lib/aws/ec2/tag_collection.rb +3 -3
- data/lib/aws/ec2/tagged_item.rb +2 -2
- data/lib/aws/ec2/volume.rb +1 -1
- data/lib/aws/ec2/volume_collection.rb +1 -1
- data/lib/aws/ec2/vpn_connection.rb +1 -1
- data/lib/aws/ec2/vpn_gateway/attachment.rb +1 -1
- data/lib/aws/elastic_beanstalk/client.rb +1 -1
- data/lib/aws/elastic_beanstalk/request.rb +1 -1
- data/lib/aws/elastic_transcoder/client.rb +2 -2
- data/lib/aws/elastic_transcoder/request.rb +1 -1
- data/lib/aws/elasticache/client.rb +1 -1
- data/lib/aws/elasticache/request.rb +1 -1
- data/lib/aws/elb/client.rb +1 -1
- data/lib/aws/elb/listener.rb +2 -2
- data/lib/aws/elb/listener_opts.rb +1 -1
- data/lib/aws/elb/load_balancer_policy.rb +1 -1
- data/lib/aws/elb/request.rb +1 -1
- data/lib/aws/emr/client.rb +1 -1
- data/lib/aws/emr/instance_group.rb +1 -1
- data/lib/aws/emr/instance_group_collection.rb +1 -1
- data/lib/aws/emr/job_flow.rb +1 -1
- data/lib/aws/emr/job_flow_collection.rb +1 -1
- data/lib/aws/emr/request.rb +1 -1
- data/lib/aws/errors.rb +1 -1
- data/lib/aws/glacier/client.rb +1 -1
- data/lib/aws/glacier/request.rb +1 -1
- data/lib/aws/glacier/resource.rb +1 -1
- data/lib/aws/iam.rb +1 -1
- data/lib/aws/iam/access_key.rb +3 -3
- data/lib/aws/iam/access_key_collection.rb +2 -2
- data/lib/aws/iam/account_alias_collection.rb +3 -3
- data/lib/aws/iam/client.rb +1 -1
- data/lib/aws/iam/collection.rb +1 -1
- data/lib/aws/iam/group.rb +2 -2
- data/lib/aws/iam/group_collection.rb +1 -1
- data/lib/aws/iam/group_policy_collection.rb +1 -1
- data/lib/aws/iam/group_user_collection.rb +2 -2
- data/lib/aws/iam/login_profile.rb +1 -1
- data/lib/aws/iam/mfa_device_collection.rb +1 -1
- data/lib/aws/iam/request.rb +1 -1
- data/lib/aws/iam/resource.rb +2 -2
- data/lib/aws/iam/server_certificate.rb +2 -2
- data/lib/aws/iam/server_certificate_collection.rb +1 -1
- data/lib/aws/iam/signing_certificate.rb +3 -3
- data/lib/aws/iam/signing_certificate_collection.rb +2 -2
- data/lib/aws/iam/user.rb +1 -1
- data/lib/aws/iam/user_collection.rb +1 -1
- data/lib/aws/iam/user_group_collection.rb +3 -3
- data/lib/aws/iam/user_policy.rb +1 -1
- data/lib/aws/iam/virtual_mfa_device.rb +1 -1
- data/lib/aws/import_export/client.rb +1 -1
- data/lib/aws/import_export/request.rb +1 -1
- data/lib/aws/ops_works/client.rb +1 -1
- data/lib/aws/ops_works/request.rb +1 -1
- data/lib/aws/rails.rb +4 -4
- data/lib/aws/rds/client.rb +1 -1
- data/lib/aws/rds/db_snapshot_collection.rb +1 -1
- data/lib/aws/rds/request.rb +1 -1
- data/lib/aws/record.rb +3 -3
- data/lib/aws/record/abstract_base.rb +4 -4
- data/lib/aws/record/attributes.rb +7 -7
- data/lib/aws/record/conversion.rb +4 -4
- data/lib/aws/record/dirty_tracking.rb +5 -5
- data/lib/aws/record/exceptions.rb +3 -3
- data/lib/aws/record/hash_model.rb +2 -2
- data/lib/aws/record/model.rb +6 -6
- data/lib/aws/record/model/scope.rb +5 -5
- data/lib/aws/record/naming.rb +2 -2
- data/lib/aws/record/scope.rb +7 -7
- data/lib/aws/record/validations.rb +1 -1
- data/lib/aws/record/validator.rb +14 -14
- data/lib/aws/record/validators/acceptance.rb +1 -1
- data/lib/aws/record/validators/block.rb +1 -1
- data/lib/aws/record/validators/confirmation.rb +1 -1
- data/lib/aws/record/validators/count.rb +4 -4
- data/lib/aws/record/validators/exclusion.rb +1 -1
- data/lib/aws/record/validators/format.rb +1 -1
- data/lib/aws/record/validators/inclusion.rb +1 -1
- data/lib/aws/record/validators/length.rb +4 -4
- data/lib/aws/record/validators/method.rb +1 -1
- data/lib/aws/record/validators/numericality.rb +1 -1
- data/lib/aws/record/validators/presence.rb +1 -1
- data/lib/aws/redshift/client.rb +1 -1
- data/lib/aws/redshift/request.rb +1 -1
- data/lib/aws/route_53/change_batch.rb +2 -2
- data/lib/aws/route_53/change_info.rb +1 -1
- data/lib/aws/route_53/client.rb +1 -1
- data/lib/aws/route_53/hosted_zone.rb +1 -1
- data/lib/aws/route_53/hosted_zone_collection.rb +1 -1
- data/lib/aws/route_53/request.rb +1 -1
- data/lib/aws/route_53/resource_record_set.rb +1 -1
- data/lib/aws/route_53/resource_record_set_collection.rb +1 -1
- data/lib/aws/s3/access_control_list.rb +7 -7
- data/lib/aws/s3/acl_object.rb +6 -6
- data/lib/aws/s3/acl_options.rb +1 -1
- data/lib/aws/s3/bucket.rb +3 -3
- data/lib/aws/s3/bucket_collection.rb +1 -1
- data/lib/aws/s3/bucket_lifecycle_configuration.rb +3 -3
- data/lib/aws/s3/bucket_tag_collection.rb +1 -1
- data/lib/aws/s3/bucket_version_collection.rb +4 -4
- data/lib/aws/s3/cipher_io.rb +1 -1
- data/lib/aws/s3/client.rb +2 -2
- data/lib/aws/s3/client/xml.rb +1 -1
- data/lib/aws/s3/data_options.rb +2 -2
- data/lib/aws/s3/encryption_utils.rb +1 -1
- data/lib/aws/s3/errors.rb +1 -1
- data/lib/aws/s3/multipart_upload.rb +5 -5
- data/lib/aws/s3/multipart_upload_collection.rb +1 -1
- data/lib/aws/s3/object_collection.rb +5 -5
- data/lib/aws/s3/object_upload_collection.rb +1 -1
- data/lib/aws/s3/object_version.rb +1 -1
- data/lib/aws/s3/paginated_collection.rb +1 -1
- data/lib/aws/s3/prefix_and_delimiter_collection.rb +3 -3
- data/lib/aws/s3/prefixed_collection.rb +2 -2
- data/lib/aws/s3/presigned_post.rb +18 -18
- data/lib/aws/s3/request.rb +2 -2
- data/lib/aws/s3/s3_object.rb +3 -3
- data/lib/aws/s3/tree/branch_node.rb +1 -1
- data/lib/aws/s3/tree/child_collection.rb +1 -1
- data/lib/aws/s3/tree/leaf_node.rb +1 -1
- data/lib/aws/s3/tree/node.rb +1 -1
- data/lib/aws/s3/tree/parent.rb +1 -1
- data/lib/aws/s3/uploaded_part.rb +2 -2
- data/lib/aws/s3/uploaded_part_collection.rb +6 -6
- data/lib/aws/s3/website_configuration.rb +4 -4
- data/lib/aws/simple_db.rb +2 -2
- data/lib/aws/simple_db/attribute.rb +2 -2
- data/lib/aws/simple_db/client.rb +6 -6
- data/lib/aws/simple_db/consistent_read_option.rb +1 -1
- data/lib/aws/simple_db/delete_attributes.rb +3 -3
- data/lib/aws/simple_db/domain.rb +2 -2
- data/lib/aws/simple_db/domain_metadata.rb +1 -1
- data/lib/aws/simple_db/errors.rb +2 -2
- data/lib/aws/simple_db/expect_condition_option.rb +2 -2
- data/lib/aws/simple_db/item_collection.rb +17 -17
- data/lib/aws/simple_db/item_data.rb +1 -1
- data/lib/aws/simple_db/put_attributes.rb +3 -3
- data/lib/aws/simple_db/request.rb +1 -1
- data/lib/aws/simple_email_service.rb +3 -3
- data/lib/aws/simple_email_service/client.rb +1 -1
- data/lib/aws/simple_email_service/identity.rb +1 -1
- data/lib/aws/simple_email_service/identity_collection.rb +1 -1
- data/lib/aws/simple_email_service/quotas.rb +1 -1
- data/lib/aws/simple_email_service/request.rb +1 -1
- data/lib/aws/simple_workflow/activity_task.rb +1 -1
- data/lib/aws/simple_workflow/activity_task_collection.rb +1 -1
- data/lib/aws/simple_workflow/client.rb +1 -1
- data/lib/aws/simple_workflow/count.rb +1 -1
- data/lib/aws/simple_workflow/decision_task.rb +1 -1
- data/lib/aws/simple_workflow/decision_task_collection.rb +1 -1
- data/lib/aws/simple_workflow/domain.rb +1 -1
- data/lib/aws/simple_workflow/history_event.rb +3 -3
- data/lib/aws/simple_workflow/option_formatters.rb +1 -1
- data/lib/aws/simple_workflow/request.rb +1 -1
- data/lib/aws/simple_workflow/resource.rb +8 -8
- data/lib/aws/simple_workflow/type_collection.rb +1 -1
- data/lib/aws/simple_workflow/workflow_execution_collection.rb +2 -2
- data/lib/aws/sns/client.rb +1 -1
- data/lib/aws/sns/request.rb +1 -1
- data/lib/aws/sns/subscription.rb +2 -2
- data/lib/aws/sns/topic.rb +3 -3
- data/lib/aws/sns/topic_subscription_collection.rb +1 -1
- data/lib/aws/sqs/client.rb +1 -1
- data/lib/aws/sqs/errors.rb +1 -1
- data/lib/aws/sqs/queue.rb +8 -8
- data/lib/aws/sqs/queue_collection.rb +1 -1
- data/lib/aws/sqs/received_message.rb +3 -3
- data/lib/aws/sqs/request.rb +1 -1
- data/lib/aws/storage_gateway/client.rb +1 -1
- data/lib/aws/storage_gateway/request.rb +1 -1
- data/lib/aws/sts/client.rb +1 -1
- data/lib/aws/sts/federated_session.rb +1 -1
- data/lib/aws/sts/request.rb +1 -1
- data/lib/aws/sts/session.rb +1 -1
- data/lib/aws/version.rb +1 -1
- metadata +16 -8
- checksums.yaml +0 -7
@@ -282,7 +282,7 @@ module AWS
|
|
282
282
|
super
|
283
283
|
end
|
284
284
|
|
285
|
-
# @private
|
285
|
+
# @api private
|
286
286
|
protected
|
287
287
|
def each_member_in_page(page, &block)
|
288
288
|
super
|
@@ -291,19 +291,19 @@ module AWS
|
|
291
291
|
end
|
292
292
|
end
|
293
293
|
|
294
|
-
# @private
|
294
|
+
# @api private
|
295
295
|
protected
|
296
296
|
def list_request options
|
297
297
|
client.list_objects(options)
|
298
298
|
end
|
299
299
|
|
300
|
-
# @private
|
300
|
+
# @api private
|
301
301
|
protected
|
302
302
|
def limit_param
|
303
303
|
:max_keys
|
304
304
|
end
|
305
305
|
|
306
|
-
# @private
|
306
|
+
# @api private
|
307
307
|
protected
|
308
308
|
def next_markers page
|
309
309
|
marker = (last = page.contents.last and last.key)
|
@@ -315,7 +315,7 @@ module AWS
|
|
315
315
|
end
|
316
316
|
|
317
317
|
# processes items in batches of 1k items
|
318
|
-
# @private
|
318
|
+
# @api private
|
319
319
|
class BatchHelper
|
320
320
|
|
321
321
|
def initialize batch_size, &block
|
@@ -14,7 +14,7 @@
|
|
14
14
|
module AWS
|
15
15
|
class S3
|
16
16
|
|
17
|
-
# @private
|
17
|
+
# @api private
|
18
18
|
module PrefixAndDelimiterCollection
|
19
19
|
|
20
20
|
include PrefixedCollection
|
@@ -24,7 +24,7 @@ module AWS
|
|
24
24
|
Tree.new(self, { :prefix => prefix }.merge(options))
|
25
25
|
end
|
26
26
|
|
27
|
-
# @private
|
27
|
+
# @api private
|
28
28
|
protected
|
29
29
|
def each_member_in_page(page, &block)
|
30
30
|
super
|
@@ -33,7 +33,7 @@ module AWS
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
# @private
|
36
|
+
# @api private
|
37
37
|
protected
|
38
38
|
def list_options(options)
|
39
39
|
opts = super
|
@@ -18,7 +18,7 @@ module AWS
|
|
18
18
|
|
19
19
|
include PaginatedCollection
|
20
20
|
|
21
|
-
# @private
|
21
|
+
# @api private
|
22
22
|
def initialize *args
|
23
23
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
24
24
|
@prefix = options[:prefix]
|
@@ -72,7 +72,7 @@ module AWS
|
|
72
72
|
self.class.new(bucket, :prefix => new_prefix)
|
73
73
|
end
|
74
74
|
|
75
|
-
# @private
|
75
|
+
# @api private
|
76
76
|
protected
|
77
77
|
def list_options(options)
|
78
78
|
opts = super
|
@@ -74,7 +74,7 @@ module AWS
|
|
74
74
|
# upload. By default any size object may be uploaded.
|
75
75
|
attr_reader :content_length
|
76
76
|
|
77
|
-
# @private
|
77
|
+
# @api private
|
78
78
|
SPECIAL_FIELDS = [:cache_control,
|
79
79
|
:content_type,
|
80
80
|
:content_disposition,
|
@@ -86,7 +86,7 @@ module AWS
|
|
86
86
|
:success_action_status,
|
87
87
|
:filename]
|
88
88
|
|
89
|
-
# @private
|
89
|
+
# @api private
|
90
90
|
attr_reader :conditions
|
91
91
|
|
92
92
|
# @return [Array<String>] Additional fields which may be sent
|
@@ -238,7 +238,7 @@ module AWS
|
|
238
238
|
# {PresignedPost#where} for usage examples.
|
239
239
|
class ConditionBuilder
|
240
240
|
|
241
|
-
# @private
|
241
|
+
# @api private
|
242
242
|
def initialize(post, field)
|
243
243
|
@post = post
|
244
244
|
@field = field
|
@@ -362,20 +362,20 @@ module AWS
|
|
362
362
|
|
363
363
|
end
|
364
364
|
|
365
|
-
# @private
|
365
|
+
# @api private
|
366
366
|
def with_equality_condition(option_name, value)
|
367
367
|
field_name = field_name(option_name)
|
368
368
|
with_condition(option_name, Hash[[[field_name, value]]])
|
369
369
|
end
|
370
370
|
|
371
|
-
# @private
|
371
|
+
# @api private
|
372
372
|
def with_prefix_condition(option_name, prefix)
|
373
373
|
field_name = field_name(option_name)
|
374
374
|
with_condition(option_name,
|
375
375
|
["starts-with", "$#{field_name}", prefix])
|
376
376
|
end
|
377
377
|
|
378
|
-
# @private
|
378
|
+
# @api private
|
379
379
|
def refine(opts)
|
380
380
|
self.class.new(bucket, {
|
381
381
|
:conditions => conditions,
|
@@ -389,7 +389,7 @@ module AWS
|
|
389
389
|
merge(opts))
|
390
390
|
end
|
391
391
|
|
392
|
-
# @private
|
392
|
+
# @api private
|
393
393
|
private
|
394
394
|
def with_condition(field, condition)
|
395
395
|
conditions = self.conditions.dup
|
@@ -397,7 +397,7 @@ module AWS
|
|
397
397
|
refine(:conditions => conditions)
|
398
398
|
end
|
399
399
|
|
400
|
-
# @private
|
400
|
+
# @api private
|
401
401
|
private
|
402
402
|
def format_expiration
|
403
403
|
time = expires || Time.now.utc + 60*60
|
@@ -415,7 +415,7 @@ module AWS
|
|
415
415
|
time.utc.iso8601
|
416
416
|
end
|
417
417
|
|
418
|
-
# @private
|
418
|
+
# @api private
|
419
419
|
private
|
420
420
|
def range_value(range)
|
421
421
|
case range
|
@@ -426,7 +426,7 @@ module AWS
|
|
426
426
|
end
|
427
427
|
end
|
428
428
|
|
429
|
-
# @private
|
429
|
+
# @api private
|
430
430
|
private
|
431
431
|
def split_range(range)
|
432
432
|
range = range_value(range)
|
@@ -436,7 +436,7 @@ module AWS
|
|
436
436
|
range.end)]
|
437
437
|
end
|
438
438
|
|
439
|
-
# @private
|
439
|
+
# @api private
|
440
440
|
private
|
441
441
|
def optional_fields
|
442
442
|
fields = (SPECIAL_FIELDS &
|
@@ -453,7 +453,7 @@ module AWS
|
|
453
453
|
fields
|
454
454
|
end
|
455
455
|
|
456
|
-
# @private
|
456
|
+
# @api private
|
457
457
|
private
|
458
458
|
def field_name(option_name)
|
459
459
|
case option_name
|
@@ -472,7 +472,7 @@ module AWS
|
|
472
472
|
end
|
473
473
|
end
|
474
474
|
|
475
|
-
# @private
|
475
|
+
# @api private
|
476
476
|
private
|
477
477
|
def field_value(option_name)
|
478
478
|
case option_name
|
@@ -490,7 +490,7 @@ module AWS
|
|
490
490
|
end
|
491
491
|
end
|
492
492
|
|
493
|
-
# @private
|
493
|
+
# @api private
|
494
494
|
private
|
495
495
|
def generate_conditions
|
496
496
|
|
@@ -512,7 +512,7 @@ module AWS
|
|
512
512
|
|
513
513
|
end
|
514
514
|
|
515
|
-
# @private
|
515
|
+
# @api private
|
516
516
|
private
|
517
517
|
def ignored_conditions
|
518
518
|
ignored_fields.map do |field|
|
@@ -520,7 +520,7 @@ module AWS
|
|
520
520
|
end
|
521
521
|
end
|
522
522
|
|
523
|
-
# @private
|
523
|
+
# @api private
|
524
524
|
private
|
525
525
|
def range_conditions
|
526
526
|
if content_length
|
@@ -530,7 +530,7 @@ module AWS
|
|
530
530
|
end
|
531
531
|
end
|
532
532
|
|
533
|
-
# @private
|
533
|
+
# @api private
|
534
534
|
private
|
535
535
|
def key_conditions
|
536
536
|
[if key && key.include?("${filename}")
|
@@ -542,7 +542,7 @@ module AWS
|
|
542
542
|
end]
|
543
543
|
end
|
544
544
|
|
545
|
-
# @private
|
545
|
+
# @api private
|
546
546
|
private
|
547
547
|
def build_uri(request)
|
548
548
|
uri_class = secure? ? URI::HTTPS : URI::HTTP
|
data/lib/aws/s3/request.rb
CHANGED
@@ -17,7 +17,7 @@ require 'time'
|
|
17
17
|
module AWS
|
18
18
|
class S3
|
19
19
|
|
20
|
-
# @private
|
20
|
+
# @api private
|
21
21
|
class Request < Core::Http::Request
|
22
22
|
|
23
23
|
include Core::UriEscape
|
@@ -28,7 +28,7 @@ module AWS
|
|
28
28
|
# @return [String] S3 object key
|
29
29
|
attr_accessor :key
|
30
30
|
|
31
|
-
# @private
|
31
|
+
# @api private
|
32
32
|
attr_accessor :force_path_style
|
33
33
|
|
34
34
|
def metadata= metadata
|
data/lib/aws/s3/s3_object.rb
CHANGED
@@ -254,7 +254,7 @@ module AWS
|
|
254
254
|
# @return [Bucket] The bucket this object is in.
|
255
255
|
attr_reader :bucket
|
256
256
|
|
257
|
-
# @private
|
257
|
+
# @api private
|
258
258
|
def inspect
|
259
259
|
"<#{self.class}:#{bucket.name}/#{key}>"
|
260
260
|
end
|
@@ -1067,7 +1067,7 @@ module AWS
|
|
1067
1067
|
|
1068
1068
|
end
|
1069
1069
|
|
1070
|
-
# @private
|
1070
|
+
# @api private
|
1071
1071
|
module ACLProxy
|
1072
1072
|
|
1073
1073
|
attr_accessor :object
|
@@ -1125,7 +1125,7 @@ module AWS
|
|
1125
1125
|
|
1126
1126
|
end
|
1127
1127
|
|
1128
|
-
# @private
|
1128
|
+
# @api private
|
1129
1129
|
REQUEST_PARAMETERS = Request.query_parameters.map do |p|
|
1130
1130
|
p.tr("-","_").to_sym
|
1131
1131
|
end
|
data/lib/aws/s3/tree/node.rb
CHANGED
data/lib/aws/s3/tree/parent.rb
CHANGED
data/lib/aws/s3/uploaded_part.rb
CHANGED
@@ -29,7 +29,7 @@ module AWS
|
|
29
29
|
# @return [Integer] The part number.
|
30
30
|
attr_reader :part_number
|
31
31
|
|
32
|
-
# @private
|
32
|
+
# @api private
|
33
33
|
def initialize(upload, part_number, opts = {})
|
34
34
|
@upload = upload
|
35
35
|
@part_number = part_number
|
@@ -60,7 +60,7 @@ module AWS
|
|
60
60
|
get_attribute(:etag)
|
61
61
|
end
|
62
62
|
|
63
|
-
# @private
|
63
|
+
# @api private
|
64
64
|
private
|
65
65
|
def get_attribute(name)
|
66
66
|
(resp = client.list_parts(:bucket_name => upload.object.bucket.name,
|
@@ -29,7 +29,7 @@ module AWS
|
|
29
29
|
# @return [MultipartUpload] The upload to which the parts belong.
|
30
30
|
attr_reader :upload
|
31
31
|
|
32
|
-
# @private
|
32
|
+
# @api private
|
33
33
|
def initialize(upload, opts = {})
|
34
34
|
@upload = upload
|
35
35
|
super
|
@@ -43,7 +43,7 @@ module AWS
|
|
43
43
|
UploadedPart.new(upload, number)
|
44
44
|
end
|
45
45
|
|
46
|
-
# @private
|
46
|
+
# @api private
|
47
47
|
protected
|
48
48
|
def each_member_in_page(page, &block)
|
49
49
|
page.parts.each do |part_info|
|
@@ -52,7 +52,7 @@ module AWS
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
# @private
|
55
|
+
# @api private
|
56
56
|
protected
|
57
57
|
def list_options(options)
|
58
58
|
opts = super
|
@@ -62,17 +62,17 @@ module AWS
|
|
62
62
|
opts
|
63
63
|
end
|
64
64
|
|
65
|
-
# @private
|
65
|
+
# @api private
|
66
66
|
protected
|
67
67
|
def limit_param; :max_parts; end
|
68
68
|
|
69
|
-
# @private
|
69
|
+
# @api private
|
70
70
|
protected
|
71
71
|
def list_request(options)
|
72
72
|
client.list_parts(options)
|
73
73
|
end
|
74
74
|
|
75
|
-
# @private
|
75
|
+
# @api private
|
76
76
|
protected
|
77
77
|
def pagination_markers
|
78
78
|
[:part_number_marker]
|
@@ -63,13 +63,13 @@ module AWS
|
|
63
63
|
|
64
64
|
# This method exists for backwards compatability.
|
65
65
|
# @return [String,nil]
|
66
|
-
# @private
|
66
|
+
# @api private
|
67
67
|
def index_document_suffix
|
68
68
|
(@options[:index_document] || {})[:suffix]
|
69
69
|
end
|
70
70
|
|
71
71
|
# This method exists for backwards compatability.
|
72
|
-
# @private
|
72
|
+
# @api private
|
73
73
|
def index_document_suffix= suffix
|
74
74
|
@options.delete(:redirect_all_requests_to)
|
75
75
|
@options[:index_document] ||= {}
|
@@ -78,13 +78,13 @@ module AWS
|
|
78
78
|
|
79
79
|
# This method exists for backwards compatability.
|
80
80
|
# @return [String,nil]
|
81
|
-
# @private
|
81
|
+
# @api private
|
82
82
|
def error_document_key
|
83
83
|
(@options[:error_document] || {})[:key]
|
84
84
|
end
|
85
85
|
|
86
86
|
# This method exists for backwards compatability.
|
87
|
-
# @private
|
87
|
+
# @api private
|
88
88
|
def error_document_key= key
|
89
89
|
@options.delete(:redirect_all_requests_to)
|
90
90
|
@options[:error_document] ||= {}
|