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
|
+
# Terms properties.
|
10
|
+
#
|
11
|
+
class Terms
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [TermsData] Term data details.
|
16
|
+
attr_accessor :data
|
17
|
+
|
18
|
+
# @return [TermsPaging] Paging details.
|
19
|
+
attr_accessor :paging
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Terms 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: 'Terms',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Terms',
|
34
|
+
model_properties: {
|
35
|
+
data: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'Data',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'TermsData'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
paging: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'Paging',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'TermsPaging'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,89 @@
|
|
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
|
+
# All term Id response properties.
|
10
|
+
#
|
11
|
+
class TermsData
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Language of the terms.
|
16
|
+
attr_accessor :language
|
17
|
+
|
18
|
+
# @return [Array<TermsInList>] List of terms.
|
19
|
+
attr_accessor :terms
|
20
|
+
|
21
|
+
# @return [Status] Term Status.
|
22
|
+
attr_accessor :status
|
23
|
+
|
24
|
+
# @return [String] Tracking Id.
|
25
|
+
attr_accessor :tracking_id
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for TermsData class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'TermsData',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'TermsData',
|
40
|
+
model_properties: {
|
41
|
+
language: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'Language',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
terms: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'Terms',
|
53
|
+
type: {
|
54
|
+
name: 'Sequence',
|
55
|
+
element: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'TermsInListElementType',
|
59
|
+
type: {
|
60
|
+
name: 'Composite',
|
61
|
+
class_name: 'TermsInList'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
status: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'Status',
|
70
|
+
type: {
|
71
|
+
name: 'Composite',
|
72
|
+
class_name: 'Status'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
tracking_id: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'TrackingId',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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
|
+
# Terms in list Id passed.
|
10
|
+
#
|
11
|
+
class TermsInList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Added term details.
|
16
|
+
attr_accessor :term
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for TermsInList class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'TermsInList',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'TermsInList',
|
31
|
+
model_properties: {
|
32
|
+
term: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'Term',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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
|
+
# Paging details.
|
10
|
+
#
|
11
|
+
class TermsPaging
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Total details.
|
16
|
+
attr_accessor :total
|
17
|
+
|
18
|
+
# @return [Integer] Limit details.
|
19
|
+
attr_accessor :limit
|
20
|
+
|
21
|
+
# @return [Integer] Offset details.
|
22
|
+
attr_accessor :offset
|
23
|
+
|
24
|
+
# @return [Integer] Returned text details.
|
25
|
+
attr_accessor :returned
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for TermsPaging class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'Terms_Paging',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'TermsPaging',
|
40
|
+
model_properties: {
|
41
|
+
total: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'Total',
|
45
|
+
type: {
|
46
|
+
name: 'Number'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
limit: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'Limit',
|
53
|
+
type: {
|
54
|
+
name: 'Number'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
offset: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'Offset',
|
61
|
+
type: {
|
62
|
+
name: 'Number'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
returned: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'Returned',
|
69
|
+
type: {
|
70
|
+
name: 'Number'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,67 @@
|
|
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
|
+
# Schema items of the body.
|
10
|
+
#
|
11
|
+
class TranscriptModerationBodyItem
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Timestamp of the image.
|
16
|
+
attr_accessor :timestamp
|
17
|
+
|
18
|
+
# @return [Array<TranscriptModerationBodyItemTermsItem>] Optional
|
19
|
+
# metadata details.
|
20
|
+
attr_accessor :terms
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for TranscriptModerationBodyItem class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'transcriptModerationBodyItem',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'TranscriptModerationBodyItem',
|
35
|
+
model_properties: {
|
36
|
+
timestamp: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Timestamp',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
terms: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'Terms',
|
48
|
+
type: {
|
49
|
+
name: 'Sequence',
|
50
|
+
element: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'TranscriptModerationBodyItemTermsItemElementType',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'TranscriptModerationBodyItemTermsItem'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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 TranscriptModerationBodyItemTermsItem
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Integer] Index of the word
|
17
|
+
attr_accessor :index
|
18
|
+
|
19
|
+
# @return [String] Detected word.
|
20
|
+
attr_accessor :term
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for TranscriptModerationBodyItemTermsItem class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'transcriptModerationBodyItem_TermsItem',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'TranscriptModerationBodyItemTermsItem',
|
35
|
+
model_properties: {
|
36
|
+
index: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Index',
|
40
|
+
type: {
|
41
|
+
name: 'Number'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
term: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'Term',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item.rb
ADDED
@@ -0,0 +1,98 @@
|
|
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
|
+
# Schema items of the body.
|
10
|
+
#
|
11
|
+
class VideoFrameBodyItem
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Timestamp of the frame.
|
16
|
+
attr_accessor :timestamp
|
17
|
+
|
18
|
+
# @return [String] Content to review.
|
19
|
+
attr_accessor :frame_image
|
20
|
+
|
21
|
+
# @return [Array<VideoFrameBodyItemReviewerResultTagsItem>]
|
22
|
+
attr_accessor :reviewer_result_tags
|
23
|
+
|
24
|
+
# @return [Array<VideoFrameBodyItemMetadataItem>] Optional metadata
|
25
|
+
# details.
|
26
|
+
attr_accessor :metadata
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for VideoFrameBodyItem 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: 'videoFrameBodyItem',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'VideoFrameBodyItem',
|
41
|
+
model_properties: {
|
42
|
+
timestamp: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'Timestamp',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
frame_image: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'FrameImage',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
reviewer_result_tags: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'ReviewerResultTags',
|
62
|
+
type: {
|
63
|
+
name: 'Sequence',
|
64
|
+
element: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'VideoFrameBodyItemReviewerResultTagsItemElementType',
|
68
|
+
type: {
|
69
|
+
name: 'Composite',
|
70
|
+
class_name: 'VideoFrameBodyItemReviewerResultTagsItem'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
metadata: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'Metadata',
|
79
|
+
type: {
|
80
|
+
name: 'Sequence',
|
81
|
+
element: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'VideoFrameBodyItemMetadataItemElementType',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'VideoFrameBodyItemMetadataItem'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|