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,77 +1,77 @@
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 to represent list of Metadata to be updated
10
- #
11
- class UpdateMetadataDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<MetadataDTO>] List of Metadata associated with answer to
16
- # be deleted
17
- attr_accessor :delete
18
-
19
- # @return [Array<MetadataDTO>] List of metadata associated with answer to
20
- # be added
21
- attr_accessor :add
22
-
23
-
24
- #
25
- # Mapper for UpdateMetadataDTO class as Ruby Hash.
26
- # This will be used for serialization/deserialization.
27
- #
28
- def self.mapper()
29
- {
30
- client_side_validation: true,
31
- required: false,
32
- serialized_name: 'UpdateMetadataDTO',
33
- type: {
34
- name: 'Composite',
35
- class_name: 'UpdateMetadataDTO',
36
- model_properties: {
37
- delete: {
38
- client_side_validation: true,
39
- required: false,
40
- serialized_name: 'delete',
41
- type: {
42
- name: 'Sequence',
43
- element: {
44
- client_side_validation: true,
45
- required: false,
46
- serialized_name: 'MetadataDTOElementType',
47
- type: {
48
- name: 'Composite',
49
- class_name: 'MetadataDTO'
50
- }
51
- }
52
- }
53
- },
54
- add: {
55
- client_side_validation: true,
56
- required: false,
57
- serialized_name: 'add',
58
- type: {
59
- name: 'Sequence',
60
- element: {
61
- client_side_validation: true,
62
- required: false,
63
- serialized_name: 'MetadataDTOElementType',
64
- type: {
65
- name: 'Composite',
66
- class_name: 'MetadataDTO'
67
- }
68
- }
69
- }
70
- }
71
- }
72
- }
73
- }
74
- end
75
- end
76
- end
77
- 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 to represent list of Metadata to be updated
10
+ #
11
+ class UpdateMetadataDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<MetadataDTO>] List of Metadata associated with answer to
16
+ # be deleted
17
+ attr_accessor :delete
18
+
19
+ # @return [Array<MetadataDTO>] List of metadata associated with answer to
20
+ # be added
21
+ attr_accessor :add
22
+
23
+
24
+ #
25
+ # Mapper for UpdateMetadataDTO class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'UpdateMetadataDTO',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'UpdateMetadataDTO',
36
+ model_properties: {
37
+ delete: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'delete',
41
+ type: {
42
+ name: 'Sequence',
43
+ element: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'MetadataDTOElementType',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'MetadataDTO'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ add: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'add',
58
+ type: {
59
+ name: 'Sequence',
60
+ element: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'MetadataDTOElementType',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'MetadataDTO'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -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
- # PATCH Body schema for Update Qna List
10
- #
11
- class UpdateQnaDTO
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 [UpdateQnaDTOQuestions] List of questions associated with the
26
- # answer.
27
- attr_accessor :questions
28
-
29
- # @return [UpdateQnaDTOMetadata] List of metadata associated with the
30
- # answer to be updated
31
- attr_accessor :metadata
32
-
33
- # @return [UpdateQnaDTOContext] Context associated with Qna to be
34
- # updated.
35
- attr_accessor :context
36
-
37
-
38
- #
39
- # Mapper for UpdateQnaDTO class as Ruby Hash.
40
- # This will be used for serialization/deserialization.
41
- #
42
- def self.mapper()
43
- {
44
- client_side_validation: true,
45
- required: false,
46
- serialized_name: 'UpdateQnaDTO',
47
- type: {
48
- name: 'Composite',
49
- class_name: 'UpdateQnaDTO',
50
- model_properties: {
51
- id: {
52
- client_side_validation: true,
53
- required: false,
54
- serialized_name: 'id',
55
- constraints: {
56
- InclusiveMaximum: 2147483647,
57
- InclusiveMinimum: 0
58
- },
59
- type: {
60
- name: 'Number'
61
- }
62
- },
63
- answer: {
64
- client_side_validation: true,
65
- required: false,
66
- serialized_name: 'answer',
67
- type: {
68
- name: 'String'
69
- }
70
- },
71
- source: {
72
- client_side_validation: true,
73
- required: false,
74
- serialized_name: 'source',
75
- constraints: {
76
- MaxLength: 300
77
- },
78
- type: {
79
- name: 'String'
80
- }
81
- },
82
- questions: {
83
- client_side_validation: true,
84
- required: false,
85
- serialized_name: 'questions',
86
- type: {
87
- name: 'Composite',
88
- class_name: 'UpdateQnaDTOQuestions'
89
- }
90
- },
91
- metadata: {
92
- client_side_validation: true,
93
- required: false,
94
- serialized_name: 'metadata',
95
- type: {
96
- name: 'Composite',
97
- class_name: 'UpdateQnaDTOMetadata'
98
- }
99
- },
100
- context: {
101
- client_side_validation: true,
102
- required: false,
103
- serialized_name: 'context',
104
- type: {
105
- name: 'Composite',
106
- class_name: 'UpdateQnaDTOContext'
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
+ # PATCH Body schema for Update Qna List
10
+ #
11
+ class UpdateQnaDTO
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 [UpdateQnaDTOQuestions] List of questions associated with the
26
+ # answer.
27
+ attr_accessor :questions
28
+
29
+ # @return [UpdateQnaDTOMetadata] List of metadata associated with the
30
+ # answer to be updated
31
+ attr_accessor :metadata
32
+
33
+ # @return [UpdateQnaDTOContext] Context associated with Qna to be
34
+ # updated.
35
+ attr_accessor :context
36
+
37
+
38
+ #
39
+ # Mapper for UpdateQnaDTO class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'UpdateQnaDTO',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'UpdateQnaDTO',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'id',
55
+ constraints: {
56
+ InclusiveMaximum: 2147483647,
57
+ InclusiveMinimum: 0
58
+ },
59
+ type: {
60
+ name: 'Number'
61
+ }
62
+ },
63
+ answer: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'answer',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ source: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'source',
75
+ constraints: {
76
+ MaxLength: 300
77
+ },
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ questions: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'questions',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'UpdateQnaDTOQuestions'
89
+ }
90
+ },
91
+ metadata: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'metadata',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'UpdateQnaDTOMetadata'
98
+ }
99
+ },
100
+ context: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ serialized_name: 'context',
104
+ type: {
105
+ name: 'Composite',
106
+ class_name: 'UpdateQnaDTOContext'
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -1,76 +1,76 @@
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 to be updated.
10
- #
11
- class UpdateQnaDTOContext < UpdateContextDTO
12
-
13
- include MsRestAzure
14
-
15
-
16
- #
17
- # Mapper for UpdateQnaDTOContext 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: 'UpdateQnaDTO_context',
25
- type: {
26
- name: 'Composite',
27
- class_name: 'UpdateQnaDTOContext',
28
- model_properties: {
29
- prompts_to_delete: {
30
- client_side_validation: true,
31
- required: false,
32
- serialized_name: 'promptsToDelete',
33
- type: {
34
- name: 'Sequence',
35
- element: {
36
- client_side_validation: true,
37
- required: false,
38
- serialized_name: 'NumberElementType',
39
- type: {
40
- name: 'Number'
41
- }
42
- }
43
- }
44
- },
45
- prompts_to_add: {
46
- client_side_validation: true,
47
- required: false,
48
- serialized_name: 'promptsToAdd',
49
- type: {
50
- name: 'Sequence',
51
- element: {
52
- client_side_validation: true,
53
- required: false,
54
- serialized_name: 'PromptDTOElementType',
55
- type: {
56
- name: 'Composite',
57
- class_name: 'PromptDTO'
58
- }
59
- }
60
- }
61
- },
62
- is_context_only: {
63
- client_side_validation: true,
64
- required: false,
65
- serialized_name: 'isContextOnly',
66
- type: {
67
- name: 'Boolean'
68
- }
69
- }
70
- }
71
- }
72
- }
73
- end
74
- end
75
- end
76
- 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 to be updated.
10
+ #
11
+ class UpdateQnaDTOContext < UpdateContextDTO
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for UpdateQnaDTOContext 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: 'UpdateQnaDTO_context',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'UpdateQnaDTOContext',
28
+ model_properties: {
29
+ prompts_to_delete: {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'promptsToDelete',
33
+ type: {
34
+ name: 'Sequence',
35
+ element: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'NumberElementType',
39
+ type: {
40
+ name: 'Number'
41
+ }
42
+ }
43
+ }
44
+ },
45
+ prompts_to_add: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'promptsToAdd',
49
+ type: {
50
+ name: 'Sequence',
51
+ element: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'PromptDTOElementType',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'PromptDTO'
58
+ }
59
+ }
60
+ }
61
+ },
62
+ is_context_only: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'isContextOnly',
66
+ type: {
67
+ name: 'Boolean'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end