Class: Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
- Includes:
- MsRestAzure
- Defined in:
- lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb
Overview
Model object.
Instance Attribute Summary collapse
- #country_hint ⇒ String
-
#id ⇒ String
Unique, non-empty document identifier.
- #text ⇒ String
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LanguageInput class as Ruby Hash.
Instance Attribute Details
#country_hint ⇒ String
17 18 19 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb', line 17 def country_hint @country_hint end |
#id ⇒ String
Returns Unique, non-empty document identifier.
20 21 22 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb', line 20 def id @id end |
#text ⇒ String
23 24 25 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb', line 23 def text @text end |
Class Method Details
.mapper ⇒ Object
Mapper for LanguageInput class as Ruby Hash. This will be used for serialization/deserialization.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb', line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LanguageInput', type: { name: 'Composite', class_name: 'LanguageInput', model_properties: { country_hint: { client_side_validation: true, required: false, serialized_name: 'countryHint', type: { name: 'String' } }, id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, text: { client_side_validation: true, required: false, serialized_name: 'text', type: { name: 'String' } } } } } end |