azure_cognitiveservices_qnamaker 0.17.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +20 -20
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker.rb +0 -1
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/alterations.rb +193 -193
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb +198 -198
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_settings.rb +214 -214
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/knowledgebase.rb +737 -737
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/active_learning_settings_dto.rb +46 -46
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/alterations_dto.rb +54 -54
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/context_dto.rb +73 -73
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_dto.rb +44 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_input_dto.rb +95 -95
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/delete_kb_contents_dto.rb +74 -74
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_keys_dto.rb +11 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_settings_dto.rb +48 -48
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_settings_dtoactive_learning.rb +43 -43
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/environment_type.rb +16 -16
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error.rb +108 -108
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_code_type.rb +28 -28
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response.rb +48 -48
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response_error.rb +85 -85
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/file_dto.rb +62 -62
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/inner_error_model.rb +62 -62
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_dto.rb +155 -155
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebases_dto.rb +55 -55
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/metadata_dto.rb +65 -65
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation.rb +115 -115
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation_state_type.rb +18 -18
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/prompt_dto.rb +86 -86
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/prompt_dtoqna.rb +108 -108
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adocuments_dto.rb +55 -55
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adto.rb +128 -128
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adtocontext.rb +63 -63
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/replace_kb_dto.rb +57 -57
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_context_dto.rb +90 -90
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_contents_dto.rb +87 -87
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dto.rb +30 -0
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoadd.rb +85 -85
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtodelete.rb +67 -67
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoupdate.rb +76 -76
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_metadata_dto.rb +77 -77
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dto.rb +115 -115
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtocontext.rb +76 -76
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtometadata.rb +69 -69
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtoquestions.rb +67 -67
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_questions_dto.rb +74 -74
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/word_alterations_dto.rb +55 -55
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/module_definition.rb +9 -9
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/operations.rb +114 -114
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/qnamaker_client.rb +1 -1
- data/lib/azure_cognitiveservices_qnamaker.rb +6 -6
- data/lib/module_definition.rb +7 -7
- data/lib/profiles/latest/modules/qnamaker_profile_module.rb +0 -4
- data/lib/profiles/latest/qnamaker_latest_profile_client.rb +38 -38
- data/lib/profiles/latest/qnamaker_module_definition.rb +8 -8
- data/lib/version.rb +1 -1
- metadata +3 -4
- data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_environment_type.rb +0 -16
@@ -1,115 +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
|
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
|
@@ -1,18 +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
|
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
|
@@ -1,86 +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::Qnamaker::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
|
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
|
+
# 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
|
@@ -1,108 +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::Qnamaker::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
|
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
|
+
# 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
|