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,151 @@
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 thing.
10
+ #
11
+ class Thing < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Thing"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The name of the thing represented by this object.
23
+ attr_accessor :name
24
+
25
+ # @return [String] The URL to get more information about the thing
26
+ # represented by this object.
27
+ attr_accessor :url
28
+
29
+ # @return [ImageObject] An image of the item.
30
+ attr_accessor :image
31
+
32
+ # @return [String] A short description of the item.
33
+ attr_accessor :description
34
+
35
+ # @return [String] An alias for the item
36
+ attr_accessor :alternate_name
37
+
38
+ # @return [String] An ID that uniquely identifies this item.
39
+ attr_accessor :bing_id
40
+
41
+
42
+ #
43
+ # Mapper for Thing class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'Thing',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'Thing',
54
+ model_properties: {
55
+ _type: {
56
+ client_side_validation: true,
57
+ required: true,
58
+ serialized_name: '_type',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'id',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ read_link: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'readLink',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ web_search_url: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'webSearchUrl',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ name: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'name',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ url: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'url',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ image: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'image',
113
+ type: {
114
+ name: 'Composite',
115
+ class_name: 'ImageObject'
116
+ }
117
+ },
118
+ description: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'description',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ alternate_name: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ read_only: true,
131
+ serialized_name: 'alternateName',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ bing_id: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ read_only: true,
140
+ serialized_name: 'bingId',
141
+ type: {
142
+ name: 'String'
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,99 @@
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
+ # The top-level object that the response includes when a trending images
10
+ # request succeeds.
11
+ #
12
+ class TrendingImages < Response
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "TrendingImages"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Array<TrendingImagesCategory>] A list that identifies
24
+ # categories of images and a list of trending images in that category.
25
+ attr_accessor :categories
26
+
27
+
28
+ #
29
+ # Mapper for TrendingImages class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'TrendingImages',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'TrendingImages',
40
+ model_properties: {
41
+ _type: {
42
+ client_side_validation: true,
43
+ required: true,
44
+ serialized_name: '_type',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ read_link: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'readLink',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ web_search_url: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'webSearchUrl',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ categories: {
77
+ client_side_validation: true,
78
+ required: true,
79
+ serialized_name: 'categories',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'TrendingImagesCategoryElementType',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'TrendingImagesCategory'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,71 @@
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 category of trending images.
10
+ #
11
+ class TrendingImagesCategory
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the image category. For example, Popular
16
+ # People Searches.
17
+ attr_accessor :title
18
+
19
+ # @return [Array<TrendingImagesTile>] A list of images that are trending
20
+ # in the category. Each tile contains an image and a URL that returns
21
+ # more images of the subject. For example, if the category is Popular
22
+ # People Searches, the image is of a popular person and the URL would
23
+ # return more images of that person.
24
+ attr_accessor :tiles
25
+
26
+
27
+ #
28
+ # Mapper for TrendingImagesCategory 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: 'TrendingImages/Category',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'TrendingImagesCategory',
39
+ model_properties: {
40
+ title: {
41
+ client_side_validation: true,
42
+ required: true,
43
+ serialized_name: 'title',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ tiles: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'tiles',
52
+ type: {
53
+ name: 'Sequence',
54
+ element: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'TrendingImagesTileElementType',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'TrendingImagesTile'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,63 @@
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 image tile.
10
+ #
11
+ class TrendingImagesTile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Query] A query that returns a Bing search results page with
16
+ # more images of the subject. For example, if the category is Popular
17
+ # People Searches, then the thumbnail is of a popular person. The query
18
+ # would return a Bing search results page with more images of that
19
+ # person.
20
+ attr_accessor :query
21
+
22
+ # @return [ImageObject] The image's thumbnail.
23
+ attr_accessor :image
24
+
25
+
26
+ #
27
+ # Mapper for TrendingImagesTile class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'TrendingImages/Tile',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'TrendingImagesTile',
38
+ model_properties: {
39
+ query: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: 'query',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Query'
46
+ }
47
+ },
48
+ image: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'image',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'ImageObject'
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ end
61
+ end
62
+ end
63
+ 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 webpage that is relevant to the query.
10
+ #
11
+ class WebPage < CreativeWork
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "WebPage"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+
23
+ #
24
+ # Mapper for WebPage 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: 'WebPage',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'WebPage',
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