azure_cognitiveservices_qnamakerruntime 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime.rb +47 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/context_dto.rb +73 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/error.rb +108 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/error_code_type.rb +28 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/error_response.rb +48 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/error_response_error.rb +85 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/feedback_record_dto.rb +72 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/feedback_records_dto.rb +55 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/inner_error_model.rb +62 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/metadata_dto.rb +65 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb +86 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dtoqna.rb +108 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adto.rb +128 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_adtocontext.rb +63 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_asearch_result.rb +130 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_asearch_result_context.rb +63 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/qn_asearch_result_list.rb +55 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/query_context_dto.rb +57 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/query_dto.rb +137 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/query_dtocontext.rb +51 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/module_definition.rb +9 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/qnamaker_runtime_client.rb +127 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/runtime.rb +214 -0
- data/lib/azure_cognitiveservices_qnamakerruntime.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/qnamakerruntime_profile_module.rb +135 -0
- data/lib/profiles/latest/qnamakerruntime_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/qnamakerruntime_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +147 -0
@@ -0,0 +1,55 @@
|
|
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::QnamakerRuntime::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Active learning feedback records.
|
10
|
+
#
|
11
|
+
class FeedbackRecordsDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<FeedbackRecordDTO>] List of feedback records.
|
16
|
+
attr_accessor :feedback_records
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for FeedbackRecordsDTO class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'FeedbackRecordsDTO',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'FeedbackRecordsDTO',
|
31
|
+
model_properties: {
|
32
|
+
feedback_records: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'feedbackRecords',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'FeedbackRecordDTOElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'FeedbackRecordDTO'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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::QnamakerRuntime::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object containing more specific information about the error. As per
|
10
|
+
# Microsoft One API guidelines -
|
11
|
+
# https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
|
12
|
+
#
|
13
|
+
class InnerErrorModel
|
14
|
+
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
# @return [String] A more specific error code than was provided by the
|
18
|
+
# containing error.
|
19
|
+
attr_accessor :code
|
20
|
+
|
21
|
+
# @return [InnerErrorModel] An object containing more specific
|
22
|
+
# information than the current object about the error.
|
23
|
+
attr_accessor :inner_error
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for InnerErrorModel class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'InnerErrorModel',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'InnerErrorModel',
|
38
|
+
model_properties: {
|
39
|
+
code: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'code',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
inner_error: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'innerError',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'InnerErrorModel'
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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::QnamakerRuntime::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Name - value pair of metadata.
|
10
|
+
#
|
11
|
+
class MetadataDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Metadata name.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Metadata value.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for MetadataDTO class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'MetadataDTO',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'MetadataDTO',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'name',
|
39
|
+
constraints: {
|
40
|
+
MaxLength: 100,
|
41
|
+
MinLength: 1
|
42
|
+
},
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
value: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'value',
|
51
|
+
constraints: {
|
52
|
+
MaxLength: 500,
|
53
|
+
MinLength: 1
|
54
|
+
},
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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::QnamakerRuntime::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Prompt for an answer.
|
10
|
+
#
|
11
|
+
class PromptDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Index of the prompt - used in ordering of the prompts
|
16
|
+
attr_accessor :display_order
|
17
|
+
|
18
|
+
# @return [Integer] Qna id corresponding to the prompt - if QnaId is
|
19
|
+
# present, QnADTO object is ignored.
|
20
|
+
attr_accessor :qna_id
|
21
|
+
|
22
|
+
# @return [PromptDTOQna] QnADTO - Either QnaId or QnADTO needs to be
|
23
|
+
# present in a PromptDTO object
|
24
|
+
attr_accessor :qna
|
25
|
+
|
26
|
+
# @return [String] Text displayed to represent a follow up question
|
27
|
+
# prompt
|
28
|
+
attr_accessor :display_text
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for PromptDTO class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'PromptDTO',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'PromptDTO',
|
43
|
+
model_properties: {
|
44
|
+
display_order: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'displayOrder',
|
48
|
+
type: {
|
49
|
+
name: 'Number'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
qna_id: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'qnaId',
|
56
|
+
type: {
|
57
|
+
name: 'Number'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
qna: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'qna',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'PromptDTOQna'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
display_text: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'displayText',
|
73
|
+
constraints: {
|
74
|
+
MaxLength: 200
|
75
|
+
},
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,108 @@
|
|
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::QnamakerRuntime::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# QnADTO - Either QnaId or QnADTO needs to be present in a PromptDTO object
|
10
|
+
#
|
11
|
+
class PromptDTOQna < QnADTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
#
|
17
|
+
# Mapper for PromptDTOQna class as Ruby Hash.
|
18
|
+
# This will be used for serialization/deserialization.
|
19
|
+
#
|
20
|
+
def self.mapper()
|
21
|
+
{
|
22
|
+
client_side_validation: true,
|
23
|
+
required: false,
|
24
|
+
serialized_name: 'PromptDTO_qna',
|
25
|
+
type: {
|
26
|
+
name: 'Composite',
|
27
|
+
class_name: 'PromptDTOQna',
|
28
|
+
model_properties: {
|
29
|
+
id: {
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'id',
|
33
|
+
type: {
|
34
|
+
name: 'Number'
|
35
|
+
}
|
36
|
+
},
|
37
|
+
answer: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: true,
|
40
|
+
serialized_name: 'answer',
|
41
|
+
constraints: {
|
42
|
+
MaxLength: 25000,
|
43
|
+
MinLength: 1
|
44
|
+
},
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
source: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'source',
|
53
|
+
constraints: {
|
54
|
+
MaxLength: 300
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
questions: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: true,
|
63
|
+
serialized_name: 'questions',
|
64
|
+
type: {
|
65
|
+
name: 'Sequence',
|
66
|
+
element: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'StringElementType',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
metadata: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'metadata',
|
80
|
+
type: {
|
81
|
+
name: 'Sequence',
|
82
|
+
element: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'MetadataDTOElementType',
|
86
|
+
type: {
|
87
|
+
name: 'Composite',
|
88
|
+
class_name: 'MetadataDTO'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
},
|
93
|
+
context: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'context',
|
97
|
+
type: {
|
98
|
+
name: 'Composite',
|
99
|
+
class_name: 'QnADTOContext'
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,128 @@
|
|
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::QnamakerRuntime::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Q-A object.
|
10
|
+
#
|
11
|
+
class QnADTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Unique id for the Q-A.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Answer text
|
19
|
+
attr_accessor :answer
|
20
|
+
|
21
|
+
# @return [String] Source from which Q-A was indexed. eg.
|
22
|
+
# https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/FAQs
|
23
|
+
attr_accessor :source
|
24
|
+
|
25
|
+
# @return [Array<String>] List of questions associated with the answer.
|
26
|
+
attr_accessor :questions
|
27
|
+
|
28
|
+
# @return [Array<MetadataDTO>] List of metadata associated with the
|
29
|
+
# answer.
|
30
|
+
attr_accessor :metadata
|
31
|
+
|
32
|
+
# @return [QnADTOContext] Context of a QnA
|
33
|
+
attr_accessor :context
|
34
|
+
|
35
|
+
|
36
|
+
#
|
37
|
+
# Mapper for QnADTO class as Ruby Hash.
|
38
|
+
# This will be used for serialization/deserialization.
|
39
|
+
#
|
40
|
+
def self.mapper()
|
41
|
+
{
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'QnADTO',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'QnADTO',
|
48
|
+
model_properties: {
|
49
|
+
id: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'id',
|
53
|
+
type: {
|
54
|
+
name: 'Number'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
answer: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: true,
|
60
|
+
serialized_name: 'answer',
|
61
|
+
constraints: {
|
62
|
+
MaxLength: 25000,
|
63
|
+
MinLength: 1
|
64
|
+
},
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
source: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'source',
|
73
|
+
constraints: {
|
74
|
+
MaxLength: 300
|
75
|
+
},
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
questions: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: true,
|
83
|
+
serialized_name: 'questions',
|
84
|
+
type: {
|
85
|
+
name: 'Sequence',
|
86
|
+
element: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'StringElementType',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
},
|
96
|
+
metadata: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'metadata',
|
100
|
+
type: {
|
101
|
+
name: 'Sequence',
|
102
|
+
element: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'MetadataDTOElementType',
|
106
|
+
type: {
|
107
|
+
name: 'Composite',
|
108
|
+
class_name: 'MetadataDTO'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
context: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'context',
|
117
|
+
type: {
|
118
|
+
name: 'Composite',
|
119
|
+
class_name: 'QnADTOContext'
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|