azure_cognitiveservices_contentmoderator 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6d8a0122c16f1a1134f99027d735d2d4605e121
4
- data.tar.gz: 125bc9a94a68f8ccef1eb14f894ad32eb5c73512
3
+ metadata.gz: 42b40bcb14d9916e812913f4fbc452c8a0a7d603
4
+ data.tar.gz: aa54071a4ff25f54ab39d9f1b28c3b73bd1cf4fe
5
5
  SHA512:
6
- metadata.gz: 98bcc457e923a53af5a99c632916b7cf44e243097f6daf7fb07ed6730ff709ef69aef7c6e45d8c872a031bc5b374c9b1f38134aca8cffe91e939ab25e1a85aa1
7
- data.tar.gz: d915f63330ead8bc4b178cf3299bb65c5bd4a2d7d1ef97403cafa38aced232472182ec8dafcc1c42deda2240c9423a0a48a073d0927722e5f1649308b310c055
6
+ metadata.gz: 9a2df693358e767c2f8439d018affb948200ec2d26f36a8dc01be3e4f7bd53d0eac3d513785e6b91160f9feea5add3a2766999a0b549a3f895488a955c6a25b9
7
+ data.tar.gz: 6b02630e56aade1f58b55a697dd8c06e41d87f46e142ca99c9a02984b419f640c1118a7122e1df2c769032b105b1daad3e120de9e9d0ab1744a4990fbb0a5912
@@ -30,14 +30,17 @@ module Azure::CognitiveServices::ContentModerator::V1_0
30
30
  autoload :ContentModeratorClient, '1.0/generated/azure_cognitiveservices_contentmoderator/content_moderator_client.rb'
31
31
 
32
32
  module Models
33
+ autoload :RefreshIndex, '1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index.rb'
34
+ autoload :ImageAdditionalInfoItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/image_additional_info_item.rb'
35
+ autoload :Tag, '1.0/generated/azure_cognitiveservices_contentmoderator/models/tag.rb'
33
36
  autoload :Image, '1.0/generated/azure_cognitiveservices_contentmoderator/models/image.rb'
34
- autoload :KeyValuePair, '1.0/generated/azure_cognitiveservices_contentmoderator/models/key_value_pair.rb'
37
+ autoload :Frames, '1.0/generated/azure_cognitiveservices_contentmoderator/models/frames.rb'
35
38
  autoload :ImageIds, '1.0/generated/azure_cognitiveservices_contentmoderator/models/image_ids.rb'
36
- autoload :Frame, '1.0/generated/azure_cognitiveservices_contentmoderator/models/frame.rb'
39
+ autoload :ClassificationCategory2, '1.0/generated/azure_cognitiveservices_contentmoderator/models/classification_category2.rb'
37
40
  autoload :TermsInList, '1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_in_list.rb'
38
- autoload :Score, '1.0/generated/azure_cognitiveservices_contentmoderator/models/score.rb'
41
+ autoload :Classification, '1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb'
39
42
  autoload :TermsData, '1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_data.rb'
40
- autoload :Status, '1.0/generated/azure_cognitiveservices_contentmoderator/models/status.rb'
43
+ autoload :Email, '1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb'
41
44
  autoload :TermsPaging, '1.0/generated/azure_cognitiveservices_contentmoderator/models/terms_paging.rb'
42
45
  autoload :IPA, '1.0/generated/azure_cognitiveservices_contentmoderator/models/ipa.rb'
43
46
  autoload :Terms, '1.0/generated/azure_cognitiveservices_contentmoderator/models/terms.rb'
@@ -59,11 +62,11 @@ module Azure::CognitiveServices::ContentModerator::V1_0
59
62
  autoload :TranscriptModerationBodyItemTermsItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/transcript_moderation_body_item_terms_item.rb'
60
63
  autoload :RefreshIndexAdvancedInfoItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index_advanced_info_item.rb'
61
64
  autoload :TranscriptModerationBodyItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/transcript_moderation_body_item.rb'
62
- autoload :ImageAdditionalInfoItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/image_additional_info_item.rb'
65
+ autoload :Frame, '1.0/generated/azure_cognitiveservices_contentmoderator/models/frame.rb'
63
66
  autoload :CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.rb'
64
- autoload :Frames, '1.0/generated/azure_cognitiveservices_contentmoderator/models/frames.rb'
67
+ autoload :ClassificationCategory3, '1.0/generated/azure_cognitiveservices_contentmoderator/models/classification_category3.rb'
65
68
  autoload :CreateVideoReviewsBodyItemVideoFramesItemMetadataItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.rb'
66
- autoload :Email, '1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb'
69
+ autoload :SSN, '1.0/generated/azure_cognitiveservices_contentmoderator/models/ssn.rb'
67
70
  autoload :CreateVideoReviewsBodyItemVideoFramesItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_video_frames_item.rb'
68
71
  autoload :PII, '1.0/generated/azure_cognitiveservices_contentmoderator/models/pii.rb'
69
72
  autoload :CreateVideoReviewsBodyItemMetadataItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item_metadata_item.rb'
@@ -73,15 +76,15 @@ module Azure::CognitiveServices::ContentModerator::V1_0
73
76
  autoload :BodyMetadata, '1.0/generated/azure_cognitiveservices_contentmoderator/models/body_metadata.rb'
74
77
  autoload :ImageList, '1.0/generated/azure_cognitiveservices_contentmoderator/models/image_list.rb'
75
78
  autoload :Body, '1.0/generated/azure_cognitiveservices_contentmoderator/models/body.rb'
76
- autoload :RefreshIndex, '1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index.rb'
79
+ autoload :KeyValuePair, '1.0/generated/azure_cognitiveservices_contentmoderator/models/key_value_pair.rb'
77
80
  autoload :ImageUrl, '1.0/generated/azure_cognitiveservices_contentmoderator/models/image_url.rb'
78
- autoload :Classification, '1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb'
81
+ autoload :Status, '1.0/generated/azure_cognitiveservices_contentmoderator/models/status.rb'
79
82
  autoload :VideoFrameBodyItemReviewerResultTagsItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.rb'
80
83
  autoload :Screen, '1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb'
81
84
  autoload :VideoFrameBodyItemMetadataItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item_metadata_item.rb'
82
85
  autoload :DetectedLanguage, '1.0/generated/azure_cognitiveservices_contentmoderator/models/detected_language.rb'
83
86
  autoload :VideoFrameBodyItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/video_frame_body_item.rb'
84
- autoload :Tag, '1.0/generated/azure_cognitiveservices_contentmoderator/models/tag.rb'
87
+ autoload :ClassificationCategory1, '1.0/generated/azure_cognitiveservices_contentmoderator/models/classification_category1.rb'
85
88
  autoload :CreateReviewBodyItemMetadataItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item_metadata_item.rb'
86
89
  autoload :OCR, '1.0/generated/azure_cognitiveservices_contentmoderator/models/ocr.rb'
87
90
  autoload :CreateReviewBodyItem, '1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item.rb'
@@ -38,15 +38,16 @@ module Azure::CognitiveServices::ContentModerator::V1_0
38
38
  # subscription.
39
39
  attr_accessor :credentials
40
40
 
41
- # @return [String] Gets or sets the preferred language for the response.
41
+ # @return [String] The preferred language for the response.
42
42
  attr_accessor :accept_language
43
43
 
44
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
45
- # Running Operations. Default value is 30.
44
+ # @return [Integer] The retry timeout in seconds for Long Running
45
+ # Operations. Default value is 30.
46
46
  attr_accessor :long_running_operation_retry_timeout
47
47
 
48
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
49
- # is generated and included in each request. Default is true.
48
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
49
+ # generated. When set to true a unique x-ms-client-request-id value is
50
+ # generated and included in each request. Default is true.
50
51
  attr_accessor :generate_client_request_id
51
52
 
52
53
  # @return [ImageModeration] image_moderation
@@ -160,7 +161,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
160
161
  #
161
162
  def add_telemetry
162
163
  sdk_information = 'azure_cognitiveservices_contentmoderator'
163
- sdk_information = "#{sdk_information}/0.16.0"
164
+ sdk_information = "#{sdk_information}/0.17.0"
164
165
  add_user_agent_information(sdk_information)
165
166
  end
166
167
  end
@@ -12,13 +12,19 @@ module Azure::CognitiveServices::ContentModerator::V1_0
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Score]
15
+ # @return [ClassificationCategory1] The category1 score details of the
16
+ # text. <a href="https://aka.ms/textClassifyCategories">Click here</a>
17
+ # for more details on category classification.
16
18
  attr_accessor :category1
17
19
 
18
- # @return [Score]
20
+ # @return [ClassificationCategory2] The category2 score details of the
21
+ # text. <a href="https://aka.ms/textClassifyCategories">Click here</a>
22
+ # for more details on category classification.
19
23
  attr_accessor :category2
20
24
 
21
- # @return [Score]
25
+ # @return [ClassificationCategory3] The category3 score details of the
26
+ # text. <a href="https://aka.ms/textClassifyCategories">Click here</a>
27
+ # for more details on category classification.
22
28
  attr_accessor :category3
23
29
 
24
30
  # @return [Boolean] The review recommended flag.
@@ -44,7 +50,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
44
50
  serialized_name: 'Category1',
45
51
  type: {
46
52
  name: 'Composite',
47
- class_name: 'Score'
53
+ class_name: 'ClassificationCategory1'
48
54
  }
49
55
  },
50
56
  category2: {
@@ -53,7 +59,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
53
59
  serialized_name: 'Category2',
54
60
  type: {
55
61
  name: 'Composite',
56
- class_name: 'Score'
62
+ class_name: 'ClassificationCategory2'
57
63
  }
58
64
  },
59
65
  category3: {
@@ -62,7 +68,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
62
68
  serialized_name: 'Category3',
63
69
  type: {
64
70
  name: 'Composite',
65
- class_name: 'Score'
71
+ class_name: 'ClassificationCategory3'
66
72
  }
67
73
  },
68
74
  review_recommended: {
@@ -6,30 +6,30 @@
6
6
  module Azure::CognitiveServices::ContentModerator::V1_0
7
7
  module Models
8
8
  #
9
- # The classification score details of the text. <a
9
+ # The category1 score details of the text. <a
10
10
  # href="https://aka.ms/textClassifyCategories">Click here</a> for more
11
11
  # details on category classification.
12
12
  #
13
- class Score
13
+ class ClassificationCategory1
14
14
 
15
15
  include MsRestAzure
16
16
 
17
- # @return [Float] The category score.
17
+ # @return [Float] The category1 score.
18
18
  attr_accessor :score
19
19
 
20
20
 
21
21
  #
22
- # Mapper for Score class as Ruby Hash.
22
+ # Mapper for ClassificationCategory1 class as Ruby Hash.
23
23
  # This will be used for serialization/deserialization.
24
24
  #
25
25
  def self.mapper()
26
26
  {
27
27
  client_side_validation: true,
28
28
  required: false,
29
- serialized_name: 'Score',
29
+ serialized_name: 'Classification_Category1',
30
30
  type: {
31
31
  name: 'Composite',
32
- class_name: 'Score',
32
+ class_name: 'ClassificationCategory1',
33
33
  model_properties: {
34
34
  score: {
35
35
  client_side_validation: true,
@@ -0,0 +1,48 @@
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 category2 score details of the text. <a
10
+ # href="https://aka.ms/textClassifyCategories">Click here</a> for more
11
+ # details on category classification.
12
+ #
13
+ class ClassificationCategory2
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [Float] The category2 score.
18
+ attr_accessor :score
19
+
20
+
21
+ #
22
+ # Mapper for ClassificationCategory2 class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'Classification_Category2',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'ClassificationCategory2',
33
+ model_properties: {
34
+ score: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'Score',
38
+ type: {
39
+ name: 'Double'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,48 @@
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 category3 score details of the text. <a
10
+ # href="https://aka.ms/textClassifyCategories">Click here</a> for more
11
+ # details on category classification.
12
+ #
13
+ class ClassificationCategory3
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [Float] The category3 score.
18
+ attr_accessor :score
19
+
20
+
21
+ #
22
+ # Mapper for ClassificationCategory3 class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'Classification_Category3',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'ClassificationCategory3',
33
+ model_properties: {
34
+ score: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'Score',
38
+ type: {
39
+ name: 'Double'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -15,6 +15,9 @@ module Azure::CognitiveServices::ContentModerator::V1_0
15
15
  # @return [Array<Email>]
16
16
  attr_accessor :email
17
17
 
18
+ # @return [Array<SSN>]
19
+ attr_accessor :ssn
20
+
18
21
  # @return [Array<IPA>]
19
22
  attr_accessor :ipa
20
23
 
@@ -55,6 +58,23 @@ module Azure::CognitiveServices::ContentModerator::V1_0
55
58
  }
56
59
  }
57
60
  },
61
+ ssn: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'SSN',
65
+ type: {
66
+ name: 'Sequence',
67
+ element: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'SSNElementType',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'SSN'
74
+ }
75
+ }
76
+ }
77
+ },
58
78
  ipa: {
59
79
  client_side_validation: true,
60
80
  required: false,
@@ -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
+ # Detected SSN details.
10
+ #
11
+ class SSN
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Detected SSN in the input text content.
16
+ attr_accessor :text
17
+
18
+ # @return [Integer] Index(Location) of the SSN in the input text content.
19
+ attr_accessor :index
20
+
21
+
22
+ #
23
+ # Mapper for SSN 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: 'SSN',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'SSN',
34
+ model_properties: {
35
+ text: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'Text',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ index: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'Index',
47
+ type: {
48
+ name: 'Number'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -45,10 +45,10 @@ module Azure::CognitiveServices::ContentModerator::V1_0
45
45
  # Detects profanity in more than 100 languages and match against custom and
46
46
  # shared blacklists.
47
47
  #
48
- # @param language [String] Language of the terms.
49
48
  # @param text_content_type [Enum] The content type. Possible values include:
50
49
  # 'text/plain', 'text/html', 'text/xml', 'text/markdown'
51
- # @param text_content [String] Content to screen.
50
+ # @param text_content Content to screen.
51
+ # @param language [String] Language of the text.
52
52
  # @param autocorrect [Boolean] Autocorrect text.
53
53
  # @param pii [Boolean] Detect personal identifiable information.
54
54
  # @param list_id [String] The list Id.
@@ -58,8 +58,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
58
58
  #
59
59
  # @return [Screen] operation results.
60
60
  #
61
- def screen_text(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
62
- response = screen_text_async(language, text_content_type, text_content, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value!
61
+ def screen_text(text_content_type, text_content, language:nil, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
62
+ response = screen_text_async(text_content_type, text_content, language:language, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value!
63
63
  response.body unless response.nil?
64
64
  end
65
65
 
@@ -69,10 +69,10 @@ module Azure::CognitiveServices::ContentModerator::V1_0
69
69
  # Detects profanity in more than 100 languages and match against custom and
70
70
  # shared blacklists.
71
71
  #
72
- # @param language [String] Language of the terms.
73
72
  # @param text_content_type [Enum] The content type. Possible values include:
74
73
  # 'text/plain', 'text/html', 'text/xml', 'text/markdown'
75
- # @param text_content [String] Content to screen.
74
+ # @param text_content Content to screen.
75
+ # @param language [String] Language of the text.
76
76
  # @param autocorrect [Boolean] Autocorrect text.
77
77
  # @param pii [Boolean] Detect personal identifiable information.
78
78
  # @param list_id [String] The list Id.
@@ -82,8 +82,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
82
82
  #
83
83
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
84
84
  #
85
- def screen_text_with_http_info(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
86
- screen_text_async(language, text_content_type, text_content, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value!
85
+ def screen_text_with_http_info(text_content_type, text_content, language:nil, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
86
+ screen_text_async(text_content_type, text_content, language:language, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value!
87
87
  end
88
88
 
89
89
  #
@@ -92,10 +92,10 @@ module Azure::CognitiveServices::ContentModerator::V1_0
92
92
  # Detects profanity in more than 100 languages and match against custom and
93
93
  # shared blacklists.
94
94
  #
95
- # @param language [String] Language of the terms.
96
95
  # @param text_content_type [Enum] The content type. Possible values include:
97
96
  # 'text/plain', 'text/html', 'text/xml', 'text/markdown'
98
- # @param text_content [String] Content to screen.
97
+ # @param text_content Content to screen.
98
+ # @param language [String] Language of the text.
99
99
  # @param autocorrect [Boolean] Autocorrect text.
100
100
  # @param pii [Boolean] Detect personal identifiable information.
101
101
  # @param list_id [String] The list Id.
@@ -105,9 +105,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
105
105
  #
106
106
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
107
107
  #
108
- def screen_text_async(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
108
+ def screen_text_async(text_content_type, text_content, language:nil, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
109
109
  fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
110
- fail ArgumentError, 'language is nil' if language.nil?
111
110
  fail ArgumentError, 'text_content_type is nil' if text_content_type.nil?
112
111
  fail ArgumentError, 'text_content is nil' if text_content.nil?
113
112
 
@@ -126,11 +125,10 @@ module Azure::CognitiveServices::ContentModerator::V1_0
126
125
  required: true,
127
126
  serialized_name: 'Text Content',
128
127
  type: {
129
- name: 'String'
128
+ name: 'Stream'
130
129
  }
131
130
  }
132
131
  request_content = @client.serialize(request_mapper, text_content)
133
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
134
132
 
135
133
  path_template = 'contentmoderator/moderate/v1.0/ProcessText/Screen/'
136
134
 
@@ -181,7 +179,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
181
179
  #
182
180
  # @param text_content_type [Enum] The content type. Possible values include:
183
181
  # 'text/plain', 'text/html', 'text/xml', 'text/markdown'
184
- # @param text_content [String] Content to screen.
182
+ # @param text_content Content to screen.
185
183
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
186
184
  # will be added to the HTTP request.
187
185
  #
@@ -200,7 +198,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
200
198
  #
201
199
  # @param text_content_type [Enum] The content type. Possible values include:
202
200
  # 'text/plain', 'text/html', 'text/xml', 'text/markdown'
203
- # @param text_content [String] Content to screen.
201
+ # @param text_content Content to screen.
204
202
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
205
203
  # will be added to the HTTP request.
206
204
  #
@@ -218,7 +216,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
218
216
  #
219
217
  # @param text_content_type [Enum] The content type. Possible values include:
220
218
  # 'text/plain', 'text/html', 'text/xml', 'text/markdown'
221
- # @param text_content [String] Content to screen.
219
+ # @param text_content Content to screen.
222
220
  # @param [Hash{String => String}] A hash of custom headers that will be added
223
221
  # to the HTTP request.
224
222
  #
@@ -244,11 +242,10 @@ module Azure::CognitiveServices::ContentModerator::V1_0
244
242
  required: true,
245
243
  serialized_name: 'Text Content',
246
244
  type: {
247
- name: 'String'
245
+ name: 'Stream'
248
246
  }
249
247
  }
250
248
  request_content = @client.serialize(request_mapper, text_content)
251
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
252
249
 
253
250
  path_template = 'contentmoderator/moderate/v1.0/ProcessText/DetectLanguage'
254
251
 
@@ -14,14 +14,17 @@ module Azure::ContentModerator::Profiles::Latest
14
14
  Reviews = Azure::CognitiveServices::ContentModerator::V1_0::Reviews
15
15
 
16
16
  module Models
17
+ RefreshIndex = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex
18
+ ImageAdditionalInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem
19
+ Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag
17
20
  Image = Azure::CognitiveServices::ContentModerator::V1_0::Models::Image
18
- KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair
21
+ Frames = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames
19
22
  ImageIds = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds
20
- Frame = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame
23
+ ClassificationCategory2 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory2
21
24
  TermsInList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList
22
- Score = Azure::CognitiveServices::ContentModerator::V1_0::Models::Score
25
+ Classification = Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
23
26
  TermsData = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsData
24
- Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status
27
+ Email = Azure::CognitiveServices::ContentModerator::V1_0::Models::Email
25
28
  TermsPaging = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging
26
29
  IPA = Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA
27
30
  Terms = Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms
@@ -43,11 +46,11 @@ module Azure::ContentModerator::Profiles::Latest
43
46
  TranscriptModerationBodyItemTermsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItemTermsItem
44
47
  RefreshIndexAdvancedInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndexAdvancedInfoItem
45
48
  TranscriptModerationBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItem
46
- ImageAdditionalInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem
49
+ Frame = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame
47
50
  CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
48
- Frames = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames
51
+ ClassificationCategory3 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3
49
52
  CreateVideoReviewsBodyItemVideoFramesItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem
50
- Email = Azure::CognitiveServices::ContentModerator::V1_0::Models::Email
53
+ SSN = Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN
51
54
  CreateVideoReviewsBodyItemVideoFramesItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem
52
55
  PII = Azure::CognitiveServices::ContentModerator::V1_0::Models::PII
53
56
  CreateVideoReviewsBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem
@@ -57,15 +60,15 @@ module Azure::ContentModerator::Profiles::Latest
57
60
  BodyMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata
58
61
  ImageList = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList
59
62
  Body = Azure::CognitiveServices::ContentModerator::V1_0::Models::Body
60
- RefreshIndex = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex
63
+ KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair
61
64
  ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl
62
- Classification = Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
65
+ Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status
63
66
  VideoFrameBodyItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem
64
67
  Screen = Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen
65
68
  VideoFrameBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem
66
69
  DetectedLanguage = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage
67
70
  VideoFrameBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem
68
- Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag
71
+ ClassificationCategory1 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1
69
72
  CreateReviewBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem
70
73
  OCR = Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR
71
74
  CreateReviewBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem
@@ -126,29 +129,38 @@ module Azure::ContentModerator::Profiles::Latest
126
129
  end
127
130
 
128
131
  class ModelClasses
132
+ def refresh_index
133
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex
134
+ end
135
+ def image_additional_info_item
136
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem
137
+ end
138
+ def tag
139
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag
140
+ end
129
141
  def image
130
142
  Azure::CognitiveServices::ContentModerator::V1_0::Models::Image
131
143
  end
132
- def key_value_pair
133
- Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair
144
+ def frames
145
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames
134
146
  end
135
147
  def image_ids
136
148
  Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds
137
149
  end
138
- def frame
139
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame
150
+ def classification_category2
151
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory2
140
152
  end
141
153
  def terms_in_list
142
154
  Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList
143
155
  end
144
- def score
145
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Score
156
+ def classification
157
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
146
158
  end
147
159
  def terms_data
148
160
  Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsData
149
161
  end
150
- def status
151
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Status
162
+ def email
163
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::Email
152
164
  end
153
165
  def terms_paging
154
166
  Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging
@@ -213,20 +225,20 @@ module Azure::ContentModerator::Profiles::Latest
213
225
  def transcript_moderation_body_item
214
226
  Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItem
215
227
  end
216
- def image_additional_info_item
217
- Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem
228
+ def frame
229
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame
218
230
  end
219
231
  def create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item
220
232
  Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem
221
233
  end
222
- def frames
223
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames
234
+ def classification_category3
235
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3
224
236
  end
225
237
  def create_video_reviews_body_item_video_frames_item_metadata_item
226
238
  Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem
227
239
  end
228
- def email
229
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Email
240
+ def ssn
241
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN
230
242
  end
231
243
  def create_video_reviews_body_item_video_frames_item
232
244
  Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem
@@ -255,14 +267,14 @@ module Azure::ContentModerator::Profiles::Latest
255
267
  def body
256
268
  Azure::CognitiveServices::ContentModerator::V1_0::Models::Body
257
269
  end
258
- def refresh_index
259
- Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex
270
+ def key_value_pair
271
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair
260
272
  end
261
273
  def image_url
262
274
  Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl
263
275
  end
264
- def classification
265
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
276
+ def status
277
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::Status
266
278
  end
267
279
  def video_frame_body_item_reviewer_result_tags_item
268
280
  Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem
@@ -279,8 +291,8 @@ module Azure::ContentModerator::Profiles::Latest
279
291
  def video_frame_body_item
280
292
  Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem
281
293
  end
282
- def tag
283
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag
294
+ def classification_category1
295
+ Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1
284
296
  end
285
297
  def create_review_body_item_metadata_item
286
298
  Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::CognitiveServices::ContentModerator
6
- VERSION = '0.16.0'
6
+ VERSION = '0.17.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_cognitiveservices_contentmoderator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-12 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.10.0
75
+ version: 0.11.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.10.0
82
+ version: 0.11.0
83
83
  description: Microsoft Azure Cognitive Services Content Moderator Client Library for
84
84
  Ruby
85
85
  email: azrubyteam@microsoft.com
@@ -102,6 +102,9 @@ files:
102
102
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/body_metadata.rb
103
103
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/candidate.rb
104
104
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb
105
+ - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification_category1.rb
106
+ - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification_category2.rb
107
+ - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification_category3.rb
105
108
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/content.rb
106
109
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item.rb
107
110
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_review_body_item_metadata_item.rb
@@ -139,8 +142,8 @@ files:
139
142
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index.rb
140
143
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/refresh_index_advanced_info_item.rb
141
144
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/review.rb
142
- - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/score.rb
143
145
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb
146
+ - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ssn.rb
144
147
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/status.rb
145
148
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/tag.rb
146
149
  - lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/term_list.rb