azure_cognitiveservices_textanalytics 0.17.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/azure_cognitiveservices_textanalytics.rb +1 -0
  3. data/lib/profiles/latest/modules/textanalytics_profile_module.rb +60 -52
  4. data/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +1 -1
  5. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +1 -1
  6. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics.rb +47 -0
  7. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb +72 -0
  8. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb +58 -0
  9. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result.rb +93 -0
  10. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item.rb +82 -0
  11. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entity_record.rb +138 -0
  12. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/error_record.rb +58 -0
  13. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/error_response.rb +81 -0
  14. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb +70 -0
  15. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb +93 -0
  16. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb +83 -0
  17. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_input.rb +56 -0
  18. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb +93 -0
  19. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb +81 -0
  20. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb +69 -0
  21. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/match_record.rb +97 -0
  22. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb +56 -0
  23. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb +70 -0
  24. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/request_statistics.rb +82 -0
  25. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb +93 -0
  26. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb +75 -0
  27. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/module_definition.rb +9 -0
  28. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +614 -0
  29. data/lib/version.rb +1 -1
  30. metadata +24 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1a50f281b5bc06e9d2b7b56777d4b21a2cfe9f84890715ff8113bc716f756fd
4
- data.tar.gz: c63880f2624f2f2931578256f747017f726eb4917a9b63203685c9e8e00f7263
3
+ metadata.gz: 19277206b604b1483743e4536ead2109c59017ad5c3541ecbdfd73724a2a8636
4
+ data.tar.gz: eedd859c40d97976294ada792e63c98c7c6eaa1201a2c564522cb351818d9604
5
5
  SHA512:
6
- metadata.gz: 1beaae291309d68ab389b0c81c19836724e1139e3274a3ff2f0f2fa8504496e73a1bf634a45e3add10bf37c10b45ede9367c9ced8aa7183bbca00941a3defe52
7
- data.tar.gz: 1c68896649670f84c5f42836c52feaa4450748d35bfd66e1826fc41ce768ebe291068a98e970058d1b9d39ff0a3f499df4f302c8d6089910fe02c4aadefba8f1
6
+ metadata.gz: 591525645b94f80453ff7513f13fcaf687b0a0ec9cce042db4d71ea2db9ea9e3fe603c6d7c231781be34bad27082ed4755564620a4f7670baaf7ccab9a89566e
7
+ data.tar.gz: 9bd5b952b33c728c07f40ced0e7c705bdf8232602ebf90034ecc557036bcadcc6b80b0ed4ffa7894bbc1766960522a8663c3f293fe9958f4615f87adecdd0f3f
@@ -3,5 +3,6 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  require 'v2.0/generated/azure_cognitiveservices_textanalytics'
6
+ require 'v2.1/generated/azure_cognitiveservices_textanalytics'
6
7
  require 'v2.1-preview/generated/azure_cognitiveservices_textanalytics'
7
8
  require 'profiles/latest/textanalytics_latest_profile_client'
@@ -7,24 +7,26 @@ require 'azure_cognitiveservices_textanalytics'
7
7
  module Azure::TextAnalytics::Profiles::Latest
8
8
 
9
9
  module Models
10
- DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::DetectedLanguage
11
- MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageInput
12
- LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResultItem
13
- KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResultItem
14
- LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResult
15
- KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResult
16
- SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResultItem
17
- ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorResponse
18
- SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResult
19
- BatchInput = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::BatchInput
20
- MatchRecordV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MatchRecordV2dot1
21
- ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorRecord
22
- EntityRecordV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntityRecordV2dot1
23
- Input = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input
24
- EntitiesBatchResultItemV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultItemV2dot1
25
- InternalError = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::InternalError
26
- EntitiesBatchResultV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultV2dot1
27
- MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageBatchInput
10
+ ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorResponse
11
+ MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageInput
12
+ KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
13
+ MatchRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord
14
+ KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResult
15
+ DocumentStatistics = Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
16
+ LanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
17
+ ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorRecord
18
+ LanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchInput
19
+ EntitiesBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResult
20
+ DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_1::Models::DetectedLanguage
21
+ MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageBatchInput
22
+ LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResultItem
23
+ EntitiesBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResultItem
24
+ LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResult
25
+ InternalError = Azure::CognitiveServices::TextAnalytics::V2_1::Models::InternalError
26
+ SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
27
+ RequestStatistics = Azure::CognitiveServices::TextAnalytics::V2_1::Models::RequestStatistics
28
+ SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResult
29
+ EntityRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntityRecord
28
30
  end
29
31
 
30
32
  #
@@ -46,7 +48,7 @@ module Azure::TextAnalytics::Profiles::Latest
46
48
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
47
49
  @options = options[:options].nil? ? nil:options[:options]
48
50
 
49
- @client_0 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::TextAnalyticsClient.new(configurable.credentials, options)
51
+ @client_0 = Azure::CognitiveServices::TextAnalytics::V2_1::TextAnalyticsClient.new(configurable.credentials, options)
50
52
  if(@client_0.respond_to?(:subscription_id))
51
53
  @client_0.subscription_id = configurable.subscription_id
52
54
  end
@@ -71,59 +73,65 @@ module Azure::TextAnalytics::Profiles::Latest
71
73
  end
72
74
 
73
75
  class ModelClasses
74
- def detected_language
75
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::DetectedLanguage
76
+ def error_response
77
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorResponse
76
78
  end
77
79
  def multi_language_input
78
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageInput
79
- end
80
- def language_batch_result_item
81
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResultItem
80
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageInput
82
81
  end
83
82
  def key_phrase_batch_result_item
84
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResultItem
83
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
85
84
  end
86
- def language_batch_result
87
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResult
85
+ def match_record
86
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord
88
87
  end
89
88
  def key_phrase_batch_result
90
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResult
89
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResult
91
90
  end
92
- def sentiment_batch_result_item
93
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResultItem
91
+ def document_statistics
92
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
94
93
  end
95
- def error_response
96
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorResponse
94
+ def language_input
95
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
97
96
  end
98
- def sentiment_batch_result
99
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResult
97
+ def error_record
98
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorRecord
100
99
  end
101
- def batch_input
102
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::BatchInput
100
+ def language_batch_input
101
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchInput
103
102
  end
104
- def match_record_v2dot1
105
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MatchRecordV2dot1
103
+ def entities_batch_result
104
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResult
106
105
  end
107
- def error_record
108
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorRecord
106
+ def detected_language
107
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::DetectedLanguage
109
108
  end
110
- def entity_record_v2dot1
111
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntityRecordV2dot1
109
+ def multi_language_batch_input
110
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageBatchInput
112
111
  end
113
- def input
114
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input
112
+ def language_batch_result_item
113
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResultItem
115
114
  end
116
- def entities_batch_result_item_v2dot1
117
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultItemV2dot1
115
+ def entities_batch_result_item
116
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResultItem
117
+ end
118
+ def language_batch_result
119
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResult
118
120
  end
119
121
  def internal_error
120
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::InternalError
122
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::InternalError
121
123
  end
122
- def entities_batch_result_v2dot1
123
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultV2dot1
124
+ def sentiment_batch_result_item
125
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
124
126
  end
125
- def multi_language_batch_input
126
- Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageBatchInput
127
+ def request_statistics
128
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::RequestStatistics
129
+ end
130
+ def sentiment_batch_result
131
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResult
132
+ end
133
+ def entity_record
134
+ Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntityRecord
127
135
  end
128
136
  end
129
137
  end
@@ -561,7 +561,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
561
561
  #
562
562
  def add_telemetry
563
563
  sdk_information = 'azure_cognitiveservices_textanalytics'
564
- sdk_information = "#{sdk_information}/0.17.2"
564
+ sdk_information = "#{sdk_information}/0.17.3"
565
565
  add_user_agent_information(sdk_information)
566
566
  end
567
567
  end
@@ -597,7 +597,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_1_preview
597
597
  #
598
598
  def add_telemetry
599
599
  sdk_information = 'azure_cognitiveservices_textanalytics'
600
- sdk_information = "#{sdk_information}/0.17.2"
600
+ sdk_information = "#{sdk_information}/0.17.3"
601
601
  add_user_agent_information(sdk_information)
602
602
  end
603
603
  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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require 'v2.1/generated/azure_cognitiveservices_textanalytics/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CognitiveServices::TextAnalytics::V2_1
23
+ autoload :TextAnalyticsClient, 'v2.1/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb'
24
+
25
+ module Models
26
+ autoload :ErrorResponse, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/error_response.rb'
27
+ autoload :MultiLanguageInput, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb'
28
+ autoload :KeyPhraseBatchResultItem, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb'
29
+ autoload :MatchRecord, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/match_record.rb'
30
+ autoload :KeyPhraseBatchResult, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb'
31
+ autoload :DocumentStatistics, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb'
32
+ autoload :LanguageInput, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb'
33
+ autoload :ErrorRecord, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/error_record.rb'
34
+ autoload :LanguageBatchInput, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_input.rb'
35
+ autoload :EntitiesBatchResult, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result.rb'
36
+ autoload :DetectedLanguage, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb'
37
+ autoload :MultiLanguageBatchInput, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb'
38
+ autoload :LanguageBatchResultItem, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb'
39
+ autoload :EntitiesBatchResultItem, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item.rb'
40
+ autoload :LanguageBatchResult, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb'
41
+ autoload :InternalError, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb'
42
+ autoload :SentimentBatchResultItem, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb'
43
+ autoload :RequestStatistics, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/request_statistics.rb'
44
+ autoload :SentimentBatchResult, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb'
45
+ autoload :EntityRecord, 'v2.1/generated/azure_cognitiveservices_textanalytics/models/entity_record.rb'
46
+ end
47
+ end
@@ -0,0 +1,72 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class DetectedLanguage
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Long name of a detected language (e.g. English,
17
+ # French).
18
+ attr_accessor :name
19
+
20
+ # @return [String] A two letter representation of the detected language
21
+ # according to the ISO 639-1 standard (e.g. en, fr).
22
+ attr_accessor :iso6391name
23
+
24
+ # @return [Float] A confidence score between 0 and 1. Scores close to 1
25
+ # indicate 100% certainty that the identified language is true.
26
+ attr_accessor :score
27
+
28
+
29
+ #
30
+ # Mapper for DetectedLanguage class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'DetectedLanguage',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'DetectedLanguage',
41
+ model_properties: {
42
+ name: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ iso6391name: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'iso6391Name',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ score: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'score',
62
+ type: {
63
+ name: 'Double'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ 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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class DocumentStatistics
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] Number of text elements recognized in the document.
17
+ attr_accessor :characters_count
18
+
19
+ # @return [Integer] Number of transactions for the document.
20
+ attr_accessor :transactions_count
21
+
22
+
23
+ #
24
+ # Mapper for DocumentStatistics 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: 'DocumentStatistics',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'DocumentStatistics',
35
+ model_properties: {
36
+ characters_count: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'charactersCount',
40
+ type: {
41
+ name: 'Number'
42
+ }
43
+ },
44
+ transactions_count: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'transactionsCount',
48
+ type: {
49
+ name: 'Number'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,93 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class EntitiesBatchResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<EntitiesBatchResultItem>] Response by document
17
+ attr_accessor :documents
18
+
19
+ # @return [Array<ErrorRecord>] Errors and Warnings by document
20
+ attr_accessor :errors
21
+
22
+ # @return [RequestStatistics] (Optional) if showStats=true was specified
23
+ # in the request this field will contain information about the request
24
+ # payload.
25
+ attr_accessor :statistics
26
+
27
+
28
+ #
29
+ # Mapper for EntitiesBatchResult 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: 'EntitiesBatchResult',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'EntitiesBatchResult',
40
+ model_properties: {
41
+ documents: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'documents',
46
+ type: {
47
+ name: 'Sequence',
48
+ element: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'EntitiesBatchResultItemElementType',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'EntitiesBatchResultItem'
55
+ }
56
+ }
57
+ }
58
+ },
59
+ errors: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'errors',
64
+ type: {
65
+ name: 'Sequence',
66
+ element: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'ErrorRecordElementType',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'ErrorRecord'
73
+ }
74
+ }
75
+ }
76
+ },
77
+ statistics: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'statistics',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'RequestStatistics'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end