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,74 +1,74 @@
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 of Delete Operation in UpdateKb
10
- #
11
- class DeleteKbContentsDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<Integer>] List of Qna Ids to be deleted
16
- attr_accessor :ids
17
-
18
- # @return [Array<String>] List of sources to be deleted from
19
- # knowledgebase.
20
- attr_accessor :sources
21
-
22
-
23
- #
24
- # Mapper for DeleteKbContentsDTO class as Ruby Hash.
25
- # This will be used for serialization/deserialization.
26
- #
27
- def self.mapper()
28
- {
29
- client_side_validation: true,
30
- required: false,
31
- serialized_name: 'DeleteKbContentsDTO',
32
- type: {
33
- name: 'Composite',
34
- class_name: 'DeleteKbContentsDTO',
35
- model_properties: {
36
- ids: {
37
- client_side_validation: true,
38
- required: false,
39
- serialized_name: 'ids',
40
- type: {
41
- name: 'Sequence',
42
- element: {
43
- client_side_validation: true,
44
- required: false,
45
- serialized_name: 'NumberElementType',
46
- type: {
47
- name: 'Number'
48
- }
49
- }
50
- }
51
- },
52
- sources: {
53
- client_side_validation: true,
54
- required: false,
55
- serialized_name: 'sources',
56
- type: {
57
- name: 'Sequence',
58
- element: {
59
- client_side_validation: true,
60
- required: false,
61
- serialized_name: 'StringElementType',
62
- type: {
63
- name: 'String'
64
- }
65
- }
66
- }
67
- }
68
- }
69
- }
70
- }
71
- end
72
- end
73
- end
74
- 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 of Delete Operation in UpdateKb
10
+ #
11
+ class DeleteKbContentsDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Integer>] List of Qna Ids to be deleted
16
+ attr_accessor :ids
17
+
18
+ # @return [Array<String>] List of sources to be deleted from
19
+ # knowledgebase.
20
+ attr_accessor :sources
21
+
22
+
23
+ #
24
+ # Mapper for DeleteKbContentsDTO class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'DeleteKbContentsDTO',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'DeleteKbContentsDTO',
35
+ model_properties: {
36
+ ids: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'ids',
40
+ type: {
41
+ name: 'Sequence',
42
+ element: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'NumberElementType',
46
+ type: {
47
+ name: 'Number'
48
+ }
49
+ }
50
+ }
51
+ },
52
+ sources: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'sources',
56
+ type: {
57
+ name: 'Sequence',
58
+ element: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'StringElementType',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end
@@ -1,48 +1,48 @@
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
- # Endpoint settings.
10
- #
11
- class EndpointSettingsDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [EndpointSettingsDTOActiveLearning] Active Learning settings of
16
- # the endpoint.
17
- attr_accessor :active_learning
18
-
19
-
20
- #
21
- # Mapper for EndpointSettingsDTO class as Ruby Hash.
22
- # This will be used for serialization/deserialization.
23
- #
24
- def self.mapper()
25
- {
26
- client_side_validation: true,
27
- required: false,
28
- serialized_name: 'EndpointSettingsDTO',
29
- type: {
30
- name: 'Composite',
31
- class_name: 'EndpointSettingsDTO',
32
- model_properties: {
33
- active_learning: {
34
- client_side_validation: true,
35
- required: false,
36
- serialized_name: 'activeLearning',
37
- type: {
38
- name: 'Composite',
39
- class_name: 'EndpointSettingsDTOActiveLearning'
40
- }
41
- }
42
- }
43
- }
44
- }
45
- end
46
- end
47
- end
48
- 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
+ # Endpoint settings.
10
+ #
11
+ class EndpointSettingsDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [EndpointSettingsDTOActiveLearning] Active Learning settings of
16
+ # the endpoint.
17
+ attr_accessor :active_learning
18
+
19
+
20
+ #
21
+ # Mapper for EndpointSettingsDTO class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'EndpointSettingsDTO',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'EndpointSettingsDTO',
32
+ model_properties: {
33
+ active_learning: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'activeLearning',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'EndpointSettingsDTOActiveLearning'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -1,43 +1,43 @@
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 EndpointSettingsDTOActiveLearning < ActiveLearningSettingsDTO
12
-
13
- include MsRestAzure
14
-
15
-
16
- #
17
- # Mapper for EndpointSettingsDTOActiveLearning 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: 'EndpointSettingsDTO_activeLearning',
25
- type: {
26
- name: 'Composite',
27
- class_name: 'EndpointSettingsDTOActiveLearning',
28
- model_properties: {
29
- enable: {
30
- client_side_validation: true,
31
- required: false,
32
- serialized_name: 'enable',
33
- type: {
34
- name: 'String'
35
- }
36
- }
37
- }
38
- }
39
- }
40
- end
41
- end
42
- end
43
- 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 EndpointSettingsDTOActiveLearning < ActiveLearningSettingsDTO
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for EndpointSettingsDTOActiveLearning 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: 'EndpointSettingsDTO_activeLearning',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'EndpointSettingsDTOActiveLearning',
28
+ model_properties: {
29
+ enable: {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'enable',
33
+ type: {
34
+ name: 'String'
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -1,16 +1,16 @@
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 EnvironmentType
10
- #
11
- module EnvironmentType
12
- Prod = "Prod"
13
- Test = "Test"
14
- end
15
- end
16
- 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 EnvironmentType
10
+ #
11
+ module EnvironmentType
12
+ Prod = "Prod"
13
+ Test = "Test"
14
+ end
15
+ end
16
+ 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
- # The error object. As per Microsoft One API guidelines -
10
- # https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
11
- #
12
- class Error
13
-
14
- include MsRestAzure
15
-
16
- # @return [ErrorCodeType] One of a server-defined set of error codes.
17
- # Possible values include: 'BadArgument', 'Forbidden', 'NotFound',
18
- # 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError',
19
- # 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded',
20
- # 'OperationNotFound', 'ServiceError', 'ValidationFailure',
21
- # 'ExtractionFailure'
22
- attr_accessor :code
23
-
24
- # @return [String] A human-readable representation of the error.
25
- attr_accessor :message
26
-
27
- # @return [String] The target of the error.
28
- attr_accessor :target
29
-
30
- # @return [Array<Error>] An array of details about specific errors that
31
- # led to this reported error.
32
- attr_accessor :details
33
-
34
- # @return [InnerErrorModel] An object containing more specific
35
- # information than the current object about the error.
36
- attr_accessor :inner_error
37
-
38
-
39
- #
40
- # Mapper for Error 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: 'Error',
48
- type: {
49
- name: 'Composite',
50
- class_name: 'Error',
51
- model_properties: {
52
- code: {
53
- client_side_validation: true,
54
- required: true,
55
- serialized_name: 'code',
56
- type: {
57
- name: 'String'
58
- }
59
- },
60
- message: {
61
- client_side_validation: true,
62
- required: false,
63
- serialized_name: 'message',
64
- type: {
65
- name: 'String'
66
- }
67
- },
68
- target: {
69
- client_side_validation: true,
70
- required: false,
71
- serialized_name: 'target',
72
- type: {
73
- name: 'String'
74
- }
75
- },
76
- details: {
77
- client_side_validation: true,
78
- required: false,
79
- serialized_name: 'details',
80
- type: {
81
- name: 'Sequence',
82
- element: {
83
- client_side_validation: true,
84
- required: false,
85
- serialized_name: 'ErrorElementType',
86
- type: {
87
- name: 'Composite',
88
- class_name: 'Error'
89
- }
90
- }
91
- }
92
- },
93
- inner_error: {
94
- client_side_validation: true,
95
- required: false,
96
- serialized_name: 'innerError',
97
- type: {
98
- name: 'Composite',
99
- class_name: 'InnerErrorModel'
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
+ # The error object. As per Microsoft One API guidelines -
10
+ # https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
11
+ #
12
+ class Error
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ErrorCodeType] One of a server-defined set of error codes.
17
+ # Possible values include: 'BadArgument', 'Forbidden', 'NotFound',
18
+ # 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError',
19
+ # 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded',
20
+ # 'OperationNotFound', 'ServiceError', 'ValidationFailure',
21
+ # 'ExtractionFailure'
22
+ attr_accessor :code
23
+
24
+ # @return [String] A human-readable representation of the error.
25
+ attr_accessor :message
26
+
27
+ # @return [String] The target of the error.
28
+ attr_accessor :target
29
+
30
+ # @return [Array<Error>] An array of details about specific errors that
31
+ # led to this reported error.
32
+ attr_accessor :details
33
+
34
+ # @return [InnerErrorModel] An object containing more specific
35
+ # information than the current object about the error.
36
+ attr_accessor :inner_error
37
+
38
+
39
+ #
40
+ # Mapper for Error 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: 'Error',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'Error',
51
+ model_properties: {
52
+ code: {
53
+ client_side_validation: true,
54
+ required: true,
55
+ serialized_name: 'code',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ message: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'message',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ target: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'target',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ details: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'details',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'ErrorElementType',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'Error'
89
+ }
90
+ }
91
+ }
92
+ },
93
+ inner_error: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'innerError',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'InnerErrorModel'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end