aws-sdk-core 2.0.0.rc12 → 2.0.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/apis/AutoScaling.api.json +1943 -0
- data/apis/CloudFormation.api.json +785 -0
- data/apis/CloudFront.api.json +2581 -0
- data/apis/CloudFront.paginators.json +32 -0
- data/apis/CloudSearch.api.json +1955 -0
- data/apis/CloudSearchDomain.api.json +349 -0
- data/apis/CloudTrail.api.json +559 -0
- data/apis/CloudWatch.api.json +917 -0
- data/apis/CloudWatchLogs.api.json +816 -0
- data/apis/CognitoIdentity.api.json +631 -0
- data/apis/CognitoSync.api.json +721 -0
- data/apis/DataPipeline.api.json +940 -0
- data/apis/DirectConnect.api.json +833 -0
- data/apis/DynamoDB.api.json +1210 -0
- data/apis/{dynamodb-2011-12-05.paginators.json → DynamoDB.paginators.json} +1 -3
- data/apis/EC2.api.json +9914 -0
- data/apis/{ec2-2014-06-15.resources.json → EC2.resources.json} +16 -0
- data/apis/EMR.api.json +1339 -0
- data/apis/ElastiCache.api.json +3410 -0
- data/apis/ElasticBeanstalk.api.json +1543 -0
- data/apis/ElasticLoadBalancing.api.json +2131 -0
- data/apis/ElasticTranscoder.api.json +1647 -0
- data/apis/Glacier.api.json +1456 -0
- data/apis/{glacier-2012-06-01.resources.json → Glacier.resources.json} +5 -9
- data/apis/IAM.api.json +4033 -0
- data/apis/{iam-2010-05-08.resources.json → IAM.resources.json} +1 -1
- data/apis/ImportExport.api.json +515 -0
- data/apis/Kinesis.api.json +706 -0
- data/apis/{kinesis-2013-12-02.paginators.json → Kinesis.paginators.json} +0 -6
- data/apis/OpsWorks.api.json +2555 -0
- data/apis/OpsWorks.resources.json +181 -0
- data/apis/RDS.api.json +4473 -0
- data/apis/Redshift.api.json +4482 -0
- data/apis/Route53.api.json +1935 -0
- data/apis/Route53Domains.api.json +1129 -0
- data/apis/{s3-2006-03-01.api.json → S3.api.json} +377 -972
- data/apis/{s3-2006-03-01.paginators.json → S3.paginators.json} +1 -1
- data/apis/{s3-2006-03-01.resources.json → S3.resources.json} +13 -2
- data/apis/SES.api.json +644 -0
- data/apis/SNS.api.json +1760 -0
- data/apis/SQS.api.json +1113 -0
- data/apis/{sqs-2012-11-05.resources.json → SQS.resources.json} +0 -10
- data/apis/STS.api.json +594 -0
- data/apis/SWF.api.json +2656 -0
- data/apis/SimpleDB.api.json +954 -0
- data/apis/StorageGateway.api.json +2311 -0
- data/apis/Support.api.json +869 -0
- data/bin/aws.rb +19 -1
- data/endpoints.json +77 -0
- data/lib/aws-sdk-core/api/docstrings.rb +35 -0
- data/lib/aws-sdk-core/api/documenter.rb +241 -0
- data/lib/{aws/api/documentor.rb → aws-sdk-core/api/operation_documenter.rb} +39 -28
- data/lib/{aws/api/doc_example.rb → aws-sdk-core/api/operation_example.rb} +31 -22
- data/lib/{aws → aws-sdk-core}/api/service_customizations.rb +5 -1
- data/lib/aws-sdk-core/autoscaling.rb +5 -0
- data/lib/aws-sdk-core/client.rb +121 -0
- data/lib/aws-sdk-core/cloudformation.rb +5 -0
- data/lib/aws-sdk-core/cloudfront.rb +6 -0
- data/lib/aws-sdk-core/cloudsearch.rb +5 -0
- data/lib/aws-sdk-core/cloudsearchdomain.rb +4 -0
- data/lib/aws-sdk-core/cloudtrail.rb +5 -0
- data/lib/aws-sdk-core/cloudwatch.rb +5 -0
- data/lib/aws-sdk-core/cloudwatchlogs.rb +5 -0
- data/lib/aws-sdk-core/cognitoidentity.rb +4 -0
- data/lib/aws-sdk-core/cognitosync.rb +4 -0
- data/lib/{aws → aws-sdk-core}/credential_provider_chain.rb +4 -1
- data/lib/aws-sdk-core/datapipeline.rb +5 -0
- data/lib/aws-sdk-core/directconnect.rb +5 -0
- data/lib/aws-sdk-core/dynamodb/attribute_value.rb +87 -0
- data/lib/aws-sdk-core/dynamodb.rb +12 -0
- data/lib/aws-sdk-core/ec2.rb +7 -0
- data/lib/aws-sdk-core/elasticache.rb +5 -0
- data/lib/aws-sdk-core/elasticbeanstalk.rb +5 -0
- data/lib/aws-sdk-core/elasticloadbalancing.rb +5 -0
- data/lib/aws-sdk-core/elastictranscoder.rb +5 -0
- data/lib/{aws → aws-sdk-core}/empty_structure.rb +4 -3
- data/lib/aws-sdk-core/emr.rb +5 -0
- data/lib/aws-sdk-core/endpoint_provider.rb +97 -0
- data/lib/{aws → aws-sdk-core}/errors.rb +27 -8
- data/lib/aws-sdk-core/glacier.rb +7 -0
- data/lib/aws-sdk-core/iam.rb +6 -0
- data/lib/aws-sdk-core/importexport.rb +5 -0
- data/lib/{aws → aws-sdk-core}/instance_profile_credentials.rb +13 -9
- data/lib/aws-sdk-core/kinesis.rb +5 -0
- data/lib/aws-sdk-core/opsworks.rb +6 -0
- data/lib/{aws → aws-sdk-core}/pageable_response.rb +1 -1
- data/lib/aws-sdk-core/plugins/csd_conditional_signing.rb +37 -0
- data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +179 -0
- data/lib/{aws → aws-sdk-core}/plugins/global_configuration.rb +14 -7
- data/lib/{aws → aws-sdk-core}/plugins/protocols/json_rpc.rb +9 -7
- data/lib/{aws → aws-sdk-core}/plugins/regional_endpoint.rb +2 -4
- data/lib/{aws → aws-sdk-core}/plugins/request_signer.rb +18 -8
- data/lib/aws-sdk-core/plugins/response_paging.rb +25 -0
- data/lib/{aws → aws-sdk-core}/plugins/retry_errors.rb +11 -1
- data/lib/aws-sdk-core/plugins/route_53_id_fix.rb +55 -0
- data/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb +27 -0
- data/lib/aws-sdk-core/plugins/s3_sse_cpk.rb +63 -0
- data/lib/aws-sdk-core/plugins/s3_url_encoded_keys.rb +92 -0
- data/lib/{aws → aws-sdk-core}/plugins/user_agent.rb +1 -2
- data/lib/{aws → aws-sdk-core}/query/handler.rb +4 -5
- data/lib/aws-sdk-core/rds.rb +6 -0
- data/lib/aws-sdk-core/redshift.rb +6 -0
- data/lib/aws-sdk-core/route53.rb +5 -0
- data/lib/aws-sdk-core/route53domains.rb +4 -0
- data/lib/aws-sdk-core/s3/presigner.rb +64 -0
- data/lib/aws-sdk-core/s3.rb +13 -0
- data/lib/aws-sdk-core/service.rb +4 -0
- data/lib/aws-sdk-core/ses.rb +6 -0
- data/lib/{aws → aws-sdk-core}/signers/v4.rb +6 -5
- data/lib/aws-sdk-core/simpledb.rb +5 -0
- data/lib/aws-sdk-core/sns.rb +6 -0
- data/lib/aws-sdk-core/sqs.rb +6 -0
- data/lib/aws-sdk-core/storagegateway.rb +5 -0
- data/lib/{aws → aws-sdk-core}/structure.rb +60 -4
- data/lib/aws-sdk-core/sts.rb +4 -0
- data/lib/aws-sdk-core/support.rb +5 -0
- data/lib/aws-sdk-core/swf.rb +5 -0
- data/lib/aws-sdk-core/version.rb +3 -0
- data/lib/aws-sdk-core/waiters/errors.rb +30 -0
- data/lib/aws-sdk-core/waiters/null_provider.rb +12 -0
- data/lib/aws-sdk-core/waiters/provider.rb +54 -0
- data/lib/aws-sdk-core/waiters/waiter.rb +194 -0
- data/lib/{aws → aws-sdk-core}/xml/builder.rb +4 -3
- data/lib/aws-sdk-core/xml/default_list.rb +10 -0
- data/lib/{aws → aws-sdk-core}/xml/parser.rb +6 -1
- data/lib/aws-sdk-core.rb +288 -1
- data/{vendor/seahorse/lib → lib}/seahorse/client/base.rb +45 -20
- data/{vendor/seahorse/lib → lib}/seahorse/client/handler_list.rb +17 -3
- data/{vendor/seahorse/lib → lib}/seahorse/client/http/error.rb +2 -2
- data/{vendor/seahorse/lib → lib}/seahorse/client/http/request.rb +1 -9
- data/{vendor/seahorse/lib → lib}/seahorse/client/net_http/connection_pool.rb +2 -0
- data/{vendor/seahorse/lib → lib}/seahorse/client/net_http/handler.rb +13 -1
- data/lib/seahorse/client/net_http/patches.rb +97 -0
- data/{vendor/seahorse/lib → lib}/seahorse/client/param_converter.rb +2 -2
- data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/endpoint.rb +24 -15
- data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/restful_bindings.rb +1 -1
- data/{vendor/seahorse/lib → lib}/seahorse/client/request.rb +1 -1
- data/{vendor/seahorse/lib → lib}/seahorse/client/response.rb +0 -2
- data/{vendor/seahorse/lib → lib}/seahorse/client/xml/builder.rb +0 -1
- data/{vendor/seahorse/lib → lib}/seahorse/model/shape_map.rb +1 -0
- data/{vendor/seahorse/lib → lib}/seahorse/model/shapes.rb +13 -4
- data/{vendor/seahorse/lib → lib}/seahorse.rb +3 -3
- metadata +257 -593
- data/.gitignore +0 -8
- data/.simplecov +0 -6
- data/.travis.yml +0 -20
- data/.yardopts +0 -11
- data/Gemfile +0 -26
- data/LICENSE.txt +0 -12
- data/README.md +0 -250
- data/Rakefile +0 -17
- data/apis/autoscaling-2011-01-01.api.json +0 -2602
- data/apis/cloudformation-2010-05-15.api.json +0 -1306
- data/apis/cloudfront-2014-01-31.api.json +0 -3478
- data/apis/cloudfront-2014-01-31.paginators.json +0 -32
- data/apis/cloudfront-2014-05-31.api.json +0 -3540
- data/apis/cloudfront-2014-05-31.paginators.json +0 -32
- data/apis/cloudfront-2014-05-31.waiters.json +0 -29
- data/apis/cloudsearch-2011-02-01.api.json +0 -2093
- data/apis/cloudsearch-2011-02-01.paginators.json +0 -13
- data/apis/cloudsearch-2013-01-01.api.json +0 -2655
- data/apis/cloudsearchdomain-2013-01-01.api.json +0 -508
- data/apis/cloudtrail-2013-11-01.api.json +0 -773
- data/apis/cognito-identity-2014-06-30.api.json +0 -884
- data/apis/cognito-sync-2014-06-30.api.json +0 -1029
- data/apis/datapipeline-2012-10-29.api.json +0 -1432
- data/apis/directconnect-2012-10-25.api.json +0 -1174
- data/apis/dynamodb-2011-12-05.api.json +0 -1208
- data/apis/dynamodb-2011-12-05.waiters.json +0 -27
- data/apis/dynamodb-2012-08-10.api.json +0 -1857
- data/apis/dynamodb-2012-08-10.paginators.json +0 -27
- data/apis/ec2-2014-06-15.api.json +0 -11661
- data/apis/elasticache-2014-03-24.api.json +0 -4789
- data/apis/elasticbeanstalk-2010-12-01.api.json +0 -2442
- data/apis/elasticloadbalancing-2012-06-01.api.json +0 -2576
- data/apis/elasticmapreduce-2009-03-31.api.json +0 -2282
- data/apis/elastictranscoder-2012-09-25.api.json +0 -2478
- data/apis/email-2010-12-01.api.json +0 -954
- data/apis/endpoints.json +0 -98
- data/apis/glacier-2012-06-01.api.json +0 -2012
- data/apis/iam-2010-05-08.api.json +0 -5046
- data/apis/importexport-2010-06-01.api.json +0 -687
- data/apis/kinesis-2013-12-02.api.json +0 -769
- data/apis/logs-2014-03-28.api.json +0 -942
- data/apis/manifest.json +0 -250
- data/apis/monitoring-2010-08-01.api.json +0 -1338
- data/apis/opsworks-2013-02-18.api.json +0 -4348
- data/apis/rds-2013-01-10.api.json +0 -6074
- data/apis/rds-2013-02-12.api.json +0 -6392
- data/apis/rds-2013-02-12.paginators.json +0 -110
- data/apis/rds-2013-09-09.api.json +0 -6564
- data/apis/rds-2013-09-09.paginators.json +0 -110
- data/apis/redshift-2012-12-01.api.json +0 -6318
- data/apis/route53-2013-04-01.api.json +0 -1927
- data/apis/sdb-2009-04-15.api.json +0 -1178
- data/apis/sns-2010-03-31.api.json +0 -2275
- data/apis/sqs-2012-11-05.api.json +0 -1438
- data/apis/storagegateway-2013-06-30.api.json +0 -3153
- data/apis/sts-2011-06-15.api.json +0 -786
- data/apis/support-2013-04-15.api.json +0 -1115
- data/apis/swf-2012-01-25.api.json +0 -4463
- data/aws-sdk-core.gemspec +0 -22
- data/doc-src/images/lastnode.png +0 -0
- data/doc-src/images/node.png +0 -0
- data/doc-src/images/vline.png +0 -0
- data/doc-src/plugins/apis.rb +0 -260
- data/doc-src/plugins/stability.rb +0 -1
- data/doc-src/services/CloudSearchDomain/client.md +0 -8
- data/doc-src/services/CloudSearchDomain/service.md +0 -0
- data/doc-src/services/default/client.md +0 -84
- data/doc-src/services/default/errors.md +0 -45
- data/doc-src/services/default/service.md +0 -28
- data/doc-src/templates/default/fulldoc/html/css/common.css +0 -90
- data/doc-src/templates/default/fulldoc/html/js/tabs.js +0 -21
- data/doc-src/templates/default/fulldoc/html/setup.rb +0 -66
- data/doc-src/templates/default/layout/html/footer.erb +0 -29
- data/doc-src/templates/default/layout/html/layout.erb +0 -37
- data/doc-src/templates/default/layout/html/setup.rb +0 -3
- data/features/autoscaling/client.feature +0 -18
- data/features/autoscaling/step_definitions.rb +0 -6
- data/features/cloudformation/client.feature +0 -17
- data/features/cloudformation/step_definitions.rb +0 -6
- data/features/cloudfront/client.feature +0 -17
- data/features/cloudfront/step_definitions.rb +0 -6
- data/features/cloudsearch/client.feature +0 -16
- data/features/cloudsearch/step_definitions.rb +0 -6
- data/features/cloudtrail/client.feature +0 -16
- data/features/cloudtrail/step_definitions.rb +0 -6
- data/features/cloudwatch/client.feature +0 -19
- data/features/cloudwatch/step_definitions.rb +0 -6
- data/features/cloudwatchlogs/client.feature +0 -17
- data/features/cloudwatchlogs/step_definitions.rb +0 -6
- data/features/cognitoidentity/client.feature +0 -17
- data/features/cognitoidentity/step_definitions.rb +0 -6
- data/features/cognitosync/client.feature +0 -16
- data/features/cognitosync/step_definitions.rb +0 -6
- data/features/datapipeline/client.feature +0 -16
- data/features/datapipeline/step_definitions.rb +0 -6
- data/features/directconnect/client.feature +0 -16
- data/features/directconnect/step_definitions.rb +0 -6
- data/features/dynamodb/client.feature +0 -17
- data/features/dynamodb/simplified.feature +0 -32
- data/features/dynamodb/step_definitions.rb +0 -11
- data/features/ec2/client.feature +0 -16
- data/features/ec2/step_definitions.rb +0 -6
- data/features/elasticache/client.feature +0 -16
- data/features/elasticache/step_definitions.rb +0 -6
- data/features/elasticbeanstalk/client.feature +0 -16
- data/features/elasticbeanstalk/step_definitions.rb +0 -6
- data/features/elasticloadbalancing/client.feature +0 -16
- data/features/elasticloadbalancing/step_definitions.rb +0 -6
- data/features/elastictranscoder/client.feature +0 -16
- data/features/elastictranscoder/step_definitions.rb +0 -6
- data/features/emr/client.feature +0 -16
- data/features/emr/step_definitions.rb +0 -6
- data/features/env.rb +0 -23
- data/features/glacier/client.feature +0 -17
- data/features/glacier/step_definitions.rb +0 -93
- data/features/glacier/upload.feature +0 -27
- data/features/iam/client.feature +0 -16
- data/features/iam/step_definitions.rb +0 -6
- data/features/importexport/client.feature +0 -16
- data/features/importexport/step_definitions.rb +0 -6
- data/features/kinesis/client.feature +0 -16
- data/features/kinesis/step_definitions.rb +0 -6
- data/features/opsworks/client.feature +0 -16
- data/features/opsworks/step_definitions.rb +0 -6
- data/features/rds/client.feature +0 -16
- data/features/rds/step_definitions.rb +0 -6
- data/features/redshift/client.feature +0 -16
- data/features/redshift/step_definitions.rb +0 -6
- data/features/route53/client.feature +0 -16
- data/features/route53/step_definitions.rb +0 -6
- data/features/s3/buckets.feature +0 -40
- data/features/s3/objects.feature +0 -37
- data/features/s3/step_definitions.rb +0 -165
- data/features/s3/test.png +0 -0
- data/features/ses/client.feature +0 -16
- data/features/ses/step_definitions.rb +0 -6
- data/features/simpledb/client.feature +0 -16
- data/features/simpledb/step_definitions.rb +0 -6
- data/features/sns/client.feature +0 -17
- data/features/sns/step_definitions.rb +0 -6
- data/features/sqs/client.feature +0 -21
- data/features/sqs/step_definitions.rb +0 -29
- data/features/step_definitions.rb +0 -94
- data/features/storagegateway/client.feature +0 -16
- data/features/storagegateway/step_definitions.rb +0 -6
- data/features/sts/client.feature +0 -17
- data/features/sts/step_definitions.rb +0 -6
- data/features/swf/client.feature +0 -17
- data/features/swf/step_definitions.rb +0 -6
- data/integration-test-config.json.sample +0 -3
- data/lib/aws/api/manifest.rb +0 -29
- data/lib/aws/api/manifest_builder.rb +0 -57
- data/lib/aws/client.rb +0 -241
- data/lib/aws/endpoint_provider.rb +0 -165
- data/lib/aws/plugins/response_paging.rb +0 -20
- data/lib/aws/plugins/s3_sse_cpk.rb +0 -42
- data/lib/aws/response_handler.rb +0 -38
- data/lib/aws/service.rb +0 -32
- data/lib/aws/signers/v4.rb.orig +0 -243
- data/lib/aws/version.rb +0 -3
- data/lib/aws/version.rb.orig +0 -7
- data/lib/aws.rb +0 -208
- data/lib/aws.rb.orig +0 -218
- data/spec/aws/client_spec.rb +0 -269
- data/spec/aws/credential_provider_chain_spec.rb +0 -120
- data/spec/aws/credentials_spec.rb +0 -47
- data/spec/aws/errors_spec.rb +0 -39
- data/spec/aws/iam_spec.rb +0 -17
- data/spec/aws/instance_profile_credentials_spec.rb +0 -94
- data/spec/aws/json/builder_spec.rb +0 -188
- data/spec/aws/json/parser_spec.rb +0 -214
- data/spec/aws/operations_spec.rb +0 -145
- data/spec/aws/pageable_response_spec.rb +0 -171
- data/spec/aws/plugins/global_configuration_spec.rb +0 -58
- data/spec/aws/plugins/region_endpoint_spec.rb +0 -86
- data/spec/aws/plugins/request_signer_spec.rb +0 -88
- data/spec/aws/plugins/retry_errors_spec.rb +0 -266
- data/spec/aws/plugins/s3_md5s_spec.rb +0 -84
- data/spec/aws/plugins/sqs_queue_urls_spec.rb +0 -42
- data/spec/aws/query/param_builder_spec.rb +0 -362
- data/spec/aws/query/param_list_spec.rb +0 -80
- data/spec/aws/query/param_spec.rb +0 -64
- data/spec/aws/s3_spec.rb +0 -79
- data/spec/aws/shared_credentials_spec.rb +0 -68
- data/spec/aws/signers/v4_spec.rb +0 -141
- data/spec/aws/structure_spec.rb +0 -166
- data/spec/aws/util_spec.rb +0 -60
- data/spec/aws/xml/builder_spec.rb +0 -412
- data/spec/aws/xml/parser_spec.rb +0 -723
- data/spec/aws_spec.rb +0 -94
- data/spec/fixtures/api/swf.json +0 -100
- data/spec/fixtures/credentials/mock_shared_credentials +0 -14
- data/spec/fixtures/operations/cloudfront/list_distributions.yml +0 -199
- data/spec/fixtures/operations/cloudfront/max_items.yml +0 -11
- data/spec/fixtures/operations/dynamodb/error_parsing.yml +0 -13
- data/spec/fixtures/operations/glacier/account_id_param.yml +0 -13
- data/spec/fixtures/operations/glacier/custom_account_id.yml +0 -11
- data/spec/fixtures/operations/glacier/default_account_id.yml +0 -10
- data/spec/fixtures/operations/glacier/error_parsing.yml +0 -10
- data/spec/fixtures/operations/glacier/get_job_output.yml +0 -23
- data/spec/fixtures/operations/glacier/list_vaults.yml +0 -24
- data/spec/fixtures/operations/iam/result_wrapped_elements.yml +0 -31
- data/spec/fixtures/operations/route53/change_resource_record_sets.yml +0 -18
- data/spec/fixtures/operations/s3/304_response.yml +0 -12
- data/spec/fixtures/operations/s3/400_response.yml +0 -12
- data/spec/fixtures/operations/s3/403_response.yml +0 -12
- data/spec/fixtures/operations/s3/404_response.yml +0 -12
- data/spec/fixtures/operations/s3/412_response_head.yml +0 -10
- data/spec/fixtures/operations/s3/comlete_multipart_upload_error.yml +0 -18
- data/spec/fixtures/operations/s3/content_type_header.yml +0 -12
- data/spec/fixtures/operations/s3/create_bucket_with_implied_location_constraint.yml +0 -23
- data/spec/fixtures/operations/s3/create_bucket_with_location_constraint.yml +0 -25
- data/spec/fixtures/operations/s3/create_bucket_without_location_constraint.yml +0 -9
- data/spec/fixtures/operations/s3/delete_objects.yml +0 -54
- data/spec/fixtures/operations/s3/error_parsing.yml +0 -17
- data/spec/fixtures/operations/s3/get_bucket_location.yml +0 -17
- data/spec/fixtures/operations/s3/get_bucket_location_classic.yml +0 -17
- data/spec/fixtures/operations/s3/get_bucket_policy.yml +0 -8
- data/spec/fixtures/operations/s3/head_bucket_with_dns_incompatible_name.yml +0 -12
- data/spec/fixtures/operations/s3/head_object.yml +0 -50
- data/spec/fixtures/operations/s3/list_buckets.yml +0 -41
- data/spec/fixtures/operations/s3/md5_checksum_disabled.yml +0 -10
- data/spec/fixtures/operations/s3/md5_checksum_enabled.yml +0 -8
- data/spec/fixtures/operations/swf/list_domains.yml +0 -20
- data/spec/fixtures/protocols/input/ec2.json +0 -383
- data/spec/fixtures/protocols/input/json.json +0 -47
- data/spec/fixtures/protocols/input/query.json +0 -335
- data/spec/fixtures/protocols/input/rest-json.json +0 -365
- data/spec/fixtures/protocols/input/rest-xml.json +0 -818
- data/spec/fixtures/protocols/output/ec2.json +0 -381
- data/spec/fixtures/protocols/output/json.json +0 -313
- data/spec/fixtures/protocols/output/query.json +0 -424
- data/spec/fixtures/protocols/output/rest-json.json +0 -486
- data/spec/fixtures/protocols/output/rest-xml.json +0 -486
- data/spec/protocols_spec.rb +0 -186
- data/spec/spec_helper.rb +0 -66
- data/tasks/docs.rake +0 -61
- data/tasks/handlers.rake +0 -98
- data/tasks/manifest.rake +0 -9
- data/tasks/test.rake +0 -30
- data/vendor/seahorse/.gitignore +0 -5
- data/vendor/seahorse/.simplecov +0 -4
- data/vendor/seahorse/.yardopts +0 -10
- data/vendor/seahorse/Gemfile +0 -17
- data/vendor/seahorse/LICENSE.txt +0 -12
- data/vendor/seahorse/README.md +0 -129
- data/vendor/seahorse/Rakefile +0 -7
- data/vendor/seahorse/lib/seahorse/client/plugins/api.rb +0 -11
- data/vendor/seahorse/seahorse.gemspec +0 -20
- data/vendor/seahorse/spec/fixtures/plugin.rb +0 -4
- data/vendor/seahorse/spec/seahorse/client/base_spec.rb +0 -299
- data/vendor/seahorse/spec/seahorse/client/configuration_spec.rb +0 -122
- data/vendor/seahorse/spec/seahorse/client/handler_builder_spec.rb +0 -159
- data/vendor/seahorse/spec/seahorse/client/handler_list_spec.rb +0 -232
- data/vendor/seahorse/spec/seahorse/client/handler_spec.rb +0 -40
- data/vendor/seahorse/spec/seahorse/client/http/headers_spec.rb +0 -213
- data/vendor/seahorse/spec/seahorse/client/http/request_spec.rb +0 -121
- data/vendor/seahorse/spec/seahorse/client/http/response_spec.rb +0 -77
- data/vendor/seahorse/spec/seahorse/client/logging/formatter_spec.rb +0 -185
- data/vendor/seahorse/spec/seahorse/client/logging/handler_spec.rb +0 -63
- data/vendor/seahorse/spec/seahorse/client/net_http/connection_pool_spec.rb +0 -10
- data/vendor/seahorse/spec/seahorse/client/net_http/handler_spec.rb +0 -242
- data/vendor/seahorse/spec/seahorse/client/param_converter_spec.rb +0 -308
- data/vendor/seahorse/spec/seahorse/client/param_validator_spec.rb +0 -275
- data/vendor/seahorse/spec/seahorse/client/plugin_list_spec.rb +0 -166
- data/vendor/seahorse/spec/seahorse/client/plugin_spec.rb +0 -118
- data/vendor/seahorse/spec/seahorse/client/plugins/content_length_spec.rb +0 -19
- data/vendor/seahorse/spec/seahorse/client/plugins/endpoint_spec.rb +0 -33
- data/vendor/seahorse/spec/seahorse/client/plugins/logging_spec.rb +0 -46
- data/vendor/seahorse/spec/seahorse/client/plugins/net_http_spec.rb +0 -70
- data/vendor/seahorse/spec/seahorse/client/plugins/operation_methods_spec.rb +0 -76
- data/vendor/seahorse/spec/seahorse/client/request_context_spec.rb +0 -105
- data/vendor/seahorse/spec/seahorse/client/request_spec.rb +0 -152
- data/vendor/seahorse/spec/seahorse/client/response_spec.rb +0 -95
- data/vendor/seahorse/spec/seahorse/client/xml/builder/xml_doc_spec.rb +0 -142
- data/vendor/seahorse/spec/seahorse/client/xml/builder_spec.rb +0 -10
- data/vendor/seahorse/spec/seahorse/model/api_spec.rb +0 -154
- data/vendor/seahorse/spec/seahorse/model/operation_spec.rb +0 -162
- data/vendor/seahorse/spec/seahorse/model/shape_map_spec.rb +0 -84
- data/vendor/seahorse/spec/seahorse/model/shapes_spec.rb +0 -522
- data/vendor/seahorse/spec/seahorse/util_spec.rb +0 -54
- data/vendor/seahorse/spec/seahorse/version_spec.rb +0 -11
- data/vendor/seahorse/spec/spec_helper.rb +0 -34
- data/vendor/seahorse/tasks/docs.rake +0 -11
- data/vendor/seahorse/tasks/test.rake +0 -15
- /data/apis/{autoscaling-2011-01-01.paginators.json → AutoScaling.paginators.json} +0 -0
- /data/apis/{cloudformation-2010-05-15.paginators.json → CloudFormation.paginators.json} +0 -0
- /data/apis/{cloudfront-2014-01-31.waiters.json → CloudFront.waiters.json} +0 -0
- /data/apis/{cloudsearch-2013-01-01.paginators.json → CloudSearch.paginators.json} +0 -0
- /data/apis/{cloudtrail-2013-11-01.paginators.json → CloudTrail.paginators.json} +0 -0
- /data/apis/{monitoring-2010-08-01.paginators.json → CloudWatch.paginators.json} +0 -0
- /data/apis/{logs-2014-03-28.paginators.json → CloudWatchLogs.paginators.json} +0 -0
- /data/apis/{datapipeline-2012-10-29.paginators.json → DataPipeline.paginators.json} +0 -0
- /data/apis/{directconnect-2012-10-25.paginators.json → DirectConnect.paginators.json} +0 -0
- /data/apis/{dynamodb-2012-08-10.waiters.json → DynamoDB.waiters.json} +0 -0
- /data/apis/{ec2-2014-06-15.paginators.json → EC2.paginators.json} +0 -0
- /data/apis/{ec2-2014-06-15.waiters.json → EC2.waiters.json} +0 -0
- /data/apis/{elasticmapreduce-2009-03-31.paginators.json → EMR.paginators.json} +0 -0
- /data/apis/{elasticache-2014-03-24.paginators.json → ElastiCache.paginators.json} +0 -0
- /data/apis/{elasticbeanstalk-2010-12-01.paginators.json → ElasticBeanstalk.paginators.json} +0 -0
- /data/apis/{elasticloadbalancing-2012-06-01.paginators.json → ElasticLoadBalancing.paginators.json} +0 -0
- /data/apis/{elastictranscoder-2012-09-25.paginators.json → ElasticTranscoder.paginators.json} +0 -0
- /data/apis/{glacier-2012-06-01.paginators.json → Glacier.paginators.json} +0 -0
- /data/apis/{glacier-2012-06-01.waiters.json → Glacier.waiters.json} +0 -0
- /data/apis/{iam-2010-05-08.paginators.json → IAM.paginators.json} +0 -0
- /data/apis/{importexport-2010-06-01.paginators.json → ImportExport.paginators.json} +0 -0
- /data/apis/{opsworks-2013-02-18.paginators.json → OpsWorks.paginators.json} +0 -0
- /data/apis/{rds-2013-01-10.paginators.json → RDS.paginators.json} +0 -0
- /data/apis/{rds-2013-09-09.waiters.json → RDS.waiters.json} +0 -0
- /data/apis/{redshift-2012-12-01.paginators.json → Redshift.paginators.json} +0 -0
- /data/apis/{redshift-2012-12-01.waiters.json → Redshift.waiters.json} +0 -0
- /data/apis/{route53-2013-04-01.paginators.json → Route53.paginators.json} +0 -0
- /data/apis/{s3-2006-03-01.waiters.json → S3.waiters.json} +0 -0
- /data/apis/{email-2010-12-01.paginators.json → SES.paginators.json} +0 -0
- /data/apis/{email-2010-12-01.waiters.json → SES.waiters.json} +0 -0
- /data/apis/{sns-2010-03-31.paginators.json → SNS.paginators.json} +0 -0
- /data/apis/{sns-2010-03-31.resources.json → SNS.resources.json} +0 -0
- /data/apis/{sqs-2012-11-05.paginators.json → SQS.paginators.json} +0 -0
- /data/apis/{swf-2012-01-25.paginators.json → SWF.paginators.json} +0 -0
- /data/apis/{sdb-2009-04-15.paginators.json → SimpleDB.paginators.json} +0 -0
- /data/apis/{storagegateway-2013-06-30.paginators.json → StorageGateway.paginators.json} +0 -0
- /data/apis/{support-2013-04-15.paginators.json → Support.paginators.json} +0 -0
- /data/lib/{aws → aws-sdk-core}/api/customizer.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/credentials.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/builder.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/error_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/parser.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/rest_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/rpc_body_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/rpc_headers_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/simple_body_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/null_pager.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/null_provider.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/pager.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/provider.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/dynamodb_extended_retries.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/ec2_copy_encrypted_snapshot.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/glacier_account_id.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/glacier_api_version.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/glacier_checksums.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/ec2.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/query.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/rest_json.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/rest_xml.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_bucket_dns.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_complete_multipart_upload_fix.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_get_bucket_location_fix.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_location_constraint.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_md5s.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_redirects.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/sqs_queue_urls.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/swf_read_timeouts.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/ec2_param_builder.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/param.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/param_builder.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/param_list.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/rest_body_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/shared_credentials.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/base.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/s3.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/v2.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/v3.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/tree_hash.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/xml/error_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/xml/rest_handler.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/block_io.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/configuration.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/handler.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/handler_builder.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/handler_list_entry.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/http/headers.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/http/response.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/logging/formatter.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/logging/handler.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/managed_file.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/param_validator.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugin.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugin_list.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/content_length.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/json_simple.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/logging.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/net_http.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/operation_methods.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/param_conversion.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/param_validation.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/raise_response_errors.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/request_context.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/model/api.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/model/operation.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/util.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/version.rb +0 -0
data/lib/aws-sdk-core.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'seahorse'
|
|
2
|
+
require 'multi_json'
|
|
2
3
|
|
|
3
4
|
Seahorse::Util.irregular_inflections({
|
|
4
5
|
'ARNs' => 'arns',
|
|
@@ -8,4 +9,290 @@ Seahorse::Util.irregular_inflections({
|
|
|
8
9
|
'iSCSI' => 'iscsi',
|
|
9
10
|
})
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
module Aws
|
|
13
|
+
|
|
14
|
+
# @api private
|
|
15
|
+
GEM_ROOT = File.dirname(File.dirname(__FILE__))
|
|
16
|
+
|
|
17
|
+
# @api private
|
|
18
|
+
APIS_DIR = File.join(GEM_ROOT, 'apis')
|
|
19
|
+
|
|
20
|
+
# @api private
|
|
21
|
+
# services
|
|
22
|
+
SERVICE_MODULE_NAMES = %w(
|
|
23
|
+
AutoScaling
|
|
24
|
+
CloudFormation
|
|
25
|
+
CloudFront
|
|
26
|
+
CloudSearch
|
|
27
|
+
CloudSearchDomain
|
|
28
|
+
CloudTrail
|
|
29
|
+
CloudWatch
|
|
30
|
+
CloudWatchLogs
|
|
31
|
+
CognitoIdentity
|
|
32
|
+
CognitoSync
|
|
33
|
+
DataPipeline
|
|
34
|
+
DirectConnect
|
|
35
|
+
DynamoDB
|
|
36
|
+
EC2
|
|
37
|
+
ElastiCache
|
|
38
|
+
ElasticBeanstalk
|
|
39
|
+
ElasticLoadBalancing
|
|
40
|
+
ElasticTranscoder
|
|
41
|
+
EMR
|
|
42
|
+
Glacier
|
|
43
|
+
IAM
|
|
44
|
+
ImportExport
|
|
45
|
+
Kinesis
|
|
46
|
+
OpsWorks
|
|
47
|
+
RDS
|
|
48
|
+
Redshift
|
|
49
|
+
Route53
|
|
50
|
+
Route53Domains
|
|
51
|
+
S3
|
|
52
|
+
SES
|
|
53
|
+
SimpleDB
|
|
54
|
+
SNS
|
|
55
|
+
SQS
|
|
56
|
+
StorageGateway
|
|
57
|
+
STS
|
|
58
|
+
Support
|
|
59
|
+
SWF
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
@config = {}
|
|
63
|
+
@services = {}
|
|
64
|
+
@service_added_callbacks = []
|
|
65
|
+
|
|
66
|
+
SERVICE_MODULE_NAMES.each do |const_name|
|
|
67
|
+
autoload const_name, "aws-sdk-core/#{const_name.downcase}"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
autoload :Client, 'aws-sdk-core/client'
|
|
71
|
+
autoload :CredentialProviderChain, 'aws-sdk-core/credential_provider_chain'
|
|
72
|
+
autoload :Credentials, 'aws-sdk-core/credentials'
|
|
73
|
+
autoload :EmptyStructure, 'aws-sdk-core/empty_structure'
|
|
74
|
+
autoload :EndpointProvider, 'aws-sdk-core/endpoint_provider'
|
|
75
|
+
autoload :Errors, 'aws-sdk-core/errors'
|
|
76
|
+
autoload :InstanceProfileCredentials, 'aws-sdk-core/instance_profile_credentials'
|
|
77
|
+
autoload :PageableResponse, 'aws-sdk-core/pageable_response'
|
|
78
|
+
autoload :RestBodyHandler, 'aws-sdk-core/rest_body_handler'
|
|
79
|
+
autoload :Service, 'aws-sdk-core/service'
|
|
80
|
+
autoload :SharedCredentials, 'aws-sdk-core/shared_credentials'
|
|
81
|
+
autoload :Structure, 'aws-sdk-core/structure'
|
|
82
|
+
autoload :TreeHash, 'aws-sdk-core/tree_hash'
|
|
83
|
+
autoload :VERSION, 'aws-sdk-core/version'
|
|
84
|
+
|
|
85
|
+
# @api private
|
|
86
|
+
module Api
|
|
87
|
+
autoload :Customizer, 'aws-sdk-core/api/customizer'
|
|
88
|
+
autoload :Documenter, 'aws-sdk-core/api/documenter'
|
|
89
|
+
autoload :Docstrings, 'aws-sdk-core/api/docstrings'
|
|
90
|
+
autoload :Manifest, 'aws-sdk-core/api/manifest'
|
|
91
|
+
autoload :ManifestBuilder, 'aws-sdk-core/api/manifest_builder'
|
|
92
|
+
autoload :OperationDocumenter, 'aws-sdk-core/api/operation_documenter'
|
|
93
|
+
autoload :OperationExample, 'aws-sdk-core/api/operation_example'
|
|
94
|
+
autoload :ServiceCustomizations, 'aws-sdk-core/api/service_customizations'
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @api private
|
|
98
|
+
module Json
|
|
99
|
+
autoload :Builder, 'aws-sdk-core/json/builder'
|
|
100
|
+
autoload :ErrorHandler, 'aws-sdk-core/json/error_handler'
|
|
101
|
+
autoload :Parser, 'aws-sdk-core/json/parser'
|
|
102
|
+
autoload :RestHandler, 'aws-sdk-core/json/rest_handler'
|
|
103
|
+
autoload :RpcBodyHandler, 'aws-sdk-core/json/rpc_body_handler'
|
|
104
|
+
autoload :RpcHeadersHandler, 'aws-sdk-core/json/rpc_headers_handler'
|
|
105
|
+
autoload :SimpleBodyHandler, 'aws-sdk-core/json/simple_body_handler'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# @api private
|
|
109
|
+
module Paging
|
|
110
|
+
autoload :NullPager, 'aws-sdk-core/paging/null_pager'
|
|
111
|
+
autoload :NullProvider, 'aws-sdk-core/paging/null_provider'
|
|
112
|
+
autoload :Pager, 'aws-sdk-core/paging/pager'
|
|
113
|
+
autoload :Provider, 'aws-sdk-core/paging/provider'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
module Plugins
|
|
117
|
+
autoload :CSDConditionalSigning, 'aws-sdk-core/plugins/csd_conditional_signing'
|
|
118
|
+
autoload :DynamoDBExtendedRetries, 'aws-sdk-core/plugins/dynamodb_extended_retries'
|
|
119
|
+
autoload :DynamoDBSimpleAttributes, 'aws-sdk-core/plugins/dynamodb_simple_attributes'
|
|
120
|
+
autoload :EC2CopyEncryptedSnapshot, 'aws-sdk-core/plugins/ec2_copy_encrypted_snapshot'
|
|
121
|
+
autoload :GlacierAccountId, 'aws-sdk-core/plugins/glacier_account_id'
|
|
122
|
+
autoload :GlacierApiVersion, 'aws-sdk-core/plugins/glacier_api_version'
|
|
123
|
+
autoload :GlacierChecksums, 'aws-sdk-core/plugins/glacier_checksums'
|
|
124
|
+
autoload :GlobalConfiguration, 'aws-sdk-core/plugins/global_configuration'
|
|
125
|
+
autoload :RegionalEndpoint, 'aws-sdk-core/plugins/regional_endpoint'
|
|
126
|
+
autoload :ResponsePaging, 'aws-sdk-core/plugins/response_paging'
|
|
127
|
+
autoload :RequestSigner, 'aws-sdk-core/plugins/request_signer'
|
|
128
|
+
autoload :RetryErrors, 'aws-sdk-core/plugins/retry_errors'
|
|
129
|
+
autoload :Route53IdFix, 'aws-sdk-core/plugins/route_53_id_fix'
|
|
130
|
+
autoload :S3BucketDns, 'aws-sdk-core/plugins/s3_bucket_dns'
|
|
131
|
+
autoload :S3CompleteMultipartUploadFix, 'aws-sdk-core/plugins/s3_complete_multipart_upload_fix'
|
|
132
|
+
autoload :S3Expect100Continue, 'aws-sdk-core/plugins/s3_expect_100_continue'
|
|
133
|
+
autoload :S3GetBucketLocationFix, 'aws-sdk-core/plugins/s3_get_bucket_location_fix'
|
|
134
|
+
autoload :S3LocationConstraint, 'aws-sdk-core/plugins/s3_location_constraint'
|
|
135
|
+
autoload :S3Md5s, 'aws-sdk-core/plugins/s3_md5s'
|
|
136
|
+
autoload :S3Redirects, 'aws-sdk-core/plugins/s3_redirects'
|
|
137
|
+
autoload :S3SseCpk, 'aws-sdk-core/plugins/s3_sse_cpk'
|
|
138
|
+
autoload :S3UrlEncodedKeys, 'aws-sdk-core/plugins/s3_url_encoded_keys'
|
|
139
|
+
autoload :SQSQueueUrls, 'aws-sdk-core/plugins/sqs_queue_urls'
|
|
140
|
+
autoload :SWFReadTimeouts, 'aws-sdk-core/plugins/swf_read_timeouts'
|
|
141
|
+
autoload :UserAgent, 'aws-sdk-core/plugins/user_agent'
|
|
142
|
+
|
|
143
|
+
module Protocols
|
|
144
|
+
autoload :EC2, 'aws-sdk-core/plugins/protocols/ec2'
|
|
145
|
+
autoload :JsonRpc, 'aws-sdk-core/plugins/protocols/json_rpc'
|
|
146
|
+
autoload :Query, 'aws-sdk-core/plugins/protocols/query'
|
|
147
|
+
autoload :RestJson, 'aws-sdk-core/plugins/protocols/rest_json'
|
|
148
|
+
autoload :RestXml, 'aws-sdk-core/plugins/protocols/rest_xml'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @api private
|
|
154
|
+
module Query
|
|
155
|
+
autoload :EC2ParamBuilder, 'aws-sdk-core/query/ec2_param_builder'
|
|
156
|
+
autoload :Handler, 'aws-sdk-core/query/handler'
|
|
157
|
+
autoload :Param, 'aws-sdk-core/query/param'
|
|
158
|
+
autoload :ParamBuilder, 'aws-sdk-core/query/param_builder'
|
|
159
|
+
autoload :ParamList, 'aws-sdk-core/query/param_list'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# @api private
|
|
163
|
+
module Signers
|
|
164
|
+
autoload :Base, 'aws-sdk-core/signers/base'
|
|
165
|
+
autoload :Handler, 'aws-sdk-core/signers/handler'
|
|
166
|
+
autoload :S3, 'aws-sdk-core/signers/s3'
|
|
167
|
+
autoload :V2, 'aws-sdk-core/signers/v2'
|
|
168
|
+
autoload :V3, 'aws-sdk-core/signers/v3'
|
|
169
|
+
autoload :V4, 'aws-sdk-core/signers/v4'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
module Waiters
|
|
173
|
+
autoload :Errors, 'aws-sdk-core/waiters/errors'
|
|
174
|
+
autoload :NullProvider, 'aws-sdk-core/waiters/null_provider'
|
|
175
|
+
autoload :Provider, 'aws-sdk-core/waiters/provider'
|
|
176
|
+
autoload :Waiter, 'aws-sdk-core/waiters/waiter'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @api private
|
|
180
|
+
module Xml
|
|
181
|
+
autoload :Builder, 'aws-sdk-core/xml/builder'
|
|
182
|
+
autoload :DefaultList, 'aws-sdk-core/xml/default_list'
|
|
183
|
+
autoload :ErrorHandler, 'aws-sdk-core/xml/error_handler'
|
|
184
|
+
autoload :Parser, 'aws-sdk-core/xml/parser'
|
|
185
|
+
autoload :RestHandler, 'aws-sdk-core/xml/rest_handler'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
class << self
|
|
189
|
+
|
|
190
|
+
# @return [Hash] Returns a hash of default configuration options shared
|
|
191
|
+
# by all constructed clients.
|
|
192
|
+
attr_reader :config
|
|
193
|
+
|
|
194
|
+
# @param [Hash] config
|
|
195
|
+
def config=(config)
|
|
196
|
+
if Hash === config
|
|
197
|
+
@config = config
|
|
198
|
+
else
|
|
199
|
+
raise ArgumentError, 'configuration object must be a hash'
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Yields to the given block for each service that has already been
|
|
204
|
+
# defined via {add_service}. Also yields to the given block for
|
|
205
|
+
# each new service added after the callback is registered.
|
|
206
|
+
# @api private
|
|
207
|
+
def service_added(&block)
|
|
208
|
+
callback = Proc.new
|
|
209
|
+
@services.each do |svc_name, (svc_module, options)|
|
|
210
|
+
yield(svc_name, svc_module, options)
|
|
211
|
+
end
|
|
212
|
+
@service_added_callbacks << callback
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# @api private
|
|
216
|
+
def load_json(path)
|
|
217
|
+
MultiJson.load(File.open(path, 'r', encoding: 'UTF-8') { |f| f.read })
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Registers a new service.
|
|
221
|
+
#
|
|
222
|
+
# Aws.add_service('SvcName',
|
|
223
|
+
# api: '/path/to/svc.api.json',
|
|
224
|
+
# paginators: '/path/to/svc.paginators.json',
|
|
225
|
+
# resources: '/path/to/svc.resources.json')
|
|
226
|
+
#
|
|
227
|
+
# Aws::SvcName::Client.new
|
|
228
|
+
# #=> #<Aws::SvcName::Client>
|
|
229
|
+
#
|
|
230
|
+
# @param [String] svc_name The name of the service. This will also be
|
|
231
|
+
# the namespace under {Aws}.
|
|
232
|
+
# @option options[required,String,Hash,Seahorse::Model::Api] :api
|
|
233
|
+
# @option options[String,Hash,Paging::Provider] :paginators
|
|
234
|
+
# @option options[String] :resources
|
|
235
|
+
# @yieldparam [String] svc_name
|
|
236
|
+
# @yieldparam [Module<Service>] svc_module
|
|
237
|
+
# @yieldparam [Hash<String,String>] svc_files
|
|
238
|
+
# @return [Module<Service>]
|
|
239
|
+
def add_service(svc_name, options = {})
|
|
240
|
+
svc_module = Module.new { extend Service }
|
|
241
|
+
const_set(svc_name, svc_module)
|
|
242
|
+
@services[svc_name] = [svc_module, options]
|
|
243
|
+
@service_added_callbacks.each do |callback|
|
|
244
|
+
callback.call(svc_name.to_s, *@services[svc_name])
|
|
245
|
+
end
|
|
246
|
+
svc_module
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# @api private
|
|
250
|
+
def load_all_services
|
|
251
|
+
SERVICE_MODULE_NAMES.each do |const_name|
|
|
252
|
+
const_get(const_name)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# build service client classes
|
|
259
|
+
service_added do |name, svc_module, options|
|
|
260
|
+
svc_module.const_set(:Client, Client.define(name, options))
|
|
261
|
+
svc_module.const_set(:Errors, Module.new { extend Errors::DynamicErrors })
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# build service paginators
|
|
265
|
+
service_added do |name, svc_module, options|
|
|
266
|
+
paginators = options[:paginators]
|
|
267
|
+
paginators = case paginators
|
|
268
|
+
when Paging::Provider then paginators
|
|
269
|
+
when Hash then Paging::Provider.new(paginators)
|
|
270
|
+
when String then Paging::Provider.new(Aws.load_json(paginators))
|
|
271
|
+
when nil then Paging::NullProvider.new
|
|
272
|
+
else raise ArgumentError, 'invalid :paginators option'
|
|
273
|
+
end
|
|
274
|
+
svc_module.const_get(:Client).paginators = paginators
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# build service waiters
|
|
278
|
+
service_added do |name, svc_module, options|
|
|
279
|
+
waiters = options[:waiters]
|
|
280
|
+
waiters = case waiters
|
|
281
|
+
when Waiters::Provider then waiters
|
|
282
|
+
when Hash then Waiters::Provider.new(waiters)
|
|
283
|
+
when String then Waiters::Provider.new(Aws.load_json(waiters))
|
|
284
|
+
when nil then Waiters::NullProvider.new
|
|
285
|
+
else raise ArgumentError, 'invalid :waiters option'
|
|
286
|
+
end
|
|
287
|
+
if name == 'S3'
|
|
288
|
+
# temporary workaround for issue with S3 waiter definition
|
|
289
|
+
defs = waiters.instance_variable_get("@definitions")
|
|
290
|
+
defs[:bucket_exists]['ignore_errors'] = ['NotFound']
|
|
291
|
+
defs[:object_exists]['ignore_errors'] = ['NotFound']
|
|
292
|
+
defs[:bucket_not_exists]['success_value'] = 'NotFound'
|
|
293
|
+
defs[:object_not_exists]['success_value'] = 'NotFound'
|
|
294
|
+
end
|
|
295
|
+
svc_module.const_get(:Client).waiters = waiters
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
end
|
|
@@ -6,17 +6,10 @@ module Seahorse
|
|
|
6
6
|
|
|
7
7
|
include HandlerBuilder
|
|
8
8
|
|
|
9
|
-
# These plugins are applied to every client and can not be removed.
|
|
10
|
-
# @api private
|
|
11
|
-
REQUIRED_PLUGINS = [
|
|
12
|
-
Plugins::Api,
|
|
13
|
-
Plugins::Endpoint,
|
|
14
|
-
]
|
|
15
|
-
|
|
16
9
|
# default plugins
|
|
17
10
|
@plugins = PluginList.new([
|
|
11
|
+
Plugins::Endpoint,
|
|
18
12
|
Plugins::NetHttp,
|
|
19
|
-
Plugins::OperationMethods,
|
|
20
13
|
Plugins::ParamConversion,
|
|
21
14
|
Plugins::ParamValidation,
|
|
22
15
|
Plugins::RaiseResponseErrors,
|
|
@@ -25,7 +18,7 @@ module Seahorse
|
|
|
25
18
|
# @api private
|
|
26
19
|
def initialize(plugins, options)
|
|
27
20
|
@config = build_config(plugins, options)
|
|
28
|
-
@handlers =
|
|
21
|
+
@handlers = build_handler_list(plugins)
|
|
29
22
|
after_initialize(plugins)
|
|
30
23
|
end
|
|
31
24
|
|
|
@@ -56,28 +49,64 @@ module Seahorse
|
|
|
56
49
|
"#<#{self.class.name}>"
|
|
57
50
|
end
|
|
58
51
|
|
|
52
|
+
# @return [Array<Symbol>] Returns a list of valid request operation
|
|
53
|
+
# names. These are valid arguments to {#build_request} and are also
|
|
54
|
+
# valid methods.
|
|
55
|
+
def operation_names
|
|
56
|
+
self.class.api.operation_names
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @api private
|
|
60
|
+
def respond_to?(method_name, *args)
|
|
61
|
+
if request_method?(method_name)
|
|
62
|
+
true
|
|
63
|
+
else
|
|
64
|
+
super
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @api private
|
|
69
|
+
def method_missing(method_name, *args, &block)
|
|
70
|
+
if request_method?(method_name)
|
|
71
|
+
make_request(method_name, *args, &block)
|
|
72
|
+
else
|
|
73
|
+
super
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
59
77
|
private
|
|
60
78
|
|
|
79
|
+
# @return [Boolean] Returns `true` if the method name is an API operation.t
|
|
80
|
+
def request_method?(method_name)
|
|
81
|
+
operation_names.include?(method_name.to_sym)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Builds and sends a request.
|
|
85
|
+
def make_request(name, *args, &block)
|
|
86
|
+
params = args[0] || {}
|
|
87
|
+
options = args[1] || {}
|
|
88
|
+
build_request(name, params).send_request(options, &block)
|
|
89
|
+
end
|
|
90
|
+
|
|
61
91
|
# Constructs a {Configuration} object and gives each plugin the
|
|
62
92
|
# opportunity to register options with default values.
|
|
63
93
|
def build_config(plugins, options)
|
|
64
|
-
options = options.merge(api: self.class.api) unless options[:api]
|
|
65
94
|
config = Configuration.new
|
|
95
|
+
config.add_option(:api)
|
|
66
96
|
plugins.each do |plugin|
|
|
67
97
|
plugin.add_options(config) if plugin.respond_to?(:add_options)
|
|
68
98
|
end
|
|
69
|
-
config.build!(options)
|
|
99
|
+
config.build!(options.merge(api: self.class.api))
|
|
70
100
|
end
|
|
71
101
|
|
|
72
102
|
# Gives each plugin the opportunity to register handlers for this client.
|
|
73
|
-
def
|
|
74
|
-
|
|
75
|
-
plugins.each do |plugin|
|
|
103
|
+
def build_handler_list(plugins)
|
|
104
|
+
plugins.inject(HandlerList.new) do |handlers, plugin|
|
|
76
105
|
if plugin.respond_to?(:add_handlers)
|
|
77
106
|
plugin.add_handlers(handlers, @config)
|
|
78
107
|
end
|
|
108
|
+
handlers
|
|
79
109
|
end
|
|
80
|
-
handlers
|
|
81
110
|
end
|
|
82
111
|
|
|
83
112
|
# Gives each plugin the opportunity to modify this client.
|
|
@@ -108,9 +137,6 @@ module Seahorse
|
|
|
108
137
|
client
|
|
109
138
|
end
|
|
110
139
|
|
|
111
|
-
# Used by plugins that modify the client class.
|
|
112
|
-
attr_reader :mutex
|
|
113
|
-
|
|
114
140
|
# Registers a plugin with this client.
|
|
115
141
|
#
|
|
116
142
|
# @example Register a plugin
|
|
@@ -172,7 +198,7 @@ module Seahorse
|
|
|
172
198
|
# @see .remove_plugin
|
|
173
199
|
# @return [Array<Plugin>]
|
|
174
200
|
def plugins
|
|
175
|
-
|
|
201
|
+
Array(@plugins).freeze
|
|
176
202
|
end
|
|
177
203
|
|
|
178
204
|
# @return [Model::Api]
|
|
@@ -218,7 +244,6 @@ module Seahorse
|
|
|
218
244
|
|
|
219
245
|
def inherited(subclass)
|
|
220
246
|
subclass.instance_variable_set('@plugins', PluginList.new(@plugins))
|
|
221
|
-
subclass.instance_variable_set("@mutex", Mutex.new)
|
|
222
247
|
end
|
|
223
248
|
|
|
224
249
|
end
|
|
@@ -112,12 +112,26 @@ module Seahorse
|
|
|
112
112
|
handler_class
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
+
# @param [Class<Handler>] handler_class
|
|
116
|
+
def remove(handler_class)
|
|
117
|
+
@entries.each do |key, entry|
|
|
118
|
+
@entries.delete(key) if entry.handler_class == handler_class
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
115
122
|
# Copies handlers from the `source_list` onto the current handler list.
|
|
123
|
+
# If a block is given, only the entries that return a `true` value
|
|
124
|
+
# from the block will be copied.
|
|
116
125
|
# @param [HandlerList] source_list
|
|
117
126
|
# @return [void]
|
|
118
|
-
def copy_from(source_list)
|
|
119
|
-
entries =
|
|
120
|
-
|
|
127
|
+
def copy_from(source_list, &block)
|
|
128
|
+
entries = []
|
|
129
|
+
source_list.entries.each do |entry|
|
|
130
|
+
if block_given?
|
|
131
|
+
entries << entry.copy(inserted: next_index) if yield(entry)
|
|
132
|
+
else
|
|
133
|
+
entries << entry.copy(inserted: next_index)
|
|
134
|
+
end
|
|
121
135
|
end
|
|
122
136
|
add_entries(entries)
|
|
123
137
|
end
|
|
@@ -14,7 +14,6 @@ module Seahorse
|
|
|
14
14
|
self.endpoint = options[:endpoint] if options[:endpoint]
|
|
15
15
|
self.http_method = options[:http_method] || 'GET'
|
|
16
16
|
self.headers = Headers.new(options[:headers] || {})
|
|
17
|
-
self.headers['User-Agent'] ||= ua
|
|
18
17
|
self.body = options[:body]
|
|
19
18
|
end
|
|
20
19
|
|
|
@@ -30,7 +29,7 @@ module Seahorse
|
|
|
30
29
|
# @return [IO]
|
|
31
30
|
attr_reader :body
|
|
32
31
|
|
|
33
|
-
# @param [String, URI::HTTP, URI::HTTPS, nil]
|
|
32
|
+
# @param [String, URI::HTTP, URI::HTTPS, nil] endpoint
|
|
34
33
|
def endpoint=(endpoint)
|
|
35
34
|
endpoint = URI.parse(endpoint) if endpoint.is_a?(String)
|
|
36
35
|
if endpoint.nil? or URI::HTTP === endpoint or URI::HTTPS === endpoint
|
|
@@ -59,13 +58,6 @@ module Seahorse
|
|
|
59
58
|
end
|
|
60
59
|
end
|
|
61
60
|
|
|
62
|
-
private
|
|
63
|
-
|
|
64
|
-
# @return [String]
|
|
65
|
-
def ua
|
|
66
|
-
"Seahorse/#{Seahorse::VERSION}"
|
|
67
|
-
end
|
|
68
|
-
|
|
69
61
|
end
|
|
70
62
|
end
|
|
71
63
|
end
|
|
@@ -12,6 +12,9 @@ module Seahorse
|
|
|
12
12
|
Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError
|
|
13
13
|
]
|
|
14
14
|
|
|
15
|
+
# @api private
|
|
16
|
+
DNS_ERROR_MESSAGE = 'getaddrinfo: nodename nor servname provided, or not known'
|
|
17
|
+
|
|
15
18
|
# Raised when a {Handler} can not construct a `Net::HTTP::Request`
|
|
16
19
|
# from the given http verb.
|
|
17
20
|
class InvalidHttpVerbError < StandardError; end
|
|
@@ -23,7 +26,7 @@ module Seahorse
|
|
|
23
26
|
begin
|
|
24
27
|
transmit(context.config, context.http_request, context.http_response)
|
|
25
28
|
rescue *NETWORK_ERRORS => error
|
|
26
|
-
response.error = Http::Error.new(error)
|
|
29
|
+
response.error = Http::Error.new(error, error_message(context, error))
|
|
27
30
|
end
|
|
28
31
|
response
|
|
29
32
|
end
|
|
@@ -36,6 +39,15 @@ module Seahorse
|
|
|
36
39
|
|
|
37
40
|
private
|
|
38
41
|
|
|
42
|
+
def error_message(context, error)
|
|
43
|
+
if error.is_a?(SocketError) && error.message == DNS_ERROR_MESSAGE
|
|
44
|
+
host = context.http_request.endpoint.host
|
|
45
|
+
"unable to connect to `#{host}`; SocketError: #{error.message}"
|
|
46
|
+
else
|
|
47
|
+
error.message
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
39
51
|
# @param [Configuration] config
|
|
40
52
|
# @param [Http::Request] request
|
|
41
53
|
# @param [Http::Response] response
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
require 'net/http'
|
|
2
|
+
|
|
3
|
+
module Seahorse
|
|
4
|
+
module Client
|
|
5
|
+
module NetHttp
|
|
6
|
+
|
|
7
|
+
# @api private
|
|
8
|
+
module Patches
|
|
9
|
+
|
|
10
|
+
def self.apply!
|
|
11
|
+
if RUBY_VERSION >= '2.0'
|
|
12
|
+
Net::HTTP.send(:include, Ruby_2)
|
|
13
|
+
elsif RUBY_VERSION >= '1.9.3'
|
|
14
|
+
Net::HTTP.send(:include, Ruby_1_9_3)
|
|
15
|
+
end
|
|
16
|
+
Net::HTTP.send(:alias_method, :old_transport_request, :transport_request)
|
|
17
|
+
Net::HTTP.send(:alias_method, :transport_request, :new_transport_request)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
module Ruby_2
|
|
21
|
+
def new_transport_request(req)
|
|
22
|
+
count = 0
|
|
23
|
+
begin
|
|
24
|
+
begin_transport req
|
|
25
|
+
res = catch(:response) {
|
|
26
|
+
req.exec @socket, @curr_http_version, edit_path(req.path)
|
|
27
|
+
begin
|
|
28
|
+
res = Net::HTTPResponse.read_new(@socket)
|
|
29
|
+
res.decode_content = req.decode_content
|
|
30
|
+
end while res.kind_of?(Net::HTTPContinue)
|
|
31
|
+
|
|
32
|
+
res.uri = req.uri
|
|
33
|
+
|
|
34
|
+
res
|
|
35
|
+
}
|
|
36
|
+
res.reading_body(@socket, req.response_body_permitted?) {
|
|
37
|
+
yield res if block_given?
|
|
38
|
+
}
|
|
39
|
+
rescue Net::OpenTimeout
|
|
40
|
+
raise
|
|
41
|
+
rescue Net::ReadTimeout, IOError, EOFError,
|
|
42
|
+
Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE,
|
|
43
|
+
# avoid a dependency on OpenSSL
|
|
44
|
+
defined?(OpenSSL::SSL) ? OpenSSL::SSL::SSLError : IOError,
|
|
45
|
+
Timeout::Error => exception
|
|
46
|
+
if count == 0 && Net::HTTP::IDEMPOTENT_METHODS_.include?(req.method)
|
|
47
|
+
count += 1
|
|
48
|
+
@socket.close if @socket and not @socket.closed?
|
|
49
|
+
D "Conn close because of error #{exception}, and retry"
|
|
50
|
+
if req.body_stream
|
|
51
|
+
if req.body_stream.respond_to?(:rewind)
|
|
52
|
+
req.body_stream.rewind
|
|
53
|
+
else
|
|
54
|
+
raise
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
retry
|
|
58
|
+
end
|
|
59
|
+
D "Conn close because of error #{exception}"
|
|
60
|
+
@socket.close if @socket and not @socket.closed?
|
|
61
|
+
raise
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
end_transport req, res
|
|
65
|
+
res
|
|
66
|
+
rescue => exception
|
|
67
|
+
D "Conn close because of error #{exception}"
|
|
68
|
+
@socket.close if @socket and not @socket.closed?
|
|
69
|
+
raise exception
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
module Ruby_1_9_3
|
|
74
|
+
def new_transport_request(req)
|
|
75
|
+
begin_transport req
|
|
76
|
+
res = catch(:response) {
|
|
77
|
+
req.exec @socket, @curr_http_version, edit_path(req.path)
|
|
78
|
+
begin
|
|
79
|
+
res = Net::HTTPResponse.read_new(@socket)
|
|
80
|
+
end while res.kind_of?(Net::HTTPContinue)
|
|
81
|
+
res
|
|
82
|
+
}
|
|
83
|
+
res.reading_body(@socket, req.response_body_permitted?) {
|
|
84
|
+
yield res if block_given?
|
|
85
|
+
}
|
|
86
|
+
end_transport req, res
|
|
87
|
+
res
|
|
88
|
+
rescue => exception
|
|
89
|
+
D "Conn close because of error #{exception}"
|
|
90
|
+
@socket.close if @socket and not @socket.closed?
|
|
91
|
+
raise exception
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -39,7 +39,7 @@ module Seahorse
|
|
|
39
39
|
def list(list, values)
|
|
40
40
|
values = c(list, values)
|
|
41
41
|
if values.is_a?(Array)
|
|
42
|
-
values.map { |v|
|
|
42
|
+
values.map { |v| member(list.member, v) }
|
|
43
43
|
else
|
|
44
44
|
values
|
|
45
45
|
end
|
|
@@ -49,7 +49,7 @@ module Seahorse
|
|
|
49
49
|
values = c(map, values)
|
|
50
50
|
if values.is_a?(Hash)
|
|
51
51
|
values.each.with_object({}) do |(key, value), hash|
|
|
52
|
-
hash[
|
|
52
|
+
hash[member(map.key, key)] = member(map.value, value)
|
|
53
53
|
end
|
|
54
54
|
else
|
|
55
55
|
values
|