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,46 +1,46 @@
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
- # Active Learning settings of the endpoint.
10
- #
11
- class ActiveLearningSettingsDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] True/False string providing Active Learning
16
- attr_accessor :enable
17
-
18
-
19
- #
20
- # Mapper for ActiveLearningSettingsDTO 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: 'ActiveLearningSettingsDTO',
28
- type: {
29
- name: 'Composite',
30
- class_name: 'ActiveLearningSettingsDTO',
31
- model_properties: {
32
- enable: {
33
- client_side_validation: true,
34
- required: false,
35
- serialized_name: 'enable',
36
- type: {
37
- name: 'String'
38
- }
39
- }
40
- }
41
- }
42
- }
43
- end
44
- end
45
- end
46
- 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
+ # Active Learning settings of the endpoint.
10
+ #
11
+ class ActiveLearningSettingsDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] True/False string providing Active Learning
16
+ attr_accessor :enable
17
+
18
+
19
+ #
20
+ # Mapper for ActiveLearningSettingsDTO 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: 'ActiveLearningSettingsDTO',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ActiveLearningSettingsDTO',
31
+ model_properties: {
32
+ enable: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'enable',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -1,54 +1,54 @@
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 words that are synonyms.
10
- #
11
- class AlterationsDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<String>] Words that are synonymous with each other.
16
- attr_accessor :alterations
17
-
18
-
19
- #
20
- # Mapper for AlterationsDTO 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: 'AlterationsDTO',
28
- type: {
29
- name: 'Composite',
30
- class_name: 'AlterationsDTO',
31
- model_properties: {
32
- alterations: {
33
- client_side_validation: true,
34
- required: true,
35
- serialized_name: 'alterations',
36
- type: {
37
- name: 'Sequence',
38
- element: {
39
- client_side_validation: true,
40
- required: false,
41
- serialized_name: 'StringElementType',
42
- type: {
43
- name: 'String'
44
- }
45
- }
46
- }
47
- }
48
- }
49
- }
50
- }
51
- end
52
- end
53
- end
54
- 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
+ # Collection of words that are synonyms.
10
+ #
11
+ class AlterationsDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] Words that are synonymous with each other.
16
+ attr_accessor :alterations
17
+
18
+
19
+ #
20
+ # Mapper for AlterationsDTO 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: 'AlterationsDTO',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AlterationsDTO',
31
+ model_properties: {
32
+ alterations: {
33
+ client_side_validation: true,
34
+ required: true,
35
+ serialized_name: 'alterations',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -1,73 +1,73 @@
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 associated with Qna.
10
- #
11
- class ContextDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Boolean] To mark if a prompt is relevant only with a previous
16
- # question or not.
17
- # true - Do not include this QnA as search result for queries without
18
- # context
19
- # false - ignores context and includes this QnA in search result
20
- attr_accessor :is_context_only
21
-
22
- # @return [Array<PromptDTO>] List of prompts associated with the answer.
23
- attr_accessor :prompts
24
-
25
-
26
- #
27
- # Mapper for ContextDTO 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: 'ContextDTO',
35
- type: {
36
- name: 'Composite',
37
- class_name: 'ContextDTO',
38
- model_properties: {
39
- is_context_only: {
40
- client_side_validation: true,
41
- required: false,
42
- serialized_name: 'isContextOnly',
43
- type: {
44
- name: 'Boolean'
45
- }
46
- },
47
- prompts: {
48
- client_side_validation: true,
49
- required: false,
50
- serialized_name: 'prompts',
51
- constraints: {
52
- MaxItems: 20
53
- },
54
- type: {
55
- name: 'Sequence',
56
- element: {
57
- client_side_validation: true,
58
- required: false,
59
- serialized_name: 'PromptDTOElementType',
60
- type: {
61
- name: 'Composite',
62
- class_name: 'PromptDTO'
63
- }
64
- }
65
- }
66
- }
67
- }
68
- }
69
- }
70
- end
71
- end
72
- end
73
- 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 associated with Qna.
10
+ #
11
+ class ContextDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] To mark if a prompt is relevant only with a previous
16
+ # question or not.
17
+ # true - Do not include this QnA as search result for queries without
18
+ # context
19
+ # false - ignores context and includes this QnA in search result
20
+ attr_accessor :is_context_only
21
+
22
+ # @return [Array<PromptDTO>] List of prompts associated with the answer.
23
+ attr_accessor :prompts
24
+
25
+
26
+ #
27
+ # Mapper for ContextDTO 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: 'ContextDTO',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ContextDTO',
38
+ model_properties: {
39
+ is_context_only: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'isContextOnly',
43
+ type: {
44
+ name: 'Boolean'
45
+ }
46
+ },
47
+ prompts: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'prompts',
51
+ constraints: {
52
+ MaxItems: 20
53
+ },
54
+ type: {
55
+ name: 'Sequence',
56
+ element: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'PromptDTOElementType',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'PromptDTO'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -1,95 +1,95 @@
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
- # Input to create KB.
10
- #
11
- class CreateKbInputDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<QnADTO>] List of QNA to be added to the index. Ids are
16
- # generated by the service and should be omitted.
17
- attr_accessor :qna_list
18
-
19
- # @return [Array<String>] List of URLs to be added to knowledgebase.
20
- attr_accessor :urls
21
-
22
- # @return [Array<FileDTO>] List of files to be added to knowledgebase.
23
- attr_accessor :files
24
-
25
-
26
- #
27
- # Mapper for CreateKbInputDTO 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: 'CreateKbInputDTO',
35
- type: {
36
- name: 'Composite',
37
- class_name: 'CreateKbInputDTO',
38
- model_properties: {
39
- qna_list: {
40
- client_side_validation: true,
41
- required: false,
42
- serialized_name: 'qnaList',
43
- type: {
44
- name: 'Sequence',
45
- element: {
46
- client_side_validation: true,
47
- required: false,
48
- serialized_name: 'QnADTOElementType',
49
- type: {
50
- name: 'Composite',
51
- class_name: 'QnADTO'
52
- }
53
- }
54
- }
55
- },
56
- urls: {
57
- client_side_validation: true,
58
- required: false,
59
- serialized_name: 'urls',
60
- type: {
61
- name: 'Sequence',
62
- element: {
63
- client_side_validation: true,
64
- required: false,
65
- serialized_name: 'StringElementType',
66
- type: {
67
- name: 'String'
68
- }
69
- }
70
- }
71
- },
72
- files: {
73
- client_side_validation: true,
74
- required: false,
75
- serialized_name: 'files',
76
- type: {
77
- name: 'Sequence',
78
- element: {
79
- client_side_validation: true,
80
- required: false,
81
- serialized_name: 'FileDTOElementType',
82
- type: {
83
- name: 'Composite',
84
- class_name: 'FileDTO'
85
- }
86
- }
87
- }
88
- }
89
- }
90
- }
91
- }
92
- end
93
- end
94
- end
95
- 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
+ # Input to create KB.
10
+ #
11
+ class CreateKbInputDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<QnADTO>] List of QNA to be added to the index. Ids are
16
+ # generated by the service and should be omitted.
17
+ attr_accessor :qna_list
18
+
19
+ # @return [Array<String>] List of URLs to be added to knowledgebase.
20
+ attr_accessor :urls
21
+
22
+ # @return [Array<FileDTO>] List of files to be added to knowledgebase.
23
+ attr_accessor :files
24
+
25
+
26
+ #
27
+ # Mapper for CreateKbInputDTO 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: 'CreateKbInputDTO',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'CreateKbInputDTO',
38
+ model_properties: {
39
+ qna_list: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'qnaList',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'QnADTOElementType',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'QnADTO'
52
+ }
53
+ }
54
+ }
55
+ },
56
+ urls: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'urls',
60
+ type: {
61
+ name: 'Sequence',
62
+ element: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'StringElementType',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ }
70
+ }
71
+ },
72
+ files: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'files',
76
+ type: {
77
+ name: 'Sequence',
78
+ element: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'FileDTOElementType',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'FileDTO'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end