azure_cognitiveservices_qnamaker 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_qnamaker.rb +63 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/alterations.rb +189 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb +194 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/knowledgebase.rb +721 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/alterations_dto.rb +54 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_dto.rb +111 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_input_dto.rb +95 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/delete_kb_contents_dto.rb +74 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_keys_dto.rb +79 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/environment_type.rb +16 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error.rb +108 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_code_type.rb +28 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response.rb +48 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response_error.rb +85 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/file_dto.rb +62 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/inner_error_model.rb +62 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_dto.rb +155 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_environment_type.rb +16 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebases_dto.rb +55 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/metadata_dto.rb +65 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation.rb +115 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation_state_type.rb +18 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adocuments_dto.rb +55 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adto.rb +116 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/replace_kb_dto.rb +57 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_contents_dto.rb +87 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dto.rb +74 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoadd.rb +85 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtodelete.rb +67 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoupdate.rb +76 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_metadata_dto.rb +77 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dto.rb +102 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtometadata.rb +69 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtoquestions.rb +67 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_questions_dto.rb +74 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/word_alterations_dto.rb +55 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/module_definition.rb +9 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/operations.rb +112 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/qnamaker_client.rb +143 -0
- data/lib/azure_cognitiveservices_qnamaker.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/qnamaker_profile_module.rb +193 -0
- data/lib/profiles/latest/qnamaker_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/qnamaker_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +165 -0
data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_environment_type.rb
ADDED
@@ -0,0 +1,16 @@
|
|
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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for KnowledgebaseEnvironmentType
|
10
|
+
#
|
11
|
+
module KnowledgebaseEnvironmentType
|
12
|
+
Prod = "Prod"
|
13
|
+
Test = "Test"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Collection of knowledgebases owned by a user.
|
10
|
+
#
|
11
|
+
class KnowledgebasesDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<KnowledgebaseDTO>] Collection of knowledgebase records.
|
16
|
+
attr_accessor :knowledgebases
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for KnowledgebasesDTO 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: 'KnowledgebasesDTO',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'KnowledgebasesDTO',
|
31
|
+
model_properties: {
|
32
|
+
knowledgebases: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'knowledgebases',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'KnowledgebaseDTOElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'KnowledgebaseDTO'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
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::Qnamaker::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,115 @@
|
|
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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Record to track long running operation.
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [OperationStateType] Operation state. Possible values include:
|
16
|
+
# 'Failed', 'NotStarted', 'Running', 'Succeeded'
|
17
|
+
attr_accessor :operation_state
|
18
|
+
|
19
|
+
# @return [String] Timestamp when the operation was created.
|
20
|
+
attr_accessor :created_timestamp
|
21
|
+
|
22
|
+
# @return [String] Timestamp when the current state was entered.
|
23
|
+
attr_accessor :last_action_timestamp
|
24
|
+
|
25
|
+
# @return [String] Relative URI to the target resource location for
|
26
|
+
# completed resources.
|
27
|
+
attr_accessor :resource_location
|
28
|
+
|
29
|
+
# @return [String] User Id
|
30
|
+
attr_accessor :user_id
|
31
|
+
|
32
|
+
# @return [String] Operation Id.
|
33
|
+
attr_accessor :operation_id
|
34
|
+
|
35
|
+
# @return [ErrorResponse] Error details in case of failures.
|
36
|
+
attr_accessor :error_response
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for Operation class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'Operation',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'Operation',
|
51
|
+
model_properties: {
|
52
|
+
operation_state: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'operationState',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
created_timestamp: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'createdTimestamp',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
last_action_timestamp: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'lastActionTimestamp',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
resource_location: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'resourceLocation',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
user_id: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'userId',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
operation_id: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'operationId',
|
96
|
+
type: {
|
97
|
+
name: 'String'
|
98
|
+
}
|
99
|
+
},
|
100
|
+
error_response: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'errorResponse',
|
104
|
+
type: {
|
105
|
+
name: 'Composite',
|
106
|
+
class_name: 'ErrorResponse'
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for OperationStateType
|
10
|
+
#
|
11
|
+
module OperationStateType
|
12
|
+
Failed = "Failed"
|
13
|
+
NotStarted = "NotStarted"
|
14
|
+
Running = "Running"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -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::Qnamaker::V4_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of QnADTO
|
10
|
+
#
|
11
|
+
class QnADocumentsDTO
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<QnADTO>] List of answers.
|
16
|
+
attr_accessor :qna_documents
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for QnADocumentsDTO 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: 'QnADocumentsDTO',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'QnADocumentsDTO',
|
31
|
+
model_properties: {
|
32
|
+
qna_documents: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'qnaDocuments',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'QnADTOElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'QnADTO'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,116 @@
|
|
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::Qnamaker::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
|
+
|
33
|
+
#
|
34
|
+
# Mapper for QnADTO class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'QnADTO',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'QnADTO',
|
45
|
+
model_properties: {
|
46
|
+
id: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'id',
|
50
|
+
type: {
|
51
|
+
name: 'Number'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
answer: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: true,
|
57
|
+
serialized_name: 'answer',
|
58
|
+
constraints: {
|
59
|
+
MaxLength: 25000,
|
60
|
+
MinLength: 1
|
61
|
+
},
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
source: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'source',
|
70
|
+
constraints: {
|
71
|
+
MaxLength: 300
|
72
|
+
},
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
questions: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: true,
|
80
|
+
serialized_name: 'questions',
|
81
|
+
type: {
|
82
|
+
name: 'Sequence',
|
83
|
+
element: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'StringElementType',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
},
|
93
|
+
metadata: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'metadata',
|
97
|
+
type: {
|
98
|
+
name: 'Sequence',
|
99
|
+
element: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'MetadataDTOElementType',
|
103
|
+
type: {
|
104
|
+
name: 'Composite',
|
105
|
+
class_name: 'MetadataDTO'
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|