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,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
+ # Job Execution Report Values.
10
+ #
11
+ class JobExecutionReportDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Time details.
16
+ attr_accessor :ts
17
+
18
+ # @return [String] Message details.
19
+ attr_accessor :msg
20
+
21
+
22
+ #
23
+ # Mapper for JobExecutionReportDetails 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: 'JobExecutionReportDetails',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'JobExecutionReportDetails',
34
+ model_properties: {
35
+ ts: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'Ts',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ msg: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'Msg',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,47 @@
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 JobId
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Id of the created job.
17
+ attr_accessor :job_id
18
+
19
+
20
+ #
21
+ # Mapper for JobId class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'JobId',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'JobId',
32
+ model_properties: {
33
+ job_id: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'JobId',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,54 @@
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 list of job ids.
10
+ #
11
+ class JobListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] The job id.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for JobListResult 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: 'JobListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'JobListResult',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'Value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ 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
+ # The key value pair object properties.
10
+ #
11
+ class KeyValuePair
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The key parameter.
16
+ attr_accessor :key
17
+
18
+ # @return [String] The value parameter.
19
+ attr_accessor :value
20
+
21
+
22
+ #
23
+ # Mapper for KeyValuePair 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: 'KeyValuePair',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'KeyValuePair',
34
+ model_properties: {
35
+ key: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'Key',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ value: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'Value',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -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
+ # The match details.
10
+ #
11
+ class Match
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Float] Confidence score of the image match.
16
+ attr_accessor :score
17
+
18
+ # @return [Integer] The match id.
19
+ attr_accessor :match_id
20
+
21
+ # @return [String] The source.
22
+ attr_accessor :source
23
+
24
+ # @return [Array<Integer>] The tags for match details.
25
+ attr_accessor :tags
26
+
27
+ # @return [String] The label.
28
+ attr_accessor :label
29
+
30
+
31
+ #
32
+ # Mapper for Match class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Match',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Match',
43
+ model_properties: {
44
+ score: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'Score',
48
+ type: {
49
+ name: 'Double'
50
+ }
51
+ },
52
+ match_id: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'MatchId',
56
+ type: {
57
+ name: 'Number'
58
+ }
59
+ },
60
+ source: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'Source',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ tags: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'Tags',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'NumberElementType',
78
+ type: {
79
+ name: 'Number'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ label: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'Label',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,100 @@
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 Match request.
10
+ #
11
+ class MatchResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The tracking id.
16
+ attr_accessor :tracking_id
17
+
18
+ # @return [String] The cache id.
19
+ attr_accessor :cache_id
20
+
21
+ # @return [Boolean] Indicates if there is a match.
22
+ attr_accessor :is_match
23
+
24
+ # @return [Array<Match>] The match details.
25
+ attr_accessor :matches
26
+
27
+ # @return [Status] The evaluate status
28
+ attr_accessor :status
29
+
30
+
31
+ #
32
+ # Mapper for MatchResponse class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'MatchResponse',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'MatchResponse',
43
+ model_properties: {
44
+ tracking_id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'TrackingId',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ cache_id: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'CacheID',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ is_match: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'IsMatch',
64
+ type: {
65
+ name: 'Boolean'
66
+ }
67
+ },
68
+ matches: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'Matches',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'MatchElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'Match'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ status: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'Status',
89
+ type: {
90
+ name: 'Composite',
91
+ class_name: 'Status'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ 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
+ # Contains the text found in image for the language specified.
10
+ #
11
+ class OCR
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Status] The evaluate status
16
+ attr_accessor :status
17
+
18
+ # @return [Array<KeyValuePair>] Array of KeyValue.
19
+ attr_accessor :metadata
20
+
21
+ # @return [String] The tracking id.
22
+ attr_accessor :tracking_id
23
+
24
+ # @return [String] The cache id.
25
+ attr_accessor :cache_id
26
+
27
+ # @return [String] The ISO 639-3 code.
28
+ attr_accessor :language
29
+
30
+ # @return [String] The found text.
31
+ attr_accessor :text
32
+
33
+ # @return [Array<Candidate>] The list of candidate text.
34
+ attr_accessor :candidates
35
+
36
+
37
+ #
38
+ # Mapper for OCR 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: 'OCR',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'OCR',
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
+ metadata: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'Metadata',
63
+ type: {
64
+ name: 'Sequence',
65
+ element: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'KeyValuePairElementType',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'KeyValuePair'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ tracking_id: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'TrackingId',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ cache_id: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'CacheId',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ language: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ serialized_name: 'Language',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ },
100
+ text: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ serialized_name: 'Text',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ candidates: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'Candidates',
112
+ type: {
113
+ name: 'Sequence',
114
+ element: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'CandidateElementType',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'Candidate'
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end