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,28 +1,28 @@
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 ErrorCodeType
10
- #
11
- module ErrorCodeType
12
- BadArgument = "BadArgument"
13
- Forbidden = "Forbidden"
14
- NotFound = "NotFound"
15
- KbNotFound = "KbNotFound"
16
- Unauthorized = "Unauthorized"
17
- Unspecified = "Unspecified"
18
- EndpointKeysError = "EndpointKeysError"
19
- QuotaExceeded = "QuotaExceeded"
20
- QnaRuntimeError = "QnaRuntimeError"
21
- SKULimitExceeded = "SKULimitExceeded"
22
- OperationNotFound = "OperationNotFound"
23
- ServiceError = "ServiceError"
24
- ValidationFailure = "ValidationFailure"
25
- ExtractionFailure = "ExtractionFailure"
26
- end
27
- end
28
- 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 ErrorCodeType
10
+ #
11
+ module ErrorCodeType
12
+ BadArgument = "BadArgument"
13
+ Forbidden = "Forbidden"
14
+ NotFound = "NotFound"
15
+ KbNotFound = "KbNotFound"
16
+ Unauthorized = "Unauthorized"
17
+ Unspecified = "Unspecified"
18
+ EndpointKeysError = "EndpointKeysError"
19
+ QuotaExceeded = "QuotaExceeded"
20
+ QnaRuntimeError = "QnaRuntimeError"
21
+ SKULimitExceeded = "SKULimitExceeded"
22
+ OperationNotFound = "OperationNotFound"
23
+ ServiceError = "ServiceError"
24
+ ValidationFailure = "ValidationFailure"
25
+ ExtractionFailure = "ExtractionFailure"
26
+ end
27
+ end
28
+ 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
- # Error response. As per Microsoft One API guidelines -
10
- # https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
11
- #
12
- class ErrorResponse
13
-
14
- include MsRestAzure
15
-
16
- # @return [ErrorResponseError] The error object.
17
- attr_accessor :error
18
-
19
-
20
- #
21
- # Mapper for ErrorResponse 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: 'ErrorResponse',
29
- type: {
30
- name: 'Composite',
31
- class_name: 'ErrorResponse',
32
- model_properties: {
33
- error: {
34
- client_side_validation: true,
35
- required: false,
36
- serialized_name: 'error',
37
- type: {
38
- name: 'Composite',
39
- class_name: 'ErrorResponseError'
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
+ # Error response. As per Microsoft One API guidelines -
10
+ # https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
11
+ #
12
+ class ErrorResponse
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ErrorResponseError] The error object.
17
+ attr_accessor :error
18
+
19
+
20
+ #
21
+ # Mapper for ErrorResponse 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: 'ErrorResponse',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'ErrorResponse',
32
+ model_properties: {
33
+ error: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'error',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ErrorResponseError'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -1,85 +1,85 @@
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.
10
- #
11
- class ErrorResponseError < Error
12
-
13
- include MsRestAzure
14
-
15
-
16
- #
17
- # Mapper for ErrorResponseError 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: 'ErrorResponse_error',
25
- type: {
26
- name: 'Composite',
27
- class_name: 'ErrorResponseError',
28
- model_properties: {
29
- code: {
30
- client_side_validation: true,
31
- required: true,
32
- serialized_name: 'code',
33
- type: {
34
- name: 'String'
35
- }
36
- },
37
- message: {
38
- client_side_validation: true,
39
- required: false,
40
- serialized_name: 'message',
41
- type: {
42
- name: 'String'
43
- }
44
- },
45
- target: {
46
- client_side_validation: true,
47
- required: false,
48
- serialized_name: 'target',
49
- type: {
50
- name: 'String'
51
- }
52
- },
53
- details: {
54
- client_side_validation: true,
55
- required: false,
56
- serialized_name: 'details',
57
- type: {
58
- name: 'Sequence',
59
- element: {
60
- client_side_validation: true,
61
- required: false,
62
- serialized_name: 'ErrorElementType',
63
- type: {
64
- name: 'Composite',
65
- class_name: 'Error'
66
- }
67
- }
68
- }
69
- },
70
- inner_error: {
71
- client_side_validation: true,
72
- required: false,
73
- serialized_name: 'innerError',
74
- type: {
75
- name: 'Composite',
76
- class_name: 'InnerErrorModel'
77
- }
78
- }
79
- }
80
- }
81
- }
82
- end
83
- end
84
- end
85
- 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.
10
+ #
11
+ class ErrorResponseError < Error
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for ErrorResponseError 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: 'ErrorResponse_error',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'ErrorResponseError',
28
+ model_properties: {
29
+ code: {
30
+ client_side_validation: true,
31
+ required: true,
32
+ serialized_name: 'code',
33
+ type: {
34
+ name: 'String'
35
+ }
36
+ },
37
+ message: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'message',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ target: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'target',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ details: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'details',
57
+ type: {
58
+ name: 'Sequence',
59
+ element: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'ErrorElementType',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'Error'
66
+ }
67
+ }
68
+ }
69
+ },
70
+ inner_error: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'innerError',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'InnerErrorModel'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -1,62 +1,62 @@
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
- # DTO to hold details of uploaded files.
10
- #
11
- class FileDTO
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] File name. Supported file types are ".tsv", ".pdf",
16
- # ".txt", ".docx", ".xlsx".
17
- attr_accessor :file_name
18
-
19
- # @return [String] Public URI of the file.
20
- attr_accessor :file_uri
21
-
22
-
23
- #
24
- # Mapper for FileDTO 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: 'FileDTO',
32
- type: {
33
- name: 'Composite',
34
- class_name: 'FileDTO',
35
- model_properties: {
36
- file_name: {
37
- client_side_validation: true,
38
- required: true,
39
- serialized_name: 'fileName',
40
- constraints: {
41
- MaxLength: 200,
42
- MinLength: 1
43
- },
44
- type: {
45
- name: 'String'
46
- }
47
- },
48
- file_uri: {
49
- client_side_validation: true,
50
- required: true,
51
- serialized_name: 'fileUri',
52
- type: {
53
- name: 'String'
54
- }
55
- }
56
- }
57
- }
58
- }
59
- end
60
- end
61
- end
62
- 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
+ # DTO to hold details of uploaded files.
10
+ #
11
+ class FileDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] File name. Supported file types are ".tsv", ".pdf",
16
+ # ".txt", ".docx", ".xlsx".
17
+ attr_accessor :file_name
18
+
19
+ # @return [String] Public URI of the file.
20
+ attr_accessor :file_uri
21
+
22
+
23
+ #
24
+ # Mapper for FileDTO 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: 'FileDTO',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'FileDTO',
35
+ model_properties: {
36
+ file_name: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'fileName',
40
+ constraints: {
41
+ MaxLength: 200,
42
+ MinLength: 1
43
+ },
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ file_uri: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'fileUri',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -1,62 +1,62 @@
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
- # An object containing more specific information about the error. As per
10
- # Microsoft One API guidelines -
11
- # https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
12
- #
13
- class InnerErrorModel
14
-
15
- include MsRestAzure
16
-
17
- # @return [String] A more specific error code than was provided by the
18
- # containing error.
19
- attr_accessor :code
20
-
21
- # @return [InnerErrorModel] An object containing more specific
22
- # information than the current object about the error.
23
- attr_accessor :inner_error
24
-
25
-
26
- #
27
- # Mapper for InnerErrorModel 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: 'InnerErrorModel',
35
- type: {
36
- name: 'Composite',
37
- class_name: 'InnerErrorModel',
38
- model_properties: {
39
- code: {
40
- client_side_validation: true,
41
- required: false,
42
- serialized_name: 'code',
43
- type: {
44
- name: 'String'
45
- }
46
- },
47
- inner_error: {
48
- client_side_validation: true,
49
- required: false,
50
- serialized_name: 'innerError',
51
- type: {
52
- name: 'Composite',
53
- class_name: 'InnerErrorModel'
54
- }
55
- }
56
- }
57
- }
58
- }
59
- end
60
- end
61
- end
62
- 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
+ # An object containing more specific information about the error. As per
10
+ # Microsoft One API guidelines -
11
+ # https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
12
+ #
13
+ class InnerErrorModel
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [String] A more specific error code than was provided by the
18
+ # containing error.
19
+ attr_accessor :code
20
+
21
+ # @return [InnerErrorModel] An object containing more specific
22
+ # information than the current object about the error.
23
+ attr_accessor :inner_error
24
+
25
+
26
+ #
27
+ # Mapper for InnerErrorModel 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: 'InnerErrorModel',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'InnerErrorModel',
38
+ model_properties: {
39
+ code: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'code',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ inner_error: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'innerError',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'InnerErrorModel'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end