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,182 @@
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 visual search tag.
10
+ #
11
+ class ImageTag < Thing
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ImageTag"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] Display name for this tag. For the default tag, the
23
+ # display name is empty.
24
+ attr_accessor :display_name
25
+
26
+ # @return [ImageTagRegion] The bounding box for this tag. For the default
27
+ # tag, there is no bounding box.
28
+ attr_accessor :bounding_box
29
+
30
+ # @return [Array<ImageAction>] Actions within this tag. The order of the
31
+ # items denotes the default ranking order of these actions, with the
32
+ # first action being the most likely user intent.
33
+ attr_accessor :actions
34
+
35
+
36
+ #
37
+ # Mapper for ImageTag class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'ImageTag',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'ImageTag',
48
+ model_properties: {
49
+ _type: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: '_type',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'id',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ read_link: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'readLink',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ web_search_url: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'webSearchUrl',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ name: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'name',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ url: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'url',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ image: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'image',
107
+ type: {
108
+ name: 'Composite',
109
+ class_name: 'ImageObject'
110
+ }
111
+ },
112
+ description: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ read_only: true,
116
+ serialized_name: 'description',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ alternate_name: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ read_only: true,
125
+ serialized_name: 'alternateName',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ bing_id: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ read_only: true,
134
+ serialized_name: 'bingId',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ },
139
+ display_name: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'displayName',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
148
+ bounding_box: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'boundingBox',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'ImageTagRegion'
156
+ }
157
+ },
158
+ actions: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ read_only: true,
162
+ serialized_name: 'actions',
163
+ type: {
164
+ name: 'Sequence',
165
+ element: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ serialized_name: 'ImageActionElementType',
169
+ type: {
170
+ name: 'Composite',
171
+ class_name: 'ImageAction'
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ end
180
+ end
181
+ end
182
+ end
@@ -0,0 +1,61 @@
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 an image region relevant to the ImageTag.
10
+ #
11
+ class ImageTagRegion
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [NormalizedQuadrilateral] A rectangle that outlines the area of
16
+ # interest for this tag.
17
+ attr_accessor :query_rectangle
18
+
19
+ # @return [NormalizedQuadrilateral] A recommended rectangle to show to
20
+ # the user.
21
+ attr_accessor :display_rectangle
22
+
23
+
24
+ #
25
+ # Mapper for ImageTagRegion 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: 'ImageTagRegion',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'ImageTagRegion',
36
+ model_properties: {
37
+ query_rectangle: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: 'queryRectangle',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'NormalizedQuadrilateral'
44
+ }
45
+ },
46
+ display_rectangle: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: 'displayRectangle',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'NormalizedQuadrilateral'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,80 @@
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 count of the number of websites where you can shop or perform
10
+ # other actions related to the image.
11
+ #
12
+ class ImagesImageMetadata
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] The number of websites that sell the products seen in
17
+ # the image.
18
+ attr_accessor :shopping_sources_count
19
+
20
+ # @return [Integer] The number of websites that offer recipes of the food
21
+ # seen in the image.
22
+ attr_accessor :recipe_sources_count
23
+
24
+ # @return [AggregateOffer] A summary of the online offers of products
25
+ # found in the image. For example, if the image is of a dress, the offer
26
+ # might identify the lowest price and the number of offers found. Only
27
+ # visually similar products insights include this field. The offer
28
+ # includes the following fields: Name, AggregateRating, OfferCount, and
29
+ # LowPrice.
30
+ attr_accessor :aggregate_offer
31
+
32
+
33
+ #
34
+ # Mapper for ImagesImageMetadata class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'Images/ImageMetadata',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ImagesImageMetadata',
45
+ model_properties: {
46
+ shopping_sources_count: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'shoppingSourcesCount',
51
+ type: {
52
+ name: 'Number'
53
+ }
54
+ },
55
+ recipe_sources_count: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'recipeSourcesCount',
60
+ type: {
61
+ name: 'Number'
62
+ }
63
+ },
64
+ aggregate_offer: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'aggregateOffer',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'AggregateOffer'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,56 @@
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 list of images.
10
+ #
11
+ class ImagesModule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ImageObject>] A list of images.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for ImagesModule class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ImagesModule',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ImagesModule',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'ImageObjectElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'ImageObject'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -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::VisualSearch::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