azure_cognitiveservices_imagesearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_imagesearch.rb +86 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/image_search_client.rb +127 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb +2526 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/aggregate_offer.rb +211 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/aggregate_rating.rb +89 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/answer.rb +77 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/collection_page.rb +177 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/creative_work.rb +190 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/currency.rb +175 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error.rb +116 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error_code.rb +20 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error_response.rb +98 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error_sub_code.rb +25 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/freshness.rb +17 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/identifiable.rb +62 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_aspect.rb +18 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_color.rb +28 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_content.rb +16 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_crop_type.rb +15 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_gallery.rb +216 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_insight_module.rb +26 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_insights.rb +267 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_insights_image_caption.rb +82 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_license.rb +21 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_object.rb +326 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_size.rb +19 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_tags_module.rb +59 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_type.rb +20 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images.rb +191 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_image_metadata.rb +80 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_module.rb +56 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/insights_tag.rb +48 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/intangible.rb +133 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/item_availability.rb +22 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/media_object.rb +263 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/normalized_rectangle.rb +179 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/offer.rb +231 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/organization.rb +132 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/person.rb +156 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/pivot_suggestions.rb +66 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/properties_item.rb +59 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/query.rb +104 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/rating.rb +84 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recipe.rb +219 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recipes_module.rb +56 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entities_module.rb +56 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entity.rb +105 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entity_group.rb +72 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entity_region.rb +122 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/related_collections_module.rb +57 -0
  53. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/related_searches_module.rb +56 -0
  54. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/response.rb +84 -0
  55. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/response_base.rb +70 -0
  56. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/safe_search.rb +17 -0
  57. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/search_results_answer.rb +91 -0
  58. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/structured_value.rb +133 -0
  59. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/thing.rb +151 -0
  60. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images.rb +99 -0
  61. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_category.rb +71 -0
  62. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_tile.rb +63 -0
  63. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/web_page.rb +177 -0
  64. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/module_definition.rb +9 -0
  65. data/lib/azure_cognitiveservices_imagesearch.rb +6 -0
  66. data/lib/module_definition.rb +7 -0
  67. data/lib/profiles/latest/imagesearch_latest_profile_client.rb +38 -0
  68. data/lib/profiles/latest/imagesearch_module_definition.rb +8 -0
  69. data/lib/profiles/latest/modules/imagesearch_profile_module.rb +291 -0
  70. data/lib/version.rb +7 -0
  71. metadata +188 -0
@@ -0,0 +1,133 @@
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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # A utility class that serves as the umbrella for a number of 'intangible'
10
+ # things such as quantities, structured values, etc.
11
+ #
12
+ class Intangible < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Intangible"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for Intangible 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: 'Intangible',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'Intangible',
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
+ read_link: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'readLink',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ web_search_url: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'webSearchUrl',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ name: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'name',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ url: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'url',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ image: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'image',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'ImageObject'
98
+ }
99
+ },
100
+ description: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'description',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ alternate_name: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'alternateName',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ bing_id: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'bingId',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,22 @@
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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ItemAvailability
10
+ #
11
+ module ItemAvailability
12
+ Discontinued = "Discontinued"
13
+ InStock = "InStock"
14
+ InStoreOnly = "InStoreOnly"
15
+ LimitedAvailability = "LimitedAvailability"
16
+ OnlineOnly = "OnlineOnly"
17
+ OutOfStock = "OutOfStock"
18
+ PreOrder = "PreOrder"
19
+ SoldOut = "SoldOut"
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,263 @@
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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a media object.
10
+ #
11
+ class MediaObject < CreativeWork
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "MediaObject"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] Original URL to retrieve the source (file) for the
23
+ # media object (e.g the source URL for the image).
24
+ attr_accessor :content_url
25
+
26
+ # @return [String] URL of the page that hosts the media object.
27
+ attr_accessor :host_page_url
28
+
29
+ # @return [String] Size of the media object content (use format "value
30
+ # unit" e.g "1024 B").
31
+ attr_accessor :content_size
32
+
33
+ # @return [String] Encoding format (e.g mp3, mp4, jpeg, etc).
34
+ attr_accessor :encoding_format
35
+
36
+ # @return [String] Display URL of the page that hosts the media object.
37
+ attr_accessor :host_page_display_url
38
+
39
+ # @return [Integer] The width of the source media object, in pixels.
40
+ attr_accessor :width
41
+
42
+ # @return [Integer] The height of the source media object, in pixels.
43
+ attr_accessor :height
44
+
45
+
46
+ #
47
+ # Mapper for MediaObject class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'MediaObject',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'MediaObject',
58
+ model_properties: {
59
+ _type: {
60
+ client_side_validation: true,
61
+ required: true,
62
+ serialized_name: '_type',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ id: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'id',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ read_link: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'readLink',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ web_search_url: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'webSearchUrl',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ name: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'name',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ url: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ read_only: true,
107
+ serialized_name: 'url',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ image: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ read_only: true,
116
+ serialized_name: 'image',
117
+ type: {
118
+ name: 'Composite',
119
+ class_name: 'ImageObject'
120
+ }
121
+ },
122
+ description: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ read_only: true,
126
+ serialized_name: 'description',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ alternate_name: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ read_only: true,
135
+ serialized_name: 'alternateName',
136
+ type: {
137
+ name: 'String'
138
+ }
139
+ },
140
+ bing_id: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ read_only: true,
144
+ serialized_name: 'bingId',
145
+ type: {
146
+ name: 'String'
147
+ }
148
+ },
149
+ thumbnail_url: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ read_only: true,
153
+ serialized_name: 'thumbnailUrl',
154
+ type: {
155
+ name: 'String'
156
+ }
157
+ },
158
+ provider: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ read_only: true,
162
+ serialized_name: 'provider',
163
+ type: {
164
+ name: 'Sequence',
165
+ element: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ serialized_name: 'ThingElementType',
169
+ type: {
170
+ name: 'Composite',
171
+ class_name: 'Thing'
172
+ }
173
+ }
174
+ }
175
+ },
176
+ date_published: {
177
+ client_side_validation: true,
178
+ required: false,
179
+ read_only: true,
180
+ serialized_name: 'datePublished',
181
+ type: {
182
+ name: 'String'
183
+ }
184
+ },
185
+ text: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ read_only: true,
189
+ serialized_name: 'text',
190
+ type: {
191
+ name: 'String'
192
+ }
193
+ },
194
+ content_url: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ read_only: true,
198
+ serialized_name: 'contentUrl',
199
+ type: {
200
+ name: 'String'
201
+ }
202
+ },
203
+ host_page_url: {
204
+ client_side_validation: true,
205
+ required: false,
206
+ read_only: true,
207
+ serialized_name: 'hostPageUrl',
208
+ type: {
209
+ name: 'String'
210
+ }
211
+ },
212
+ content_size: {
213
+ client_side_validation: true,
214
+ required: false,
215
+ read_only: true,
216
+ serialized_name: 'contentSize',
217
+ type: {
218
+ name: 'String'
219
+ }
220
+ },
221
+ encoding_format: {
222
+ client_side_validation: true,
223
+ required: false,
224
+ read_only: true,
225
+ serialized_name: 'encodingFormat',
226
+ type: {
227
+ name: 'String'
228
+ }
229
+ },
230
+ host_page_display_url: {
231
+ client_side_validation: true,
232
+ required: false,
233
+ read_only: true,
234
+ serialized_name: 'hostPageDisplayUrl',
235
+ type: {
236
+ name: 'String'
237
+ }
238
+ },
239
+ width: {
240
+ client_side_validation: true,
241
+ required: false,
242
+ read_only: true,
243
+ serialized_name: 'width',
244
+ type: {
245
+ name: 'Number'
246
+ }
247
+ },
248
+ height: {
249
+ client_side_validation: true,
250
+ required: false,
251
+ read_only: true,
252
+ serialized_name: 'height',
253
+ type: {
254
+ name: 'Number'
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
260
+ end
261
+ end
262
+ end
263
+ end
@@ -0,0 +1,179 @@
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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a region of an image. The region is defined by the coordinates of
10
+ # the top, left corner and bottom, right corner of the region. The
11
+ # coordinates are fractional values of the original image's width and
12
+ # height in the range 0.0 through 1.0.
13
+ #
14
+ class NormalizedRectangle < StructuredValue
15
+
16
+ include MsRestAzure
17
+
18
+
19
+ def initialize
20
+ @_type = "NormalizedRectangle"
21
+ end
22
+
23
+ attr_accessor :_type
24
+
25
+ # @return [Float] The left coordinate.
26
+ attr_accessor :left
27
+
28
+ # @return [Float] The top coordinate
29
+ attr_accessor :top
30
+
31
+ # @return [Float] The right coordinate
32
+ attr_accessor :right
33
+
34
+ # @return [Float] The bottom coordinate
35
+ attr_accessor :bottom
36
+
37
+
38
+ #
39
+ # Mapper for NormalizedRectangle class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'NormalizedRectangle',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'NormalizedRectangle',
50
+ model_properties: {
51
+ _type: {
52
+ client_side_validation: true,
53
+ required: true,
54
+ serialized_name: '_type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ id: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'id',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ read_link: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'readLink',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ web_search_url: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'webSearchUrl',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ name: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'name',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ url: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'url',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ image: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'image',
109
+ type: {
110
+ name: 'Composite',
111
+ class_name: 'ImageObject'
112
+ }
113
+ },
114
+ description: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ read_only: true,
118
+ serialized_name: 'description',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ alternate_name: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ read_only: true,
127
+ serialized_name: 'alternateName',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ bing_id: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ read_only: true,
136
+ serialized_name: 'bingId',
137
+ type: {
138
+ name: 'String'
139
+ }
140
+ },
141
+ left: {
142
+ client_side_validation: true,
143
+ required: true,
144
+ serialized_name: 'left',
145
+ type: {
146
+ name: 'Double'
147
+ }
148
+ },
149
+ top: {
150
+ client_side_validation: true,
151
+ required: true,
152
+ serialized_name: 'top',
153
+ type: {
154
+ name: 'Double'
155
+ }
156
+ },
157
+ right: {
158
+ client_side_validation: true,
159
+ required: true,
160
+ serialized_name: 'right',
161
+ type: {
162
+ name: 'Double'
163
+ }
164
+ },
165
+ bottom: {
166
+ client_side_validation: true,
167
+ required: true,
168
+ serialized_name: 'bottom',
169
+ type: {
170
+ name: 'Double'
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+ end
177
+ end
178
+ end
179
+ end