azure_cognitiveservices_qnamaker 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +20 -20
  3. data/lib/4.0/generated/azure_cognitiveservices_qnamaker.rb +0 -0
  4. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/alterations.rb +193 -193
  5. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb +198 -198
  6. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_settings.rb +214 -214
  7. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/knowledgebase.rb +737 -737
  8. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/active_learning_settings_dto.rb +46 -46
  9. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/alterations_dto.rb +54 -54
  10. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/context_dto.rb +73 -73
  11. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_dto.rb +0 -0
  12. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_input_dto.rb +95 -95
  13. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/delete_kb_contents_dto.rb +74 -74
  14. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_keys_dto.rb +0 -0
  15. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_settings_dto.rb +48 -48
  16. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_settings_dtoactive_learning.rb +43 -43
  17. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/environment_type.rb +16 -16
  18. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error.rb +108 -108
  19. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_code_type.rb +28 -28
  20. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response.rb +48 -48
  21. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response_error.rb +85 -85
  22. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/file_dto.rb +62 -62
  23. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/inner_error_model.rb +62 -62
  24. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_dto.rb +155 -155
  25. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebases_dto.rb +55 -55
  26. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/metadata_dto.rb +65 -65
  27. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation.rb +115 -115
  28. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation_state_type.rb +18 -18
  29. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/prompt_dto.rb +86 -86
  30. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/prompt_dtoqna.rb +108 -108
  31. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adocuments_dto.rb +55 -55
  32. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adto.rb +128 -128
  33. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adtocontext.rb +63 -63
  34. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/replace_kb_dto.rb +57 -57
  35. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_context_dto.rb +90 -90
  36. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_contents_dto.rb +87 -87
  37. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dto.rb +0 -0
  38. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoadd.rb +85 -85
  39. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtodelete.rb +67 -67
  40. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoupdate.rb +76 -76
  41. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_metadata_dto.rb +77 -77
  42. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dto.rb +115 -115
  43. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtocontext.rb +76 -76
  44. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtometadata.rb +69 -69
  45. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtoquestions.rb +67 -67
  46. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_questions_dto.rb +74 -74
  47. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/word_alterations_dto.rb +55 -55
  48. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/module_definition.rb +9 -9
  49. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/operations.rb +114 -114
  50. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/qnamaker_client.rb +1 -1
  51. data/lib/azure_cognitiveservices_qnamaker.rb +6 -6
  52. data/lib/module_definition.rb +7 -7
  53. data/lib/profiles/latest/modules/qnamaker_profile_module.rb +0 -0
  54. data/lib/profiles/latest/qnamaker_latest_profile_client.rb +38 -38
  55. data/lib/profiles/latest/qnamaker_module_definition.rb +8 -8
  56. data/lib/version.rb +1 -1
  57. metadata +5 -5
@@ -1,55 +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
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
@@ -1,128 +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::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
- # @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
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
+ # @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
@@ -1,63 +1,63 @@
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
- # Context of a QnA
10
- #
11
- class QnADTOContext < ContextDTO
12
-
13
- include MsRestAzure
14
-
15
-
16
- #
17
- # Mapper for QnADTOContext 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: 'QnADTO_context',
25
- type: {
26
- name: 'Composite',
27
- class_name: 'QnADTOContext',
28
- model_properties: {
29
- is_context_only: {
30
- client_side_validation: true,
31
- required: false,
32
- serialized_name: 'isContextOnly',
33
- type: {
34
- name: 'Boolean'
35
- }
36
- },
37
- prompts: {
38
- client_side_validation: true,
39
- required: false,
40
- serialized_name: 'prompts',
41
- constraints: {
42
- MaxItems: 20
43
- },
44
- type: {
45
- name: 'Sequence',
46
- element: {
47
- client_side_validation: true,
48
- required: false,
49
- serialized_name: 'PromptDTOElementType',
50
- type: {
51
- name: 'Composite',
52
- class_name: 'PromptDTO'
53
- }
54
- }
55
- }
56
- }
57
- }
58
- }
59
- }
60
- end
61
- end
62
- end
63
- 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
+ # Context of a QnA
10
+ #
11
+ class QnADTOContext < ContextDTO
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for QnADTOContext 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: 'QnADTO_context',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'QnADTOContext',
28
+ model_properties: {
29
+ is_context_only: {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'isContextOnly',
33
+ type: {
34
+ name: 'Boolean'
35
+ }
36
+ },
37
+ prompts: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'prompts',
41
+ constraints: {
42
+ MaxItems: 20
43
+ },
44
+ type: {
45
+ name: 'Sequence',
46
+ element: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'PromptDTOElementType',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'PromptDTO'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ end
61
+ end
62
+ end
63
+ end