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,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 ContentTypes
10
+ #
11
+ module ContentTypes
12
+ MultipartformData = "multipart/form-data"
13
+ Applicationjson = "application/json"
14
+ Textjson = "text/json"
15
+ Applicationxml = "application/xml"
16
+ Textxml = "text/xml"
17
+ ApplicationxWwwFormUrlencoded = "application/x-www-form-urlencoded"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,190 @@
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 most generic kind of creative work, including books, movies,
10
+ # photographs, software programs, etc.
11
+ #
12
+ class CreativeWork < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "CreativeWork"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The URL to a thumbnail of the item.
24
+ attr_accessor :thumbnail_url
25
+
26
+ # @return [Array<Thing>] The source of the creative work.
27
+ attr_accessor :provider
28
+
29
+ # @return [String] The date on which the CreativeWork was published.
30
+ attr_accessor :date_published
31
+
32
+ # @return [String] Text content of this creative work.
33
+ attr_accessor :text
34
+
35
+
36
+ #
37
+ # Mapper for CreativeWork 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: 'CreativeWork',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'CreativeWork',
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
+ thumbnail_url: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'thumbnailUrl',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
148
+ provider: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'provider',
153
+ type: {
154
+ name: 'Sequence',
155
+ element: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ serialized_name: 'ThingElementType',
159
+ type: {
160
+ name: 'Composite',
161
+ class_name: 'Thing'
162
+ }
163
+ }
164
+ }
165
+ },
166
+ date_published: {
167
+ client_side_validation: true,
168
+ required: false,
169
+ read_only: true,
170
+ serialized_name: 'datePublished',
171
+ type: {
172
+ name: 'String'
173
+ }
174
+ },
175
+ text: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ read_only: true,
179
+ serialized_name: 'text',
180
+ type: {
181
+ name: 'String'
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ end
188
+ end
189
+ end
190
+ end
@@ -0,0 +1,92 @@
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 JSON object consisting of coordinates specifying the four corners of a
10
+ # cropped rectangle within the input image.
11
+ #
12
+ class CropArea
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Float] The top coordinate of the region to be cropped. The
17
+ # coordinate is a fractional value of the original image's height and is
18
+ # measured from the top edge of the image. Specify the coordinate as a
19
+ # value from 0.0 through 1.0.
20
+ attr_accessor :top
21
+
22
+ # @return [Float] The bottom coordinate of the region to be cropped. The
23
+ # coordinate is a fractional value of the original image's height and is
24
+ # measured from the top edge of the image. Specify the coordinate as a
25
+ # value from 0.0 through 1.0.
26
+ attr_accessor :bottom
27
+
28
+ # @return [Float] The left coordinate of the region to be cropped. The
29
+ # coordinate is a fractional value of the original image's width and is
30
+ # measured from the left edge of the image. Specify the coordinate as a
31
+ # value from 0.0 through 1.0.
32
+ attr_accessor :left
33
+
34
+ # @return [Float] The right coordinate of the region to be cropped. The
35
+ # coordinate is a fractional value of the original image's width and is
36
+ # measured from the left edge of the image. Specify the coordinate as a
37
+ # value from 0.0 through 1.0.
38
+ attr_accessor :right
39
+
40
+
41
+ #
42
+ # Mapper for CropArea class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'CropArea',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'CropArea',
53
+ model_properties: {
54
+ top: {
55
+ client_side_validation: true,
56
+ required: true,
57
+ serialized_name: 'top',
58
+ type: {
59
+ name: 'Double'
60
+ }
61
+ },
62
+ bottom: {
63
+ client_side_validation: true,
64
+ required: true,
65
+ serialized_name: 'bottom',
66
+ type: {
67
+ name: 'Double'
68
+ }
69
+ },
70
+ left: {
71
+ client_side_validation: true,
72
+ required: true,
73
+ serialized_name: 'left',
74
+ type: {
75
+ name: 'Double'
76
+ }
77
+ },
78
+ right: {
79
+ client_side_validation: true,
80
+ required: true,
81
+ serialized_name: 'right',
82
+ type: {
83
+ name: 'Double'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,175 @@
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 Currency
10
+ #
11
+ module Currency
12
+ USD = "USD"
13
+ CAD = "CAD"
14
+ GBP = "GBP"
15
+ EUR = "EUR"
16
+ COP = "COP"
17
+ JPY = "JPY"
18
+ CNY = "CNY"
19
+ AUD = "AUD"
20
+ INR = "INR"
21
+ AED = "AED"
22
+ AFN = "AFN"
23
+ ALL = "ALL"
24
+ AMD = "AMD"
25
+ ANG = "ANG"
26
+ AOA = "AOA"
27
+ ARS = "ARS"
28
+ AWG = "AWG"
29
+ AZN = "AZN"
30
+ BAM = "BAM"
31
+ BBD = "BBD"
32
+ BDT = "BDT"
33
+ BGN = "BGN"
34
+ BHD = "BHD"
35
+ BIF = "BIF"
36
+ BMD = "BMD"
37
+ BND = "BND"
38
+ BOB = "BOB"
39
+ BOV = "BOV"
40
+ BRL = "BRL"
41
+ BSD = "BSD"
42
+ BTN = "BTN"
43
+ BWP = "BWP"
44
+ BYR = "BYR"
45
+ BZD = "BZD"
46
+ CDF = "CDF"
47
+ CHE = "CHE"
48
+ CHF = "CHF"
49
+ CHW = "CHW"
50
+ CLF = "CLF"
51
+ CLP = "CLP"
52
+ COU = "COU"
53
+ CRC = "CRC"
54
+ CUC = "CUC"
55
+ CUP = "CUP"
56
+ CVE = "CVE"
57
+ CZK = "CZK"
58
+ DJF = "DJF"
59
+ DKK = "DKK"
60
+ DOP = "DOP"
61
+ DZD = "DZD"
62
+ EGP = "EGP"
63
+ ERN = "ERN"
64
+ ETB = "ETB"
65
+ FJD = "FJD"
66
+ FKP = "FKP"
67
+ GEL = "GEL"
68
+ GHS = "GHS"
69
+ GIP = "GIP"
70
+ GMD = "GMD"
71
+ GNF = "GNF"
72
+ GTQ = "GTQ"
73
+ GYD = "GYD"
74
+ HKD = "HKD"
75
+ HNL = "HNL"
76
+ HRK = "HRK"
77
+ HTG = "HTG"
78
+ HUF = "HUF"
79
+ IDR = "IDR"
80
+ ILS = "ILS"
81
+ IQD = "IQD"
82
+ IRR = "IRR"
83
+ ISK = "ISK"
84
+ JMD = "JMD"
85
+ JOD = "JOD"
86
+ KES = "KES"
87
+ KGS = "KGS"
88
+ KHR = "KHR"
89
+ KMF = "KMF"
90
+ KPW = "KPW"
91
+ KRW = "KRW"
92
+ KWD = "KWD"
93
+ KYD = "KYD"
94
+ KZT = "KZT"
95
+ LAK = "LAK"
96
+ LBP = "LBP"
97
+ LKR = "LKR"
98
+ LRD = "LRD"
99
+ LSL = "LSL"
100
+ LYD = "LYD"
101
+ MAD = "MAD"
102
+ MDL = "MDL"
103
+ MGA = "MGA"
104
+ MKD = "MKD"
105
+ MMK = "MMK"
106
+ MNT = "MNT"
107
+ MOP = "MOP"
108
+ MRO = "MRO"
109
+ MUR = "MUR"
110
+ MVR = "MVR"
111
+ MWK = "MWK"
112
+ MXN = "MXN"
113
+ MXV = "MXV"
114
+ MYR = "MYR"
115
+ MZN = "MZN"
116
+ NAD = "NAD"
117
+ NGN = "NGN"
118
+ NIO = "NIO"
119
+ NOK = "NOK"
120
+ NPR = "NPR"
121
+ NZD = "NZD"
122
+ OMR = "OMR"
123
+ PAB = "PAB"
124
+ PEN = "PEN"
125
+ PGK = "PGK"
126
+ PHP = "PHP"
127
+ PKR = "PKR"
128
+ PLN = "PLN"
129
+ PYG = "PYG"
130
+ QAR = "QAR"
131
+ RON = "RON"
132
+ RSD = "RSD"
133
+ RUB = "RUB"
134
+ RWF = "RWF"
135
+ SAR = "SAR"
136
+ SBD = "SBD"
137
+ SCR = "SCR"
138
+ SDG = "SDG"
139
+ SEK = "SEK"
140
+ SGD = "SGD"
141
+ SHP = "SHP"
142
+ SLL = "SLL"
143
+ SOS = "SOS"
144
+ SRD = "SRD"
145
+ SSP = "SSP"
146
+ STD = "STD"
147
+ SYP = "SYP"
148
+ SZL = "SZL"
149
+ THB = "THB"
150
+ TJS = "TJS"
151
+ TMT = "TMT"
152
+ TND = "TND"
153
+ TOP = "TOP"
154
+ TRY = "TRY"
155
+ TTD = "TTD"
156
+ TWD = "TWD"
157
+ TZS = "TZS"
158
+ UAH = "UAH"
159
+ UGX = "UGX"
160
+ UYU = "UYU"
161
+ UZS = "UZS"
162
+ VEF = "VEF"
163
+ VND = "VND"
164
+ VUV = "VUV"
165
+ WST = "WST"
166
+ XAF = "XAF"
167
+ XCD = "XCD"
168
+ XOF = "XOF"
169
+ XPF = "XPF"
170
+ YER = "YER"
171
+ ZAR = "ZAR"
172
+ ZMW = "ZMW"
173
+ end
174
+ end
175
+ end