azure_cognitiveservices_textanalytics 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) 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 +41 -41
  4. data/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +16 -5
  5. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics.rb +45 -0
  6. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/batch_input.rb +56 -0
  7. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb +72 -0
  8. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item_v2dot1.rb +70 -0
  9. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_v2dot1.rb +78 -0
  10. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entity_record_v2dot1.rb +138 -0
  11. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/error_record.rb +58 -0
  12. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/error_response.rb +81 -0
  13. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/input.rb +58 -0
  14. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb +70 -0
  15. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb +78 -0
  16. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb +70 -0
  17. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb +78 -0
  18. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb +69 -0
  19. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/match_record_v2dot1.rb +71 -0
  20. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb +56 -0
  21. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb +70 -0
  22. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb +78 -0
  23. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb +63 -0
  24. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/module_definition.rb +9 -0
  25. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +604 -0
  26. data/lib/version.rb +1 -1
  27. metadata +23 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fb44cd82e6723dfd0a8ce5fd2339688accda3e2
4
- data.tar.gz: f63f79be920d9b1baa2166f577e6bf4c5f237bc1
3
+ metadata.gz: d91a86d2a24e1614c1857b036c2311cb04a48f45
4
+ data.tar.gz: 79dbafba31bcff5de6e98cedab284f16f0747b05
5
5
  SHA512:
6
- metadata.gz: 32173b1a53265a118dba5980633cb89796f88eeb1ea17f3fffad9632b5ca04106966f93ec354dc77f553bd45659799618b5d480b7d7eaf462f41d25d611e4ef3
7
- data.tar.gz: 55c663a15b8150203acbaf7a479677389f348b5aaaad48e725faf5df0fe947d435eb5482c7508375db8900830d33c33e8982a5d34b1879712328955d864c69ea
6
+ metadata.gz: d57896fc8305a55c287fbd3e93de7a333f88a23ef701fd3b5a09ea53cb92ab2e648583733197a8b2bc11784465ebc277495ba06cbe73b1d2a9eeaac1af38d58c
7
+ data.tar.gz: b5207b4a39f054d20c76cf1c63b7ca0268f7f2d1cdd4ba282f629a87fec964afecfebb3c533fd3fa779b96e4e439b4c9137076f1b8b834d971cfecbde0f8b397
@@ -3,4 +3,5 @@
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-preview/generated/azure_cognitiveservices_textanalytics'
6
7
  require 'profiles/latest/textanalytics_latest_profile_client'
@@ -7,24 +7,24 @@ require 'azure_cognitiveservices_textanalytics'
7
7
  module Azure::TextAnalytics::Profiles::Latest
8
8
 
9
9
  module Models
10
- DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage
11
- MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput
12
- LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem
13
- KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResultItem
14
- LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResult
15
- KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResult
16
- SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem
17
- ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse
18
- SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResult
19
- BatchInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::BatchInput
20
- MatchRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MatchRecord
21
- ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorRecord
22
- EntityRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntityRecord
23
- Input = Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input
24
- EntitiesBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResultItem
25
- InternalError = Azure::CognitiveServices::TextAnalytics::V2_0::Models::InternalError
26
- EntitiesBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResult
27
- MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageBatchInput
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
28
28
  end
29
29
 
30
30
  #
@@ -46,7 +46,7 @@ module Azure::TextAnalytics::Profiles::Latest
46
46
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
47
47
  @options = options[:options].nil? ? nil:options[:options]
48
48
 
49
- @client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options)
49
+ @client_0 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::TextAnalyticsClient.new(configurable.credentials, options)
50
50
  if(@client_0.respond_to?(:subscription_id))
51
51
  @client_0.subscription_id = configurable.subscription_id
52
52
  end
@@ -72,58 +72,58 @@ module Azure::TextAnalytics::Profiles::Latest
72
72
 
73
73
  class ModelClasses
74
74
  def detected_language
75
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage
75
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::DetectedLanguage
76
76
  end
77
77
  def multi_language_input
78
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput
78
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageInput
79
79
  end
80
80
  def language_batch_result_item
81
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem
81
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResultItem
82
82
  end
83
83
  def key_phrase_batch_result_item
84
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResultItem
84
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResultItem
85
85
  end
86
86
  def language_batch_result
87
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResult
87
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResult
88
88
  end
89
89
  def key_phrase_batch_result
90
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResult
90
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResult
91
91
  end
92
92
  def sentiment_batch_result_item
93
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem
93
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResultItem
94
94
  end
95
95
  def error_response
96
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse
96
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorResponse
97
97
  end
98
98
  def sentiment_batch_result
99
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResult
99
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResult
100
100
  end
101
101
  def batch_input
102
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::BatchInput
102
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::BatchInput
103
103
  end
104
- def match_record
105
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::MatchRecord
104
+ def match_record_v2dot1
105
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MatchRecordV2dot1
106
106
  end
107
107
  def error_record
108
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorRecord
108
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorRecord
109
109
  end
110
- def entity_record
111
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntityRecord
110
+ def entity_record_v2dot1
111
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntityRecordV2dot1
112
112
  end
113
113
  def input
114
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input
114
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input
115
115
  end
116
- def entities_batch_result_item
117
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResultItem
116
+ def entities_batch_result_item_v2dot1
117
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultItemV2dot1
118
118
  end
119
119
  def internal_error
120
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::InternalError
120
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::InternalError
121
121
  end
122
- def entities_batch_result
123
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResult
122
+ def entities_batch_result_v2dot1
123
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultV2dot1
124
124
  end
125
125
  def multi_language_batch_input
126
- Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageBatchInput
126
+ Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageBatchInput
127
127
  end
128
128
  end
129
129
  end
@@ -12,11 +12,15 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
12
12
  include MsRestAzure::Serialization
13
13
 
14
14
  # @return [String] the base URI of the service.
15
- attr_accessor :base_url
15
+ attr_reader :base_url
16
16
 
17
17
  # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials1
19
19
 
20
+ # @return [String] Supported Cognitive Services endpoints (protocol and
21
+ # hostname, for example: https://westus.api.cognitive.microsoft.com).
22
+ attr_accessor :endpoint
23
+
20
24
  # @return Subscription credentials which uniquely identify client
21
25
  # subscription.
22
26
  attr_accessor :credentials
@@ -36,12 +40,11 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
36
40
  #
37
41
  # Creates initializes a new instance of the TextAnalyticsClient class.
38
42
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
39
- # @param base_url [String] the base URI of the service.
40
43
  # @param options [Array] filters to be applied to the HTTP requests.
41
44
  #
42
- def initialize(credentials = nil, base_url = nil, options = nil)
45
+ def initialize(credentials = nil, options = nil)
43
46
  super(credentials, options)
44
- @base_url = base_url || 'https://api.cognitive.microsoft.com/text/analytics/v2.0'
47
+ @base_url = '{Endpoint}/text/analytics/v2.0'
45
48
 
46
49
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
47
50
  @credentials = credentials
@@ -168,6 +171,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
168
171
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
169
172
  #
170
173
  def key_phrases_async(input, custom_headers:nil)
174
+ fail ArgumentError, 'endpoint is nil' if endpoint.nil?
171
175
  fail ArgumentError, 'input is nil' if input.nil?
172
176
 
173
177
 
@@ -186,6 +190,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
186
190
  path_template = 'keyPhrases'
187
191
 
188
192
  request_url = @base_url || self.base_url
193
+ request_url = request_url.gsub('{Endpoint}', endpoint)
189
194
 
190
195
  options = {
191
196
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -268,6 +273,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
268
273
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
269
274
  #
270
275
  def detect_language_async(input, custom_headers:nil)
276
+ fail ArgumentError, 'endpoint is nil' if endpoint.nil?
271
277
  fail ArgumentError, 'input is nil' if input.nil?
272
278
 
273
279
 
@@ -286,6 +292,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
286
292
  path_template = 'languages'
287
293
 
288
294
  request_url = @base_url || self.base_url
295
+ request_url = request_url.gsub('{Endpoint}', endpoint)
289
296
 
290
297
  options = {
291
298
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -380,6 +387,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
380
387
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
381
388
  #
382
389
  def sentiment_async(input, custom_headers:nil)
390
+ fail ArgumentError, 'endpoint is nil' if endpoint.nil?
383
391
  fail ArgumentError, 'input is nil' if input.nil?
384
392
 
385
393
 
@@ -398,6 +406,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
398
406
  path_template = 'sentiment'
399
407
 
400
408
  request_url = @base_url || self.base_url
409
+ request_url = request_url.gsub('{Endpoint}', endpoint)
401
410
 
402
411
  options = {
403
412
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -489,6 +498,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
489
498
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
490
499
  #
491
500
  def entities_async(input, custom_headers:nil)
501
+ fail ArgumentError, 'endpoint is nil' if endpoint.nil?
492
502
  fail ArgumentError, 'input is nil' if input.nil?
493
503
 
494
504
 
@@ -507,6 +517,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
507
517
  path_template = 'entities'
508
518
 
509
519
  request_url = @base_url || self.base_url
520
+ request_url = request_url.gsub('{Endpoint}', endpoint)
510
521
 
511
522
  options = {
512
523
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -550,7 +561,7 @@ module Azure::CognitiveServices::TextAnalytics::V2_0
550
561
  #
551
562
  def add_telemetry
552
563
  sdk_information = 'azure_cognitiveservices_textanalytics'
553
- sdk_information = "#{sdk_information}/0.17.0"
564
+ sdk_information = "#{sdk_information}/0.17.1"
554
565
  add_user_agent_information(sdk_information)
555
566
  end
556
567
  end
@@ -0,0 +1,45 @@
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-preview/generated/azure_cognitiveservices_textanalytics/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CognitiveServices::TextAnalytics::V2_1_preview
23
+ autoload :TextAnalyticsClient, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb'
24
+
25
+ module Models
26
+ autoload :DetectedLanguage, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb'
27
+ autoload :MultiLanguageInput, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb'
28
+ autoload :LanguageBatchResultItem, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb'
29
+ autoload :KeyPhraseBatchResultItem, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb'
30
+ autoload :LanguageBatchResult, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb'
31
+ autoload :KeyPhraseBatchResult, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb'
32
+ autoload :SentimentBatchResultItem, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb'
33
+ autoload :ErrorResponse, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/error_response.rb'
34
+ autoload :SentimentBatchResult, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb'
35
+ autoload :BatchInput, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/batch_input.rb'
36
+ autoload :MatchRecordV2dot1, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/match_record_v2dot1.rb'
37
+ autoload :ErrorRecord, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/error_record.rb'
38
+ autoload :EntityRecordV2dot1, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entity_record_v2dot1.rb'
39
+ autoload :Input, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/input.rb'
40
+ autoload :EntitiesBatchResultItemV2dot1, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item_v2dot1.rb'
41
+ autoload :InternalError, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb'
42
+ autoload :EntitiesBatchResultV2dot1, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_v2dot1.rb'
43
+ autoload :MultiLanguageBatchInput, 'v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb'
44
+ end
45
+ end
@@ -0,0 +1,56 @@
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_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class BatchInput
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<Input>]
17
+ attr_accessor :documents
18
+
19
+
20
+ #
21
+ # Mapper for BatchInput class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'BatchInput',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'BatchInput',
32
+ model_properties: {
33
+ documents: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'documents',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'InputElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Input'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ 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_preview
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,70 @@
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_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class EntitiesBatchResultItemV2dot1
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Unique document identifier.
17
+ attr_accessor :id
18
+
19
+ # @return [Array<EntityRecordV2dot1>] Recognized entities in the
20
+ # document.
21
+ attr_accessor :entities
22
+
23
+
24
+ #
25
+ # Mapper for EntitiesBatchResultItemV2dot1 class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'EntitiesBatchResultItemV2dot1',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'EntitiesBatchResultItemV2dot1',
36
+ model_properties: {
37
+ id: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ read_only: true,
41
+ serialized_name: 'id',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ entities: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'entities',
51
+ type: {
52
+ name: 'Sequence',
53
+ element: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'EntityRecordV2dot1ElementType',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'EntityRecordV2dot1'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end