aws-sdk-mturk 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f3f096d9259613ccf0e4cd6d1a3d50953db29fd
4
- data.tar.gz: 6b77553ba2580166c63b64506ebcb10fbcbcf0d8
3
+ metadata.gz: f84a4daeeeeac0ae9e79d2e145af926303dec6d2
4
+ data.tar.gz: 844de168d6d0ce242a0f0f8ae2e28e407aa970ff
5
5
  SHA512:
6
- metadata.gz: 45b40e5d077dcd9d60f306d9e5d790ec4f763d40596b800b5ad507581eb700dd1af7fb35318d71b679ec9d6eb362a4f37dc4941cdef3f123455a05543db1a3af
7
- data.tar.gz: 03bc35e90b2d0b45591ac18498d82a392664c2e3751f59173c39c3a377d4361576881c7a9ce8b0f42e1b7c2abf66cefbed730d6b215ec64e0205fc768deedcbb
6
+ metadata.gz: 171e6e5103506bc3ccb498cbf60994c292fd1f14ab67406d6e5e6ade757070b95dbc2e81f057693729924d4054454d725f620fd4a31aa1da162e19c97a5231b6
7
+ data.tar.gz: 3f0a26c279bf7a4ee923266f2e086242c750dbcc40595d1dfba3bd229b5efce825e911e6c28800faa5ae429c59d123cade5b58b6fa9e6166b39c7f98c6b55d19
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-mturk/customizations'
42
42
  # @service
43
43
  module Aws::MTurk
44
44
 
45
- GEM_VERSION = '1.2.0'
45
+ GEM_VERSION = '1.3.0'
46
46
 
47
47
  end
@@ -454,8 +454,12 @@ module Aws::MTurk
454
454
  # submit. It does not affect how your HITs are grouped.
455
455
  #
456
456
  # @option params [Array<Types::QualificationRequirement>] :qualification_requirements
457
- # A condition that a Worker's Qualifications must meet before the
458
- # Worker is allowed to accept and complete the HIT.
457
+ # Conditions that a Worker's Qualifications must meet in order to
458
+ # accept the HIT. A HIT can have between zero and ten Qualification
459
+ # requirements. All requirements must be met in order for a Worker to
460
+ # accept the HIT. Additionally, other actions can be restricted using
461
+ # the `ActionsGuarded` field on each `QualificationRequirement`
462
+ # structure.
459
463
  #
460
464
  # @option params [String] :unique_request_token
461
465
  # A unique identifier for this request which allows you to retry the
@@ -524,6 +528,7 @@ module Aws::MTurk
524
528
  # },
525
529
  # ],
526
530
  # required_to_preview: false,
531
+ # actions_guarded: "Accept", # accepts Accept, PreviewAndAccept, DiscoverPreviewAndAccept
527
532
  # },
528
533
  # ],
529
534
  # unique_request_token: "IdempotencyToken",
@@ -593,6 +598,7 @@ module Aws::MTurk
593
598
  # resp.hit.qualification_requirements[0].locale_values[0].country #=> String
594
599
  # resp.hit.qualification_requirements[0].locale_values[0].subdivision #=> String
595
600
  # resp.hit.qualification_requirements[0].required_to_preview #=> Boolean
601
+ # resp.hit.qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
596
602
  # resp.hit.hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
597
603
  # resp.hit.number_of_assignments_pending #=> Integer
598
604
  # resp.hit.number_of_assignments_available #=> Integer
@@ -648,8 +654,12 @@ module Aws::MTurk
648
654
  # before accepting it.
649
655
  #
650
656
  # @option params [Array<Types::QualificationRequirement>] :qualification_requirements
651
- # A condition that a Worker's Qualifications must meet before the
652
- # Worker is allowed to accept and complete the HIT.
657
+ # Conditions that a Worker's Qualifications must meet in order to
658
+ # accept the HIT. A HIT can have between zero and ten Qualification
659
+ # requirements. All requirements must be met in order for a Worker to
660
+ # accept the HIT. Additionally, other actions can be restricted using
661
+ # the `ActionsGuarded` field on each `QualificationRequirement`
662
+ # structure.
653
663
  #
654
664
  # @return [Types::CreateHITTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
655
665
  #
@@ -676,6 +686,7 @@ module Aws::MTurk
676
686
  # },
677
687
  # ],
678
688
  # required_to_preview: false,
689
+ # actions_guarded: "Accept", # accepts Accept, PreviewAndAccept, DiscoverPreviewAndAccept
679
690
  # },
680
691
  # ],
681
692
  # })
@@ -870,6 +881,7 @@ module Aws::MTurk
870
881
  # resp.hit.qualification_requirements[0].locale_values[0].country #=> String
871
882
  # resp.hit.qualification_requirements[0].locale_values[0].subdivision #=> String
872
883
  # resp.hit.qualification_requirements[0].required_to_preview #=> Boolean
884
+ # resp.hit.qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
873
885
  # resp.hit.hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
874
886
  # resp.hit.number_of_assignments_pending #=> Integer
875
887
  # resp.hit.number_of_assignments_available #=> Integer
@@ -1259,6 +1271,7 @@ module Aws::MTurk
1259
1271
  # resp.hit.qualification_requirements[0].locale_values[0].country #=> String
1260
1272
  # resp.hit.qualification_requirements[0].locale_values[0].subdivision #=> String
1261
1273
  # resp.hit.qualification_requirements[0].required_to_preview #=> Boolean
1274
+ # resp.hit.qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
1262
1275
  # resp.hit.hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
1263
1276
  # resp.hit.number_of_assignments_pending #=> Integer
1264
1277
  # resp.hit.number_of_assignments_available #=> Integer
@@ -1360,6 +1373,7 @@ module Aws::MTurk
1360
1373
  # resp.hit.qualification_requirements[0].locale_values[0].country #=> String
1361
1374
  # resp.hit.qualification_requirements[0].locale_values[0].subdivision #=> String
1362
1375
  # resp.hit.qualification_requirements[0].required_to_preview #=> Boolean
1376
+ # resp.hit.qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
1363
1377
  # resp.hit.hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
1364
1378
  # resp.hit.number_of_assignments_pending #=> Integer
1365
1379
  # resp.hit.number_of_assignments_available #=> Integer
@@ -1646,6 +1660,7 @@ module Aws::MTurk
1646
1660
  # resp.hits[0].qualification_requirements[0].locale_values[0].country #=> String
1647
1661
  # resp.hits[0].qualification_requirements[0].locale_values[0].subdivision #=> String
1648
1662
  # resp.hits[0].qualification_requirements[0].required_to_preview #=> Boolean
1663
+ # resp.hits[0].qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
1649
1664
  # resp.hits[0].hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
1650
1665
  # resp.hits[0].number_of_assignments_pending #=> Integer
1651
1666
  # resp.hits[0].number_of_assignments_available #=> Integer
@@ -1718,6 +1733,7 @@ module Aws::MTurk
1718
1733
  # resp.hits[0].qualification_requirements[0].locale_values[0].country #=> String
1719
1734
  # resp.hits[0].qualification_requirements[0].locale_values[0].subdivision #=> String
1720
1735
  # resp.hits[0].qualification_requirements[0].required_to_preview #=> Boolean
1736
+ # resp.hits[0].qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
1721
1737
  # resp.hits[0].hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
1722
1738
  # resp.hits[0].number_of_assignments_pending #=> Integer
1723
1739
  # resp.hits[0].number_of_assignments_available #=> Integer
@@ -1784,10 +1800,8 @@ module Aws::MTurk
1784
1800
  req.send_request(options)
1785
1801
  end
1786
1802
 
1787
- # The `ListQualificationRequests` operation retrieves requests for
1788
- # Qualifications of a particular Qualification type. The owner of the
1789
- # Qualification type calls this operation to poll for pending requests,
1790
- # and accepts them using the AcceptQualification operation.
1803
+ # The `ListQualificationTypes` operation returns a list of Qualification
1804
+ # types, filtered by an optional search term.
1791
1805
  #
1792
1806
  # @option params [String] :query
1793
1807
  # A text query against all of the searchable attributes of Qualification
@@ -2036,6 +2050,7 @@ module Aws::MTurk
2036
2050
  # resp.hits[0].qualification_requirements[0].locale_values[0].country #=> String
2037
2051
  # resp.hits[0].qualification_requirements[0].locale_values[0].subdivision #=> String
2038
2052
  # resp.hits[0].qualification_requirements[0].required_to_preview #=> Boolean
2053
+ # resp.hits[0].qualification_requirements[0].actions_guarded #=> String, one of "Accept", "PreviewAndAccept", "DiscoverPreviewAndAccept"
2039
2054
  # resp.hits[0].hit_review_status #=> String, one of "NotReviewed", "MarkedForReview", "ReviewedAppropriate", "ReviewedInappropriate"
2040
2055
  # resp.hits[0].number_of_assignments_pending #=> Integer
2041
2056
  # resp.hits[0].number_of_assignments_available #=> Integer
@@ -2642,7 +2657,7 @@ module Aws::MTurk
2642
2657
  params: params,
2643
2658
  config: config)
2644
2659
  context[:gem_name] = 'aws-sdk-mturk'
2645
- context[:gem_version] = '1.2.0'
2660
+ context[:gem_version] = '1.3.0'
2646
2661
  Seahorse::Client::Request.new(handlers, context)
2647
2662
  end
2648
2663
 
@@ -66,6 +66,7 @@ module Aws::MTurk
66
66
  GetQualificationTypeRequest = Shapes::StructureShape.new(name: 'GetQualificationTypeRequest')
67
67
  GetQualificationTypeResponse = Shapes::StructureShape.new(name: 'GetQualificationTypeResponse')
68
68
  HIT = Shapes::StructureShape.new(name: 'HIT')
69
+ HITAccessActions = Shapes::StringShape.new(name: 'HITAccessActions')
69
70
  HITLayoutParameter = Shapes::StructureShape.new(name: 'HITLayoutParameter')
70
71
  HITLayoutParameterList = Shapes::ListShape.new(name: 'HITLayoutParameterList')
71
72
  HITList = Shapes::ListShape.new(name: 'HITList')
@@ -554,7 +555,8 @@ module Aws::MTurk
554
555
  QualificationRequirement.add_member(:comparator, Shapes::ShapeRef.new(shape: Comparator, required: true, location_name: "Comparator"))
555
556
  QualificationRequirement.add_member(:integer_values, Shapes::ShapeRef.new(shape: IntegerList, location_name: "IntegerValues"))
556
557
  QualificationRequirement.add_member(:locale_values, Shapes::ShapeRef.new(shape: LocaleList, location_name: "LocaleValues"))
557
- QualificationRequirement.add_member(:required_to_preview, Shapes::ShapeRef.new(shape: Boolean, location_name: "RequiredToPreview"))
558
+ QualificationRequirement.add_member(:required_to_preview, Shapes::ShapeRef.new(shape: Boolean, deprecated: true, location_name: "RequiredToPreview"))
559
+ QualificationRequirement.add_member(:actions_guarded, Shapes::ShapeRef.new(shape: HITAccessActions, location_name: "ActionsGuarded"))
558
560
  QualificationRequirement.struct_class = Types::QualificationRequirement
559
561
 
560
562
  QualificationRequirementList.member = Shapes::ShapeRef.new(shape: QualificationRequirement)
@@ -310,6 +310,7 @@ module Aws::MTurk
310
310
  # },
311
311
  # ],
312
312
  # required_to_preview: false,
313
+ # actions_guarded: "Accept", # accepts Accept, PreviewAndAccept, DiscoverPreviewAndAccept
313
314
  # },
314
315
  # ],
315
316
  # unique_request_token: "IdempotencyToken",
@@ -432,8 +433,12 @@ module Aws::MTurk
432
433
  # @return [String]
433
434
  #
434
435
  # @!attribute [rw] qualification_requirements
435
- # A condition that a Worker's Qualifications must meet before the
436
- # Worker is allowed to accept and complete the HIT.
436
+ # Conditions that a Worker's Qualifications must meet in order to
437
+ # accept the HIT. A HIT can have between zero and ten Qualification
438
+ # requirements. All requirements must be met in order for a Worker to
439
+ # accept the HIT. Additionally, other actions can be restricted using
440
+ # the `ActionsGuarded` field on each `QualificationRequirement`
441
+ # structure.
437
442
  # @return [Array<Types::QualificationRequirement>]
438
443
  #
439
444
  # @!attribute [rw] unique_request_token
@@ -536,6 +541,7 @@ module Aws::MTurk
536
541
  # },
537
542
  # ],
538
543
  # required_to_preview: false,
544
+ # actions_guarded: "Accept", # accepts Accept, PreviewAndAccept, DiscoverPreviewAndAccept
539
545
  # },
540
546
  # ],
541
547
  # }
@@ -582,8 +588,12 @@ module Aws::MTurk
582
588
  # @return [String]
583
589
  #
584
590
  # @!attribute [rw] qualification_requirements
585
- # A condition that a Worker's Qualifications must meet before the
586
- # Worker is allowed to accept and complete the HIT.
591
+ # Conditions that a Worker's Qualifications must meet in order to
592
+ # accept the HIT. A HIT can have between zero and ten Qualification
593
+ # requirements. All requirements must be met in order for a Worker to
594
+ # accept the HIT. Additionally, other actions can be restricted using
595
+ # the `ActionsGuarded` field on each `QualificationRequirement`
596
+ # structure.
587
597
  # @return [Array<Types::QualificationRequirement>]
588
598
  #
589
599
  # @see http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITTypeRequest AWS API Documentation
@@ -1305,10 +1315,12 @@ module Aws::MTurk
1305
1315
  # @return [String]
1306
1316
  #
1307
1317
  # @!attribute [rw] qualification_requirements
1308
- # A condition that a Worker's Qualifications must meet in order to
1318
+ # Conditions that a Worker's Qualifications must meet in order to
1309
1319
  # accept the HIT. A HIT can have between zero and ten Qualification
1310
- # requirements. All requirements must be met by a Worker's
1311
- # Qualifications for the Worker to accept the HIT.
1320
+ # requirements. All requirements must be met in order for a Worker to
1321
+ # accept the HIT. Additionally, other actions can be restricted using
1322
+ # the `ActionsGuarded` field on each `QualificationRequirement`
1323
+ # structure.
1312
1324
  # @return [Array<Types::QualificationRequirement>]
1313
1325
  #
1314
1326
  # @!attribute [rw] hit_review_status
@@ -2352,7 +2364,8 @@ module Aws::MTurk
2352
2364
  # The QualificationRequirement data structure describes a Qualification
2353
2365
  # that a Worker must have before the Worker is allowed to accept a HIT.
2354
2366
  # A requirement may optionally state that a Worker must have the
2355
- # Qualification in order to preview the HIT.
2367
+ # Qualification in order to preview the HIT, or see the HIT in search
2368
+ # results.
2356
2369
  #
2357
2370
  # @note When making an API call, you may pass QualificationRequirement
2358
2371
  # data as a hash:
@@ -2368,6 +2381,7 @@ module Aws::MTurk
2368
2381
  # },
2369
2382
  # ],
2370
2383
  # required_to_preview: false,
2384
+ # actions_guarded: "Accept", # accepts Accept, PreviewAndAccept, DiscoverPreviewAndAccept
2371
2385
  # }
2372
2386
  #
2373
2387
  # @!attribute [rw] qualification_type_id
@@ -2409,17 +2423,43 @@ module Aws::MTurk
2409
2423
  # @return [Array<Types::Locale>]
2410
2424
  #
2411
2425
  # @!attribute [rw] required_to_preview
2412
- # If true, the question data for the HIT will not be shown when a
2413
- # Worker whose Qualifications do not meet this requirement tries to
2414
- # preview the HIT. That is, a Worker's Qualifications must meet all
2415
- # of the requirements for which RequiredToPreview is true in order to
2416
- # preview the HIT. If a Worker meets all of the requirements where
2417
- # RequiredToPreview is true (or if there are no such requirements),
2418
- # but does not meet all of the requirements for the HIT, the Worker
2419
- # will be allowed to preview the HIT's question data, but will not be
2420
- # allowed to accept and complete the HIT. The default is false.
2426
+ # DEPRECATED: Use the `ActionsGuarded` field instead. If
2427
+ # RequiredToPreview is true, the question data for the HIT will not be
2428
+ # shown when a Worker whose Qualifications do not meet this
2429
+ # requirement tries to preview the HIT. That is, a Worker's
2430
+ # Qualifications must meet all of the requirements for which
2431
+ # RequiredToPreview is true in order to preview the HIT. If a Worker
2432
+ # meets all of the requirements where RequiredToPreview is true (or if
2433
+ # there are no such requirements), but does not meet all of the
2434
+ # requirements for the HIT, the Worker will be allowed to preview the
2435
+ # HIT's question data, but will not be allowed to accept and complete
2436
+ # the HIT. The default is false. This should not be used in
2437
+ # combination with the `ActionsGuarded` field.
2421
2438
  # @return [Boolean]
2422
2439
  #
2440
+ # @!attribute [rw] actions_guarded
2441
+ # Setting this attribute prevents Workers whose Qualifications do not
2442
+ # meet this QualificationRequirement from taking the specified action.
2443
+ # Valid arguments include "Accept" (Worker cannot accept the HIT,
2444
+ # but can preview the HIT and see it in their search results),
2445
+ # "PreviewAndAccept" (Worker cannot accept or preview the HIT, but
2446
+ # can see the HIT in their search results), and
2447
+ # "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see
2448
+ # the HIT in their search results). It's possible for you to create a
2449
+ # HIT with multiple QualificationRequirements (which can have
2450
+ # different values for the ActionGuarded attribute). In this case, the
2451
+ # Worker is only permitted to perform an action when they have met all
2452
+ # QualificationRequirements guarding the action. The actions in the
2453
+ # order of least restrictive to most restrictive are Discover, Preview
2454
+ # and Accept. For example, if a Worker meets all
2455
+ # QualificationRequirements that are set to DiscoverPreviewAndAccept,
2456
+ # but do not meet all requirements that are set with PreviewAndAccept,
2457
+ # then the Worker will be able to Discover, i.e. see the HIT in their
2458
+ # search result, but will not be able to Preview or Accept the HIT.
2459
+ # ActionsGuarded should not be used in combination with the
2460
+ # `RequiredToPreview` field.
2461
+ # @return [String]
2462
+ #
2423
2463
  # @see http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequirement AWS API Documentation
2424
2464
  #
2425
2465
  class QualificationRequirement < Struct.new(
@@ -2427,7 +2467,8 @@ module Aws::MTurk
2427
2467
  :comparator,
2428
2468
  :integer_values,
2429
2469
  :locale_values,
2430
- :required_to_preview)
2470
+ :required_to_preview,
2471
+ :actions_guarded)
2431
2472
  include Aws::Structure
2432
2473
  end
2433
2474
 
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.2.0
4
+ version: 1.3.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: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.1
78
+ rubygems_version: 2.5.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: AWS SDK for Ruby - Amazon MTurk