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,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::VideoSearch::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,89 @@
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
+ # 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
+ web_search_url: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'webSearchUrl',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ errors: {
67
+ client_side_validation: true,
68
+ required: true,
69
+ serialized_name: 'errors',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'ErrorElementType',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'Error'
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ end
87
+ end
88
+ end
89
+ 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::VideoSearch::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,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 Freshness
10
+ #
11
+ module Freshness
12
+ Day = "Day"
13
+ Week = "Week"
14
+ Month = "Month"
15
+ end
16
+ end
17
+ 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::VideoSearch::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,208 @@
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 an image
10
+ #
11
+ class ImageObject < MediaObject
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ImageObject"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [ImageObject] The URL to a thumbnail of the image
23
+ attr_accessor :thumbnail
24
+
25
+
26
+ #
27
+ # Mapper for ImageObject 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: 'ImageObject',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ImageObject',
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
+ web_search_url: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'webSearchUrl',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ name: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'name',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ url: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'url',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ image: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'image',
88
+ type: {
89
+ name: 'Composite',
90
+ class_name: 'ImageObject'
91
+ }
92
+ },
93
+ description: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'description',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ alternate_name: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'alternateName',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ bing_id: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'bingId',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ thumbnail_url: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'thumbnailUrl',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ provider: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'provider',
134
+ type: {
135
+ name: 'Sequence',
136
+ element: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'ThingElementType',
140
+ type: {
141
+ name: 'Composite',
142
+ class_name: 'Thing'
143
+ }
144
+ }
145
+ }
146
+ },
147
+ text: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ read_only: true,
151
+ serialized_name: 'text',
152
+ type: {
153
+ name: 'String'
154
+ }
155
+ },
156
+ content_url: {
157
+ client_side_validation: true,
158
+ required: false,
159
+ read_only: true,
160
+ serialized_name: 'contentUrl',
161
+ type: {
162
+ name: 'String'
163
+ }
164
+ },
165
+ host_page_url: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ read_only: true,
169
+ serialized_name: 'hostPageUrl',
170
+ type: {
171
+ name: 'String'
172
+ }
173
+ },
174
+ width: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ read_only: true,
178
+ serialized_name: 'width',
179
+ type: {
180
+ name: 'Number'
181
+ }
182
+ },
183
+ height: {
184
+ client_side_validation: true,
185
+ required: false,
186
+ read_only: true,
187
+ serialized_name: 'height',
188
+ type: {
189
+ name: 'Number'
190
+ }
191
+ },
192
+ thumbnail: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ read_only: true,
196
+ serialized_name: 'thumbnail',
197
+ type: {
198
+ name: 'Composite',
199
+ class_name: 'ImageObject'
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
205
+ end
206
+ end
207
+ end
208
+ end
@@ -0,0 +1,209 @@
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 MediaObject < CreativeWork
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "MediaObject"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] Original URL to retrieve the source (file) for the
24
+ # media object (e.g the source URL for the image).
25
+ attr_accessor :content_url
26
+
27
+ # @return [String] URL of the page that hosts the media object.
28
+ attr_accessor :host_page_url
29
+
30
+ # @return [Integer] The width of the source media object, in pixels.
31
+ attr_accessor :width
32
+
33
+ # @return [Integer] The height of the source media object, in pixels.
34
+ attr_accessor :height
35
+
36
+
37
+ #
38
+ # Mapper for MediaObject class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'MediaObject',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'MediaObject',
49
+ model_properties: {
50
+ _type: {
51
+ client_side_validation: true,
52
+ required: true,
53
+ serialized_name: '_type',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ id: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'id',
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
+ name: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'name',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ url: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'url',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ image: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'image',
99
+ type: {
100
+ name: 'Composite',
101
+ class_name: 'ImageObject'
102
+ }
103
+ },
104
+ description: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'description',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ alternate_name: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ read_only: true,
117
+ serialized_name: 'alternateName',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ bing_id: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ read_only: true,
126
+ serialized_name: 'bingId',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ thumbnail_url: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ read_only: true,
135
+ serialized_name: 'thumbnailUrl',
136
+ type: {
137
+ name: 'String'
138
+ }
139
+ },
140
+ provider: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ read_only: true,
144
+ serialized_name: 'provider',
145
+ type: {
146
+ name: 'Sequence',
147
+ element: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ serialized_name: 'ThingElementType',
151
+ type: {
152
+ name: 'Composite',
153
+ class_name: 'Thing'
154
+ }
155
+ }
156
+ }
157
+ },
158
+ text: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ read_only: true,
162
+ serialized_name: 'text',
163
+ type: {
164
+ name: 'String'
165
+ }
166
+ },
167
+ content_url: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ read_only: true,
171
+ serialized_name: 'contentUrl',
172
+ type: {
173
+ name: 'String'
174
+ }
175
+ },
176
+ host_page_url: {
177
+ client_side_validation: true,
178
+ required: false,
179
+ read_only: true,
180
+ serialized_name: 'hostPageUrl',
181
+ type: {
182
+ name: 'String'
183
+ }
184
+ },
185
+ width: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ read_only: true,
189
+ serialized_name: 'width',
190
+ type: {
191
+ name: 'Number'
192
+ }
193
+ },
194
+ height: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ read_only: true,
198
+ serialized_name: 'height',
199
+ type: {
200
+ name: 'Number'
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ end
207
+ end
208
+ end
209
+ end