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,66 @@
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 pivot segment.
10
+ #
11
+ class PivotSuggestions
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The segment from the original query to pivot on.
16
+ attr_accessor :pivot
17
+
18
+ # @return [Array<Query>] A list of suggested queries for the pivot.
19
+ attr_accessor :suggestions
20
+
21
+
22
+ #
23
+ # Mapper for PivotSuggestions class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'PivotSuggestions',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'PivotSuggestions',
34
+ model_properties: {
35
+ pivot: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'pivot',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ suggestions: {
44
+ client_side_validation: true,
45
+ required: true,
46
+ serialized_name: 'suggestions',
47
+ type: {
48
+ name: 'Sequence',
49
+ element: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'QueryElementType',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Query'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,59 @@
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 item.
10
+ #
11
+ class PropertiesItem
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["AggregateRating"] = "AggregateRating"
17
+ @@discriminatorMap["Rating"] = "Rating"
18
+
19
+ def initialize
20
+ @_type = "Properties/Item"
21
+ end
22
+
23
+ attr_accessor :_type
24
+
25
+ # @return [String] Text representation of an item.
26
+ attr_accessor :text
27
+
28
+
29
+ #
30
+ # Mapper for PropertiesItem class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'Properties/Item',
38
+ type: {
39
+ name: 'Composite',
40
+ polymorphic_discriminator: '_type',
41
+ uber_parent: 'PropertiesItem',
42
+ class_name: 'PropertiesItem',
43
+ model_properties: {
44
+ text: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'text',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,104 @@
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 search query.
10
+ #
11
+ class Query
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The query string. Use this string as the query term in
16
+ # a new search request.
17
+ attr_accessor :text
18
+
19
+ # @return [String] The display version of the query term. This version of
20
+ # the query term may contain special characters that highlight the search
21
+ # term found in the query string. The string contains the highlighting
22
+ # characters only if the query enabled hit highlighting
23
+ attr_accessor :display_text
24
+
25
+ # @return [String] The URL that takes the user to the Bing search results
26
+ # page for the query.Only related search results include this field.
27
+ attr_accessor :web_search_url
28
+
29
+ # @return [String] The URL that you use to get the results of the related
30
+ # search. Before using the URL, you must append query parameters as
31
+ # appropriate and include the Ocp-Apim-Subscription-Key header. Use this
32
+ # URL if you're displaying the results in your own user interface.
33
+ # Otherwise, use the webSearchUrl URL.
34
+ attr_accessor :search_link
35
+
36
+ # @return [ImageObject] The URL to a thumbnail of a related image.
37
+ attr_accessor :thumbnail
38
+
39
+
40
+ #
41
+ # Mapper for Query class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'Query',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'Query',
52
+ model_properties: {
53
+ text: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: 'text',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ display_text: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'displayText',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ web_search_url: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'webSearchUrl',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ search_link: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'searchLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ thumbnail: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'thumbnail',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'ImageObject'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,84 @@
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 rating.
10
+ #
11
+ class Rating < PropertiesItem
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Rating"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Float] The mean (average) rating. The possible values are 1.0
23
+ # through 5.0.
24
+ attr_accessor :rating_value
25
+
26
+ # @return [Float] The highest rated review. The possible values are 1.0
27
+ # through 5.0.
28
+ attr_accessor :best_rating
29
+
30
+
31
+ #
32
+ # Mapper for Rating class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Rating',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Rating',
43
+ model_properties: {
44
+ text: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'text',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ _type: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: '_type',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ rating_value: {
62
+ client_side_validation: true,
63
+ required: true,
64
+ serialized_name: 'ratingValue',
65
+ type: {
66
+ name: 'Double'
67
+ }
68
+ },
69
+ best_rating: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'bestRating',
74
+ type: {
75
+ name: 'Double'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,219 @@
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 cooking recipe.
10
+ #
11
+ class Recipe < CreativeWork
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Recipe"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The amount of time the food takes to cook. For
23
+ # example, PT25M. For information about the time format, see
24
+ # http://en.wikipedia.org/wiki/ISO_8601#Durations.
25
+ attr_accessor :cook_time
26
+
27
+ # @return [String] The amount of time required to prepare the
28
+ # ingredients. For example, PT15M. For information about the time format,
29
+ # see http://en.wikipedia.org/wiki/ISO_8601#Durations.
30
+ attr_accessor :prep_time
31
+
32
+ # @return [String] The total amount of time it takes to prepare and cook
33
+ # the recipe. For example, PT45M. For information about the time format,
34
+ # see http://en.wikipedia.org/wiki/ISO_8601#Durations.
35
+ attr_accessor :total_time
36
+
37
+
38
+ #
39
+ # Mapper for Recipe 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: 'Recipe',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'Recipe',
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
+ thumbnail_url: {
142
+ client_side_validation: true,
143
+ required: false,
144
+ read_only: true,
145
+ serialized_name: 'thumbnailUrl',
146
+ type: {
147
+ name: 'String'
148
+ }
149
+ },
150
+ provider: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ read_only: true,
154
+ serialized_name: 'provider',
155
+ type: {
156
+ name: 'Sequence',
157
+ element: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ serialized_name: 'ThingElementType',
161
+ type: {
162
+ name: 'Composite',
163
+ class_name: 'Thing'
164
+ }
165
+ }
166
+ }
167
+ },
168
+ date_published: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'datePublished',
173
+ type: {
174
+ name: 'String'
175
+ }
176
+ },
177
+ text: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'text',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
186
+ cook_time: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ read_only: true,
190
+ serialized_name: 'cookTime',
191
+ type: {
192
+ name: 'String'
193
+ }
194
+ },
195
+ prep_time: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ read_only: true,
199
+ serialized_name: 'prepTime',
200
+ type: {
201
+ name: 'String'
202
+ }
203
+ },
204
+ total_time: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'totalTime',
209
+ type: {
210
+ name: 'String'
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ end
217
+ end
218
+ end
219
+ end