azure_cognitiveservices_customimagesearch 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch.rb +52 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/custom_instance.rb +1015 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/customimagesearch_client.rb +133 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/answer.rb +77 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/creative_work.rb +178 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error.rb +116 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_code.rb +20 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_response.rb +98 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_sub_code.rb +25 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/freshness.rb +17 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/identifiable.rb +62 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_aspect.rb +18 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_color.rb +28 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_content.rb +16 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_license.rb +21 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_object.rb +298 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_size.rb +19 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_type.rb +20 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/images.rb +120 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/media_object.rb +254 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/query.rb +104 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/response.rb +84 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/response_base.rb +56 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/safe_search.rb +17 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/search_results_answer.rb +91 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/thing.rb +151 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/web_page.rb +168 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/module_definition.rb +9 -0
  31. data/lib/azure_cognitiveservices_customimagesearch.rb +6 -0
  32. data/lib/module_definition.rb +7 -0
  33. data/lib/profiles/latest/customimagesearch_latest_profile_client.rb +38 -0
  34. data/lib/profiles/latest/customimagesearch_module_definition.rb +8 -0
  35. data/lib/profiles/latest/modules/customimagesearch_profile_module.rb +155 -0
  36. data/lib/version.rb +7 -0
  37. metadata +155 -0
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::CognitiveServices end
8
+ module Azure::CognitiveServices::Customimagesearch end
9
+ module Azure::CognitiveServices::Customimagesearch::V1_0 end
@@ -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_customimagesearch'
6
+ require 'profiles/latest/customimagesearch_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::Customimagesearch 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/customimagesearch_module_definition'
6
+ require 'profiles/latest/modules/customimagesearch_profile_module'
7
+
8
+ module Azure::Customimagesearch::Profiles::Latest
9
+ #
10
+ # Client class for the Latest profile SDK.
11
+ #
12
+ class Client < CustomimagesearchDataClass
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::Customimagesearch end
7
+ module Azure::Customimagesearch::Profiles end
8
+ module Azure::Customimagesearch::Profiles::Latest end
@@ -0,0 +1,155 @@
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_customimagesearch'
6
+
7
+ module Azure::Customimagesearch::Profiles::Latest
8
+ CustomInstance = Azure::CognitiveServices::Customimagesearch::V1_0::CustomInstance
9
+
10
+ module Models
11
+ Query = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Query
12
+ Error = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Error
13
+ ResponseBase = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ResponseBase
14
+ ImageObject = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageObject
15
+ Images = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Images
16
+ Response = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Response
17
+ Answer = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Answer
18
+ SearchResultsAnswer = Azure::CognitiveServices::Customimagesearch::V1_0::Models::SearchResultsAnswer
19
+ MediaObject = Azure::CognitiveServices::Customimagesearch::V1_0::Models::MediaObject
20
+ Thing = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Thing
21
+ CreativeWork = Azure::CognitiveServices::Customimagesearch::V1_0::Models::CreativeWork
22
+ Identifiable = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Identifiable
23
+ ErrorResponse = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorResponse
24
+ WebPage = Azure::CognitiveServices::Customimagesearch::V1_0::Models::WebPage
25
+ ErrorCode = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorCode
26
+ ErrorSubCode = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorSubCode
27
+ ImageAspect = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageAspect
28
+ ImageColor = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageColor
29
+ Freshness = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Freshness
30
+ ImageContent = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageContent
31
+ ImageType = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageType
32
+ ImageLicense = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageLicense
33
+ SafeSearch = Azure::CognitiveServices::Customimagesearch::V1_0::Models::SafeSearch
34
+ ImageSize = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageSize
35
+ end
36
+
37
+ #
38
+ # CustomimagesearchDataClass
39
+ #
40
+ class CustomimagesearchDataClass
41
+ attr_reader :custom_instance, :configurable, :base_url, :options, :model_classes
42
+
43
+ def initialize(options = {})
44
+ if options.is_a?(Hash) && options.length == 0
45
+ @options = setup_default_options
46
+ else
47
+ @options = options
48
+ end
49
+
50
+ reset!(options)
51
+
52
+ @configurable = self
53
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
54
+ @options = options[:options].nil? ? nil:options[:options]
55
+
56
+ @client_0 = Azure::CognitiveServices::Customimagesearch::V1_0::CustomimagesearchClient.new(configurable.credentials, options)
57
+ if(@client_0.respond_to?(:subscription_id))
58
+ @client_0.subscription_id = configurable.subscription_id
59
+ end
60
+ add_telemetry(@client_0)
61
+ @custom_instance = @client_0.custom_instance
62
+
63
+ @model_classes = ModelClasses.new
64
+ end
65
+
66
+ def add_telemetry(client)
67
+ profile_information = 'Profiles/Latest/Customimagesearch'
68
+ client.add_user_agent_information(profile_information)
69
+ end
70
+
71
+ def method_missing(method, *args)
72
+ if @client_0.respond_to?method
73
+ @client_0.send(method, *args)
74
+ else
75
+ super
76
+ end
77
+ end
78
+
79
+ end
80
+
81
+ class ModelClasses
82
+ def query
83
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Query
84
+ end
85
+ def error
86
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Error
87
+ end
88
+ def response_base
89
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ResponseBase
90
+ end
91
+ def image_object
92
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageObject
93
+ end
94
+ def images
95
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Images
96
+ end
97
+ def response
98
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Response
99
+ end
100
+ def answer
101
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Answer
102
+ end
103
+ def search_results_answer
104
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::SearchResultsAnswer
105
+ end
106
+ def media_object
107
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::MediaObject
108
+ end
109
+ def thing
110
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Thing
111
+ end
112
+ def creative_work
113
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::CreativeWork
114
+ end
115
+ def identifiable
116
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Identifiable
117
+ end
118
+ def error_response
119
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorResponse
120
+ end
121
+ def web_page
122
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::WebPage
123
+ end
124
+ def error_code
125
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorCode
126
+ end
127
+ def error_sub_code
128
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorSubCode
129
+ end
130
+ def image_aspect
131
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageAspect
132
+ end
133
+ def image_color
134
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageColor
135
+ end
136
+ def freshness
137
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::Freshness
138
+ end
139
+ def image_content
140
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageContent
141
+ end
142
+ def image_type
143
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageType
144
+ end
145
+ def image_license
146
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageLicense
147
+ end
148
+ def safe_search
149
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::SafeSearch
150
+ end
151
+ def image_size
152
+ Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageSize
153
+ end
154
+ end
155
+ end
data/lib/version.rb ADDED
@@ -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::Customimagesearch
6
+ VERSION = '0.17.0'
7
+ end
metadata ADDED
@@ -0,0 +1,155 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_cognitiveservices_customimagesearch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.17.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-08 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.11.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.11.0
83
+ description: Microsoft Azure Cognitive Services Custom Image Search Client Library
84
+ for Ruby
85
+ email: azrubyteam@microsoft.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - LICENSE.txt
91
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch.rb
92
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/custom_instance.rb
93
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/customimagesearch_client.rb
94
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/answer.rb
95
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/creative_work.rb
96
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error.rb
97
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_code.rb
98
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_response.rb
99
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_sub_code.rb
100
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/freshness.rb
101
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/identifiable.rb
102
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_aspect.rb
103
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_color.rb
104
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_content.rb
105
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_license.rb
106
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_object.rb
107
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_size.rb
108
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_type.rb
109
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/images.rb
110
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/media_object.rb
111
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/query.rb
112
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/response.rb
113
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/response_base.rb
114
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/safe_search.rb
115
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/search_results_answer.rb
116
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/thing.rb
117
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/web_page.rb
118
+ - lib/1.0/generated/azure_cognitiveservices_customimagesearch/module_definition.rb
119
+ - lib/azure_cognitiveservices_customimagesearch.rb
120
+ - lib/module_definition.rb
121
+ - lib/profiles/latest/customimagesearch_latest_profile_client.rb
122
+ - lib/profiles/latest/customimagesearch_module_definition.rb
123
+ - lib/profiles/latest/modules/customimagesearch_profile_module.rb
124
+ - lib/version.rb
125
+ homepage: https://aka.ms/azure-sdk-for-ruby
126
+ licenses:
127
+ - MIT
128
+ metadata:
129
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
130
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
131
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
132
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
133
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/data/azure_cognitiveservices_customimagesearch
134
+ post_install_message:
135
+ rdoc_options: []
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: 2.0.0
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ requirements: []
149
+ rubyforge_project:
150
+ rubygems_version: 2.5.1
151
+ signing_key:
152
+ specification_version: 4
153
+ summary: Official Ruby client library to consume Microsoft Azure Cognitive Services
154
+ Custom Image Search.
155
+ test_files: []