azure_cognitiveservices_contentmoderator 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator.rb +93 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/content_moderator_client.rb +167 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/image_moderation.rb +1399 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image.rb +637 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image_lists.rb +610 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term.rb +429 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term_lists.rb +618 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/address.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/apierror.rb +47 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/azure_region_base_url.rb +27 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb +70 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body_metadata.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/candidate.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb +82 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/content.rb +47 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item.rb +101 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item_metadata_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item.rb +144 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_metadata_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item.rb +112 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.rb +60 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/detected_language.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/detected_terms.rb +81 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb +80 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/error.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/evaluate.rb +144 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/face.rb +79 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/found_faces.rb +131 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/frame.rb +97 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/frames.rb +66 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image.rb +89 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_additional_info_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_ids.rb +88 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_list.rb +80 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_list_metadata.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_url.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ipa.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb +153 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job_execution_report_details.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job_id.rb +47 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job_list_result.rb +54 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/key_value_pair.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb +98 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb +100 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ocr.rb +131 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/pii.rb +115 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index.rb +100 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index_advanced_info_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb +163 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/score.rb +48 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb +165 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/status.rb +68 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/tag.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/term_list.rb +80 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/term_list_metadata.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_data.rb +89 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_in_list.rb +46 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_paging.rb +79 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/transcript_moderation_body_item.rb +67 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/transcript_moderation_body_item_terms_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item.rb +98 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item_metadata_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/module_definition.rb +9 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb +1829 -0
- data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/text_moderation.rb +294 -0
- data/lib/azure_cognitiveservices_contentmoderator.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/contentmoderator_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/contentmoderator_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/contentmoderator_profile_module.rb +307 -0
- data/lib/version.rb +7 -0
- metadata +196 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class CreateVideoReviewsBodyItemVideoFramesItemMetadataItem
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Your key parameter.
|
17
|
+
attr_accessor :key
|
18
|
+
|
19
|
+
# @return [String] Your value parameter.
|
20
|
+
attr_accessor :value
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for CreateVideoReviewsBodyItemVideoFramesItemMetadataItem class
|
25
|
+
# as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'CreateVideoReviewsBodyItem_VideoFramesItem_MetadataItem',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'CreateVideoReviewsBodyItemVideoFramesItemMetadataItem',
|
36
|
+
model_properties: {
|
37
|
+
key: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'Key',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
value: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'Value',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Your key parameter.
|
17
|
+
attr_accessor :key
|
18
|
+
|
19
|
+
# @return [String] Your value parameter.
|
20
|
+
attr_accessor :value
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for
|
25
|
+
# CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem class
|
26
|
+
# as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'CreateVideoReviewsBodyItem_VideoFramesItem_ReviewerResultTagsItem',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem',
|
37
|
+
model_properties: {
|
38
|
+
key: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'Key',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
value: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'Value',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Detect language result.
|
10
|
+
#
|
11
|
+
class DetectedLanguage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The detected language.
|
16
|
+
attr_accessor :detected_language
|
17
|
+
|
18
|
+
# @return [Status] The detect language status
|
19
|
+
attr_accessor :status
|
20
|
+
|
21
|
+
# @return [String] The tracking id.
|
22
|
+
attr_accessor :tracking_id
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for DetectedLanguage class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'DetectedLanguage',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'DetectedLanguage',
|
37
|
+
model_properties: {
|
38
|
+
detected_language: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'DetectedLanguage',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
status: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'Status',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'Status'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
tracking_id: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'TrackingId',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Detected Terms details.
|
10
|
+
#
|
11
|
+
class DetectedTerms
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Index(Location) of the detected profanity term in the
|
16
|
+
# input text content.
|
17
|
+
attr_accessor :index
|
18
|
+
|
19
|
+
# @return [Integer] Original Index(Location) of the detected profanity
|
20
|
+
# term in the input text content.
|
21
|
+
attr_accessor :original_index
|
22
|
+
|
23
|
+
# @return [Integer] Matched Terms list Id.
|
24
|
+
attr_accessor :list_id
|
25
|
+
|
26
|
+
# @return [String] Detected profanity term.
|
27
|
+
attr_accessor :term
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for DetectedTerms class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'DetectedTerms',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'DetectedTerms',
|
42
|
+
model_properties: {
|
43
|
+
index: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'Index',
|
47
|
+
type: {
|
48
|
+
name: 'Number'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
original_index: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'OriginalIndex',
|
55
|
+
type: {
|
56
|
+
name: 'Number'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
list_id: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ListId',
|
63
|
+
type: {
|
64
|
+
name: 'Number'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
term: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'Term',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Email Address details.
|
10
|
+
#
|
11
|
+
class Email
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Detected Email Address from the input text content.
|
16
|
+
attr_accessor :detected
|
17
|
+
|
18
|
+
# @return [String] Subtype of the detected Email Address.
|
19
|
+
attr_accessor :sub_type
|
20
|
+
|
21
|
+
# @return [String] Email Address in the input text content.
|
22
|
+
attr_accessor :text
|
23
|
+
|
24
|
+
# @return [Integer] Index(Location) of the Email address in the input
|
25
|
+
# text content.
|
26
|
+
attr_accessor :index
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for Email class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'Email',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'Email',
|
41
|
+
model_properties: {
|
42
|
+
detected: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'Detected',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
sub_type: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'SubType',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
text: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'Text',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
index: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'Index',
|
70
|
+
type: {
|
71
|
+
name: 'Number'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Error body.
|
10
|
+
#
|
11
|
+
class Error
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Error class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Error',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Error',
|
34
|
+
model_properties: {
|
35
|
+
code: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'Code',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
message: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'Message',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ContentModerator::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Evaluate response object.
|
10
|
+
#
|
11
|
+
class Evaluate
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The cache id.
|
16
|
+
attr_accessor :cache_id
|
17
|
+
|
18
|
+
# @return [Boolean] Evaluate result.
|
19
|
+
attr_accessor :result
|
20
|
+
|
21
|
+
# @return [String] The tracking id.
|
22
|
+
attr_accessor :tracking_id
|
23
|
+
|
24
|
+
# @return [Float] The adult classification score.
|
25
|
+
attr_accessor :adult_classification_score
|
26
|
+
|
27
|
+
# @return [Boolean] Indicates if an image is classified as adult.
|
28
|
+
attr_accessor :is_image_adult_classified
|
29
|
+
|
30
|
+
# @return [Float] The racy classication score.
|
31
|
+
attr_accessor :racy_classification_score
|
32
|
+
|
33
|
+
# @return [Boolean] Indicates if the image is classified as racy.
|
34
|
+
attr_accessor :is_image_racy_classified
|
35
|
+
|
36
|
+
# @return [Array<KeyValuePair>] The advanced info.
|
37
|
+
attr_accessor :advanced_info
|
38
|
+
|
39
|
+
# @return [Status] The evaluate status
|
40
|
+
attr_accessor :status
|
41
|
+
|
42
|
+
|
43
|
+
#
|
44
|
+
# Mapper for Evaluate class as Ruby Hash.
|
45
|
+
# This will be used for serialization/deserialization.
|
46
|
+
#
|
47
|
+
def self.mapper()
|
48
|
+
{
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'Evaluate',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'Evaluate',
|
55
|
+
model_properties: {
|
56
|
+
cache_id: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'CacheID',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
result: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'Result',
|
68
|
+
type: {
|
69
|
+
name: 'Boolean'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
tracking_id: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'TrackingId',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
adult_classification_score: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'AdultClassificationScore',
|
84
|
+
type: {
|
85
|
+
name: 'Double'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
is_image_adult_classified: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'IsImageAdultClassified',
|
92
|
+
type: {
|
93
|
+
name: 'Boolean'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
racy_classification_score: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'RacyClassificationScore',
|
100
|
+
type: {
|
101
|
+
name: 'Double'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
is_image_racy_classified: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'IsImageRacyClassified',
|
108
|
+
type: {
|
109
|
+
name: 'Boolean'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
advanced_info: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'AdvancedInfo',
|
116
|
+
type: {
|
117
|
+
name: 'Sequence',
|
118
|
+
element: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'KeyValuePairElementType',
|
122
|
+
type: {
|
123
|
+
name: 'Composite',
|
124
|
+
class_name: 'KeyValuePair'
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
status: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: false,
|
132
|
+
serialized_name: 'Status',
|
133
|
+
type: {
|
134
|
+
name: 'Composite',
|
135
|
+
class_name: 'Status'
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|