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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +20 -20
  3. data/lib/4.0/generated/azure_cognitiveservices_qnamaker.rb +0 -1
  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 +44 -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 +11 -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 +30 -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 -4
  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 +3 -4
  58. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_environment_type.rb +0 -16
@@ -1,57 +1,57 @@
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
- # Post body schema for Replace KB operation.
10
- #
11
- class ReplaceKbDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<QnADTO>] List of Q-A (QnADTO) to be added to the
16
- # knowledgebase. Q-A Ids are assigned by the service and should be
17
- # omitted.
18
- attr_accessor :qn_alist
19
-
20
-
21
- #
22
- # Mapper for ReplaceKbDTO class as Ruby Hash.
23
- # This will be used for serialization/deserialization.
24
- #
25
- def self.mapper()
26
- {
27
- client_side_validation: true,
28
- required: false,
29
- serialized_name: 'ReplaceKbDTO',
30
- type: {
31
- name: 'Composite',
32
- class_name: 'ReplaceKbDTO',
33
- model_properties: {
34
- qn_alist: {
35
- client_side_validation: true,
36
- required: true,
37
- serialized_name: 'qnAList',
38
- type: {
39
- name: 'Sequence',
40
- element: {
41
- client_side_validation: true,
42
- required: false,
43
- serialized_name: 'QnADTOElementType',
44
- type: {
45
- name: 'Composite',
46
- class_name: 'QnADTO'
47
- }
48
- }
49
- }
50
- }
51
- }
52
- }
53
- }
54
- end
55
- end
56
- end
57
- 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
+ # Post body schema for Replace KB operation.
10
+ #
11
+ class ReplaceKbDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<QnADTO>] List of Q-A (QnADTO) to be added to the
16
+ # knowledgebase. Q-A Ids are assigned by the service and should be
17
+ # omitted.
18
+ attr_accessor :qn_alist
19
+
20
+
21
+ #
22
+ # Mapper for ReplaceKbDTO class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'ReplaceKbDTO',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'ReplaceKbDTO',
33
+ model_properties: {
34
+ qn_alist: {
35
+ client_side_validation: true,
36
+ required: true,
37
+ serialized_name: 'qnAList',
38
+ type: {
39
+ name: 'Sequence',
40
+ element: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'QnADTOElementType',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'QnADTO'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -1,90 +1,90 @@
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
- # Update Body schema to represent context to be updated
10
- #
11
- class UpdateContextDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<Integer>] List of prompts associated with qna to be
16
- # deleted
17
- attr_accessor :prompts_to_delete
18
-
19
- # @return [Array<PromptDTO>] List of prompts to be added to the qna.
20
- attr_accessor :prompts_to_add
21
-
22
- # @return [Boolean] To mark if a prompt is relevant only with a previous
23
- # question or not.
24
- # true - Do not include this QnA as search result for queries without
25
- # context
26
- # false - ignores context and includes this QnA in search result
27
- attr_accessor :is_context_only
28
-
29
-
30
- #
31
- # Mapper for UpdateContextDTO class as Ruby Hash.
32
- # This will be used for serialization/deserialization.
33
- #
34
- def self.mapper()
35
- {
36
- client_side_validation: true,
37
- required: false,
38
- serialized_name: 'UpdateContextDTO',
39
- type: {
40
- name: 'Composite',
41
- class_name: 'UpdateContextDTO',
42
- model_properties: {
43
- prompts_to_delete: {
44
- client_side_validation: true,
45
- required: false,
46
- serialized_name: 'promptsToDelete',
47
- type: {
48
- name: 'Sequence',
49
- element: {
50
- client_side_validation: true,
51
- required: false,
52
- serialized_name: 'NumberElementType',
53
- type: {
54
- name: 'Number'
55
- }
56
- }
57
- }
58
- },
59
- prompts_to_add: {
60
- client_side_validation: true,
61
- required: false,
62
- serialized_name: 'promptsToAdd',
63
- type: {
64
- name: 'Sequence',
65
- element: {
66
- client_side_validation: true,
67
- required: false,
68
- serialized_name: 'PromptDTOElementType',
69
- type: {
70
- name: 'Composite',
71
- class_name: 'PromptDTO'
72
- }
73
- }
74
- }
75
- },
76
- is_context_only: {
77
- client_side_validation: true,
78
- required: false,
79
- serialized_name: 'isContextOnly',
80
- type: {
81
- name: 'Boolean'
82
- }
83
- }
84
- }
85
- }
86
- }
87
- end
88
- end
89
- end
90
- 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
+ # Update Body schema to represent context to be updated
10
+ #
11
+ class UpdateContextDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Integer>] List of prompts associated with qna to be
16
+ # deleted
17
+ attr_accessor :prompts_to_delete
18
+
19
+ # @return [Array<PromptDTO>] List of prompts to be added to the qna.
20
+ attr_accessor :prompts_to_add
21
+
22
+ # @return [Boolean] To mark if a prompt is relevant only with a previous
23
+ # question or not.
24
+ # true - Do not include this QnA as search result for queries without
25
+ # context
26
+ # false - ignores context and includes this QnA in search result
27
+ attr_accessor :is_context_only
28
+
29
+
30
+ #
31
+ # Mapper for UpdateContextDTO class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'UpdateContextDTO',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'UpdateContextDTO',
42
+ model_properties: {
43
+ prompts_to_delete: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'promptsToDelete',
47
+ type: {
48
+ name: 'Sequence',
49
+ element: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'NumberElementType',
53
+ type: {
54
+ name: 'Number'
55
+ }
56
+ }
57
+ }
58
+ },
59
+ prompts_to_add: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'promptsToAdd',
63
+ type: {
64
+ name: 'Sequence',
65
+ element: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'PromptDTOElementType',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'PromptDTO'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ is_context_only: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'isContextOnly',
80
+ type: {
81
+ name: 'Boolean'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -1,87 +1,87 @@
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
- # PATCH body schema for Update operation in Update Kb
10
- #
11
- class UpdateKbContentsDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Friendly name for the knowledgebase.
16
- attr_accessor :name
17
-
18
- # @return [Array<UpdateQnaDTO>] List of Q-A (UpdateQnaDTO) to be added to
19
- # the knowledgebase.
20
- attr_accessor :qna_list
21
-
22
- # @return [Array<String>] List of existing URLs to be refreshed. The
23
- # content will be extracted again and re-indexed.
24
- attr_accessor :urls
25
-
26
-
27
- #
28
- # Mapper for UpdateKbContentsDTO class as Ruby Hash.
29
- # This will be used for serialization/deserialization.
30
- #
31
- def self.mapper()
32
- {
33
- client_side_validation: true,
34
- required: false,
35
- serialized_name: 'UpdateKbContentsDTO',
36
- type: {
37
- name: 'Composite',
38
- class_name: 'UpdateKbContentsDTO',
39
- model_properties: {
40
- name: {
41
- client_side_validation: true,
42
- required: false,
43
- serialized_name: 'name',
44
- type: {
45
- name: 'String'
46
- }
47
- },
48
- qna_list: {
49
- client_side_validation: true,
50
- required: false,
51
- serialized_name: 'qnaList',
52
- type: {
53
- name: 'Sequence',
54
- element: {
55
- client_side_validation: true,
56
- required: false,
57
- serialized_name: 'UpdateQnaDTOElementType',
58
- type: {
59
- name: 'Composite',
60
- class_name: 'UpdateQnaDTO'
61
- }
62
- }
63
- }
64
- },
65
- urls: {
66
- client_side_validation: true,
67
- required: false,
68
- serialized_name: 'urls',
69
- type: {
70
- name: 'Sequence',
71
- element: {
72
- client_side_validation: true,
73
- required: false,
74
- serialized_name: 'StringElementType',
75
- type: {
76
- name: 'String'
77
- }
78
- }
79
- }
80
- }
81
- }
82
- }
83
- }
84
- end
85
- end
86
- end
87
- 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
+ # PATCH body schema for Update operation in Update Kb
10
+ #
11
+ class UpdateKbContentsDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Friendly name for the knowledgebase.
16
+ attr_accessor :name
17
+
18
+ # @return [Array<UpdateQnaDTO>] List of Q-A (UpdateQnaDTO) to be added to
19
+ # the knowledgebase.
20
+ attr_accessor :qna_list
21
+
22
+ # @return [Array<String>] List of existing URLs to be refreshed. The
23
+ # content will be extracted again and re-indexed.
24
+ attr_accessor :urls
25
+
26
+
27
+ #
28
+ # Mapper for UpdateKbContentsDTO class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'UpdateKbContentsDTO',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'UpdateKbContentsDTO',
39
+ model_properties: {
40
+ name: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ qna_list: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'qnaList',
52
+ type: {
53
+ name: 'Sequence',
54
+ element: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'UpdateQnaDTOElementType',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'UpdateQnaDTO'
61
+ }
62
+ }
63
+ }
64
+ },
65
+ urls: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'urls',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'StringElementType',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ end
85
+ end
86
+ end
87
+ end