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,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
+ # Phone Property details.
10
+ #
11
+ class Phone
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] CountryCode of the detected Phone number.
16
+ attr_accessor :country_code
17
+
18
+ # @return [String] Detected Phone number.
19
+ attr_accessor :text
20
+
21
+ # @return [Integer] Index(Location) of the Phone number in the input text
22
+ # content.
23
+ attr_accessor :index
24
+
25
+
26
+ #
27
+ # Mapper for Phone class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'Phone',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Phone',
38
+ model_properties: {
39
+ country_code: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'CountryCode',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ text: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'Text',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ index: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'Index',
59
+ type: {
60
+ name: 'Number'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,115 @@
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
+ # Personal Identifier Information details.
10
+ #
11
+ class PII
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Email>]
16
+ attr_accessor :email
17
+
18
+ # @return [Array<IPA>]
19
+ attr_accessor :ipa
20
+
21
+ # @return [Array<Phone>]
22
+ attr_accessor :phone
23
+
24
+ # @return [Array<Address>]
25
+ attr_accessor :address
26
+
27
+
28
+ #
29
+ # Mapper for PII 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: 'PII',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'PII',
40
+ model_properties: {
41
+ email: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'Email',
45
+ type: {
46
+ name: 'Sequence',
47
+ element: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'EmailElementType',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'Email'
54
+ }
55
+ }
56
+ }
57
+ },
58
+ ipa: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'IPA',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'IPAElementType',
68
+ type: {
69
+ name: 'Composite',
70
+ class_name: 'IPA'
71
+ }
72
+ }
73
+ }
74
+ },
75
+ phone: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'Phone',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'PhoneElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'Phone'
88
+ }
89
+ }
90
+ }
91
+ },
92
+ address: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ serialized_name: 'Address',
96
+ type: {
97
+ name: 'Sequence',
98
+ element: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'AddressElementType',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'Address'
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ end
113
+ end
114
+ end
115
+ 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
+ # Refresh Index Response.
10
+ #
11
+ class RefreshIndex
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Content source Id.
16
+ attr_accessor :content_source_id
17
+
18
+ # @return [Boolean] Update success status.
19
+ attr_accessor :is_update_success
20
+
21
+ # @return [Array<RefreshIndexAdvancedInfoItem>] Advanced info list.
22
+ attr_accessor :advanced_info
23
+
24
+ # @return [Status] Refresh index status.
25
+ attr_accessor :status
26
+
27
+ # @return [String] Tracking Id.
28
+ attr_accessor :tracking_id
29
+
30
+
31
+ #
32
+ # Mapper for RefreshIndex 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: 'RefreshIndex',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'RefreshIndex',
43
+ model_properties: {
44
+ content_source_id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'ContentSourceId',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ is_update_success: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'IsUpdateSuccess',
56
+ type: {
57
+ name: 'Boolean'
58
+ }
59
+ },
60
+ advanced_info: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'AdvancedInfo',
64
+ type: {
65
+ name: 'Sequence',
66
+ element: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'RefreshIndexAdvancedInfoItemElementType',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'RefreshIndexAdvancedInfoItem'
73
+ }
74
+ }
75
+ }
76
+ },
77
+ status: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'Status',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'Status'
84
+ }
85
+ },
86
+ tracking_id: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'TrackingId',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ 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 RefreshIndexAdvancedInfoItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Key parameter to describe advanced info.
17
+ attr_accessor :key_one
18
+
19
+ # @return [String] Key parameter to describe advanced info.
20
+ attr_accessor :key_two
21
+
22
+
23
+ #
24
+ # Mapper for RefreshIndexAdvancedInfoItem 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: 'RefreshIndex_AdvancedInfoItem',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'RefreshIndexAdvancedInfoItem',
35
+ model_properties: {
36
+ key_one: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Key One',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ key_two: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'Key Two',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,163 @@
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 Review object.
10
+ #
11
+ class Review
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Id of the review.
16
+ attr_accessor :review_id
17
+
18
+ # @return [String] Name of the subteam.
19
+ attr_accessor :sub_team
20
+
21
+ # @return [String] The status string (<Pending, Complete>).
22
+ attr_accessor :status
23
+
24
+ # @return [Array<KeyValuePair>] Array of KeyValue with Reviewer set Tags.
25
+ attr_accessor :reviewer_result_tags
26
+
27
+ # @return [String] The reviewer name.
28
+ attr_accessor :created_by
29
+
30
+ # @return [Array<KeyValuePair>] Array of KeyValue.
31
+ attr_accessor :metadata
32
+
33
+ # @return [String] The type of content.
34
+ attr_accessor :type
35
+
36
+ # @return [String] The content value.
37
+ attr_accessor :content
38
+
39
+ # @return [String] Id of the content.
40
+ attr_accessor :content_id
41
+
42
+ # @return [String] The callback endpoint.
43
+ attr_accessor :callback_endpoint
44
+
45
+
46
+ #
47
+ # Mapper for Review class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'Review',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'Review',
58
+ model_properties: {
59
+ review_id: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'ReviewId',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ sub_team: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'SubTeam',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ status: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'Status',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ reviewer_result_tags: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'ReviewerResultTags',
87
+ type: {
88
+ name: 'Sequence',
89
+ element: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'KeyValuePairElementType',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'KeyValuePair'
96
+ }
97
+ }
98
+ }
99
+ },
100
+ created_by: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ serialized_name: 'CreatedBy',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ metadata: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'Metadata',
112
+ type: {
113
+ name: 'Sequence',
114
+ element: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'KeyValuePairElementType',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'KeyValuePair'
121
+ }
122
+ }
123
+ }
124
+ },
125
+ type: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ serialized_name: 'Type',
129
+ type: {
130
+ name: 'String'
131
+ }
132
+ },
133
+ content: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ serialized_name: 'Content',
137
+ type: {
138
+ name: 'String'
139
+ }
140
+ },
141
+ content_id: {
142
+ client_side_validation: true,
143
+ required: false,
144
+ serialized_name: 'ContentId',
145
+ type: {
146
+ name: 'String'
147
+ }
148
+ },
149
+ callback_endpoint: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: 'CallbackEndpoint',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ end
161
+ end
162
+ end
163
+ end