azure_cognitiveservices_contentmoderator 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator.rb +93 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/content_moderator_client.rb +167 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/image_moderation.rb +1399 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image.rb +637 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image_lists.rb +610 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term.rb +429 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term_lists.rb +618 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/address.rb +58 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/apierror.rb +47 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/azure_region_base_url.rb +27 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb +70 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body_metadata.rb +57 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/candidate.rb +57 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb +82 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/content.rb +47 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item.rb +101 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item_metadata_item.rb +58 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item.rb +144 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_metadata_item.rb +58 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item.rb +112 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.rb +59 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.rb +60 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/detected_language.rb +69 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/detected_terms.rb +81 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb +80 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/error.rb +57 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/evaluate.rb +144 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/face.rb +79 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/found_faces.rb +131 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/frame.rb +97 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/frames.rb +66 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image.rb +89 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_additional_info_item.rb +58 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_ids.rb +88 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_list.rb +80 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_list_metadata.rb +57 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/image_url.rb +59 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ipa.rb +69 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb +153 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job_execution_report_details.rb +57 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job_id.rb +47 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job_list_result.rb +54 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/key_value_pair.rb +57 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb +98 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match_response.rb +100 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ocr.rb +131 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb +69 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/pii.rb +115 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index.rb +100 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index_advanced_info_item.rb +58 -0
  53. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb +163 -0
  54. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/score.rb +48 -0
  55. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb +165 -0
  56. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/status.rb +68 -0
  57. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/tag.rb +57 -0
  58. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/term_list.rb +80 -0
  59. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/term_list_metadata.rb +57 -0
  60. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms.rb +59 -0
  61. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_data.rb +89 -0
  62. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_in_list.rb +46 -0
  63. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_paging.rb +79 -0
  64. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/transcript_moderation_body_item.rb +67 -0
  65. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/transcript_moderation_body_item_terms_item.rb +58 -0
  66. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item.rb +98 -0
  67. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item_metadata_item.rb +58 -0
  68. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.rb +58 -0
  69. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/module_definition.rb +9 -0
  70. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb +1829 -0
  71. data/lib/1.0/generated/azure_cognitiveservices_contentmoderator/text_moderation.rb +294 -0
  72. data/lib/azure_cognitiveservices_contentmoderator.rb +6 -0
  73. data/lib/module_definition.rb +7 -0
  74. data/lib/profiles/latest/contentmoderator_latest_profile_client.rb +38 -0
  75. data/lib/profiles/latest/contentmoderator_module_definition.rb +8 -0
  76. data/lib/profiles/latest/modules/contentmoderator_profile_module.rb +307 -0
  77. data/lib/version.rb +7 -0
  78. metadata +196 -0
@@ -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
+ # Coordinates to the found face.
10
+ #
11
+ class Face
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The bottom coordinate.
16
+ attr_accessor :bottom
17
+
18
+ # @return [Integer] The left coordinate.
19
+ attr_accessor :left
20
+
21
+ # @return [Integer] The right coordinate.
22
+ attr_accessor :right
23
+
24
+ # @return [Integer] The top coordinate.
25
+ attr_accessor :top
26
+
27
+
28
+ #
29
+ # Mapper for Face 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: 'Face',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'Face',
40
+ model_properties: {
41
+ bottom: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'Bottom',
45
+ type: {
46
+ name: 'Number'
47
+ }
48
+ },
49
+ left: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Left',
53
+ type: {
54
+ name: 'Number'
55
+ }
56
+ },
57
+ right: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'Right',
61
+ type: {
62
+ name: 'Number'
63
+ }
64
+ },
65
+ top: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'Top',
69
+ type: {
70
+ name: 'Number'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,131 @@
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
+ # Request object the contains found faces.
10
+ #
11
+ class FoundFaces
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Status] The evaluate status
16
+ attr_accessor :status
17
+
18
+ # @return [String] The tracking id.
19
+ attr_accessor :tracking_id
20
+
21
+ # @return [String] The cache id.
22
+ attr_accessor :cache_id
23
+
24
+ # @return [Boolean] True if result was found.
25
+ attr_accessor :result
26
+
27
+ # @return [Integer] Number of faces found.
28
+ attr_accessor :count
29
+
30
+ # @return [Array<KeyValuePair>] The advanced info.
31
+ attr_accessor :advanced_info
32
+
33
+ # @return [Array<Face>] The list of faces.
34
+ attr_accessor :faces
35
+
36
+
37
+ #
38
+ # Mapper for FoundFaces class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'FoundFaces',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'FoundFaces',
49
+ model_properties: {
50
+ status: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'Status',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'Status'
57
+ }
58
+ },
59
+ tracking_id: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'TrackingId',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ cache_id: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'CacheId',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ result: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'Result',
79
+ type: {
80
+ name: 'Boolean'
81
+ }
82
+ },
83
+ count: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'Count',
87
+ type: {
88
+ name: 'Number'
89
+ }
90
+ },
91
+ advanced_info: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'AdvancedInfo',
95
+ type: {
96
+ name: 'Sequence',
97
+ element: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'KeyValuePairElementType',
101
+ type: {
102
+ name: 'Composite',
103
+ class_name: 'KeyValuePair'
104
+ }
105
+ }
106
+ }
107
+ },
108
+ faces: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'Faces',
112
+ type: {
113
+ name: 'Sequence',
114
+ element: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'FaceElementType',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'Face'
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,97 @@
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
+ # Video frame property details.
10
+ #
11
+ class Frame
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Timestamp of the frame.
16
+ attr_accessor :timestamp
17
+
18
+ # @return [String] Frame image.
19
+ attr_accessor :frame_image
20
+
21
+ # @return [Array<KeyValuePair>] Array of KeyValue.
22
+ attr_accessor :metadata
23
+
24
+ # @return [Array<Tag>] Reviewer result tags.
25
+ attr_accessor :reviewer_result_tags
26
+
27
+
28
+ #
29
+ # Mapper for Frame 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: 'Frame',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'Frame',
40
+ model_properties: {
41
+ timestamp: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'Timestamp',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ frame_image: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'FrameImage',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ metadata: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'Metadata',
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'KeyValuePairElementType',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'KeyValuePair'
70
+ }
71
+ }
72
+ }
73
+ },
74
+ reviewer_result_tags: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'ReviewerResultTags',
78
+ type: {
79
+ name: 'Sequence',
80
+ element: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'TagElementType',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'Tag'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,66 @@
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
+ # The response for a Get Frames request.
10
+ #
11
+ class Frames
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Id of the review.
16
+ attr_accessor :review_id
17
+
18
+ # @return [Array<Frame>]
19
+ attr_accessor :video_frames
20
+
21
+
22
+ #
23
+ # Mapper for Frames 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: 'Frames',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Frames',
34
+ model_properties: {
35
+ review_id: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'ReviewId',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ video_frames: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'VideoFrames',
47
+ type: {
48
+ name: 'Sequence',
49
+ element: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'FrameElementType',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Frame'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ 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
+ # Image Properties.
10
+ #
11
+ class Image
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Content Id.
16
+ attr_accessor :content_id
17
+
18
+ # @return [Array<ImageAdditionalInfoItem>] Advanced info list.
19
+ attr_accessor :additional_info
20
+
21
+ # @return [Status] Status details.
22
+ attr_accessor :status
23
+
24
+ # @return [String] Tracking Id.
25
+ attr_accessor :tracking_id
26
+
27
+
28
+ #
29
+ # Mapper for Image 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: 'Image',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'Image',
40
+ model_properties: {
41
+ content_id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'ContentId',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ additional_info: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'AdditionalInfo',
53
+ type: {
54
+ name: 'Sequence',
55
+ element: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'ImageAdditionalInfoItemElementType',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'ImageAdditionalInfoItem'
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