aws-sdk-rekognition 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,531 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Rekognition
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
16
+ Attribute = Shapes::StringShape.new(name: 'Attribute')
17
+ Attributes = Shapes::ListShape.new(name: 'Attributes')
18
+ Beard = Shapes::StructureShape.new(name: 'Beard')
19
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
20
+ BoundingBox = Shapes::StructureShape.new(name: 'BoundingBox')
21
+ CollectionId = Shapes::StringShape.new(name: 'CollectionId')
22
+ CollectionIdList = Shapes::ListShape.new(name: 'CollectionIdList')
23
+ CompareFacesMatch = Shapes::StructureShape.new(name: 'CompareFacesMatch')
24
+ CompareFacesMatchList = Shapes::ListShape.new(name: 'CompareFacesMatchList')
25
+ CompareFacesRequest = Shapes::StructureShape.new(name: 'CompareFacesRequest')
26
+ CompareFacesResponse = Shapes::StructureShape.new(name: 'CompareFacesResponse')
27
+ ComparedFace = Shapes::StructureShape.new(name: 'ComparedFace')
28
+ ComparedSourceImageFace = Shapes::StructureShape.new(name: 'ComparedSourceImageFace')
29
+ CreateCollectionRequest = Shapes::StructureShape.new(name: 'CreateCollectionRequest')
30
+ CreateCollectionResponse = Shapes::StructureShape.new(name: 'CreateCollectionResponse')
31
+ Degree = Shapes::FloatShape.new(name: 'Degree')
32
+ DeleteCollectionRequest = Shapes::StructureShape.new(name: 'DeleteCollectionRequest')
33
+ DeleteCollectionResponse = Shapes::StructureShape.new(name: 'DeleteCollectionResponse')
34
+ DeleteFacesRequest = Shapes::StructureShape.new(name: 'DeleteFacesRequest')
35
+ DeleteFacesResponse = Shapes::StructureShape.new(name: 'DeleteFacesResponse')
36
+ DetectFacesRequest = Shapes::StructureShape.new(name: 'DetectFacesRequest')
37
+ DetectFacesResponse = Shapes::StructureShape.new(name: 'DetectFacesResponse')
38
+ DetectLabelsRequest = Shapes::StructureShape.new(name: 'DetectLabelsRequest')
39
+ DetectLabelsResponse = Shapes::StructureShape.new(name: 'DetectLabelsResponse')
40
+ Emotion = Shapes::StructureShape.new(name: 'Emotion')
41
+ EmotionName = Shapes::StringShape.new(name: 'EmotionName')
42
+ Emotions = Shapes::ListShape.new(name: 'Emotions')
43
+ ExternalImageId = Shapes::StringShape.new(name: 'ExternalImageId')
44
+ EyeOpen = Shapes::StructureShape.new(name: 'EyeOpen')
45
+ Eyeglasses = Shapes::StructureShape.new(name: 'Eyeglasses')
46
+ Face = Shapes::StructureShape.new(name: 'Face')
47
+ FaceDetail = Shapes::StructureShape.new(name: 'FaceDetail')
48
+ FaceDetailList = Shapes::ListShape.new(name: 'FaceDetailList')
49
+ FaceId = Shapes::StringShape.new(name: 'FaceId')
50
+ FaceIdList = Shapes::ListShape.new(name: 'FaceIdList')
51
+ FaceList = Shapes::ListShape.new(name: 'FaceList')
52
+ FaceMatch = Shapes::StructureShape.new(name: 'FaceMatch')
53
+ FaceMatchList = Shapes::ListShape.new(name: 'FaceMatchList')
54
+ FaceRecord = Shapes::StructureShape.new(name: 'FaceRecord')
55
+ FaceRecordList = Shapes::ListShape.new(name: 'FaceRecordList')
56
+ Float = Shapes::FloatShape.new(name: 'Float')
57
+ Gender = Shapes::StructureShape.new(name: 'Gender')
58
+ GenderType = Shapes::StringShape.new(name: 'GenderType')
59
+ Image = Shapes::StructureShape.new(name: 'Image')
60
+ ImageBlob = Shapes::BlobShape.new(name: 'ImageBlob')
61
+ ImageId = Shapes::StringShape.new(name: 'ImageId')
62
+ ImageQuality = Shapes::StructureShape.new(name: 'ImageQuality')
63
+ ImageTooLargeException = Shapes::StructureShape.new(name: 'ImageTooLargeException')
64
+ IndexFacesRequest = Shapes::StructureShape.new(name: 'IndexFacesRequest')
65
+ IndexFacesResponse = Shapes::StructureShape.new(name: 'IndexFacesResponse')
66
+ InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
67
+ InvalidImageFormatException = Shapes::StructureShape.new(name: 'InvalidImageFormatException')
68
+ InvalidPaginationTokenException = Shapes::StructureShape.new(name: 'InvalidPaginationTokenException')
69
+ InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
70
+ InvalidS3ObjectException = Shapes::StructureShape.new(name: 'InvalidS3ObjectException')
71
+ Label = Shapes::StructureShape.new(name: 'Label')
72
+ Labels = Shapes::ListShape.new(name: 'Labels')
73
+ Landmark = Shapes::StructureShape.new(name: 'Landmark')
74
+ LandmarkType = Shapes::StringShape.new(name: 'LandmarkType')
75
+ Landmarks = Shapes::ListShape.new(name: 'Landmarks')
76
+ ListCollectionsRequest = Shapes::StructureShape.new(name: 'ListCollectionsRequest')
77
+ ListCollectionsResponse = Shapes::StructureShape.new(name: 'ListCollectionsResponse')
78
+ ListFacesRequest = Shapes::StructureShape.new(name: 'ListFacesRequest')
79
+ ListFacesResponse = Shapes::StructureShape.new(name: 'ListFacesResponse')
80
+ MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
81
+ MouthOpen = Shapes::StructureShape.new(name: 'MouthOpen')
82
+ Mustache = Shapes::StructureShape.new(name: 'Mustache')
83
+ OrientationCorrection = Shapes::StringShape.new(name: 'OrientationCorrection')
84
+ PageSize = Shapes::IntegerShape.new(name: 'PageSize')
85
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
86
+ Percent = Shapes::FloatShape.new(name: 'Percent')
87
+ Pose = Shapes::StructureShape.new(name: 'Pose')
88
+ ProvisionedThroughputExceededException = Shapes::StructureShape.new(name: 'ProvisionedThroughputExceededException')
89
+ ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
90
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
91
+ S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
92
+ S3Object = Shapes::StructureShape.new(name: 'S3Object')
93
+ S3ObjectName = Shapes::StringShape.new(name: 'S3ObjectName')
94
+ S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
95
+ SearchFacesByImageRequest = Shapes::StructureShape.new(name: 'SearchFacesByImageRequest')
96
+ SearchFacesByImageResponse = Shapes::StructureShape.new(name: 'SearchFacesByImageResponse')
97
+ SearchFacesRequest = Shapes::StructureShape.new(name: 'SearchFacesRequest')
98
+ SearchFacesResponse = Shapes::StructureShape.new(name: 'SearchFacesResponse')
99
+ Smile = Shapes::StructureShape.new(name: 'Smile')
100
+ String = Shapes::StringShape.new(name: 'String')
101
+ Sunglasses = Shapes::StructureShape.new(name: 'Sunglasses')
102
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
103
+ UInteger = Shapes::IntegerShape.new(name: 'UInteger')
104
+
105
+ Attributes.member = Shapes::ShapeRef.new(shape: Attribute)
106
+
107
+ Beard.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
108
+ Beard.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
109
+ Beard.struct_class = Types::Beard
110
+
111
+ BoundingBox.add_member(:width, Shapes::ShapeRef.new(shape: Float, location_name: "Width"))
112
+ BoundingBox.add_member(:height, Shapes::ShapeRef.new(shape: Float, location_name: "Height"))
113
+ BoundingBox.add_member(:left, Shapes::ShapeRef.new(shape: Float, location_name: "Left"))
114
+ BoundingBox.add_member(:top, Shapes::ShapeRef.new(shape: Float, location_name: "Top"))
115
+ BoundingBox.struct_class = Types::BoundingBox
116
+
117
+ CollectionIdList.member = Shapes::ShapeRef.new(shape: CollectionId)
118
+
119
+ CompareFacesMatch.add_member(:similarity, Shapes::ShapeRef.new(shape: Percent, location_name: "Similarity"))
120
+ CompareFacesMatch.add_member(:face, Shapes::ShapeRef.new(shape: ComparedFace, location_name: "Face"))
121
+ CompareFacesMatch.struct_class = Types::CompareFacesMatch
122
+
123
+ CompareFacesMatchList.member = Shapes::ShapeRef.new(shape: CompareFacesMatch)
124
+
125
+ CompareFacesRequest.add_member(:source_image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "SourceImage"))
126
+ CompareFacesRequest.add_member(:target_image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "TargetImage"))
127
+ CompareFacesRequest.add_member(:similarity_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "SimilarityThreshold"))
128
+ CompareFacesRequest.struct_class = Types::CompareFacesRequest
129
+
130
+ CompareFacesResponse.add_member(:source_image_face, Shapes::ShapeRef.new(shape: ComparedSourceImageFace, location_name: "SourceImageFace"))
131
+ CompareFacesResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: CompareFacesMatchList, location_name: "FaceMatches"))
132
+ CompareFacesResponse.struct_class = Types::CompareFacesResponse
133
+
134
+ ComparedFace.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
135
+ ComparedFace.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
136
+ ComparedFace.struct_class = Types::ComparedFace
137
+
138
+ ComparedSourceImageFace.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
139
+ ComparedSourceImageFace.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
140
+ ComparedSourceImageFace.struct_class = Types::ComparedSourceImageFace
141
+
142
+ CreateCollectionRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
143
+ CreateCollectionRequest.struct_class = Types::CreateCollectionRequest
144
+
145
+ CreateCollectionResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: UInteger, location_name: "StatusCode"))
146
+ CreateCollectionResponse.add_member(:collection_arn, Shapes::ShapeRef.new(shape: String, location_name: "CollectionArn"))
147
+ CreateCollectionResponse.struct_class = Types::CreateCollectionResponse
148
+
149
+ DeleteCollectionRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
150
+ DeleteCollectionRequest.struct_class = Types::DeleteCollectionRequest
151
+
152
+ DeleteCollectionResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: UInteger, location_name: "StatusCode"))
153
+ DeleteCollectionResponse.struct_class = Types::DeleteCollectionResponse
154
+
155
+ DeleteFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
156
+ DeleteFacesRequest.add_member(:face_ids, Shapes::ShapeRef.new(shape: FaceIdList, required: true, location_name: "FaceIds"))
157
+ DeleteFacesRequest.struct_class = Types::DeleteFacesRequest
158
+
159
+ DeleteFacesResponse.add_member(:deleted_faces, Shapes::ShapeRef.new(shape: FaceIdList, location_name: "DeletedFaces"))
160
+ DeleteFacesResponse.struct_class = Types::DeleteFacesResponse
161
+
162
+ DetectFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
163
+ DetectFacesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "Attributes"))
164
+ DetectFacesRequest.struct_class = Types::DetectFacesRequest
165
+
166
+ DetectFacesResponse.add_member(:face_details, Shapes::ShapeRef.new(shape: FaceDetailList, location_name: "FaceDetails"))
167
+ DetectFacesResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
168
+ DetectFacesResponse.struct_class = Types::DetectFacesResponse
169
+
170
+ DetectLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
171
+ DetectLabelsRequest.add_member(:max_labels, Shapes::ShapeRef.new(shape: UInteger, location_name: "MaxLabels"))
172
+ DetectLabelsRequest.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
173
+ DetectLabelsRequest.struct_class = Types::DetectLabelsRequest
174
+
175
+ DetectLabelsResponse.add_member(:labels, Shapes::ShapeRef.new(shape: Labels, location_name: "Labels"))
176
+ DetectLabelsResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
177
+ DetectLabelsResponse.struct_class = Types::DetectLabelsResponse
178
+
179
+ Emotion.add_member(:type, Shapes::ShapeRef.new(shape: EmotionName, location_name: "Type"))
180
+ Emotion.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
181
+ Emotion.struct_class = Types::Emotion
182
+
183
+ Emotions.member = Shapes::ShapeRef.new(shape: Emotion)
184
+
185
+ EyeOpen.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
186
+ EyeOpen.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
187
+ EyeOpen.struct_class = Types::EyeOpen
188
+
189
+ Eyeglasses.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
190
+ Eyeglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
191
+ Eyeglasses.struct_class = Types::Eyeglasses
192
+
193
+ Face.add_member(:face_id, Shapes::ShapeRef.new(shape: FaceId, location_name: "FaceId"))
194
+ Face.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
195
+ Face.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "ImageId"))
196
+ Face.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
197
+ Face.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
198
+ Face.struct_class = Types::Face
199
+
200
+ FaceDetail.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
201
+ FaceDetail.add_member(:smile, Shapes::ShapeRef.new(shape: Smile, location_name: "Smile"))
202
+ FaceDetail.add_member(:eyeglasses, Shapes::ShapeRef.new(shape: Eyeglasses, location_name: "Eyeglasses"))
203
+ FaceDetail.add_member(:sunglasses, Shapes::ShapeRef.new(shape: Sunglasses, location_name: "Sunglasses"))
204
+ FaceDetail.add_member(:gender, Shapes::ShapeRef.new(shape: Gender, location_name: "Gender"))
205
+ FaceDetail.add_member(:beard, Shapes::ShapeRef.new(shape: Beard, location_name: "Beard"))
206
+ FaceDetail.add_member(:mustache, Shapes::ShapeRef.new(shape: Mustache, location_name: "Mustache"))
207
+ FaceDetail.add_member(:eyes_open, Shapes::ShapeRef.new(shape: EyeOpen, location_name: "EyesOpen"))
208
+ FaceDetail.add_member(:mouth_open, Shapes::ShapeRef.new(shape: MouthOpen, location_name: "MouthOpen"))
209
+ FaceDetail.add_member(:emotions, Shapes::ShapeRef.new(shape: Emotions, location_name: "Emotions"))
210
+ FaceDetail.add_member(:landmarks, Shapes::ShapeRef.new(shape: Landmarks, location_name: "Landmarks"))
211
+ FaceDetail.add_member(:pose, Shapes::ShapeRef.new(shape: Pose, location_name: "Pose"))
212
+ FaceDetail.add_member(:quality, Shapes::ShapeRef.new(shape: ImageQuality, location_name: "Quality"))
213
+ FaceDetail.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
214
+ FaceDetail.struct_class = Types::FaceDetail
215
+
216
+ FaceDetailList.member = Shapes::ShapeRef.new(shape: FaceDetail)
217
+
218
+ FaceIdList.member = Shapes::ShapeRef.new(shape: FaceId)
219
+
220
+ FaceList.member = Shapes::ShapeRef.new(shape: Face)
221
+
222
+ FaceMatch.add_member(:similarity, Shapes::ShapeRef.new(shape: Percent, location_name: "Similarity"))
223
+ FaceMatch.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
224
+ FaceMatch.struct_class = Types::FaceMatch
225
+
226
+ FaceMatchList.member = Shapes::ShapeRef.new(shape: FaceMatch)
227
+
228
+ FaceRecord.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
229
+ FaceRecord.add_member(:face_detail, Shapes::ShapeRef.new(shape: FaceDetail, location_name: "FaceDetail"))
230
+ FaceRecord.struct_class = Types::FaceRecord
231
+
232
+ FaceRecordList.member = Shapes::ShapeRef.new(shape: FaceRecord)
233
+
234
+ Gender.add_member(:value, Shapes::ShapeRef.new(shape: GenderType, location_name: "Value"))
235
+ Gender.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
236
+ Gender.struct_class = Types::Gender
237
+
238
+ Image.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageBlob, location_name: "Bytes"))
239
+ Image.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
240
+ Image.struct_class = Types::Image
241
+
242
+ ImageQuality.add_member(:brightness, Shapes::ShapeRef.new(shape: Float, location_name: "Brightness"))
243
+ ImageQuality.add_member(:sharpness, Shapes::ShapeRef.new(shape: Float, location_name: "Sharpness"))
244
+ ImageQuality.struct_class = Types::ImageQuality
245
+
246
+ IndexFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
247
+ IndexFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
248
+ IndexFacesRequest.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
249
+ IndexFacesRequest.add_member(:detection_attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "DetectionAttributes"))
250
+ IndexFacesRequest.struct_class = Types::IndexFacesRequest
251
+
252
+ IndexFacesResponse.add_member(:face_records, Shapes::ShapeRef.new(shape: FaceRecordList, location_name: "FaceRecords"))
253
+ IndexFacesResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
254
+ IndexFacesResponse.struct_class = Types::IndexFacesResponse
255
+
256
+ Label.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
257
+ Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
258
+ Label.struct_class = Types::Label
259
+
260
+ Labels.member = Shapes::ShapeRef.new(shape: Label)
261
+
262
+ Landmark.add_member(:type, Shapes::ShapeRef.new(shape: LandmarkType, location_name: "Type"))
263
+ Landmark.add_member(:x, Shapes::ShapeRef.new(shape: Float, location_name: "X"))
264
+ Landmark.add_member(:y, Shapes::ShapeRef.new(shape: Float, location_name: "Y"))
265
+ Landmark.struct_class = Types::Landmark
266
+
267
+ Landmarks.member = Shapes::ShapeRef.new(shape: Landmark)
268
+
269
+ ListCollectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
270
+ ListCollectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
271
+ ListCollectionsRequest.struct_class = Types::ListCollectionsRequest
272
+
273
+ ListCollectionsResponse.add_member(:collection_ids, Shapes::ShapeRef.new(shape: CollectionIdList, location_name: "CollectionIds"))
274
+ ListCollectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
275
+ ListCollectionsResponse.struct_class = Types::ListCollectionsResponse
276
+
277
+ ListFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
278
+ ListFacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
279
+ ListFacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
280
+ ListFacesRequest.struct_class = Types::ListFacesRequest
281
+
282
+ ListFacesResponse.add_member(:faces, Shapes::ShapeRef.new(shape: FaceList, location_name: "Faces"))
283
+ ListFacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
284
+ ListFacesResponse.struct_class = Types::ListFacesResponse
285
+
286
+ MouthOpen.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
287
+ MouthOpen.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
288
+ MouthOpen.struct_class = Types::MouthOpen
289
+
290
+ Mustache.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
291
+ Mustache.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
292
+ Mustache.struct_class = Types::Mustache
293
+
294
+ Pose.add_member(:roll, Shapes::ShapeRef.new(shape: Degree, location_name: "Roll"))
295
+ Pose.add_member(:yaw, Shapes::ShapeRef.new(shape: Degree, location_name: "Yaw"))
296
+ Pose.add_member(:pitch, Shapes::ShapeRef.new(shape: Degree, location_name: "Pitch"))
297
+ Pose.struct_class = Types::Pose
298
+
299
+ S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
300
+ S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
301
+ S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
302
+ S3Object.struct_class = Types::S3Object
303
+
304
+ SearchFacesByImageRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
305
+ SearchFacesByImageRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
306
+ SearchFacesByImageRequest.add_member(:max_faces, Shapes::ShapeRef.new(shape: MaxFaces, location_name: "MaxFaces"))
307
+ SearchFacesByImageRequest.add_member(:face_match_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "FaceMatchThreshold"))
308
+ SearchFacesByImageRequest.struct_class = Types::SearchFacesByImageRequest
309
+
310
+ SearchFacesByImageResponse.add_member(:searched_face_bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "SearchedFaceBoundingBox"))
311
+ SearchFacesByImageResponse.add_member(:searched_face_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "SearchedFaceConfidence"))
312
+ SearchFacesByImageResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: FaceMatchList, location_name: "FaceMatches"))
313
+ SearchFacesByImageResponse.struct_class = Types::SearchFacesByImageResponse
314
+
315
+ SearchFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
316
+ SearchFacesRequest.add_member(:face_id, Shapes::ShapeRef.new(shape: FaceId, required: true, location_name: "FaceId"))
317
+ SearchFacesRequest.add_member(:max_faces, Shapes::ShapeRef.new(shape: MaxFaces, location_name: "MaxFaces"))
318
+ SearchFacesRequest.add_member(:face_match_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "FaceMatchThreshold"))
319
+ SearchFacesRequest.struct_class = Types::SearchFacesRequest
320
+
321
+ SearchFacesResponse.add_member(:searched_face_id, Shapes::ShapeRef.new(shape: FaceId, location_name: "SearchedFaceId"))
322
+ SearchFacesResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: FaceMatchList, location_name: "FaceMatches"))
323
+ SearchFacesResponse.struct_class = Types::SearchFacesResponse
324
+
325
+ Smile.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
326
+ Smile.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
327
+ Smile.struct_class = Types::Smile
328
+
329
+ Sunglasses.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
330
+ Sunglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
331
+ Sunglasses.struct_class = Types::Sunglasses
332
+
333
+
334
+ # @api private
335
+ API = Seahorse::Model::Api.new.tap do |api|
336
+
337
+ api.version = "2016-06-27"
338
+
339
+ api.metadata = {
340
+ "endpointPrefix" => "rekognition",
341
+ "jsonVersion" => "1.1",
342
+ "protocol" => "json",
343
+ "serviceFullName" => "Amazon Rekognition",
344
+ "signatureVersion" => "v4",
345
+ "targetPrefix" => "RekognitionService",
346
+ }
347
+
348
+ api.add_operation(:compare_faces, Seahorse::Model::Operation.new.tap do |o|
349
+ o.name = "CompareFaces"
350
+ o.http_method = "POST"
351
+ o.http_request_uri = "/"
352
+ o.input = Shapes::ShapeRef.new(shape: CompareFacesRequest)
353
+ o.output = Shapes::ShapeRef.new(shape: CompareFacesResponse)
354
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
355
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
356
+ o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
357
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
358
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
359
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
361
+ o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
362
+ end)
363
+
364
+ api.add_operation(:create_collection, Seahorse::Model::Operation.new.tap do |o|
365
+ o.name = "CreateCollection"
366
+ o.http_method = "POST"
367
+ o.http_request_uri = "/"
368
+ o.input = Shapes::ShapeRef.new(shape: CreateCollectionRequest)
369
+ o.output = Shapes::ShapeRef.new(shape: CreateCollectionResponse)
370
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
371
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
372
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
373
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
374
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
375
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
376
+ end)
377
+
378
+ api.add_operation(:delete_collection, Seahorse::Model::Operation.new.tap do |o|
379
+ o.name = "DeleteCollection"
380
+ o.http_method = "POST"
381
+ o.http_request_uri = "/"
382
+ o.input = Shapes::ShapeRef.new(shape: DeleteCollectionRequest)
383
+ o.output = Shapes::ShapeRef.new(shape: DeleteCollectionResponse)
384
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
385
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
386
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
387
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
389
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
390
+ end)
391
+
392
+ api.add_operation(:delete_faces, Seahorse::Model::Operation.new.tap do |o|
393
+ o.name = "DeleteFaces"
394
+ o.http_method = "POST"
395
+ o.http_request_uri = "/"
396
+ o.input = Shapes::ShapeRef.new(shape: DeleteFacesRequest)
397
+ o.output = Shapes::ShapeRef.new(shape: DeleteFacesResponse)
398
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
399
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
400
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
401
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
402
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
403
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
404
+ end)
405
+
406
+ api.add_operation(:detect_faces, Seahorse::Model::Operation.new.tap do |o|
407
+ o.name = "DetectFaces"
408
+ o.http_method = "POST"
409
+ o.http_request_uri = "/"
410
+ o.input = Shapes::ShapeRef.new(shape: DetectFacesRequest)
411
+ o.output = Shapes::ShapeRef.new(shape: DetectFacesResponse)
412
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
413
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
415
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
416
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
417
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
418
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
419
+ o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
420
+ end)
421
+
422
+ api.add_operation(:detect_labels, Seahorse::Model::Operation.new.tap do |o|
423
+ o.name = "DetectLabels"
424
+ o.http_method = "POST"
425
+ o.http_request_uri = "/"
426
+ o.input = Shapes::ShapeRef.new(shape: DetectLabelsRequest)
427
+ o.output = Shapes::ShapeRef.new(shape: DetectLabelsResponse)
428
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
429
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
430
+ o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
431
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
432
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
433
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
434
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
435
+ o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
436
+ end)
437
+
438
+ api.add_operation(:index_faces, Seahorse::Model::Operation.new.tap do |o|
439
+ o.name = "IndexFaces"
440
+ o.http_method = "POST"
441
+ o.http_request_uri = "/"
442
+ o.input = Shapes::ShapeRef.new(shape: IndexFacesRequest)
443
+ o.output = Shapes::ShapeRef.new(shape: IndexFacesResponse)
444
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
445
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
446
+ o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
447
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
448
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
449
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
450
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
451
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
452
+ o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
453
+ end)
454
+
455
+ api.add_operation(:list_collections, Seahorse::Model::Operation.new.tap do |o|
456
+ o.name = "ListCollections"
457
+ o.http_method = "POST"
458
+ o.http_request_uri = "/"
459
+ o.input = Shapes::ShapeRef.new(shape: ListCollectionsRequest)
460
+ o.output = Shapes::ShapeRef.new(shape: ListCollectionsResponse)
461
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
462
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
463
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
464
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
465
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
466
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
467
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
468
+ o[:pager] = Aws::Pager.new(
469
+ limit_key: "max_results",
470
+ tokens: {
471
+ "next_token" => "next_token"
472
+ }
473
+ )
474
+ end)
475
+
476
+ api.add_operation(:list_faces, Seahorse::Model::Operation.new.tap do |o|
477
+ o.name = "ListFaces"
478
+ o.http_method = "POST"
479
+ o.http_request_uri = "/"
480
+ o.input = Shapes::ShapeRef.new(shape: ListFacesRequest)
481
+ o.output = Shapes::ShapeRef.new(shape: ListFacesResponse)
482
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
483
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
484
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
485
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
486
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
487
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
489
+ o[:pager] = Aws::Pager.new(
490
+ limit_key: "max_results",
491
+ tokens: {
492
+ "next_token" => "next_token"
493
+ }
494
+ )
495
+ end)
496
+
497
+ api.add_operation(:search_faces, Seahorse::Model::Operation.new.tap do |o|
498
+ o.name = "SearchFaces"
499
+ o.http_method = "POST"
500
+ o.http_request_uri = "/"
501
+ o.input = Shapes::ShapeRef.new(shape: SearchFacesRequest)
502
+ o.output = Shapes::ShapeRef.new(shape: SearchFacesResponse)
503
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
504
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
505
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
506
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
507
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
508
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
509
+ end)
510
+
511
+ api.add_operation(:search_faces_by_image, Seahorse::Model::Operation.new.tap do |o|
512
+ o.name = "SearchFacesByImage"
513
+ o.http_method = "POST"
514
+ o.http_request_uri = "/"
515
+ o.input = Shapes::ShapeRef.new(shape: SearchFacesByImageRequest)
516
+ o.output = Shapes::ShapeRef.new(shape: SearchFacesByImageResponse)
517
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
518
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
519
+ o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
520
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
521
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
522
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
523
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
524
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
525
+ o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
526
+ end)
527
+ end
528
+
529
+ end
530
+ end
531
+ end