azure_cognitiveservices_qnamaker 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/4.0/generated/azure_cognitiveservices_qnamaker.rb +63 -0
  4. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/alterations.rb +189 -0
  5. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb +194 -0
  6. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/knowledgebase.rb +721 -0
  7. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/alterations_dto.rb +54 -0
  8. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_dto.rb +111 -0
  9. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/create_kb_input_dto.rb +95 -0
  10. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/delete_kb_contents_dto.rb +74 -0
  11. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/endpoint_keys_dto.rb +79 -0
  12. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/environment_type.rb +16 -0
  13. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error.rb +108 -0
  14. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_code_type.rb +28 -0
  15. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response.rb +48 -0
  16. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/error_response_error.rb +85 -0
  17. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/file_dto.rb +62 -0
  18. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/inner_error_model.rb +62 -0
  19. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_dto.rb +155 -0
  20. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebase_environment_type.rb +16 -0
  21. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/knowledgebases_dto.rb +55 -0
  22. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/metadata_dto.rb +65 -0
  23. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation.rb +115 -0
  24. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation_state_type.rb +18 -0
  25. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adocuments_dto.rb +55 -0
  26. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/qn_adto.rb +116 -0
  27. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/replace_kb_dto.rb +57 -0
  28. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_contents_dto.rb +87 -0
  29. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dto.rb +74 -0
  30. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoadd.rb +85 -0
  31. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtodelete.rb +67 -0
  32. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_kb_operation_dtoupdate.rb +76 -0
  33. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_metadata_dto.rb +77 -0
  34. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dto.rb +102 -0
  35. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtometadata.rb +69 -0
  36. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_qna_dtoquestions.rb +67 -0
  37. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/update_questions_dto.rb +74 -0
  38. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/models/word_alterations_dto.rb +55 -0
  39. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/module_definition.rb +9 -0
  40. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/operations.rb +112 -0
  41. data/lib/4.0/generated/azure_cognitiveservices_qnamaker/qnamaker_client.rb +143 -0
  42. data/lib/azure_cognitiveservices_qnamaker.rb +6 -0
  43. data/lib/module_definition.rb +7 -0
  44. data/lib/profiles/latest/modules/qnamaker_profile_module.rb +193 -0
  45. data/lib/profiles/latest/qnamaker_latest_profile_client.rb +38 -0
  46. data/lib/profiles/latest/qnamaker_module_definition.rb +8 -0
  47. data/lib/version.rb +7 -0
  48. metadata +165 -0
@@ -0,0 +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
@@ -0,0 +1,111 @@
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 CreateKb operation.
10
+ #
11
+ class CreateKbDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Friendly name for the knowledgebase.
16
+ attr_accessor :name
17
+
18
+ # @return [Array<QnADTO>] List of Q-A (QnADTO) to be added to the
19
+ # knowledgebase. Q-A Ids are assigned by the service and should be
20
+ # omitted.
21
+ attr_accessor :qna_list
22
+
23
+ # @return [Array<String>] List of URLs to be used for extracting Q-A.
24
+ attr_accessor :urls
25
+
26
+ # @return [Array<FileDTO>] List of files from which to Extract Q-A.
27
+ attr_accessor :files
28
+
29
+
30
+ #
31
+ # Mapper for CreateKbDTO 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: 'CreateKbDTO',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'CreateKbDTO',
42
+ model_properties: {
43
+ name: {
44
+ client_side_validation: true,
45
+ required: true,
46
+ serialized_name: 'name',
47
+ constraints: {
48
+ MaxLength: 100,
49
+ MinLength: 1
50
+ },
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ qna_list: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'qnaList',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'QnADTOElementType',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'QnADTO'
68
+ }
69
+ }
70
+ }
71
+ },
72
+ urls: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'urls',
76
+ type: {
77
+ name: 'Sequence',
78
+ element: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'StringElementType',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ }
86
+ }
87
+ },
88
+ files: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'files',
92
+ type: {
93
+ name: 'Sequence',
94
+ element: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'FileDTOElementType',
98
+ type: {
99
+ name: 'Composite',
100
+ class_name: 'FileDTO'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +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
@@ -0,0 +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
@@ -0,0 +1,79 @@
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
+ # Schema for EndpointKeys generate/refresh operations.
10
+ #
11
+ class EndpointKeysDTO
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Primary Access Key.
16
+ attr_accessor :primary_endpoint_key
17
+
18
+ # @return [String] Secondary Access Key.
19
+ attr_accessor :secondary_endpoint_key
20
+
21
+ # @return [String] Current version of runtime.
22
+ attr_accessor :installed_version
23
+
24
+ # @return [String] Latest version of runtime.
25
+ attr_accessor :last_stable_version
26
+
27
+
28
+ #
29
+ # Mapper for EndpointKeysDTO class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'EndpointKeysDTO',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'EndpointKeysDTO',
40
+ model_properties: {
41
+ primary_endpoint_key: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'primaryEndpointKey',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ secondary_endpoint_key: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'secondaryEndpointKey',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ installed_version: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'installedVersion',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ last_stable_version: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'lastStableVersion',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +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
@@ -0,0 +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