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,211 @@
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 list of offers from merchants that are related to the image.
10
+ #
11
+ class AggregateOffer < Offer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "AggregateOffer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<Offer>] A list of offers from merchants that have
23
+ # offerings related to the image.
24
+ attr_accessor :offers
25
+
26
+
27
+ #
28
+ # Mapper for AggregateOffer 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: 'AggregateOffer',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'AggregateOffer',
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
+ read_link: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'readLink',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ web_search_url: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'webSearchUrl',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ name: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'name',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ url: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'url',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ image: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'image',
98
+ type: {
99
+ name: 'Composite',
100
+ class_name: 'ImageObject'
101
+ }
102
+ },
103
+ description: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ read_only: true,
107
+ serialized_name: 'description',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ alternate_name: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ read_only: true,
116
+ serialized_name: 'alternateName',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ bing_id: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ read_only: true,
125
+ serialized_name: 'bingId',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ seller: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ read_only: true,
134
+ serialized_name: 'seller',
135
+ type: {
136
+ name: 'Composite',
137
+ class_name: 'Organization'
138
+ }
139
+ },
140
+ price: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ read_only: true,
144
+ serialized_name: 'price',
145
+ type: {
146
+ name: 'Double'
147
+ }
148
+ },
149
+ price_currency: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ read_only: true,
153
+ serialized_name: 'priceCurrency',
154
+ default_value: 'USD',
155
+ type: {
156
+ name: 'String'
157
+ }
158
+ },
159
+ availability: {
160
+ client_side_validation: true,
161
+ required: false,
162
+ read_only: true,
163
+ serialized_name: 'availability',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ aggregate_rating: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'aggregateRating',
173
+ type: {
174
+ name: 'Composite',
175
+ class_name: 'AggregateRating'
176
+ }
177
+ },
178
+ last_updated: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ read_only: true,
182
+ serialized_name: 'lastUpdated',
183
+ type: {
184
+ name: 'String'
185
+ }
186
+ },
187
+ offers: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ read_only: true,
191
+ serialized_name: 'offers',
192
+ type: {
193
+ name: 'Sequence',
194
+ element: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ serialized_name: 'OfferElementType',
198
+ type: {
199
+ name: 'Composite',
200
+ class_name: 'Offer'
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ end
209
+ end
210
+ end
211
+ end
@@ -0,0 +1,89 @@
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 the metrics that indicate how well an item was rated by others.
10
+ #
11
+ class AggregateRating < Rating
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "AggregateRating"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Integer] The number of times the recipe has been rated or
23
+ # reviewed.
24
+ attr_accessor :review_count
25
+
26
+
27
+ #
28
+ # Mapper for AggregateRating 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: 'AggregateRating',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'AggregateRating',
39
+ model_properties: {
40
+ text: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ read_only: true,
44
+ serialized_name: 'text',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ _type: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: '_type',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ rating_value: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'ratingValue',
61
+ type: {
62
+ name: 'Double'
63
+ }
64
+ },
65
+ best_rating: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'bestRating',
70
+ type: {
71
+ name: 'Double'
72
+ }
73
+ },
74
+ review_count: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'reviewCount',
79
+ type: {
80
+ name: 'Number'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,77 @@
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 an answer.
10
+ #
11
+ class Answer < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Answer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+
23
+ #
24
+ # Mapper for Answer class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'Answer',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'Answer',
35
+ model_properties: {
36
+ _type: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: '_type',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ read_link: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'readLink',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ web_search_url: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'webSearchUrl',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,177 @@
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 link to a webpage that contains a collection.
10
+ #
11
+ class CollectionPage < WebPage
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "CollectionPage"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+
23
+ #
24
+ # Mapper for CollectionPage class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'CollectionPage',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'CollectionPage',
35
+ model_properties: {
36
+ _type: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: '_type',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ read_link: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'readLink',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ web_search_url: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'webSearchUrl',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ name: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'name',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ url: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'url',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ image: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'image',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'ImageObject'
97
+ }
98
+ },
99
+ description: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'description',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ alternate_name: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'alternateName',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ bing_id: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'bingId',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ thumbnail_url: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'thumbnailUrl',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ provider: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: 'provider',
140
+ type: {
141
+ name: 'Sequence',
142
+ element: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ serialized_name: 'ThingElementType',
146
+ type: {
147
+ name: 'Composite',
148
+ class_name: 'Thing'
149
+ }
150
+ }
151
+ }
152
+ },
153
+ date_published: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ read_only: true,
157
+ serialized_name: 'datePublished',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ },
162
+ text: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ read_only: true,
166
+ serialized_name: 'text',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ end
175
+ end
176
+ end
177
+ end