Class: Azure::CognitiveServices::QnamakerRuntime::V4_0::Models::PromptDTO

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb

Overview

Prompt for an answer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#display_orderInteger



16
17
18
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb', line 16

def display_order
  @display_order
end

#display_textString

prompt



28
29
30
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb', line 28

def display_text
  @display_text
end

#qnaPromptDTOQna

present in a PromptDTO object



24
25
26
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb', line 24

def qna
  @qna
end

#qna_idInteger

present, QnADTO object is ignored.



20
21
22
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb', line 20

def qna_id
  @qna_id
end

Class Method Details

.mapperObject

Mapper for PromptDTO class as Ruby Hash. This will be used for serialization/deserialization.



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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PromptDTO',
    type: {
      name: 'Composite',
      class_name: 'PromptDTO',
      model_properties: {
        display_order: {
          client_side_validation: true,
          required: false,
          serialized_name: 'displayOrder',
          type: {
            name: 'Number'
          }
        },
        qna_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'qnaId',
          type: {
            name: 'Number'
          }
        },
        qna: {
          client_side_validation: true,
          required: false,
          serialized_name: 'qna',
          type: {
            name: 'Composite',
            class_name: 'PromptDTOQna'
          }
        },
        display_text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'displayText',
          constraints: {
            MaxLength: 200
          },
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end