azure_cognitiveservices_videosearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_videosearch.rb +60 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/answer.rb +90 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/creative_work.rb +169 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error.rb +118 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error_code.rb +20 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error_response.rb +89 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error_sub_code.rb +25 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/freshness.rb +17 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/identifiable.rb +62 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/image_object.rb +208 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/media_object.rb +209 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/pivot_suggestions.rb +67 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/query.rb +100 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/query_context.rb +126 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/response.rb +72 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/response_base.rb +59 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/safe_search.rb +17 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/search_results_answer.rb +113 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/text_format.rb +16 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/thing.rb +143 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos.rb +109 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_category.rb +67 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_subcategory.rb +67 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_tile.rb +61 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_details.rb +95 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_insight_module.rb +17 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_length.rb +18 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_object.rb +304 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_pricing.rb +17 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_query_scenario.rb +16 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_resolution.rb +18 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/videos.rb +193 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/videos_module.rb +57 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_videosearch/module_definition.rb +9 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_videosearch/video_search_client.rb +127 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb +2253 -0
  39. data/lib/azure_cognitiveservices_videosearch.rb +6 -0
  40. data/lib/module_definition.rb +7 -0
  41. data/lib/profiles/latest/modules/videosearch_profile_module.rb +187 -0
  42. data/lib/profiles/latest/videosearch_latest_profile_client.rb +38 -0
  43. data/lib/profiles/latest/videosearch_module_definition.rb +8 -0
  44. data/lib/version.rb +7 -0
  45. metadata +162 -0
@@ -0,0 +1,67 @@
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::VideoSearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class TrendingVideosSubcategory
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String]
17
+ attr_accessor :title
18
+
19
+ # @return [Array<TrendingVideosTile>]
20
+ attr_accessor :tiles
21
+
22
+
23
+ #
24
+ # Mapper for TrendingVideosSubcategory 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: 'TrendingVideos/Subcategory',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'TrendingVideosSubcategory',
35
+ model_properties: {
36
+ title: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'title',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ tiles: {
45
+ client_side_validation: true,
46
+ required: true,
47
+ serialized_name: 'tiles',
48
+ type: {
49
+ name: 'Sequence',
50
+ element: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'TrendingVideosTileElementType',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'TrendingVideosTile'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ 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::VideoSearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class TrendingVideosTile
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Query]
17
+ attr_accessor :query
18
+
19
+ # @return [ImageObject]
20
+ attr_accessor :image
21
+
22
+
23
+ #
24
+ # Mapper for TrendingVideosTile 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: 'TrendingVideos/Tile',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'TrendingVideosTile',
35
+ model_properties: {
36
+ query: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'query',
40
+ default_value: {},
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'Query'
44
+ }
45
+ },
46
+ image: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: 'image',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'ImageObject'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,95 @@
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::VideoSearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class VideoDetails < Response
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "VideoDetails"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [VideosModule]
24
+ attr_accessor :related_videos
25
+
26
+ # @return [VideoObject]
27
+ attr_accessor :video_result
28
+
29
+
30
+ #
31
+ # Mapper for VideoDetails class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'VideoDetails',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'VideoDetails',
42
+ model_properties: {
43
+ _type: {
44
+ client_side_validation: true,
45
+ required: true,
46
+ serialized_name: '_type',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ web_search_url: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'webSearchUrl',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ related_videos: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'relatedVideos',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'VideosModule'
77
+ }
78
+ },
79
+ video_result: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'videoResult',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'VideoObject'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,17 @@
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::VideoSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for VideoInsightModule
10
+ #
11
+ module VideoInsightModule
12
+ All = "All"
13
+ RelatedVideos = "RelatedVideos"
14
+ VideoResult = "VideoResult"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,18 @@
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::VideoSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for VideoLength
10
+ #
11
+ module VideoLength
12
+ All = "All"
13
+ Short = "Short"
14
+ Medium = "Medium"
15
+ Long = "Long"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,304 @@
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::VideoSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a video object that is relevant to the query.
10
+ #
11
+ class VideoObject < MediaObject
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "VideoObject"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String]
23
+ attr_accessor :motion_thumbnail_url
24
+
25
+ # @return [String]
26
+ attr_accessor :motion_thumbnail_id
27
+
28
+ # @return [String]
29
+ attr_accessor :embed_html
30
+
31
+ # @return [Boolean]
32
+ attr_accessor :allow_https_embed
33
+
34
+ # @return [Integer]
35
+ attr_accessor :view_count
36
+
37
+ # @return [ImageObject]
38
+ attr_accessor :thumbnail
39
+
40
+ # @return [String]
41
+ attr_accessor :video_id
42
+
43
+ # @return [Boolean]
44
+ attr_accessor :allow_mobile_embed
45
+
46
+ # @return [Boolean]
47
+ attr_accessor :is_superfresh
48
+
49
+
50
+ #
51
+ # Mapper for VideoObject class as Ruby Hash.
52
+ # This will be used for serialization/deserialization.
53
+ #
54
+ def self.mapper()
55
+ {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'VideoObject',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'VideoObject',
62
+ model_properties: {
63
+ _type: {
64
+ client_side_validation: true,
65
+ required: true,
66
+ serialized_name: '_type',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ id: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'id',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ web_search_url: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'webSearchUrl',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ name: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'name',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ url: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'url',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ },
107
+ image: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ read_only: true,
111
+ serialized_name: 'image',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'ImageObject'
115
+ }
116
+ },
117
+ description: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'description',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ alternate_name: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'alternateName',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ bing_id: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: 'bingId',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ },
144
+ thumbnail_url: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ read_only: true,
148
+ serialized_name: 'thumbnailUrl',
149
+ type: {
150
+ name: 'String'
151
+ }
152
+ },
153
+ provider: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ read_only: true,
157
+ serialized_name: 'provider',
158
+ type: {
159
+ name: 'Sequence',
160
+ element: {
161
+ client_side_validation: true,
162
+ required: false,
163
+ serialized_name: 'ThingElementType',
164
+ type: {
165
+ name: 'Composite',
166
+ class_name: 'Thing'
167
+ }
168
+ }
169
+ }
170
+ },
171
+ text: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ read_only: true,
175
+ serialized_name: 'text',
176
+ type: {
177
+ name: 'String'
178
+ }
179
+ },
180
+ content_url: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ read_only: true,
184
+ serialized_name: 'contentUrl',
185
+ type: {
186
+ name: 'String'
187
+ }
188
+ },
189
+ host_page_url: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ read_only: true,
193
+ serialized_name: 'hostPageUrl',
194
+ type: {
195
+ name: 'String'
196
+ }
197
+ },
198
+ width: {
199
+ client_side_validation: true,
200
+ required: false,
201
+ read_only: true,
202
+ serialized_name: 'width',
203
+ type: {
204
+ name: 'Number'
205
+ }
206
+ },
207
+ height: {
208
+ client_side_validation: true,
209
+ required: false,
210
+ read_only: true,
211
+ serialized_name: 'height',
212
+ type: {
213
+ name: 'Number'
214
+ }
215
+ },
216
+ motion_thumbnail_url: {
217
+ client_side_validation: true,
218
+ required: false,
219
+ read_only: true,
220
+ serialized_name: 'motionThumbnailUrl',
221
+ type: {
222
+ name: 'String'
223
+ }
224
+ },
225
+ motion_thumbnail_id: {
226
+ client_side_validation: true,
227
+ required: false,
228
+ read_only: true,
229
+ serialized_name: 'motionThumbnailId',
230
+ type: {
231
+ name: 'String'
232
+ }
233
+ },
234
+ embed_html: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ read_only: true,
238
+ serialized_name: 'embedHtml',
239
+ type: {
240
+ name: 'String'
241
+ }
242
+ },
243
+ allow_https_embed: {
244
+ client_side_validation: true,
245
+ required: false,
246
+ read_only: true,
247
+ serialized_name: 'allowHttpsEmbed',
248
+ type: {
249
+ name: 'Boolean'
250
+ }
251
+ },
252
+ view_count: {
253
+ client_side_validation: true,
254
+ required: false,
255
+ read_only: true,
256
+ serialized_name: 'viewCount',
257
+ type: {
258
+ name: 'Number'
259
+ }
260
+ },
261
+ thumbnail: {
262
+ client_side_validation: true,
263
+ required: false,
264
+ read_only: true,
265
+ serialized_name: 'thumbnail',
266
+ type: {
267
+ name: 'Composite',
268
+ class_name: 'ImageObject'
269
+ }
270
+ },
271
+ video_id: {
272
+ client_side_validation: true,
273
+ required: false,
274
+ read_only: true,
275
+ serialized_name: 'videoId',
276
+ type: {
277
+ name: 'String'
278
+ }
279
+ },
280
+ allow_mobile_embed: {
281
+ client_side_validation: true,
282
+ required: false,
283
+ read_only: true,
284
+ serialized_name: 'allowMobileEmbed',
285
+ type: {
286
+ name: 'Boolean'
287
+ }
288
+ },
289
+ is_superfresh: {
290
+ client_side_validation: true,
291
+ required: false,
292
+ read_only: true,
293
+ serialized_name: 'isSuperfresh',
294
+ type: {
295
+ name: 'Boolean'
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }
301
+ end
302
+ end
303
+ end
304
+ end