Class: Azure::CognitiveServices::QnamakerRuntime::V4_0::Models::QnADTO
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::QnamakerRuntime::V4_0::Models::QnADTO
- Includes:
- MsRestAzure
- Defined in:
- lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb
Overview
Q-A object.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#answer ⇒ String
Answer text.
-
#context ⇒ QnADTOContext
Context of a QnA.
-
#id ⇒ Integer
Unique id for the Q-A.
-
#metadata ⇒ Array<MetadataDTO>
answer.
-
#questions ⇒ Array<String>
List of questions associated with the answer.
- #source ⇒ String
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for QnADTO class as Ruby Hash.
Instance Attribute Details
#answer ⇒ String
Returns Answer text.
19 20 21 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 19 def answer @answer end |
#context ⇒ QnADTOContext
Returns Context of a QnA.
33 34 35 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 33 def context @context end |
#id ⇒ Integer
Returns Unique id for the Q-A.
16 17 18 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 16 def id @id end |
#metadata ⇒ Array<MetadataDTO>
answer.
30 31 32 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 30 def @metadata end |
#questions ⇒ Array<String>
Returns List of questions associated with the answer.
26 27 28 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 26 def questions @questions end |
#source ⇒ String
23 24 25 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 23 def source @source end |
Class Method Details
.mapper ⇒ Object
Mapper for QnADTO class as Ruby Hash. This will be used for serialization/deserialization.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb', line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'QnADTO', type: { name: 'Composite', class_name: 'QnADTO', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'Number' } }, answer: { client_side_validation: true, required: true, serialized_name: 'answer', constraints: { MaxLength: 25000, MinLength: 1 }, type: { name: 'String' } }, source: { client_side_validation: true, required: false, serialized_name: 'source', constraints: { MaxLength: 300 }, type: { name: 'String' } }, questions: { client_side_validation: true, required: true, serialized_name: 'questions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, metadata: { client_side_validation: true, required: false, serialized_name: 'metadata', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetadataDTOElementType', type: { name: 'Composite', class_name: 'MetadataDTO' } } } }, context: { client_side_validation: true, required: false, serialized_name: 'context', type: { name: 'Composite', class_name: 'QnADTOContext' } } } } } end |