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.
Files changed (293) hide show
  1. data/.yardopts +2 -2
  2. data/lib/aws/auto_scaling/activity.rb +1 -1
  3. data/lib/aws/auto_scaling/activity_collection.rb +1 -1
  4. data/lib/aws/auto_scaling/client.rb +1 -1
  5. data/lib/aws/auto_scaling/group_options.rb +1 -1
  6. data/lib/aws/auto_scaling/instance.rb +1 -1
  7. data/lib/aws/auto_scaling/launch_configuration.rb +1 -1
  8. data/lib/aws/auto_scaling/notification_configuration.rb +2 -2
  9. data/lib/aws/auto_scaling/notification_configuration_collection.rb +1 -1
  10. data/lib/aws/auto_scaling/request.rb +1 -1
  11. data/lib/aws/auto_scaling/scaling_policy.rb +1 -1
  12. data/lib/aws/auto_scaling/scaling_policy_options.rb +1 -1
  13. data/lib/aws/auto_scaling/scheduled_action.rb +1 -1
  14. data/lib/aws/auto_scaling/scheduled_action_collection.rb +1 -1
  15. data/lib/aws/auto_scaling/tag.rb +1 -1
  16. data/lib/aws/auto_scaling/tag_collection.rb +1 -1
  17. data/lib/aws/cloud_formation/client.rb +1 -1
  18. data/lib/aws/cloud_formation/request.rb +1 -1
  19. data/lib/aws/cloud_formation/stack.rb +1 -1
  20. data/lib/aws/cloud_formation/stack_collection.rb +1 -1
  21. data/lib/aws/cloud_formation/stack_event.rb +1 -1
  22. data/lib/aws/cloud_formation/stack_options.rb +1 -1
  23. data/lib/aws/cloud_formation/stack_output.rb +1 -1
  24. data/lib/aws/cloud_formation/stack_resource.rb +1 -1
  25. data/lib/aws/cloud_formation/stack_summary_collection.rb +1 -1
  26. data/lib/aws/cloud_front/client.rb +1 -1
  27. data/lib/aws/cloud_front/request.rb +1 -1
  28. data/lib/aws/cloud_search/client.rb +1 -1
  29. data/lib/aws/cloud_search/request.rb +1 -1
  30. data/lib/aws/cloud_watch/alarm.rb +1 -1
  31. data/lib/aws/cloud_watch/alarm_history_item.rb +1 -1
  32. data/lib/aws/cloud_watch/alarm_history_item_collection.rb +1 -1
  33. data/lib/aws/cloud_watch/client.rb +1 -1
  34. data/lib/aws/cloud_watch/metric_alarm_collection.rb +1 -1
  35. data/lib/aws/cloud_watch/metric_collection.rb +1 -1
  36. data/lib/aws/cloud_watch/request.rb +1 -1
  37. data/lib/aws/core.rb +5 -5
  38. data/lib/aws/core/cacheable.rb +5 -5
  39. data/lib/aws/core/client.rb +11 -11
  40. data/lib/aws/core/configuration.rb +4 -4
  41. data/lib/aws/core/credential_providers.rb +3 -3
  42. data/lib/aws/core/data.rb +4 -4
  43. data/lib/aws/core/http/connection_pool.rb +6 -5
  44. data/lib/aws/core/http/curb_handler.rb +1 -1
  45. data/lib/aws/core/http/handler.rb +1 -1
  46. data/lib/aws/core/http/net_http_handler.rb +3 -2
  47. data/lib/aws/core/http/patch.rb +2 -2
  48. data/lib/aws/core/http/request.rb +8 -8
  49. data/lib/aws/core/indifferent_hash.rb +1 -1
  50. data/lib/aws/core/inflection.rb +1 -1
  51. data/lib/aws/core/json_parser.rb +1 -1
  52. data/lib/aws/core/json_request_builder.rb +1 -1
  53. data/lib/aws/core/json_response_parser.rb +1 -1
  54. data/lib/aws/core/lazy_error_classes.rb +1 -1
  55. data/lib/aws/core/log_formatter.rb +1 -1
  56. data/lib/aws/core/managed_file.rb +1 -1
  57. data/lib/aws/core/meta_utils.rb +1 -1
  58. data/lib/aws/core/model.rb +2 -2
  59. data/lib/aws/core/naming.rb +1 -1
  60. data/lib/aws/core/option_grammar.rb +17 -17
  61. data/lib/aws/core/policy.rb +32 -32
  62. data/lib/aws/core/query_error_parser.rb +1 -1
  63. data/lib/aws/core/query_request_builder.rb +1 -1
  64. data/lib/aws/core/query_response_parser.rb +1 -1
  65. data/lib/aws/core/region_collection.rb +3 -3
  66. data/lib/aws/core/resource.rb +25 -25
  67. data/lib/aws/core/resource_cache.rb +1 -1
  68. data/lib/aws/core/response.rb +4 -4
  69. data/lib/aws/core/response_cache.rb +1 -1
  70. data/lib/aws/core/rest_error_parser.rb +1 -1
  71. data/lib/aws/core/rest_request_builder.rb +1 -1
  72. data/lib/aws/core/rest_response_parser.rb +1 -1
  73. data/lib/aws/core/service_interface.rb +2 -2
  74. data/lib/aws/core/xml/frame_stack.rb +1 -1
  75. data/lib/aws/data_pipeline/client.rb +1 -1
  76. data/lib/aws/data_pipeline/request.rb +1 -1
  77. data/lib/aws/direct_connect/client.rb +1 -1
  78. data/lib/aws/direct_connect/errors.rb +1 -1
  79. data/lib/aws/direct_connect/request.rb +1 -1
  80. data/lib/aws/dynamo_db/attribute_collection.rb +3 -3
  81. data/lib/aws/dynamo_db/item.rb +2 -2
  82. data/lib/aws/dynamo_db/item_collection.rb +5 -5
  83. data/lib/aws/dynamo_db/keys.rb +1 -1
  84. data/lib/aws/dynamo_db/request.rb +1 -1
  85. data/lib/aws/dynamo_db/resource.rb +1 -1
  86. data/lib/aws/dynamo_db/table.rb +1 -1
  87. data/lib/aws/dynamo_db/table_collection.rb +1 -1
  88. data/lib/aws/dynamo_db/types.rb +1 -1
  89. data/lib/aws/ec2/attachment.rb +1 -1
  90. data/lib/aws/ec2/attachment_collection.rb +1 -1
  91. data/lib/aws/ec2/availability_zone_collection.rb +1 -1
  92. data/lib/aws/ec2/block_device_mappings.rb +2 -2
  93. data/lib/aws/ec2/client.rb +1 -1
  94. data/lib/aws/ec2/config_transform.rb +1 -1
  95. data/lib/aws/ec2/customer_gateway.rb +1 -1
  96. data/lib/aws/ec2/dhcp_options.rb +1 -1
  97. data/lib/aws/ec2/elastic_ip.rb +4 -4
  98. data/lib/aws/ec2/errors.rb +1 -1
  99. data/lib/aws/ec2/export_task.rb +1 -1
  100. data/lib/aws/ec2/filtered_collection.rb +3 -3
  101. data/lib/aws/ec2/image.rb +1 -1
  102. data/lib/aws/ec2/image_collection.rb +3 -3
  103. data/lib/aws/ec2/instance.rb +7 -7
  104. data/lib/aws/ec2/instance_collection.rb +3 -3
  105. data/lib/aws/ec2/internet_gateway/attachment.rb +1 -1
  106. data/lib/aws/ec2/key_pair_collection.rb +2 -2
  107. data/lib/aws/ec2/permission_collection.rb +10 -10
  108. data/lib/aws/ec2/region_collection.rb +1 -1
  109. data/lib/aws/ec2/request.rb +1 -1
  110. data/lib/aws/ec2/resource.rb +3 -3
  111. data/lib/aws/ec2/resource_tag_collection.rb +1 -1
  112. data/lib/aws/ec2/route_table/association.rb +1 -1
  113. data/lib/aws/ec2/security_group.rb +9 -9
  114. data/lib/aws/ec2/snapshot.rb +2 -2
  115. data/lib/aws/ec2/snapshot_collection.rb +3 -3
  116. data/lib/aws/ec2/tag.rb +2 -2
  117. data/lib/aws/ec2/tag_collection.rb +3 -3
  118. data/lib/aws/ec2/tagged_item.rb +2 -2
  119. data/lib/aws/ec2/volume.rb +1 -1
  120. data/lib/aws/ec2/volume_collection.rb +1 -1
  121. data/lib/aws/ec2/vpn_connection.rb +1 -1
  122. data/lib/aws/ec2/vpn_gateway/attachment.rb +1 -1
  123. data/lib/aws/elastic_beanstalk/client.rb +1 -1
  124. data/lib/aws/elastic_beanstalk/request.rb +1 -1
  125. data/lib/aws/elastic_transcoder/client.rb +2 -2
  126. data/lib/aws/elastic_transcoder/request.rb +1 -1
  127. data/lib/aws/elasticache/client.rb +1 -1
  128. data/lib/aws/elasticache/request.rb +1 -1
  129. data/lib/aws/elb/client.rb +1 -1
  130. data/lib/aws/elb/listener.rb +2 -2
  131. data/lib/aws/elb/listener_opts.rb +1 -1
  132. data/lib/aws/elb/load_balancer_policy.rb +1 -1
  133. data/lib/aws/elb/request.rb +1 -1
  134. data/lib/aws/emr/client.rb +1 -1
  135. data/lib/aws/emr/instance_group.rb +1 -1
  136. data/lib/aws/emr/instance_group_collection.rb +1 -1
  137. data/lib/aws/emr/job_flow.rb +1 -1
  138. data/lib/aws/emr/job_flow_collection.rb +1 -1
  139. data/lib/aws/emr/request.rb +1 -1
  140. data/lib/aws/errors.rb +1 -1
  141. data/lib/aws/glacier/client.rb +1 -1
  142. data/lib/aws/glacier/request.rb +1 -1
  143. data/lib/aws/glacier/resource.rb +1 -1
  144. data/lib/aws/iam.rb +1 -1
  145. data/lib/aws/iam/access_key.rb +3 -3
  146. data/lib/aws/iam/access_key_collection.rb +2 -2
  147. data/lib/aws/iam/account_alias_collection.rb +3 -3
  148. data/lib/aws/iam/client.rb +1 -1
  149. data/lib/aws/iam/collection.rb +1 -1
  150. data/lib/aws/iam/group.rb +2 -2
  151. data/lib/aws/iam/group_collection.rb +1 -1
  152. data/lib/aws/iam/group_policy_collection.rb +1 -1
  153. data/lib/aws/iam/group_user_collection.rb +2 -2
  154. data/lib/aws/iam/login_profile.rb +1 -1
  155. data/lib/aws/iam/mfa_device_collection.rb +1 -1
  156. data/lib/aws/iam/request.rb +1 -1
  157. data/lib/aws/iam/resource.rb +2 -2
  158. data/lib/aws/iam/server_certificate.rb +2 -2
  159. data/lib/aws/iam/server_certificate_collection.rb +1 -1
  160. data/lib/aws/iam/signing_certificate.rb +3 -3
  161. data/lib/aws/iam/signing_certificate_collection.rb +2 -2
  162. data/lib/aws/iam/user.rb +1 -1
  163. data/lib/aws/iam/user_collection.rb +1 -1
  164. data/lib/aws/iam/user_group_collection.rb +3 -3
  165. data/lib/aws/iam/user_policy.rb +1 -1
  166. data/lib/aws/iam/virtual_mfa_device.rb +1 -1
  167. data/lib/aws/import_export/client.rb +1 -1
  168. data/lib/aws/import_export/request.rb +1 -1
  169. data/lib/aws/ops_works/client.rb +1 -1
  170. data/lib/aws/ops_works/request.rb +1 -1
  171. data/lib/aws/rails.rb +4 -4
  172. data/lib/aws/rds/client.rb +1 -1
  173. data/lib/aws/rds/db_snapshot_collection.rb +1 -1
  174. data/lib/aws/rds/request.rb +1 -1
  175. data/lib/aws/record.rb +3 -3
  176. data/lib/aws/record/abstract_base.rb +4 -4
  177. data/lib/aws/record/attributes.rb +7 -7
  178. data/lib/aws/record/conversion.rb +4 -4
  179. data/lib/aws/record/dirty_tracking.rb +5 -5
  180. data/lib/aws/record/exceptions.rb +3 -3
  181. data/lib/aws/record/hash_model.rb +2 -2
  182. data/lib/aws/record/model.rb +6 -6
  183. data/lib/aws/record/model/scope.rb +5 -5
  184. data/lib/aws/record/naming.rb +2 -2
  185. data/lib/aws/record/scope.rb +7 -7
  186. data/lib/aws/record/validations.rb +1 -1
  187. data/lib/aws/record/validator.rb +14 -14
  188. data/lib/aws/record/validators/acceptance.rb +1 -1
  189. data/lib/aws/record/validators/block.rb +1 -1
  190. data/lib/aws/record/validators/confirmation.rb +1 -1
  191. data/lib/aws/record/validators/count.rb +4 -4
  192. data/lib/aws/record/validators/exclusion.rb +1 -1
  193. data/lib/aws/record/validators/format.rb +1 -1
  194. data/lib/aws/record/validators/inclusion.rb +1 -1
  195. data/lib/aws/record/validators/length.rb +4 -4
  196. data/lib/aws/record/validators/method.rb +1 -1
  197. data/lib/aws/record/validators/numericality.rb +1 -1
  198. data/lib/aws/record/validators/presence.rb +1 -1
  199. data/lib/aws/redshift/client.rb +1 -1
  200. data/lib/aws/redshift/request.rb +1 -1
  201. data/lib/aws/route_53/change_batch.rb +2 -2
  202. data/lib/aws/route_53/change_info.rb +1 -1
  203. data/lib/aws/route_53/client.rb +1 -1
  204. data/lib/aws/route_53/hosted_zone.rb +1 -1
  205. data/lib/aws/route_53/hosted_zone_collection.rb +1 -1
  206. data/lib/aws/route_53/request.rb +1 -1
  207. data/lib/aws/route_53/resource_record_set.rb +1 -1
  208. data/lib/aws/route_53/resource_record_set_collection.rb +1 -1
  209. data/lib/aws/s3/access_control_list.rb +7 -7
  210. data/lib/aws/s3/acl_object.rb +6 -6
  211. data/lib/aws/s3/acl_options.rb +1 -1
  212. data/lib/aws/s3/bucket.rb +3 -3
  213. data/lib/aws/s3/bucket_collection.rb +1 -1
  214. data/lib/aws/s3/bucket_lifecycle_configuration.rb +3 -3
  215. data/lib/aws/s3/bucket_tag_collection.rb +1 -1
  216. data/lib/aws/s3/bucket_version_collection.rb +4 -4
  217. data/lib/aws/s3/cipher_io.rb +1 -1
  218. data/lib/aws/s3/client.rb +2 -2
  219. data/lib/aws/s3/client/xml.rb +1 -1
  220. data/lib/aws/s3/data_options.rb +2 -2
  221. data/lib/aws/s3/encryption_utils.rb +1 -1
  222. data/lib/aws/s3/errors.rb +1 -1
  223. data/lib/aws/s3/multipart_upload.rb +5 -5
  224. data/lib/aws/s3/multipart_upload_collection.rb +1 -1
  225. data/lib/aws/s3/object_collection.rb +5 -5
  226. data/lib/aws/s3/object_upload_collection.rb +1 -1
  227. data/lib/aws/s3/object_version.rb +1 -1
  228. data/lib/aws/s3/paginated_collection.rb +1 -1
  229. data/lib/aws/s3/prefix_and_delimiter_collection.rb +3 -3
  230. data/lib/aws/s3/prefixed_collection.rb +2 -2
  231. data/lib/aws/s3/presigned_post.rb +18 -18
  232. data/lib/aws/s3/request.rb +2 -2
  233. data/lib/aws/s3/s3_object.rb +3 -3
  234. data/lib/aws/s3/tree/branch_node.rb +1 -1
  235. data/lib/aws/s3/tree/child_collection.rb +1 -1
  236. data/lib/aws/s3/tree/leaf_node.rb +1 -1
  237. data/lib/aws/s3/tree/node.rb +1 -1
  238. data/lib/aws/s3/tree/parent.rb +1 -1
  239. data/lib/aws/s3/uploaded_part.rb +2 -2
  240. data/lib/aws/s3/uploaded_part_collection.rb +6 -6
  241. data/lib/aws/s3/website_configuration.rb +4 -4
  242. data/lib/aws/simple_db.rb +2 -2
  243. data/lib/aws/simple_db/attribute.rb +2 -2
  244. data/lib/aws/simple_db/client.rb +6 -6
  245. data/lib/aws/simple_db/consistent_read_option.rb +1 -1
  246. data/lib/aws/simple_db/delete_attributes.rb +3 -3
  247. data/lib/aws/simple_db/domain.rb +2 -2
  248. data/lib/aws/simple_db/domain_metadata.rb +1 -1
  249. data/lib/aws/simple_db/errors.rb +2 -2
  250. data/lib/aws/simple_db/expect_condition_option.rb +2 -2
  251. data/lib/aws/simple_db/item_collection.rb +17 -17
  252. data/lib/aws/simple_db/item_data.rb +1 -1
  253. data/lib/aws/simple_db/put_attributes.rb +3 -3
  254. data/lib/aws/simple_db/request.rb +1 -1
  255. data/lib/aws/simple_email_service.rb +3 -3
  256. data/lib/aws/simple_email_service/client.rb +1 -1
  257. data/lib/aws/simple_email_service/identity.rb +1 -1
  258. data/lib/aws/simple_email_service/identity_collection.rb +1 -1
  259. data/lib/aws/simple_email_service/quotas.rb +1 -1
  260. data/lib/aws/simple_email_service/request.rb +1 -1
  261. data/lib/aws/simple_workflow/activity_task.rb +1 -1
  262. data/lib/aws/simple_workflow/activity_task_collection.rb +1 -1
  263. data/lib/aws/simple_workflow/client.rb +1 -1
  264. data/lib/aws/simple_workflow/count.rb +1 -1
  265. data/lib/aws/simple_workflow/decision_task.rb +1 -1
  266. data/lib/aws/simple_workflow/decision_task_collection.rb +1 -1
  267. data/lib/aws/simple_workflow/domain.rb +1 -1
  268. data/lib/aws/simple_workflow/history_event.rb +3 -3
  269. data/lib/aws/simple_workflow/option_formatters.rb +1 -1
  270. data/lib/aws/simple_workflow/request.rb +1 -1
  271. data/lib/aws/simple_workflow/resource.rb +8 -8
  272. data/lib/aws/simple_workflow/type_collection.rb +1 -1
  273. data/lib/aws/simple_workflow/workflow_execution_collection.rb +2 -2
  274. data/lib/aws/sns/client.rb +1 -1
  275. data/lib/aws/sns/request.rb +1 -1
  276. data/lib/aws/sns/subscription.rb +2 -2
  277. data/lib/aws/sns/topic.rb +3 -3
  278. data/lib/aws/sns/topic_subscription_collection.rb +1 -1
  279. data/lib/aws/sqs/client.rb +1 -1
  280. data/lib/aws/sqs/errors.rb +1 -1
  281. data/lib/aws/sqs/queue.rb +8 -8
  282. data/lib/aws/sqs/queue_collection.rb +1 -1
  283. data/lib/aws/sqs/received_message.rb +3 -3
  284. data/lib/aws/sqs/request.rb +1 -1
  285. data/lib/aws/storage_gateway/client.rb +1 -1
  286. data/lib/aws/storage_gateway/request.rb +1 -1
  287. data/lib/aws/sts/client.rb +1 -1
  288. data/lib/aws/sts/federated_session.rb +1 -1
  289. data/lib/aws/sts/request.rb +1 -1
  290. data/lib/aws/sts/session.rb +1 -1
  291. data/lib/aws/version.rb +1 -1
  292. metadata +16 -8
  293. checksums.yaml +0 -7
@@ -108,7 +108,7 @@ module AWS
108
108
  # Removes the ids from the policy and its statements for the purpose
109
109
  # of comparing two policies for equivilence.
110
110
  # @return [Hash] Returns the policy as a hash with no ids
111
- # @private
111
+ # @api private
112
112
  def hash_without_ids
113
113
  hash = self.to_h
114
114
  hash.delete('Id')
@@ -163,7 +163,7 @@ module AWS
163
163
  # @see ConditionBlock#add
164
164
  class OperatorBuilder
165
165
 
166
- # @private
166
+ # @api private
167
167
  def initialize(condition_builder, key)
168
168
  @condition_builder = condition_builder
169
169
  @key = key
@@ -184,7 +184,7 @@ module AWS
184
184
  # @return [Array] Returns an array of policy conditions.
185
185
  attr_reader :conditions
186
186
 
187
- # @private
187
+ # @api private
188
188
  def initialize(conditions)
189
189
  @conditions = conditions
190
190
  end
@@ -295,7 +295,7 @@ module AWS
295
295
  #
296
296
  class ConditionBlock
297
297
 
298
- # @private
298
+ # @api private
299
299
  def initialize(conditions = {})
300
300
  # filter makes a copy
301
301
  @conditions = filter_conditions(conditions)
@@ -375,7 +375,7 @@ module AWS
375
375
  op[translate_key(key)] = converted_values
376
376
  end
377
377
 
378
- # @private
378
+ # @api private
379
379
  def to_h
380
380
  @conditions
381
381
  end
@@ -447,7 +447,7 @@ module AWS
447
447
  end.compact.flatten
448
448
  end
449
449
 
450
- # @private
450
+ # @api private
451
451
  protected
452
452
  def match_triple(filter, type, op, key, value)
453
453
  value = [value].flatten.first
@@ -468,7 +468,7 @@ module AWS
468
468
  [match, type]
469
469
  end
470
470
 
471
- # @private
471
+ # @api private
472
472
  protected
473
473
  def match_operator(filter, op, value)
474
474
  # dates are the only values that don't come back as native types in JSON
@@ -477,13 +477,13 @@ module AWS
477
477
  translate_operator(filter, value) == op
478
478
  end
479
479
 
480
- # @private
480
+ # @api private
481
481
  protected
482
482
  def match_key(filter, key, value = nil)
483
483
  translate_key(filter) == key
484
484
  end
485
485
 
486
- # @private
486
+ # @api private
487
487
  protected
488
488
  def filter_conditions(conditions = @conditions)
489
489
  conditions.inject({}) do |m, (op, keys)|
@@ -496,7 +496,7 @@ module AWS
496
496
  end
497
497
  end
498
498
 
499
- # @private
499
+ # @api private
500
500
  protected
501
501
  def translate_key(key)
502
502
  if key.kind_of?(Symbol)
@@ -517,13 +517,13 @@ module AWS
517
517
  end
518
518
  end
519
519
 
520
- # @private
520
+ # @api private
521
521
  MODIFIERS = {
522
522
  /_ignoring_case$/ => "IgnoreCase",
523
523
  /_equals$/ => "Equals"
524
524
  }
525
525
 
526
- # @private
526
+ # @api private
527
527
  protected
528
528
  def valid_operator?(operator)
529
529
  translate_operator(operator, "")
@@ -532,7 +532,7 @@ module AWS
532
532
  false
533
533
  end
534
534
 
535
- # @private
535
+ # @api private
536
536
  protected
537
537
  def translate_operator(operator, example_value)
538
538
  return operator if operator.kind_of?(String)
@@ -545,100 +545,100 @@ module AWS
545
545
  send("translate_#{operator}", example_value, opts)
546
546
  end
547
547
 
548
- # @private
548
+ # @api private
549
549
  protected
550
550
  def translate_is(example, opts)
551
551
  return "Bool" if type_notation(example) == "Bool"
552
552
  base_translate(example, "Equals", opts[:ignore_case])
553
553
  end
554
554
 
555
- # @private
555
+ # @api private
556
556
  protected
557
557
  def translate_not(example, opts)
558
558
  base_translate(example, "NotEquals", opts[:ignore_case])
559
559
  end
560
560
 
561
- # @private
561
+ # @api private
562
562
  protected
563
563
  def translate_like(example, opts)
564
564
  base_translate(example, "Like")
565
565
  end
566
566
 
567
- # @private
567
+ # @api private
568
568
  protected
569
569
  def translate_not_like(example, opts)
570
570
  base_translate(example, "NotLike")
571
571
  end
572
572
 
573
- # @private
573
+ # @api private
574
574
  protected
575
575
  def translate_less_than(example, opts)
576
576
  base_translate(example, "LessThan", opts[:equals])
577
577
  end
578
578
  alias_method :translate_lt, :translate_less_than
579
579
 
580
- # @private
580
+ # @api private
581
581
  protected
582
582
  def translate_lte(example, opts)
583
583
  translate_less_than(example, { :equals => "Equals" })
584
584
  end
585
585
 
586
- # @private
586
+ # @api private
587
587
  protected
588
588
  def translate_greater_than(example, opts)
589
589
  base_translate(example, "GreaterThan", opts[:equals])
590
590
  end
591
591
  alias_method :translate_gt, :translate_greater_than
592
592
 
593
- # @private
593
+ # @api private
594
594
  protected
595
595
  def translate_gte(example, opts)
596
596
  translate_greater_than(example, { :equals => "Equals" })
597
597
  end
598
598
 
599
- # @private
599
+ # @api private
600
600
  protected
601
601
  def translate_is_ip_address(example, opts)
602
602
  "IpAddress"
603
603
  end
604
604
 
605
- # @private
605
+ # @api private
606
606
  protected
607
607
  def translate_not_ip_address(example, opts)
608
608
  "NotIpAddress"
609
609
  end
610
610
 
611
- # @private
611
+ # @api private
612
612
  protected
613
613
  def translate_is_arn(example, opts)
614
614
  "ArnEquals"
615
615
  end
616
616
 
617
- # @private
617
+ # @api private
618
618
  protected
619
619
  def translate_not_arn(example, opts)
620
620
  "ArnNotEquals"
621
621
  end
622
622
 
623
- # @private
623
+ # @api private
624
624
  protected
625
625
  def translate_is_arn_like(example, opts)
626
626
  "ArnLike"
627
627
  end
628
628
 
629
- # @private
629
+ # @api private
630
630
  protected
631
631
  def translate_not_arn_like(example, opts)
632
632
  "ArnNotLike"
633
633
  end
634
634
 
635
- # @private
635
+ # @api private
636
636
  protected
637
637
  def base_translate(example, base_operator, *modifiers)
638
638
  "#{type_notation(example)}#{base_operator}#{modifiers.join}"
639
639
  end
640
640
 
641
- # @private
641
+ # @api private
642
642
  protected
643
643
  def type_notation(example)
644
644
  case example
@@ -653,7 +653,7 @@ module AWS
653
653
  end
654
654
  end
655
655
 
656
- # @private
656
+ # @api private
657
657
  protected
658
658
  def convert_value(value)
659
659
  case value
@@ -666,7 +666,7 @@ module AWS
666
666
  end
667
667
  end
668
668
 
669
- # @private
669
+ # @api private
670
670
  protected
671
671
  def strip_modifiers(operator)
672
672
  opts = {}
@@ -770,7 +770,7 @@ module AWS
770
770
  end
771
771
  alias_method :exclude_action, :exclude_actions
772
772
 
773
- # @private
773
+ # @api private
774
774
  def to_h
775
775
  stmt = {
776
776
  "Sid" => sid,
@@ -14,7 +14,7 @@
14
14
  module AWS
15
15
  module Core
16
16
 
17
- # @private
17
+ # @api private
18
18
  module QueryErrorParser
19
19
 
20
20
 
@@ -14,7 +14,7 @@
14
14
  module AWS
15
15
  module Core
16
16
 
17
- # @private
17
+ # @api private
18
18
  class QueryRequestBuilder
19
19
 
20
20
  def initialize api_version, operation
@@ -14,7 +14,7 @@
14
14
  module AWS
15
15
  module Core
16
16
 
17
- # @private
17
+ # @api private
18
18
  class QueryResponseParser
19
19
 
20
20
  def initialize parsing_rules
@@ -40,7 +40,7 @@ module AWS
40
40
 
41
41
  # @option options [Configuration] :config (AWS.config)
42
42
  # @option options [ServiceInterface] :service (nil)
43
- # @private
43
+ # @api private
44
44
  def initialize options = {}
45
45
  @config = options[:config] || AWS.config
46
46
  @service = options[:service]
@@ -78,13 +78,13 @@ module AWS
78
78
  class << self
79
79
 
80
80
  # @return [nil]
81
- # @private
81
+ # @api private
82
82
  def clear!
83
83
  @data = nil
84
84
  end
85
85
 
86
86
  # @return [Hash] Returns a hash of region metadata.
87
- # @private
87
+ # @api private
88
88
  def data
89
89
  @data ||= load_data
90
90
  end
@@ -15,16 +15,16 @@
15
15
  module AWS
16
16
  module Core
17
17
 
18
- # @private
18
+ # @api private
19
19
  class Resource
20
20
 
21
21
  include Model
22
22
  include Cacheable
23
23
 
24
- # @private
24
+ # @api private
25
25
  class NotFound < StandardError; end
26
26
 
27
- # @private
27
+ # @api private
28
28
  def initialize *args
29
29
 
30
30
  super
@@ -67,13 +67,13 @@ module AWS
67
67
  end
68
68
  alias_method :==, :eql?
69
69
 
70
- # @private
70
+ # @api private
71
71
  protected
72
72
  def get_resource attr_name
73
73
  raise NotImplementedError
74
74
  end
75
75
 
76
- # @private
76
+ # @api private
77
77
  protected
78
78
  def update_resource attr, value
79
79
  raise NotImplementedError
@@ -82,13 +82,13 @@ module AWS
82
82
  # Overide this method is subclasses of Resource. This method should
83
83
  # return an array of identifying key/value pairs.
84
84
  #
85
- # # @private
85
+ # # @api private
86
86
  # protected
87
87
  # def resource_identifiers
88
88
  # [[:user_name, name]]
89
89
  # end
90
90
  #
91
- # @private
91
+ # @api private
92
92
  protected
93
93
  def resource_identifiers
94
94
  raise NotImplementedError
@@ -100,25 +100,25 @@ module AWS
100
100
  Hash[resource_identifiers].merge(additional)
101
101
  end
102
102
 
103
- # @private
103
+ # @api private
104
104
  protected
105
105
  def local_cache_key
106
106
  resource_identifiers.collect{|name,value| value.to_s }.join(":")
107
107
  end
108
108
 
109
- # @private
109
+ # @api private
110
110
  protected
111
111
  def static_attributes
112
112
  @static_attributes ||= {}
113
113
  end
114
114
 
115
- # @private
115
+ # @api private
116
116
  protected
117
117
  def ruby_name
118
118
  @ruby_name ||= Inflection.ruby_name(self.class.name)
119
119
  end
120
120
 
121
- # @private
121
+ # @api private
122
122
  public
123
123
  def attributes_from_response resp
124
124
 
@@ -149,7 +149,7 @@ module AWS
149
149
 
150
150
  end
151
151
 
152
- # @private
152
+ # @api private
153
153
  protected
154
154
  def cache_static_attributes request_type, resp_obj
155
155
  self.class.attribute_providers_for(request_type).each do |provider|
@@ -164,7 +164,7 @@ module AWS
164
164
 
165
165
  class << self
166
166
 
167
- # @private
167
+ # @api private
168
168
  def define_attribute_type type_name
169
169
  class_eval <<-METHODS
170
170
 
@@ -180,33 +180,33 @@ module AWS
180
180
  METHODS
181
181
  end
182
182
 
183
- # @private
183
+ # @api private
184
184
  def new_from request_type, resp_obj, *args
185
185
  resource = new(*args)
186
186
  resource.send(:cache_static_attributes, request_type, resp_obj)
187
187
  resource
188
188
  end
189
189
 
190
- # @private
190
+ # @api private
191
191
  def attributes
192
192
  @attributes ||= Hash.new do |hash,attr_name|
193
193
  raise "uknown attribute #{attr_name}"
194
194
  end
195
195
  end
196
196
 
197
- # @private
197
+ # @api private
198
198
  def attribute_providers
199
199
  @attribute_providers ||= []
200
200
  end
201
201
 
202
- # @private
202
+ # @api private
203
203
  def attribute_providers_for request_type
204
204
  attribute_providers.select do |provider|
205
205
  provider.request_types.include?(request_type)
206
206
  end
207
207
  end
208
208
 
209
- # @private
209
+ # @api private
210
210
  protected
211
211
  def attribute name, options = {}, &block
212
212
  attr = Attribute.new(name, options)
@@ -217,13 +217,13 @@ module AWS
217
217
  attributes[attr.name] = attr
218
218
  end
219
219
 
220
- # @private
220
+ # @api private
221
221
  protected
222
222
  def mutable_attribute name, options = {}, &block
223
223
  attribute(name, options.merge(:mutable => true), &block)
224
224
  end
225
225
 
226
- # @private
226
+ # @api private
227
227
  protected
228
228
  def define_attribute_getter attribute
229
229
  define_method(attribute.name) do
@@ -241,7 +241,7 @@ module AWS
241
241
  end
242
242
  end
243
243
 
244
- # @private
244
+ # @api private
245
245
  protected
246
246
  def define_attribute_setter attribute
247
247
  setter = attribute.name.to_s.sub(/\?/, '') + '='
@@ -255,7 +255,7 @@ module AWS
255
255
  end
256
256
  end
257
257
 
258
- # @private
258
+ # @api private
259
259
  protected
260
260
  def populates_from *request_types, &block
261
261
  provider = provider(*request_types)
@@ -264,7 +264,7 @@ module AWS
264
264
  provider
265
265
  end
266
266
 
267
- # @private
267
+ # @api private
268
268
  protected
269
269
  def provider *request_types, &block
270
270
  provider = AttributeProvider.new(self, request_types)
@@ -277,7 +277,7 @@ module AWS
277
277
 
278
278
  end
279
279
 
280
- # @private
280
+ # @api private
281
281
  class Attribute
282
282
 
283
283
  def initialize name, options = {}
@@ -335,7 +335,7 @@ module AWS
335
335
 
336
336
  end
337
337
 
338
- # @private
338
+ # @api private
339
339
  class AttributeProvider
340
340
 
341
341
  def initialize klass, request_types