aws-sdk-mturk 1.20.0 → 1.21.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 +5 -5
- data/lib/aws-sdk-mturk.rb +1 -1
- data/lib/aws-sdk-mturk/client.rb +43 -20
- data/lib/aws-sdk-mturk/resource.rb +1 -7
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: de3364ff5d64375103cd76fa40978b271c14aa2e47a2aaa2bea442572bd17db0
         | 
| 4 | 
            +
              data.tar.gz: dce932094daaae496b276eeb067b52690912a41c3231e51deaf43af54e837e93
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f918cb87918bc7eba031499634a560e5096935424df37c56b4a2e73d694acdddd24d148e4b3e51015e4dfca698372cd570b34042a0b6b9f82303fc243034027a
         | 
| 7 | 
            +
              data.tar.gz: 2028fdbf432500bc637413cd080a45572be5f103f3e8befa24824441301bbb00189beeb34b7baca9afa7ca080ac8f9cda916674fd1f8e6884ddb8406c348f4a9
         | 
    
        data/lib/aws-sdk-mturk.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-mturk/client.rb
    CHANGED
    
    | @@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:mturk) | |
| 32 32 | 
             
            module Aws::MTurk
         | 
| 33 33 | 
             
              # An API client for MTurk.  To construct a client, you need to configure a `:region` and `:credentials`.
         | 
| 34 34 | 
             
              #
         | 
| 35 | 
            -
              # | 
| 36 | 
            -
              # | 
| 37 | 
            -
              # | 
| 38 | 
            -
              # | 
| 39 | 
            -
              # | 
| 35 | 
            +
              #     client = Aws::MTurk::Client.new(
         | 
| 36 | 
            +
              #       region: region_name,
         | 
| 37 | 
            +
              #       credentials: credentials,
         | 
| 38 | 
            +
              #       # ...
         | 
| 39 | 
            +
              #     )
         | 
| 40 40 | 
             
              #
         | 
| 41 41 | 
             
              # For details on configuring region and credentials see
         | 
| 42 42 | 
             
              # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
         | 
| @@ -105,7 +105,7 @@ module Aws::MTurk | |
| 105 105 | 
             
                #   @option options [required, String] :region
         | 
| 106 106 | 
             
                #     The AWS region to connect to.  The configured `:region` is
         | 
| 107 107 | 
             
                #     used to determine the service `:endpoint`. When not passed,
         | 
| 108 | 
            -
                #     a default `:region` is  | 
| 108 | 
            +
                #     a default `:region` is searched for in the following locations:
         | 
| 109 109 | 
             
                #
         | 
| 110 110 | 
             
                #     * `Aws.config[:region]`
         | 
| 111 111 | 
             
                #     * `ENV['AWS_REGION']`
         | 
| @@ -161,7 +161,7 @@ module Aws::MTurk | |
| 161 161 | 
             
                #   @option options [String] :endpoint
         | 
| 162 162 | 
             
                #     The client endpoint is normally constructed from the `:region`
         | 
| 163 163 | 
             
                #     option. You should only configure an `:endpoint` when connecting
         | 
| 164 | 
            -
                #     to test endpoints. This should be  | 
| 164 | 
            +
                #     to test endpoints. This should be a valid HTTP(S) URI.
         | 
| 165 165 | 
             
                #
         | 
| 166 166 | 
             
                #   @option options [Integer] :endpoint_cache_max_entries (1000)
         | 
| 167 167 | 
             
                #     Used for the maximum size limit of the LRU cache storing endpoints data
         | 
| @@ -229,15 +229,19 @@ module Aws::MTurk | |
| 229 229 | 
             
                #
         | 
| 230 230 | 
             
                #   @option options [String] :retry_mode ("legacy")
         | 
| 231 231 | 
             
                #     Specifies which retry algorithm to use. Values are:
         | 
| 232 | 
            -
                # | 
| 233 | 
            -
                # | 
| 234 | 
            -
                #        | 
| 235 | 
            -
                # | 
| 236 | 
            -
                # | 
| 237 | 
            -
                #        | 
| 238 | 
            -
                # | 
| 239 | 
            -
                # | 
| 240 | 
            -
                # | 
| 232 | 
            +
                #
         | 
| 233 | 
            +
                #     * `legacy` - The pre-existing retry behavior.  This is default value if
         | 
| 234 | 
            +
                #       no retry mode is provided.
         | 
| 235 | 
            +
                #
         | 
| 236 | 
            +
                #     * `standard` - A standardized set of retry rules across the AWS SDKs.
         | 
| 237 | 
            +
                #       This includes support for retry quotas, which limit the number of
         | 
| 238 | 
            +
                #       unsuccessful retries a client can make.
         | 
| 239 | 
            +
                #
         | 
| 240 | 
            +
                #     * `adaptive` - An experimental retry mode that includes all the
         | 
| 241 | 
            +
                #       functionality of `standard` mode along with automatic client side
         | 
| 242 | 
            +
                #       throttling.  This is a provisional mode that may change behavior
         | 
| 243 | 
            +
                #       in the future.
         | 
| 244 | 
            +
                #
         | 
| 241 245 | 
             
                #
         | 
| 242 246 | 
             
                #   @option options [String] :secret_access_key
         | 
| 243 247 | 
             
                #
         | 
| @@ -275,8 +279,7 @@ module Aws::MTurk | |
| 275 279 | 
             
                #
         | 
| 276 280 | 
             
                #   @option options [Integer] :http_read_timeout (60) The default
         | 
| 277 281 | 
             
                #     number of seconds to wait for response data.  This value can
         | 
| 278 | 
            -
                #     safely be set
         | 
| 279 | 
            -
                #     per-request on the session yielded by {#session_for}.
         | 
| 282 | 
            +
                #     safely be set per-request on the session.
         | 
| 280 283 | 
             
                #
         | 
| 281 284 | 
             
                #   @option options [Float] :http_idle_timeout (5) The number of
         | 
| 282 285 | 
             
                #     seconds a connection is allowed to sit idle before it is
         | 
| @@ -288,7 +291,7 @@ module Aws::MTurk | |
| 288 291 | 
             
                #     request body.  This option has no effect unless the request has
         | 
| 289 292 | 
             
                #     "Expect" header set to "100-continue".  Defaults to `nil` which
         | 
| 290 293 | 
             
                #     disables this behaviour.  This value can safely be set per
         | 
| 291 | 
            -
                #     request on the session | 
| 294 | 
            +
                #     request on the session.
         | 
| 292 295 | 
             
                #
         | 
| 293 296 | 
             
                #   @option options [Boolean] :http_wire_trace (false) When `true`,
         | 
| 294 297 | 
             
                #     HTTP debug output will be sent to the `:logger`.
         | 
| @@ -1676,6 +1679,8 @@ module Aws::MTurk | |
| 1676 1679 | 
             
                #   * {Types::ListAssignmentsForHITResponse#num_results #num_results} => Integer
         | 
| 1677 1680 | 
             
                #   * {Types::ListAssignmentsForHITResponse#assignments #assignments} => Array<Types::Assignment>
         | 
| 1678 1681 | 
             
                #
         | 
| 1682 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 1683 | 
            +
                #
         | 
| 1679 1684 | 
             
                # @example Request syntax with placeholder values
         | 
| 1680 1685 | 
             
                #
         | 
| 1681 1686 | 
             
                #   resp = client.list_assignments_for_hit({
         | 
| @@ -1738,6 +1743,8 @@ module Aws::MTurk | |
| 1738 1743 | 
             
                #   * {Types::ListBonusPaymentsResponse#next_token #next_token} => String
         | 
| 1739 1744 | 
             
                #   * {Types::ListBonusPaymentsResponse#bonus_payments #bonus_payments} => Array<Types::BonusPayment>
         | 
| 1740 1745 | 
             
                #
         | 
| 1746 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 1747 | 
            +
                #
         | 
| 1741 1748 | 
             
                # @example Request syntax with placeholder values
         | 
| 1742 1749 | 
             
                #
         | 
| 1743 1750 | 
             
                #   resp = client.list_bonus_payments({
         | 
| @@ -1783,6 +1790,8 @@ module Aws::MTurk | |
| 1783 1790 | 
             
                #   * {Types::ListHITsResponse#num_results #num_results} => Integer
         | 
| 1784 1791 | 
             
                #   * {Types::ListHITsResponse#hits #hits} => Array<Types::HIT>
         | 
| 1785 1792 | 
             
                #
         | 
| 1793 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 1794 | 
            +
                #
         | 
| 1786 1795 | 
             
                # @example Request syntax with placeholder values
         | 
| 1787 1796 | 
             
                #
         | 
| 1788 1797 | 
             
                #   resp = client.list_hits({
         | 
| @@ -1855,6 +1864,8 @@ module Aws::MTurk | |
| 1855 1864 | 
             
                #   * {Types::ListHITsForQualificationTypeResponse#num_results #num_results} => Integer
         | 
| 1856 1865 | 
             
                #   * {Types::ListHITsForQualificationTypeResponse#hits #hits} => Array<Types::HIT>
         | 
| 1857 1866 | 
             
                #
         | 
| 1867 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 1868 | 
            +
                #
         | 
| 1858 1869 | 
             
                # @example Request syntax with placeholder values
         | 
| 1859 1870 | 
             
                #
         | 
| 1860 1871 | 
             
                #   resp = client.list_hits_for_qualification_type({
         | 
| @@ -1931,6 +1942,8 @@ module Aws::MTurk | |
| 1931 1942 | 
             
                #   * {Types::ListQualificationRequestsResponse#next_token #next_token} => String
         | 
| 1932 1943 | 
             
                #   * {Types::ListQualificationRequestsResponse#qualification_requests #qualification_requests} => Array<Types::QualificationRequest>
         | 
| 1933 1944 | 
             
                #
         | 
| 1945 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 1946 | 
            +
                #
         | 
| 1934 1947 | 
             
                # @example Request syntax with placeholder values
         | 
| 1935 1948 | 
             
                #
         | 
| 1936 1949 | 
             
                #   resp = client.list_qualification_requests({
         | 
| @@ -1995,6 +2008,8 @@ module Aws::MTurk | |
| 1995 2008 | 
             
                #   * {Types::ListQualificationTypesResponse#next_token #next_token} => String
         | 
| 1996 2009 | 
             
                #   * {Types::ListQualificationTypesResponse#qualification_types #qualification_types} => Array<Types::QualificationType>
         | 
| 1997 2010 | 
             
                #
         | 
| 2011 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 2012 | 
            +
                #
         | 
| 1998 2013 | 
             
                # @example Request syntax with placeholder values
         | 
| 1999 2014 | 
             
                #
         | 
| 2000 2015 | 
             
                #   resp = client.list_qualification_types({
         | 
| @@ -2072,6 +2087,8 @@ module Aws::MTurk | |
| 2072 2087 | 
             
                #   * {Types::ListReviewPolicyResultsForHITResponse#hit_review_report #hit_review_report} => Types::ReviewReport
         | 
| 2073 2088 | 
             
                #   * {Types::ListReviewPolicyResultsForHITResponse#next_token #next_token} => String
         | 
| 2074 2089 | 
             
                #
         | 
| 2090 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 2091 | 
            +
                #
         | 
| 2075 2092 | 
             
                # @example Request syntax with placeholder values
         | 
| 2076 2093 | 
             
                #
         | 
| 2077 2094 | 
             
                #   resp = client.list_review_policy_results_for_hit({
         | 
| @@ -2171,6 +2188,8 @@ module Aws::MTurk | |
| 2171 2188 | 
             
                #   * {Types::ListReviewableHITsResponse#num_results #num_results} => Integer
         | 
| 2172 2189 | 
             
                #   * {Types::ListReviewableHITsResponse#hits #hits} => Array<Types::HIT>
         | 
| 2173 2190 | 
             
                #
         | 
| 2191 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 2192 | 
            +
                #
         | 
| 2174 2193 | 
             
                # @example Request syntax with placeholder values
         | 
| 2175 2194 | 
             
                #
         | 
| 2176 2195 | 
             
                #   resp = client.list_reviewable_hits({
         | 
| @@ -2239,6 +2258,8 @@ module Aws::MTurk | |
| 2239 2258 | 
             
                #   * {Types::ListWorkerBlocksResponse#num_results #num_results} => Integer
         | 
| 2240 2259 | 
             
                #   * {Types::ListWorkerBlocksResponse#worker_blocks #worker_blocks} => Array<Types::WorkerBlock>
         | 
| 2241 2260 | 
             
                #
         | 
| 2261 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 2262 | 
            +
                #
         | 
| 2242 2263 | 
             
                # @example Request syntax with placeholder values
         | 
| 2243 2264 | 
             
                #
         | 
| 2244 2265 | 
             
                #   resp = client.list_worker_blocks({
         | 
| @@ -2285,6 +2306,8 @@ module Aws::MTurk | |
| 2285 2306 | 
             
                #   * {Types::ListWorkersWithQualificationTypeResponse#num_results #num_results} => Integer
         | 
| 2286 2307 | 
             
                #   * {Types::ListWorkersWithQualificationTypeResponse#qualifications #qualifications} => Array<Types::Qualification>
         | 
| 2287 2308 | 
             
                #
         | 
| 2309 | 
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         | 
| 2310 | 
            +
                #
         | 
| 2288 2311 | 
             
                # @example Request syntax with placeholder values
         | 
| 2289 2312 | 
             
                #
         | 
| 2290 2313 | 
             
                #   resp = client.list_workers_with_qualification_type({
         | 
| @@ -2817,7 +2840,7 @@ module Aws::MTurk | |
| 2817 2840 | 
             
                    params: params,
         | 
| 2818 2841 | 
             
                    config: config)
         | 
| 2819 2842 | 
             
                  context[:gem_name] = 'aws-sdk-mturk'
         | 
| 2820 | 
            -
                  context[:gem_version] = '1. | 
| 2843 | 
            +
                  context[:gem_version] = '1.21.0'
         | 
| 2821 2844 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 2822 2845 | 
             
                end
         | 
| 2823 2846 |  | 
| @@ -6,13 +6,7 @@ | |
| 6 6 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 7 7 |  | 
| 8 8 | 
             
            module Aws::MTurk
         | 
| 9 | 
            -
             | 
| 10 | 
            -
              # To create a resource object:
         | 
| 11 | 
            -
              #     resource = Aws::MTurk::Resource.new(region: 'us-west-2')
         | 
| 12 | 
            -
              # You can supply a client object with custom configuration that will be used for all resource operations.
         | 
| 13 | 
            -
              # If you do not pass +:client+, a default client will be constructed.
         | 
| 14 | 
            -
              #     client = Aws::MTurk::Client.new(region: 'us-west-2')
         | 
| 15 | 
            -
              #     resource = Aws::MTurk::Resource.new(client: client)
         | 
| 9 | 
            +
             | 
| 16 10 | 
             
              class Resource
         | 
| 17 11 |  | 
| 18 12 | 
             
                # @param options ({})
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-mturk
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.21.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Amazon Web Services
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-05-07 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         | 
| @@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 81 81 | 
             
                  version: '0'
         | 
| 82 82 | 
             
            requirements: []
         | 
| 83 83 | 
             
            rubyforge_project: 
         | 
| 84 | 
            -
            rubygems_version: 2. | 
| 84 | 
            +
            rubygems_version: 2.7.6.2
         | 
| 85 85 | 
             
            signing_key: 
         | 
| 86 86 | 
             
            specification_version: 4
         | 
| 87 87 | 
             
            summary: AWS SDK for Ruby - Amazon MTurk
         |