azure_cognitiveservices_visualsearch 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_visualsearch.rb +75 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/images.rb +639 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/action.rb +237 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/aggregate_offer.rb +211 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/aggregate_rating.rb +89 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/content_types.rb +20 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/creative_work.rb +190 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/crop_area.rb +92 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/currency.rb +175 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/error.rb +116 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/error_code.rb +20 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/error_response.rb +98 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/error_sub_code.rb +25 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/filters.rb +48 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/identifiable.rb +62 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_action.rb +234 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_entity_action.rb +231 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_info.rb +86 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_knowledge.rb +112 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_module_action.rb +244 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_object.rb +326 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_recipes_action.rb +244 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_related_searches_action.rb +244 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_shopping_sources_action.rb +245 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_tag.rb +182 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/image_tag_region.rb +61 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/images_image_metadata.rb +80 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/images_module.rb +56 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/intangible.rb +133 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/item_availability.rb +22 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/knowledge_request.rb +49 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/media_object.rb +263 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/normalized_quadrilateral.rb +183 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/offer.rb +231 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/organization.rb +132 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/person.rb +156 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/point2d.rb +154 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/properties_item.rb +59 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/query.rb +101 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/rating.rb +84 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/recipe.rb +219 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/recipes_module.rb +56 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/related_searches_module.rb +56 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/response.rb +86 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/response_base.rb +70 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/safe_search.rb +17 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/structured_value.rb +133 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/thing.rb +151 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/models/visual_search_request.rb +62 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/module_definition.rb +9 -0
  53. data/lib/1.0/generated/azure_cognitiveservices_visualsearch/visual_search_client.rb +128 -0
  54. data/lib/azure_cognitiveservices_visualsearch.rb +6 -0
  55. data/lib/module_definition.rb +7 -0
  56. data/lib/profiles/latest/modules/visualsearch_profile_module.rb +247 -0
  57. data/lib/profiles/latest/visualsearch_latest_profile_client.rb +38 -0
  58. data/lib/profiles/latest/visualsearch_module_definition.rb +8 -0
  59. data/lib/version.rb +7 -0
  60. metadata +177 -0
@@ -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::VisualSearch::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,49 @@
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::VisualSearch::V1_0
7
+ module Models
8
+ #
9
+ # A JSON object containing information about the request, such as filters
10
+ # for the resulting actions.
11
+ #
12
+ class KnowledgeRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Filters] A key-value object consisting of filters that may be
17
+ # specified to limit the results returned by the API.
18
+ attr_accessor :filters
19
+
20
+
21
+ #
22
+ # Mapper for KnowledgeRequest class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'KnowledgeRequest',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'KnowledgeRequest',
33
+ model_properties: {
34
+ filters: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'filters',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'Filters'
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ end
47
+ end
48
+ end
49
+ 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::VisualSearch::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., png, gif, 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 media object, in pixels.
40
+ attr_accessor :width
41
+
42
+ # @return [Integer] The height of the 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,183 @@
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::VisualSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a region of an image. The region is a convex quadrilateral
10
+ # defined by coordinates of its top left, top right, bottom left, and
11
+ # bottom right points. The coordinates are fractional values of the
12
+ # original image's width and height in the range 0.0 through 1.0.
13
+ #
14
+ class NormalizedQuadrilateral < StructuredValue
15
+
16
+ include MsRestAzure
17
+
18
+
19
+ def initialize
20
+ @_type = "NormalizedQuadrilateral"
21
+ end
22
+
23
+ attr_accessor :_type
24
+
25
+ # @return [Point2D] The top left corner coordinate.
26
+ attr_accessor :top_left
27
+
28
+ # @return [Point2D] The top right corner coordinate.
29
+ attr_accessor :top_right
30
+
31
+ # @return [Point2D] The bottom right corner coordinate.
32
+ attr_accessor :bottom_right
33
+
34
+ # @return [Point2D] The bottom left corner coordinate.
35
+ attr_accessor :bottom_left
36
+
37
+
38
+ #
39
+ # Mapper for NormalizedQuadrilateral 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: 'NormalizedQuadrilateral',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'NormalizedQuadrilateral',
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
+ top_left: {
142
+ client_side_validation: true,
143
+ required: true,
144
+ serialized_name: 'topLeft',
145
+ type: {
146
+ name: 'Composite',
147
+ class_name: 'Point2D'
148
+ }
149
+ },
150
+ top_right: {
151
+ client_side_validation: true,
152
+ required: true,
153
+ serialized_name: 'topRight',
154
+ type: {
155
+ name: 'Composite',
156
+ class_name: 'Point2D'
157
+ }
158
+ },
159
+ bottom_right: {
160
+ client_side_validation: true,
161
+ required: true,
162
+ serialized_name: 'bottomRight',
163
+ type: {
164
+ name: 'Composite',
165
+ class_name: 'Point2D'
166
+ }
167
+ },
168
+ bottom_left: {
169
+ client_side_validation: true,
170
+ required: true,
171
+ serialized_name: 'bottomLeft',
172
+ type: {
173
+ name: 'Composite',
174
+ class_name: 'Point2D'
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ end
181
+ end
182
+ end
183
+ end