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,6 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require '1.0/generated/azure_cognitiveservices_spellcheck'
6
+ require 'profiles/latest/spellcheck_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::CognitiveServices end
7
+ module Azure::CognitiveServices::SpellCheck end
@@ -0,0 +1,113 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_cognitiveservices_spellcheck'
6
+
7
+ module Azure::SpellCheck::Profiles::Latest
8
+
9
+ module Models
10
+ SpellingTokenSuggestion = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion
11
+ ResponseBase = Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase
12
+ SpellingFlaggedToken = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken
13
+ Error = Azure::CognitiveServices::SpellCheck::V1_0::Models::Error
14
+ SpellCheck = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck
15
+ Identifiable = Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable
16
+ Response = Azure::CognitiveServices::SpellCheck::V1_0::Models::Response
17
+ Answer = Azure::CognitiveServices::SpellCheck::V1_0::Models::Answer
18
+ ErrorResponse = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse
19
+ ErrorType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType
20
+ ErrorCode = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode
21
+ ErrorSubCode = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode
22
+ ActionType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType
23
+ Mode = Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode
24
+ end
25
+
26
+ #
27
+ # SpellCheckDataClass
28
+ #
29
+ class SpellCheckDataClass
30
+ attr_reader :configurable, :base_url, :options, :model_classes
31
+
32
+ def initialize(options = {})
33
+ if options.is_a?(Hash) && options.length == 0
34
+ @options = setup_default_options
35
+ else
36
+ @options = options
37
+ end
38
+
39
+ reset!(options)
40
+
41
+ @configurable = self
42
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
43
+ @options = options[:options].nil? ? nil:options[:options]
44
+
45
+ @client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.new(configurable.credentials, base_url, options)
46
+ if(@client_0.respond_to?(:subscription_id))
47
+ @client_0.subscription_id = configurable.subscription_id
48
+ end
49
+ add_telemetry(@client_0)
50
+
51
+ @model_classes = ModelClasses.new
52
+ end
53
+
54
+ def add_telemetry(client)
55
+ profile_information = 'Profiles/Latest/SpellCheck'
56
+ client.add_user_agent_information(profile_information)
57
+ end
58
+
59
+ def method_missing(method, *args)
60
+ if @client_0.respond_to?method
61
+ @client_0.send(method, *args)
62
+ else
63
+ super
64
+ end
65
+ end
66
+
67
+ end
68
+
69
+ class ModelClasses
70
+ def spelling_token_suggestion
71
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion
72
+ end
73
+ def response_base
74
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase
75
+ end
76
+ def spelling_flagged_token
77
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken
78
+ end
79
+ def error
80
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::Error
81
+ end
82
+ def spell_check
83
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck
84
+ end
85
+ def identifiable
86
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable
87
+ end
88
+ def response
89
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::Response
90
+ end
91
+ def answer
92
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::Answer
93
+ end
94
+ def error_response
95
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse
96
+ end
97
+ def error_type
98
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType
99
+ end
100
+ def error_code
101
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode
102
+ end
103
+ def error_sub_code
104
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode
105
+ end
106
+ def action_type
107
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType
108
+ end
109
+ def mode
110
+ Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,38 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/spellcheck_module_definition'
6
+ require 'profiles/latest/modules/spellcheck_profile_module'
7
+
8
+ module Azure::SpellCheck::Profiles::Latest
9
+ #
10
+ # Client class for the Latest profile SDK.
11
+ #
12
+ class Client < SpellCheckDataClass
13
+ include MsRestAzure::Common::Configurable
14
+
15
+ #
16
+ # Initializes a new instance of the Client class.
17
+ # @param options [Hash] hash of client options.
18
+ # options = {
19
+ # tenant_id: 'YOUR TENANT ID',
20
+ # client_id: 'YOUR CLIENT ID',
21
+ # client_secret: 'YOUR CLIENT SECRET',
22
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
23
+ # credentials: credentials,
24
+ # active_directory_settings: active_directory_settings,
25
+ # base_url: 'YOUR BASE URL',
26
+ # options: options
27
+ # }
28
+ # 'credentials' are optional and if not passed in the hash, will be obtained
29
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
30
+ #
31
+ # Also, base_url, active_directory_settings & options are optional.
32
+ #
33
+ def initialize(options = {})
34
+ super(options)
35
+ end
36
+
37
+ end
38
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::SpellCheck end
7
+ module Azure::SpellCheck::Profiles end
8
+ module Azure::SpellCheck::Profiles::Latest end
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::CognitiveServices::SpellCheck
6
+ VERSION = '0.16.0'
7
+ end
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_cognitiveservices_spellcheck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.16.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ms_rest_azure
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.10.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.10.0
83
+ description: Microsoft Azure Cognitive Services Spell Check Client Library for Ruby
84
+ email: azrubyteam@microsoft.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - LICENSE.txt
90
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck.rb
91
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/action_type.rb
92
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/answer.rb
93
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error.rb
94
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_code.rb
95
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_response.rb
96
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_sub_code.rb
97
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_type.rb
98
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/identifiable.rb
99
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/mode.rb
100
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/response.rb
101
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/response_base.rb
102
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/spell_check.rb
103
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/spelling_flagged_token.rb
104
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/models/spelling_token_suggestion.rb
105
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/module_definition.rb
106
+ - lib/1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb
107
+ - lib/azure_cognitiveservices_spellcheck.rb
108
+ - lib/module_definition.rb
109
+ - lib/profiles/latest/modules/spellcheck_profile_module.rb
110
+ - lib/profiles/latest/spellcheck_latest_profile_client.rb
111
+ - lib/profiles/latest/spellcheck_module_definition.rb
112
+ - lib/version.rb
113
+ homepage: https://aka.ms/azure-sdk-for-ruby
114
+ licenses:
115
+ - MIT
116
+ metadata:
117
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
118
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
119
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
120
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
121
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/data/azure_cognitiveservices_spellcheck
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: 2.0.0
131
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements: []
137
+ rubyforge_project:
138
+ rubygems_version: 2.5.1
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: Official Ruby client library to consume Microsoft Azure Cognitive Services
142
+ Spell Check.
143
+ test_files: []