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,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 ImageAdditionalInfoItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Key parameter.
17
+ attr_accessor :key
18
+
19
+ # @return [String] Value parameter.
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for ImageAdditionalInfoItem 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: 'Image_AdditionalInfoItem',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ImageAdditionalInfoItem',
35
+ model_properties: {
36
+ key: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Key',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'Value',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,88 @@
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 Id properties.
10
+ #
11
+ class ImageIds
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Source of the content.
16
+ attr_accessor :content_source
17
+
18
+ # @return [Array<Integer>] Id of the contents.
19
+ attr_accessor :content_ids
20
+
21
+ # @return [Status] Get Image status.
22
+ attr_accessor :status
23
+
24
+ # @return [String] Tracking Id.
25
+ attr_accessor :tracking_id
26
+
27
+
28
+ #
29
+ # Mapper for ImageIds 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: 'ImageIds',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ImageIds',
40
+ model_properties: {
41
+ content_source: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'ContentSource',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ content_ids: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'ContentIds',
53
+ type: {
54
+ name: 'Sequence',
55
+ element: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'NumberElementType',
59
+ type: {
60
+ name: 'Number'
61
+ }
62
+ }
63
+ }
64
+ },
65
+ status: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'Status',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'Status'
72
+ }
73
+ },
74
+ tracking_id: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'TrackingId',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ end
86
+ end
87
+ end
88
+ 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
+ # Image List Properties.
10
+ #
11
+ class ImageList
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Image List Id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Image List Name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Description for image list.
22
+ attr_accessor :description
23
+
24
+ # @return [ImageListMetadata] Image List Metadata.
25
+ attr_accessor :metadata
26
+
27
+
28
+ #
29
+ # Mapper for ImageList 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: 'ImageList',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ImageList',
40
+ model_properties: {
41
+ id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'Id',
45
+ type: {
46
+ name: 'Number'
47
+ }
48
+ },
49
+ name: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ description: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'Description',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ metadata: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'Metadata',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'ImageListMetadata'
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
+ # Image List Metadata.
10
+ #
11
+ class ImageListMetadata
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Optional Key value pair to describe your list.
16
+ attr_accessor :key_one
17
+
18
+ # @return [String] Optional Key value pair to describe your list.
19
+ attr_accessor :key_two
20
+
21
+
22
+ #
23
+ # Mapper for ImageListMetadata 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: 'ImageList_Metadata',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ImageListMetadata',
34
+ model_properties: {
35
+ key_one: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'Key One',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ key_two: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'Key Two',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -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 ImageUrl
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] . Default value: 'URL' .
17
+ attr_accessor :data_representation
18
+
19
+ # @return [String]
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for ImageUrl 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: 'ImageUrl',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ImageUrl',
35
+ model_properties: {
36
+ data_representation: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'DataRepresentation',
40
+ default_value: 'URL',
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,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
+ # IP Address details.
10
+ #
11
+ class IPA
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Subtype of the detected IP Address.
16
+ attr_accessor :sub_type
17
+
18
+ # @return [String] Detected IP Address.
19
+ attr_accessor :text
20
+
21
+ # @return [Integer] Index(Location) of the IP Address in the input text
22
+ # content.
23
+ attr_accessor :index
24
+
25
+
26
+ #
27
+ # Mapper for IPA 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: 'IPA',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'IPA',
38
+ model_properties: {
39
+ sub_type: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'SubType',
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,153 @@
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 Job object.
10
+ #
11
+ class Job
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The job id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The team name associated with the job.
19
+ attr_accessor :team_name
20
+
21
+ # @return [String] The status string (<Pending, Failed, Completed>).
22
+ attr_accessor :status
23
+
24
+ # @return [String] The Id of the workflow.
25
+ attr_accessor :workflow_id
26
+
27
+ # @return [String] Type of the content.
28
+ attr_accessor :type
29
+
30
+ # @return [String] The callback endpoint.
31
+ attr_accessor :call_back_endpoint
32
+
33
+ # @return [String] Review Id if one is created.
34
+ attr_accessor :review_id
35
+
36
+ # @return [Array<KeyValuePair>] Array of KeyValue pairs.
37
+ attr_accessor :result_meta_data
38
+
39
+ # @return [Array<JobExecutionReportDetails>] Job execution report- Array
40
+ # of KeyValue pairs object.
41
+ attr_accessor :job_execution_report
42
+
43
+
44
+ #
45
+ # Mapper for Job class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Job',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Job',
56
+ model_properties: {
57
+ id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'Id',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ team_name: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'TeamName',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ status: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'Status',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ workflow_id: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'WorkflowId',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ type: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'Type',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ call_back_endpoint: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'CallBackEndpoint',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ review_id: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'ReviewId',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ result_meta_data: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'ResultMetaData',
117
+ type: {
118
+ name: 'Sequence',
119
+ element: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'KeyValuePairElementType',
123
+ type: {
124
+ name: 'Composite',
125
+ class_name: 'KeyValuePair'
126
+ }
127
+ }
128
+ }
129
+ },
130
+ job_execution_report: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ serialized_name: 'JobExecutionReport',
134
+ type: {
135
+ name: 'Sequence',
136
+ element: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'JobExecutionReportDetailsElementType',
140
+ type: {
141
+ name: 'Composite',
142
+ class_name: 'JobExecutionReportDetails'
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ end
151
+ end
152
+ end
153
+ end