aws-sdk-mturk 1.50.0 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-mturk/client.rb +1 -1
- data/lib/aws-sdk-mturk/plugins/endpoints.rb +4 -2
- data/lib/aws-sdk-mturk.rb +1 -1
- data/sig/client.rbs +681 -0
- data/sig/errors.rbs +24 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +681 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
data/sig/client.rbs
ADDED
@@ -0,0 +1,681 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module MTurk
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?ignore_configured_endpoint_urls: bool,
|
36
|
+
?log_formatter: untyped,
|
37
|
+
?log_level: Symbol,
|
38
|
+
?logger: untyped,
|
39
|
+
?max_attempts: Integer,
|
40
|
+
?profile: String,
|
41
|
+
?request_min_compression_size_bytes: Integer,
|
42
|
+
?retry_backoff: Proc,
|
43
|
+
?retry_base_delay: Float,
|
44
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
45
|
+
?retry_limit: Integer,
|
46
|
+
?retry_max_delay: Integer,
|
47
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
48
|
+
?sdk_ua_app_id: String,
|
49
|
+
?secret_access_key: String,
|
50
|
+
?session_token: String,
|
51
|
+
?simple_json: bool,
|
52
|
+
?stub_responses: untyped,
|
53
|
+
?token_provider: untyped,
|
54
|
+
?use_dualstack_endpoint: bool,
|
55
|
+
?use_fips_endpoint: bool,
|
56
|
+
?validate_params: bool,
|
57
|
+
?endpoint_provider: untyped,
|
58
|
+
?http_proxy: String,
|
59
|
+
?http_open_timeout: (Float | Integer),
|
60
|
+
?http_read_timeout: (Float | Integer),
|
61
|
+
?http_idle_timeout: (Float | Integer),
|
62
|
+
?http_continue_timeout: (Float | Integer),
|
63
|
+
?ssl_timeout: (Float | Integer | nil),
|
64
|
+
?http_wire_trace: bool,
|
65
|
+
?ssl_verify_peer: bool,
|
66
|
+
?ssl_ca_bundle: String,
|
67
|
+
?ssl_ca_directory: String,
|
68
|
+
?ssl_ca_store: String,
|
69
|
+
?on_chunk_received: Proc,
|
70
|
+
?on_chunk_sent: Proc,
|
71
|
+
?raise_response_errors: bool
|
72
|
+
) -> instance
|
73
|
+
| (?Hash[Symbol, untyped]) -> instance
|
74
|
+
|
75
|
+
|
76
|
+
interface _AcceptQualificationRequestResponseSuccess
|
77
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::AcceptQualificationRequestResponse]
|
78
|
+
end
|
79
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#accept_qualification_request-instance_method
|
80
|
+
def accept_qualification_request: (
|
81
|
+
qualification_request_id: ::String,
|
82
|
+
?integer_value: ::Integer
|
83
|
+
) -> _AcceptQualificationRequestResponseSuccess
|
84
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AcceptQualificationRequestResponseSuccess
|
85
|
+
|
86
|
+
interface _ApproveAssignmentResponseSuccess
|
87
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ApproveAssignmentResponse]
|
88
|
+
end
|
89
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#approve_assignment-instance_method
|
90
|
+
def approve_assignment: (
|
91
|
+
assignment_id: ::String,
|
92
|
+
?requester_feedback: ::String,
|
93
|
+
?override_rejection: bool
|
94
|
+
) -> _ApproveAssignmentResponseSuccess
|
95
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ApproveAssignmentResponseSuccess
|
96
|
+
|
97
|
+
interface _AssociateQualificationWithWorkerResponseSuccess
|
98
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::AssociateQualificationWithWorkerResponse]
|
99
|
+
end
|
100
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#associate_qualification_with_worker-instance_method
|
101
|
+
def associate_qualification_with_worker: (
|
102
|
+
qualification_type_id: ::String,
|
103
|
+
worker_id: ::String,
|
104
|
+
?integer_value: ::Integer,
|
105
|
+
?send_notification: bool
|
106
|
+
) -> _AssociateQualificationWithWorkerResponseSuccess
|
107
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateQualificationWithWorkerResponseSuccess
|
108
|
+
|
109
|
+
interface _CreateAdditionalAssignmentsForHITResponseSuccess
|
110
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateAdditionalAssignmentsForHITResponse]
|
111
|
+
end
|
112
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#create_additional_assignments_for_hit-instance_method
|
113
|
+
def create_additional_assignments_for_hit: (
|
114
|
+
hit_id: ::String,
|
115
|
+
number_of_additional_assignments: ::Integer,
|
116
|
+
?unique_request_token: ::String
|
117
|
+
) -> _CreateAdditionalAssignmentsForHITResponseSuccess
|
118
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAdditionalAssignmentsForHITResponseSuccess
|
119
|
+
|
120
|
+
interface _CreateHITResponseSuccess
|
121
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateHITResponse]
|
122
|
+
def hit: () -> Types::HIT
|
123
|
+
end
|
124
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#create_hit-instance_method
|
125
|
+
def create_hit: (
|
126
|
+
?max_assignments: ::Integer,
|
127
|
+
?auto_approval_delay_in_seconds: ::Integer,
|
128
|
+
lifetime_in_seconds: ::Integer,
|
129
|
+
assignment_duration_in_seconds: ::Integer,
|
130
|
+
reward: ::String,
|
131
|
+
title: ::String,
|
132
|
+
?keywords: ::String,
|
133
|
+
description: ::String,
|
134
|
+
?question: ::String,
|
135
|
+
?requester_annotation: ::String,
|
136
|
+
?qualification_requirements: Array[
|
137
|
+
{
|
138
|
+
qualification_type_id: ::String,
|
139
|
+
comparator: ("LessThan" | "LessThanOrEqualTo" | "GreaterThan" | "GreaterThanOrEqualTo" | "EqualTo" | "NotEqualTo" | "Exists" | "DoesNotExist" | "In" | "NotIn"),
|
140
|
+
integer_values: Array[::Integer]?,
|
141
|
+
locale_values: Array[
|
142
|
+
{
|
143
|
+
country: ::String,
|
144
|
+
subdivision: ::String?
|
145
|
+
},
|
146
|
+
]?,
|
147
|
+
required_to_preview: bool?,
|
148
|
+
actions_guarded: ("Accept" | "PreviewAndAccept" | "DiscoverPreviewAndAccept")?
|
149
|
+
},
|
150
|
+
],
|
151
|
+
?unique_request_token: ::String,
|
152
|
+
?assignment_review_policy: {
|
153
|
+
policy_name: ::String,
|
154
|
+
parameters: Array[
|
155
|
+
{
|
156
|
+
key: ::String?,
|
157
|
+
values: Array[::String]?,
|
158
|
+
map_entries: Array[
|
159
|
+
{
|
160
|
+
key: ::String?,
|
161
|
+
values: Array[::String]?
|
162
|
+
},
|
163
|
+
]?
|
164
|
+
},
|
165
|
+
]?
|
166
|
+
},
|
167
|
+
?hit_review_policy: {
|
168
|
+
policy_name: ::String,
|
169
|
+
parameters: Array[
|
170
|
+
{
|
171
|
+
key: ::String?,
|
172
|
+
values: Array[::String]?,
|
173
|
+
map_entries: Array[
|
174
|
+
{
|
175
|
+
key: ::String?,
|
176
|
+
values: Array[::String]?
|
177
|
+
},
|
178
|
+
]?
|
179
|
+
},
|
180
|
+
]?
|
181
|
+
},
|
182
|
+
?hit_layout_id: ::String,
|
183
|
+
?hit_layout_parameters: Array[
|
184
|
+
{
|
185
|
+
name: ::String,
|
186
|
+
value: ::String
|
187
|
+
},
|
188
|
+
]
|
189
|
+
) -> _CreateHITResponseSuccess
|
190
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateHITResponseSuccess
|
191
|
+
|
192
|
+
interface _CreateHITTypeResponseSuccess
|
193
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateHITTypeResponse]
|
194
|
+
def hit_type_id: () -> ::String
|
195
|
+
end
|
196
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#create_hit_type-instance_method
|
197
|
+
def create_hit_type: (
|
198
|
+
?auto_approval_delay_in_seconds: ::Integer,
|
199
|
+
assignment_duration_in_seconds: ::Integer,
|
200
|
+
reward: ::String,
|
201
|
+
title: ::String,
|
202
|
+
?keywords: ::String,
|
203
|
+
description: ::String,
|
204
|
+
?qualification_requirements: Array[
|
205
|
+
{
|
206
|
+
qualification_type_id: ::String,
|
207
|
+
comparator: ("LessThan" | "LessThanOrEqualTo" | "GreaterThan" | "GreaterThanOrEqualTo" | "EqualTo" | "NotEqualTo" | "Exists" | "DoesNotExist" | "In" | "NotIn"),
|
208
|
+
integer_values: Array[::Integer]?,
|
209
|
+
locale_values: Array[
|
210
|
+
{
|
211
|
+
country: ::String,
|
212
|
+
subdivision: ::String?
|
213
|
+
},
|
214
|
+
]?,
|
215
|
+
required_to_preview: bool?,
|
216
|
+
actions_guarded: ("Accept" | "PreviewAndAccept" | "DiscoverPreviewAndAccept")?
|
217
|
+
},
|
218
|
+
]
|
219
|
+
) -> _CreateHITTypeResponseSuccess
|
220
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateHITTypeResponseSuccess
|
221
|
+
|
222
|
+
interface _CreateHITWithHITTypeResponseSuccess
|
223
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateHITWithHITTypeResponse]
|
224
|
+
def hit: () -> Types::HIT
|
225
|
+
end
|
226
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#create_hit_with_hit_type-instance_method
|
227
|
+
def create_hit_with_hit_type: (
|
228
|
+
hit_type_id: ::String,
|
229
|
+
?max_assignments: ::Integer,
|
230
|
+
lifetime_in_seconds: ::Integer,
|
231
|
+
?question: ::String,
|
232
|
+
?requester_annotation: ::String,
|
233
|
+
?unique_request_token: ::String,
|
234
|
+
?assignment_review_policy: {
|
235
|
+
policy_name: ::String,
|
236
|
+
parameters: Array[
|
237
|
+
{
|
238
|
+
key: ::String?,
|
239
|
+
values: Array[::String]?,
|
240
|
+
map_entries: Array[
|
241
|
+
{
|
242
|
+
key: ::String?,
|
243
|
+
values: Array[::String]?
|
244
|
+
},
|
245
|
+
]?
|
246
|
+
},
|
247
|
+
]?
|
248
|
+
},
|
249
|
+
?hit_review_policy: {
|
250
|
+
policy_name: ::String,
|
251
|
+
parameters: Array[
|
252
|
+
{
|
253
|
+
key: ::String?,
|
254
|
+
values: Array[::String]?,
|
255
|
+
map_entries: Array[
|
256
|
+
{
|
257
|
+
key: ::String?,
|
258
|
+
values: Array[::String]?
|
259
|
+
},
|
260
|
+
]?
|
261
|
+
},
|
262
|
+
]?
|
263
|
+
},
|
264
|
+
?hit_layout_id: ::String,
|
265
|
+
?hit_layout_parameters: Array[
|
266
|
+
{
|
267
|
+
name: ::String,
|
268
|
+
value: ::String
|
269
|
+
},
|
270
|
+
]
|
271
|
+
) -> _CreateHITWithHITTypeResponseSuccess
|
272
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateHITWithHITTypeResponseSuccess
|
273
|
+
|
274
|
+
interface _CreateQualificationTypeResponseSuccess
|
275
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateQualificationTypeResponse]
|
276
|
+
def qualification_type: () -> Types::QualificationType
|
277
|
+
end
|
278
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#create_qualification_type-instance_method
|
279
|
+
def create_qualification_type: (
|
280
|
+
name: ::String,
|
281
|
+
?keywords: ::String,
|
282
|
+
description: ::String,
|
283
|
+
qualification_type_status: ("Active" | "Inactive"),
|
284
|
+
?retry_delay_in_seconds: ::Integer,
|
285
|
+
?test: ::String,
|
286
|
+
?answer_key: ::String,
|
287
|
+
?test_duration_in_seconds: ::Integer,
|
288
|
+
?auto_granted: bool,
|
289
|
+
?auto_granted_value: ::Integer
|
290
|
+
) -> _CreateQualificationTypeResponseSuccess
|
291
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateQualificationTypeResponseSuccess
|
292
|
+
|
293
|
+
interface _CreateWorkerBlockResponseSuccess
|
294
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateWorkerBlockResponse]
|
295
|
+
end
|
296
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#create_worker_block-instance_method
|
297
|
+
def create_worker_block: (
|
298
|
+
worker_id: ::String,
|
299
|
+
reason: ::String
|
300
|
+
) -> _CreateWorkerBlockResponseSuccess
|
301
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWorkerBlockResponseSuccess
|
302
|
+
|
303
|
+
interface _DeleteHITResponseSuccess
|
304
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteHITResponse]
|
305
|
+
end
|
306
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#delete_hit-instance_method
|
307
|
+
def delete_hit: (
|
308
|
+
hit_id: ::String
|
309
|
+
) -> _DeleteHITResponseSuccess
|
310
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteHITResponseSuccess
|
311
|
+
|
312
|
+
interface _DeleteQualificationTypeResponseSuccess
|
313
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteQualificationTypeResponse]
|
314
|
+
end
|
315
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#delete_qualification_type-instance_method
|
316
|
+
def delete_qualification_type: (
|
317
|
+
qualification_type_id: ::String
|
318
|
+
) -> _DeleteQualificationTypeResponseSuccess
|
319
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteQualificationTypeResponseSuccess
|
320
|
+
|
321
|
+
interface _DeleteWorkerBlockResponseSuccess
|
322
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteWorkerBlockResponse]
|
323
|
+
end
|
324
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#delete_worker_block-instance_method
|
325
|
+
def delete_worker_block: (
|
326
|
+
worker_id: ::String,
|
327
|
+
?reason: ::String
|
328
|
+
) -> _DeleteWorkerBlockResponseSuccess
|
329
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteWorkerBlockResponseSuccess
|
330
|
+
|
331
|
+
interface _DisassociateQualificationFromWorkerResponseSuccess
|
332
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateQualificationFromWorkerResponse]
|
333
|
+
end
|
334
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#disassociate_qualification_from_worker-instance_method
|
335
|
+
def disassociate_qualification_from_worker: (
|
336
|
+
worker_id: ::String,
|
337
|
+
qualification_type_id: ::String,
|
338
|
+
?reason: ::String
|
339
|
+
) -> _DisassociateQualificationFromWorkerResponseSuccess
|
340
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisassociateQualificationFromWorkerResponseSuccess
|
341
|
+
|
342
|
+
interface _GetAccountBalanceResponseSuccess
|
343
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountBalanceResponse]
|
344
|
+
def available_balance: () -> ::String
|
345
|
+
def on_hold_balance: () -> ::String
|
346
|
+
end
|
347
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#get_account_balance-instance_method
|
348
|
+
def get_account_balance: (
|
349
|
+
) -> _GetAccountBalanceResponseSuccess
|
350
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAccountBalanceResponseSuccess
|
351
|
+
|
352
|
+
interface _GetAssignmentResponseSuccess
|
353
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetAssignmentResponse]
|
354
|
+
def assignment: () -> Types::Assignment
|
355
|
+
def hit: () -> Types::HIT
|
356
|
+
end
|
357
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#get_assignment-instance_method
|
358
|
+
def get_assignment: (
|
359
|
+
assignment_id: ::String
|
360
|
+
) -> _GetAssignmentResponseSuccess
|
361
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAssignmentResponseSuccess
|
362
|
+
|
363
|
+
interface _GetFileUploadURLResponseSuccess
|
364
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetFileUploadURLResponse]
|
365
|
+
def file_upload_url: () -> ::String
|
366
|
+
end
|
367
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#get_file_upload_url-instance_method
|
368
|
+
def get_file_upload_url: (
|
369
|
+
assignment_id: ::String,
|
370
|
+
question_identifier: ::String
|
371
|
+
) -> _GetFileUploadURLResponseSuccess
|
372
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFileUploadURLResponseSuccess
|
373
|
+
|
374
|
+
interface _GetHITResponseSuccess
|
375
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetHITResponse]
|
376
|
+
def hit: () -> Types::HIT
|
377
|
+
end
|
378
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#get_hit-instance_method
|
379
|
+
def get_hit: (
|
380
|
+
hit_id: ::String
|
381
|
+
) -> _GetHITResponseSuccess
|
382
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetHITResponseSuccess
|
383
|
+
|
384
|
+
interface _GetQualificationScoreResponseSuccess
|
385
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetQualificationScoreResponse]
|
386
|
+
def qualification: () -> Types::Qualification
|
387
|
+
end
|
388
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#get_qualification_score-instance_method
|
389
|
+
def get_qualification_score: (
|
390
|
+
qualification_type_id: ::String,
|
391
|
+
worker_id: ::String
|
392
|
+
) -> _GetQualificationScoreResponseSuccess
|
393
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQualificationScoreResponseSuccess
|
394
|
+
|
395
|
+
interface _GetQualificationTypeResponseSuccess
|
396
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetQualificationTypeResponse]
|
397
|
+
def qualification_type: () -> Types::QualificationType
|
398
|
+
end
|
399
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#get_qualification_type-instance_method
|
400
|
+
def get_qualification_type: (
|
401
|
+
qualification_type_id: ::String
|
402
|
+
) -> _GetQualificationTypeResponseSuccess
|
403
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQualificationTypeResponseSuccess
|
404
|
+
|
405
|
+
interface _ListAssignmentsForHITResponseSuccess
|
406
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAssignmentsForHITResponse]
|
407
|
+
def next_token: () -> ::String
|
408
|
+
def num_results: () -> ::Integer
|
409
|
+
def assignments: () -> ::Array[Types::Assignment]
|
410
|
+
end
|
411
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_assignments_for_hit-instance_method
|
412
|
+
def list_assignments_for_hit: (
|
413
|
+
hit_id: ::String,
|
414
|
+
?next_token: ::String,
|
415
|
+
?max_results: ::Integer,
|
416
|
+
?assignment_statuses: Array[("Submitted" | "Approved" | "Rejected")]
|
417
|
+
) -> _ListAssignmentsForHITResponseSuccess
|
418
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssignmentsForHITResponseSuccess
|
419
|
+
|
420
|
+
interface _ListBonusPaymentsResponseSuccess
|
421
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListBonusPaymentsResponse]
|
422
|
+
def num_results: () -> ::Integer
|
423
|
+
def next_token: () -> ::String
|
424
|
+
def bonus_payments: () -> ::Array[Types::BonusPayment]
|
425
|
+
end
|
426
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_bonus_payments-instance_method
|
427
|
+
def list_bonus_payments: (
|
428
|
+
?hit_id: ::String,
|
429
|
+
?assignment_id: ::String,
|
430
|
+
?next_token: ::String,
|
431
|
+
?max_results: ::Integer
|
432
|
+
) -> _ListBonusPaymentsResponseSuccess
|
433
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBonusPaymentsResponseSuccess
|
434
|
+
|
435
|
+
interface _ListHITsResponseSuccess
|
436
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListHITsResponse]
|
437
|
+
def next_token: () -> ::String
|
438
|
+
def num_results: () -> ::Integer
|
439
|
+
def hits: () -> ::Array[Types::HIT]
|
440
|
+
end
|
441
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_hits-instance_method
|
442
|
+
def list_hits: (
|
443
|
+
?next_token: ::String,
|
444
|
+
?max_results: ::Integer
|
445
|
+
) -> _ListHITsResponseSuccess
|
446
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListHITsResponseSuccess
|
447
|
+
|
448
|
+
interface _ListHITsForQualificationTypeResponseSuccess
|
449
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListHITsForQualificationTypeResponse]
|
450
|
+
def next_token: () -> ::String
|
451
|
+
def num_results: () -> ::Integer
|
452
|
+
def hits: () -> ::Array[Types::HIT]
|
453
|
+
end
|
454
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_hits_for_qualification_type-instance_method
|
455
|
+
def list_hits_for_qualification_type: (
|
456
|
+
qualification_type_id: ::String,
|
457
|
+
?next_token: ::String,
|
458
|
+
?max_results: ::Integer
|
459
|
+
) -> _ListHITsForQualificationTypeResponseSuccess
|
460
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListHITsForQualificationTypeResponseSuccess
|
461
|
+
|
462
|
+
interface _ListQualificationRequestsResponseSuccess
|
463
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListQualificationRequestsResponse]
|
464
|
+
def num_results: () -> ::Integer
|
465
|
+
def next_token: () -> ::String
|
466
|
+
def qualification_requests: () -> ::Array[Types::QualificationRequest]
|
467
|
+
end
|
468
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_qualification_requests-instance_method
|
469
|
+
def list_qualification_requests: (
|
470
|
+
?qualification_type_id: ::String,
|
471
|
+
?next_token: ::String,
|
472
|
+
?max_results: ::Integer
|
473
|
+
) -> _ListQualificationRequestsResponseSuccess
|
474
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQualificationRequestsResponseSuccess
|
475
|
+
|
476
|
+
interface _ListQualificationTypesResponseSuccess
|
477
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListQualificationTypesResponse]
|
478
|
+
def num_results: () -> ::Integer
|
479
|
+
def next_token: () -> ::String
|
480
|
+
def qualification_types: () -> ::Array[Types::QualificationType]
|
481
|
+
end
|
482
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_qualification_types-instance_method
|
483
|
+
def list_qualification_types: (
|
484
|
+
?query: ::String,
|
485
|
+
must_be_requestable: bool,
|
486
|
+
?must_be_owned_by_caller: bool,
|
487
|
+
?next_token: ::String,
|
488
|
+
?max_results: ::Integer
|
489
|
+
) -> _ListQualificationTypesResponseSuccess
|
490
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQualificationTypesResponseSuccess
|
491
|
+
|
492
|
+
interface _ListReviewPolicyResultsForHITResponseSuccess
|
493
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListReviewPolicyResultsForHITResponse]
|
494
|
+
def hit_id: () -> ::String
|
495
|
+
def assignment_review_policy: () -> Types::ReviewPolicy
|
496
|
+
def hit_review_policy: () -> Types::ReviewPolicy
|
497
|
+
def assignment_review_report: () -> Types::ReviewReport
|
498
|
+
def hit_review_report: () -> Types::ReviewReport
|
499
|
+
def next_token: () -> ::String
|
500
|
+
end
|
501
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_review_policy_results_for_hit-instance_method
|
502
|
+
def list_review_policy_results_for_hit: (
|
503
|
+
hit_id: ::String,
|
504
|
+
?policy_levels: Array[("Assignment" | "HIT")],
|
505
|
+
?retrieve_actions: bool,
|
506
|
+
?retrieve_results: bool,
|
507
|
+
?next_token: ::String,
|
508
|
+
?max_results: ::Integer
|
509
|
+
) -> _ListReviewPolicyResultsForHITResponseSuccess
|
510
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListReviewPolicyResultsForHITResponseSuccess
|
511
|
+
|
512
|
+
interface _ListReviewableHITsResponseSuccess
|
513
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListReviewableHITsResponse]
|
514
|
+
def next_token: () -> ::String
|
515
|
+
def num_results: () -> ::Integer
|
516
|
+
def hits: () -> ::Array[Types::HIT]
|
517
|
+
end
|
518
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_reviewable_hits-instance_method
|
519
|
+
def list_reviewable_hits: (
|
520
|
+
?hit_type_id: ::String,
|
521
|
+
?status: ("Reviewable" | "Reviewing"),
|
522
|
+
?next_token: ::String,
|
523
|
+
?max_results: ::Integer
|
524
|
+
) -> _ListReviewableHITsResponseSuccess
|
525
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListReviewableHITsResponseSuccess
|
526
|
+
|
527
|
+
interface _ListWorkerBlocksResponseSuccess
|
528
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListWorkerBlocksResponse]
|
529
|
+
def next_token: () -> ::String
|
530
|
+
def num_results: () -> ::Integer
|
531
|
+
def worker_blocks: () -> ::Array[Types::WorkerBlock]
|
532
|
+
end
|
533
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_worker_blocks-instance_method
|
534
|
+
def list_worker_blocks: (
|
535
|
+
?next_token: ::String,
|
536
|
+
?max_results: ::Integer
|
537
|
+
) -> _ListWorkerBlocksResponseSuccess
|
538
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListWorkerBlocksResponseSuccess
|
539
|
+
|
540
|
+
interface _ListWorkersWithQualificationTypeResponseSuccess
|
541
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListWorkersWithQualificationTypeResponse]
|
542
|
+
def next_token: () -> ::String
|
543
|
+
def num_results: () -> ::Integer
|
544
|
+
def qualifications: () -> ::Array[Types::Qualification]
|
545
|
+
end
|
546
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#list_workers_with_qualification_type-instance_method
|
547
|
+
def list_workers_with_qualification_type: (
|
548
|
+
qualification_type_id: ::String,
|
549
|
+
?status: ("Granted" | "Revoked"),
|
550
|
+
?next_token: ::String,
|
551
|
+
?max_results: ::Integer
|
552
|
+
) -> _ListWorkersWithQualificationTypeResponseSuccess
|
553
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListWorkersWithQualificationTypeResponseSuccess
|
554
|
+
|
555
|
+
interface _NotifyWorkersResponseSuccess
|
556
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::NotifyWorkersResponse]
|
557
|
+
def notify_workers_failure_statuses: () -> ::Array[Types::NotifyWorkersFailureStatus]
|
558
|
+
end
|
559
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#notify_workers-instance_method
|
560
|
+
def notify_workers: (
|
561
|
+
subject: ::String,
|
562
|
+
message_text: ::String,
|
563
|
+
worker_ids: Array[::String]
|
564
|
+
) -> _NotifyWorkersResponseSuccess
|
565
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _NotifyWorkersResponseSuccess
|
566
|
+
|
567
|
+
interface _RejectAssignmentResponseSuccess
|
568
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RejectAssignmentResponse]
|
569
|
+
end
|
570
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#reject_assignment-instance_method
|
571
|
+
def reject_assignment: (
|
572
|
+
assignment_id: ::String,
|
573
|
+
requester_feedback: ::String
|
574
|
+
) -> _RejectAssignmentResponseSuccess
|
575
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RejectAssignmentResponseSuccess
|
576
|
+
|
577
|
+
interface _RejectQualificationRequestResponseSuccess
|
578
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RejectQualificationRequestResponse]
|
579
|
+
end
|
580
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#reject_qualification_request-instance_method
|
581
|
+
def reject_qualification_request: (
|
582
|
+
qualification_request_id: ::String,
|
583
|
+
?reason: ::String
|
584
|
+
) -> _RejectQualificationRequestResponseSuccess
|
585
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RejectQualificationRequestResponseSuccess
|
586
|
+
|
587
|
+
interface _SendBonusResponseSuccess
|
588
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SendBonusResponse]
|
589
|
+
end
|
590
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#send_bonus-instance_method
|
591
|
+
def send_bonus: (
|
592
|
+
worker_id: ::String,
|
593
|
+
bonus_amount: ::String,
|
594
|
+
assignment_id: ::String,
|
595
|
+
reason: ::String,
|
596
|
+
?unique_request_token: ::String
|
597
|
+
) -> _SendBonusResponseSuccess
|
598
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendBonusResponseSuccess
|
599
|
+
|
600
|
+
interface _SendTestEventNotificationResponseSuccess
|
601
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SendTestEventNotificationResponse]
|
602
|
+
end
|
603
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#send_test_event_notification-instance_method
|
604
|
+
def send_test_event_notification: (
|
605
|
+
notification: {
|
606
|
+
destination: ::String,
|
607
|
+
transport: ("Email" | "SQS" | "SNS"),
|
608
|
+
version: ::String,
|
609
|
+
event_types: Array[("AssignmentAccepted" | "AssignmentAbandoned" | "AssignmentReturned" | "AssignmentSubmitted" | "AssignmentRejected" | "AssignmentApproved" | "HITCreated" | "HITExpired" | "HITReviewable" | "HITExtended" | "HITDisposed" | "Ping")]
|
610
|
+
},
|
611
|
+
test_event_type: ("AssignmentAccepted" | "AssignmentAbandoned" | "AssignmentReturned" | "AssignmentSubmitted" | "AssignmentRejected" | "AssignmentApproved" | "HITCreated" | "HITExpired" | "HITReviewable" | "HITExtended" | "HITDisposed" | "Ping")
|
612
|
+
) -> _SendTestEventNotificationResponseSuccess
|
613
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendTestEventNotificationResponseSuccess
|
614
|
+
|
615
|
+
interface _UpdateExpirationForHITResponseSuccess
|
616
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateExpirationForHITResponse]
|
617
|
+
end
|
618
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#update_expiration_for_hit-instance_method
|
619
|
+
def update_expiration_for_hit: (
|
620
|
+
hit_id: ::String,
|
621
|
+
expire_at: ::Time
|
622
|
+
) -> _UpdateExpirationForHITResponseSuccess
|
623
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateExpirationForHITResponseSuccess
|
624
|
+
|
625
|
+
interface _UpdateHITReviewStatusResponseSuccess
|
626
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateHITReviewStatusResponse]
|
627
|
+
end
|
628
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#update_hit_review_status-instance_method
|
629
|
+
def update_hit_review_status: (
|
630
|
+
hit_id: ::String,
|
631
|
+
?revert: bool
|
632
|
+
) -> _UpdateHITReviewStatusResponseSuccess
|
633
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateHITReviewStatusResponseSuccess
|
634
|
+
|
635
|
+
interface _UpdateHITTypeOfHITResponseSuccess
|
636
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateHITTypeOfHITResponse]
|
637
|
+
end
|
638
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#update_hit_type_of_hit-instance_method
|
639
|
+
def update_hit_type_of_hit: (
|
640
|
+
hit_id: ::String,
|
641
|
+
hit_type_id: ::String
|
642
|
+
) -> _UpdateHITTypeOfHITResponseSuccess
|
643
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateHITTypeOfHITResponseSuccess
|
644
|
+
|
645
|
+
interface _UpdateNotificationSettingsResponseSuccess
|
646
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateNotificationSettingsResponse]
|
647
|
+
end
|
648
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#update_notification_settings-instance_method
|
649
|
+
def update_notification_settings: (
|
650
|
+
hit_type_id: ::String,
|
651
|
+
?notification: {
|
652
|
+
destination: ::String,
|
653
|
+
transport: ("Email" | "SQS" | "SNS"),
|
654
|
+
version: ::String,
|
655
|
+
event_types: Array[("AssignmentAccepted" | "AssignmentAbandoned" | "AssignmentReturned" | "AssignmentSubmitted" | "AssignmentRejected" | "AssignmentApproved" | "HITCreated" | "HITExpired" | "HITReviewable" | "HITExtended" | "HITDisposed" | "Ping")]
|
656
|
+
},
|
657
|
+
?active: bool
|
658
|
+
) -> _UpdateNotificationSettingsResponseSuccess
|
659
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateNotificationSettingsResponseSuccess
|
660
|
+
|
661
|
+
interface _UpdateQualificationTypeResponseSuccess
|
662
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateQualificationTypeResponse]
|
663
|
+
def qualification_type: () -> Types::QualificationType
|
664
|
+
end
|
665
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MTurk/Client.html#update_qualification_type-instance_method
|
666
|
+
def update_qualification_type: (
|
667
|
+
qualification_type_id: ::String,
|
668
|
+
?description: ::String,
|
669
|
+
?qualification_type_status: ("Active" | "Inactive"),
|
670
|
+
?test: ::String,
|
671
|
+
?answer_key: ::String,
|
672
|
+
?test_duration_in_seconds: ::Integer,
|
673
|
+
?retry_delay_in_seconds: ::Integer,
|
674
|
+
?auto_granted: bool,
|
675
|
+
?auto_granted_value: ::Integer
|
676
|
+
) -> _UpdateQualificationTypeResponseSuccess
|
677
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateQualificationTypeResponseSuccess
|
678
|
+
end
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|