azure_cognitiveservices_spellcheck 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_spellcheck.rb +41 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/action_type.rb +16 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/answer.rb +60 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error.rb +116 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_code.rb +20 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_response.rb +80 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_sub_code.rb +25 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_type.rb +16 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/identifiable.rb +62 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/mode.rb +16 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/response.rb +60 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/response_base.rb +51 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/spell_check.rb +80 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/spelling_flagged_token.rb +104 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/models/spelling_token_suggestion.rb +71 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/module_definition.rb +9 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb +776 -0
  20. data/lib/azure_cognitiveservices_spellcheck.rb +6 -0
  21. data/lib/module_definition.rb +7 -0
  22. data/lib/profiles/latest/modules/spellcheck_profile_module.rb +113 -0
  23. data/lib/profiles/latest/spellcheck_latest_profile_client.rb +38 -0
  24. data/lib/profiles/latest/spellcheck_module_definition.rb +8 -0
  25. data/lib/version.rb +7 -0
  26. metadata +143 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f0b58f2fce0e33f7708cd66dea0c33f21556befc
4
+ data.tar.gz: d6da257eedef45d6c2eed4f2365e3f1e0f02a6ec
5
+ SHA512:
6
+ metadata.gz: ffa1f2915bf4240e665d2c4df60085391db100f1ffce6afc95e59bcadbeca4d2f68b5e9a894315f299393a5dcebf05dc4815d11d81279163fc8331bd8f749b38
7
+ data.tar.gz: 75c49592a2ec250f64c9fa931ee512b51d0e2d14c76d91395e74760a6361399f6d5bf0900dacfcc232e3e036b7366da299468992c20e494ba876be0f505242fa
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,41 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '1.0/generated/azure_cognitiveservices_spellcheck/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CognitiveServices::SpellCheck::V1_0
23
+ autoload :SpellCheckClient, '1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb'
24
+
25
+ module Models
26
+ autoload :SpellingTokenSuggestion, '1.0/generated/azure_cognitiveservices_spellcheck/models/spelling_token_suggestion.rb'
27
+ autoload :ResponseBase, '1.0/generated/azure_cognitiveservices_spellcheck/models/response_base.rb'
28
+ autoload :SpellingFlaggedToken, '1.0/generated/azure_cognitiveservices_spellcheck/models/spelling_flagged_token.rb'
29
+ autoload :Error, '1.0/generated/azure_cognitiveservices_spellcheck/models/error.rb'
30
+ autoload :SpellCheck, '1.0/generated/azure_cognitiveservices_spellcheck/models/spell_check.rb'
31
+ autoload :Identifiable, '1.0/generated/azure_cognitiveservices_spellcheck/models/identifiable.rb'
32
+ autoload :Response, '1.0/generated/azure_cognitiveservices_spellcheck/models/response.rb'
33
+ autoload :Answer, '1.0/generated/azure_cognitiveservices_spellcheck/models/answer.rb'
34
+ autoload :ErrorResponse, '1.0/generated/azure_cognitiveservices_spellcheck/models/error_response.rb'
35
+ autoload :ErrorType, '1.0/generated/azure_cognitiveservices_spellcheck/models/error_type.rb'
36
+ autoload :ErrorCode, '1.0/generated/azure_cognitiveservices_spellcheck/models/error_code.rb'
37
+ autoload :ErrorSubCode, '1.0/generated/azure_cognitiveservices_spellcheck/models/error_sub_code.rb'
38
+ autoload :ActionType, '1.0/generated/azure_cognitiveservices_spellcheck/models/action_type.rb'
39
+ autoload :Mode, '1.0/generated/azure_cognitiveservices_spellcheck/models/mode.rb'
40
+ end
41
+ 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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ActionType
10
+ #
11
+ module ActionType
12
+ Edit = "Edit"
13
+ Load = "Load"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,60 @@
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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class Answer < Response
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Answer"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for Answer 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: 'Answer',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'Answer',
36
+ model_properties: {
37
+ _type: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: '_type',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,116 @@
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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Defines the error that occurred.
10
+ #
11
+ class Error
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorCode] The error code that identifies the category of
16
+ # error. Possible values include: 'None', 'ServerError',
17
+ # 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization',
18
+ # 'InsufficientAuthorization'. Default value: 'None' .
19
+ attr_accessor :code
20
+
21
+ # @return [ErrorSubCode] The error code that further helps to identify
22
+ # the error. Possible values include: 'UnexpectedError', 'ResourceError',
23
+ # 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue',
24
+ # 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing',
25
+ # 'AuthorizationRedundancy', 'AuthorizationDisabled',
26
+ # 'AuthorizationExpired'
27
+ attr_accessor :sub_code
28
+
29
+ # @return [String] A description of the error.
30
+ attr_accessor :message
31
+
32
+ # @return [String] A description that provides additional information
33
+ # about the error.
34
+ attr_accessor :more_details
35
+
36
+ # @return [String] The parameter in the request that caused the error.
37
+ attr_accessor :parameter
38
+
39
+ # @return [String] The parameter's value in the request that was not
40
+ # valid.
41
+ attr_accessor :value
42
+
43
+
44
+ #
45
+ # Mapper for Error class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Error',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Error',
56
+ model_properties: {
57
+ code: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'code',
61
+ default_value: 'None',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ sub_code: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'subCode',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ message: {
76
+ client_side_validation: true,
77
+ required: true,
78
+ serialized_name: 'message',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ more_details: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'moreDetails',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ parameter: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'parameter',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ value: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'value',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,20 @@
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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ErrorCode
10
+ #
11
+ module ErrorCode
12
+ None = "None"
13
+ ServerError = "ServerError"
14
+ InvalidRequest = "InvalidRequest"
15
+ RateLimitExceeded = "RateLimitExceeded"
16
+ InvalidAuthorization = "InvalidAuthorization"
17
+ InsufficientAuthorization = "InsufficientAuthorization"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,80 @@
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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # The top-level response that represents a failed request.
10
+ #
11
+ class ErrorResponse < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ErrorResponse"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<Error>] A list of errors that describe the reasons why
23
+ # the request failed.
24
+ attr_accessor :errors
25
+
26
+
27
+ #
28
+ # Mapper for ErrorResponse class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'ErrorResponse',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorResponse',
39
+ model_properties: {
40
+ _type: {
41
+ client_side_validation: true,
42
+ required: true,
43
+ serialized_name: '_type',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ errors: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'errors',
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'ErrorElementType',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'Error'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,25 @@
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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ErrorSubCode
10
+ #
11
+ module ErrorSubCode
12
+ UnexpectedError = "UnexpectedError"
13
+ ResourceError = "ResourceError"
14
+ NotImplemented = "NotImplemented"
15
+ ParameterMissing = "ParameterMissing"
16
+ ParameterInvalidValue = "ParameterInvalidValue"
17
+ HttpNotAllowed = "HttpNotAllowed"
18
+ Blocked = "Blocked"
19
+ AuthorizationMissing = "AuthorizationMissing"
20
+ AuthorizationRedundancy = "AuthorizationRedundancy"
21
+ AuthorizationDisabled = "AuthorizationDisabled"
22
+ AuthorizationExpired = "AuthorizationExpired"
23
+ end
24
+ end
25
+ 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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ErrorType
10
+ #
11
+ module ErrorType
12
+ UnknownToken = "UnknownToken"
13
+ RepeatedToken = "RepeatedToken"
14
+ end
15
+ end
16
+ end
@@ -0,0 +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::SpellCheck::V1_0
7
+ module Models
8
+ #
9
+ # Defines the identity of a resource.
10
+ #
11
+ class Identifiable < ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Identifiable"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] A String identifier.
23
+ attr_accessor :id
24
+
25
+
26
+ #
27
+ # Mapper for Identifiable 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: 'Identifiable',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Identifiable',
38
+ model_properties: {
39
+ _type: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: '_type',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end