-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaws_rekognition_rule.rb
More file actions
46 lines (41 loc) · 1.38 KB
/
aws_rekognition_rule.rb
File metadata and controls
46 lines (41 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# frozen_string_literal: true
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
module GetStream
module Generated
module Models
#
class AWSRekognitionRule < GetStream::BaseModel
# Model attributes
# @!attribute action
# @return [String]
attr_accessor :action
# @!attribute label
# @return [String]
attr_accessor :label
# @!attribute min_confidence
# @return [Float]
attr_accessor :min_confidence
# @!attribute subclassifications
# @return [Hash<String, Boolean>]
attr_accessor :subclassifications
# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@action = attributes[:action] || attributes['action']
@label = attributes[:label] || attributes['label']
@min_confidence = attributes[:min_confidence] || attributes['min_confidence']
@subclassifications = attributes[:subclassifications] || attributes['subclassifications'] || nil
end
# Override field mappings for JSON serialization
def self.json_field_mappings
{
action: 'action',
label: 'label',
min_confidence: 'min_confidence',
subclassifications: 'subclassifications'
}
end
end
end
end
end