azure_cognitiveservices_visualsearch 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
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,116 @@
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 the error that occurred.
10
+ #
11
+ class Error
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorCode] The error code that identifies the category of
16
+ # error. Possible values include: 'None', 'ServerError',
17
+ # 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization',
18
+ # 'InsufficientAuthorization'. Default value: 'None' .
19
+ attr_accessor :code
20
+
21
+ # @return [ErrorSubCode] The error code that further helps to identify
22
+ # the error. Possible values include: 'UnexpectedError', 'ResourceError',
23
+ # 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue',
24
+ # 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing',
25
+ # 'AuthorizationRedundancy', 'AuthorizationDisabled',
26
+ # 'AuthorizationExpired'
27
+ attr_accessor :sub_code
28
+
29
+ # @return [String] A description of the error.
30
+ attr_accessor :message
31
+
32
+ # @return [String] A description that provides additional information
33
+ # about the error.
34
+ attr_accessor :more_details
35
+
36
+ # @return [String] The parameter in the request that caused the error.
37
+ attr_accessor :parameter
38
+
39
+ # @return [String] The parameter's value in the request that was not
40
+ # valid.
41
+ attr_accessor :value
42
+
43
+
44
+ #
45
+ # Mapper for Error class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Error',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Error',
56
+ model_properties: {
57
+ code: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'code',
61
+ default_value: 'None',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ sub_code: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'subCode',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ message: {
76
+ client_side_validation: true,
77
+ required: true,
78
+ serialized_name: 'message',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ more_details: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'moreDetails',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ parameter: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'parameter',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ value: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'value',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,20 @@
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 ErrorCode
10
+ #
11
+ module ErrorCode
12
+ None = "None"
13
+ ServerError = "ServerError"
14
+ InvalidRequest = "InvalidRequest"
15
+ RateLimitExceeded = "RateLimitExceeded"
16
+ InvalidAuthorization = "InvalidAuthorization"
17
+ InsufficientAuthorization = "InsufficientAuthorization"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,98 @@
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
+ # The top-level response that represents a failed request.
10
+ #
11
+ class ErrorResponse < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ErrorResponse"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<Error>] A list of errors that describe the reasons why
23
+ # the request failed.
24
+ attr_accessor :errors
25
+
26
+
27
+ #
28
+ # Mapper for ErrorResponse 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: 'ErrorResponse',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorResponse',
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
+ errors: {
76
+ client_side_validation: true,
77
+ required: true,
78
+ serialized_name: 'errors',
79
+ type: {
80
+ name: 'Sequence',
81
+ element: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'ErrorElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'Error'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,25 @@
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 ErrorSubCode
10
+ #
11
+ module ErrorSubCode
12
+ UnexpectedError = "UnexpectedError"
13
+ ResourceError = "ResourceError"
14
+ NotImplemented = "NotImplemented"
15
+ ParameterMissing = "ParameterMissing"
16
+ ParameterInvalidValue = "ParameterInvalidValue"
17
+ HttpNotAllowed = "HttpNotAllowed"
18
+ Blocked = "Blocked"
19
+ AuthorizationMissing = "AuthorizationMissing"
20
+ AuthorizationRedundancy = "AuthorizationRedundancy"
21
+ AuthorizationDisabled = "AuthorizationDisabled"
22
+ AuthorizationExpired = "AuthorizationExpired"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,48 @@
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 key-value object consisting of filters that may be specified to limit
10
+ # the results returned by the API. Current available filters: site.
11
+ #
12
+ class Filters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The URL of the site to return similar images and
17
+ # similar products from. (e.g., "www.bing.com", "bing.com").
18
+ attr_accessor :site
19
+
20
+
21
+ #
22
+ # Mapper for Filters 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: 'Filters',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'Filters',
33
+ model_properties: {
34
+ site: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'site',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,62 @@
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 the identity of a resource.
10
+ #
11
+ class Identifiable < ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Identifiable"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] A String identifier.
23
+ attr_accessor :id
24
+
25
+
26
+ #
27
+ # Mapper for Identifiable 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: 'Identifiable',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Identifiable',
38
+ model_properties: {
39
+ _type: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: '_type',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,234 @@
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 action.
10
+ #
11
+ class ImageAction < Action
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ImageAction"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] A string representing the type of action.
23
+ attr_accessor :action_type
24
+
25
+
26
+ #
27
+ # Mapper for ImageAction 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: 'ImageAction',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ImageAction',
38
+ model_properties: {
39
+ _type: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: '_type',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ read_link: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'readLink',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ web_search_url: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'webSearchUrl',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ name: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'name',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ url: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'url',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ image: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'image',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'ImageObject'
100
+ }
101
+ },
102
+ description: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'description',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ alternate_name: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'alternateName',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ bing_id: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'bingId',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ thumbnail_url: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'thumbnailUrl',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ provider: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ read_only: true,
142
+ serialized_name: 'provider',
143
+ type: {
144
+ name: 'Sequence',
145
+ element: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'ThingElementType',
149
+ type: {
150
+ name: 'Composite',
151
+ class_name: 'Thing'
152
+ }
153
+ }
154
+ }
155
+ },
156
+ date_published: {
157
+ client_side_validation: true,
158
+ required: false,
159
+ read_only: true,
160
+ serialized_name: 'datePublished',
161
+ type: {
162
+ name: 'String'
163
+ }
164
+ },
165
+ text: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ read_only: true,
169
+ serialized_name: 'text',
170
+ type: {
171
+ name: 'String'
172
+ }
173
+ },
174
+ result: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ read_only: true,
178
+ serialized_name: 'result',
179
+ type: {
180
+ name: 'Sequence',
181
+ element: {
182
+ client_side_validation: true,
183
+ required: false,
184
+ serialized_name: 'ThingElementType',
185
+ type: {
186
+ name: 'Composite',
187
+ class_name: 'Thing'
188
+ }
189
+ }
190
+ }
191
+ },
192
+ display_name: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ read_only: true,
196
+ serialized_name: 'displayName',
197
+ type: {
198
+ name: 'String'
199
+ }
200
+ },
201
+ is_top_action: {
202
+ client_side_validation: true,
203
+ required: false,
204
+ read_only: true,
205
+ serialized_name: 'isTopAction',
206
+ type: {
207
+ name: 'Boolean'
208
+ }
209
+ },
210
+ service_url: {
211
+ client_side_validation: true,
212
+ required: false,
213
+ read_only: true,
214
+ serialized_name: 'serviceUrl',
215
+ type: {
216
+ name: 'String'
217
+ }
218
+ },
219
+ action_type: {
220
+ client_side_validation: true,
221
+ required: false,
222
+ read_only: true,
223
+ serialized_name: 'actionType',
224
+ type: {
225
+ name: 'String'
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }
231
+ end
232
+ end
233
+ end
234
+ end