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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 528408b53951528049f1327c379bc07f953c45aa
4
+ data.tar.gz: 62821319c792cd66eb800317e13a693853c9f38d
5
+ SHA512:
6
+ metadata.gz: b8eb5de2a500cc69c8b17327d26645387b5b50aecfeb7cb2f3b50e5a311af5982f3253f8e4bf4306eb24383dac4f080668362f49c88e13ccb705075e5d19d1e3
7
+ data.tar.gz: 5e9a90b8f37b042a50a7eb35001772f61421ae5a3fd5e7c68ccca34ba49bb9ab987a12ba46c55dd7b3e4fe553633e8a02fe7dacb75ae870121620bcb37cc98fb
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,60 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '1.0/generated/azure_cognitiveservices_videosearch/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CognitiveServices::VideoSearch::V1_0
23
+ autoload :VideosOperations, '1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb'
24
+ autoload :VideoSearchClient, '1.0/generated/azure_cognitiveservices_videosearch/video_search_client.rb'
25
+
26
+ module Models
27
+ autoload :TrendingVideosCategory, '1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_category.rb'
28
+ autoload :TrendingVideosSubcategory, '1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_subcategory.rb'
29
+ autoload :Error, '1.0/generated/azure_cognitiveservices_videosearch/models/error.rb'
30
+ autoload :PivotSuggestions, '1.0/generated/azure_cognitiveservices_videosearch/models/pivot_suggestions.rb'
31
+ autoload :QueryContext, '1.0/generated/azure_cognitiveservices_videosearch/models/query_context.rb'
32
+ autoload :Query, '1.0/generated/azure_cognitiveservices_videosearch/models/query.rb'
33
+ autoload :VideosModule, '1.0/generated/azure_cognitiveservices_videosearch/models/videos_module.rb'
34
+ autoload :TrendingVideosTile, '1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_tile.rb'
35
+ autoload :ResponseBase, '1.0/generated/azure_cognitiveservices_videosearch/models/response_base.rb'
36
+ autoload :ImageObject, '1.0/generated/azure_cognitiveservices_videosearch/models/image_object.rb'
37
+ autoload :VideoObject, '1.0/generated/azure_cognitiveservices_videosearch/models/video_object.rb'
38
+ autoload :Videos, '1.0/generated/azure_cognitiveservices_videosearch/models/videos.rb'
39
+ autoload :Response, '1.0/generated/azure_cognitiveservices_videosearch/models/response.rb'
40
+ autoload :Answer, '1.0/generated/azure_cognitiveservices_videosearch/models/answer.rb'
41
+ autoload :SearchResultsAnswer, '1.0/generated/azure_cognitiveservices_videosearch/models/search_results_answer.rb'
42
+ autoload :Thing, '1.0/generated/azure_cognitiveservices_videosearch/models/thing.rb'
43
+ autoload :CreativeWork, '1.0/generated/azure_cognitiveservices_videosearch/models/creative_work.rb'
44
+ autoload :MediaObject, '1.0/generated/azure_cognitiveservices_videosearch/models/media_object.rb'
45
+ autoload :Identifiable, '1.0/generated/azure_cognitiveservices_videosearch/models/identifiable.rb'
46
+ autoload :ErrorResponse, '1.0/generated/azure_cognitiveservices_videosearch/models/error_response.rb'
47
+ autoload :TrendingVideos, '1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos.rb'
48
+ autoload :VideoDetails, '1.0/generated/azure_cognitiveservices_videosearch/models/video_details.rb'
49
+ autoload :VideoQueryScenario, '1.0/generated/azure_cognitiveservices_videosearch/models/video_query_scenario.rb'
50
+ autoload :ErrorCode, '1.0/generated/azure_cognitiveservices_videosearch/models/error_code.rb'
51
+ autoload :ErrorSubCode, '1.0/generated/azure_cognitiveservices_videosearch/models/error_sub_code.rb'
52
+ autoload :Freshness, '1.0/generated/azure_cognitiveservices_videosearch/models/freshness.rb'
53
+ autoload :VideoLength, '1.0/generated/azure_cognitiveservices_videosearch/models/video_length.rb'
54
+ autoload :VideoPricing, '1.0/generated/azure_cognitiveservices_videosearch/models/video_pricing.rb'
55
+ autoload :VideoResolution, '1.0/generated/azure_cognitiveservices_videosearch/models/video_resolution.rb'
56
+ autoload :SafeSearch, '1.0/generated/azure_cognitiveservices_videosearch/models/safe_search.rb'
57
+ autoload :TextFormat, '1.0/generated/azure_cognitiveservices_videosearch/models/text_format.rb'
58
+ autoload :VideoInsightModule, '1.0/generated/azure_cognitiveservices_videosearch/models/video_insight_module.rb'
59
+ end
60
+ end
@@ -0,0 +1,90 @@
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 Answer < Response
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Answer"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Array<Query>]
24
+ attr_accessor :follow_up_queries
25
+
26
+
27
+ #
28
+ # Mapper for Answer 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: 'Answer',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Answer',
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
+ follow_up_queries: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'followUpQueries',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'QueryElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'Query'
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,169 @@
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 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]
30
+ attr_accessor :text
31
+
32
+
33
+ #
34
+ # Mapper for CreativeWork 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: 'CreativeWork',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'CreativeWork',
45
+ model_properties: {
46
+ _type: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: '_type',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'id',
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
+ thumbnail_url: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ read_only: true,
131
+ serialized_name: 'thumbnailUrl',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ provider: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ read_only: true,
140
+ serialized_name: 'provider',
141
+ type: {
142
+ name: 'Sequence',
143
+ element: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ serialized_name: 'ThingElementType',
147
+ type: {
148
+ name: 'Composite',
149
+ class_name: 'Thing'
150
+ }
151
+ }
152
+ }
153
+ },
154
+ text: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ read_only: true,
158
+ serialized_name: 'text',
159
+ type: {
160
+ name: 'String'
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ end
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,118 @@
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 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: 'Enum',
64
+ module: 'ErrorCode'
65
+ }
66
+ },
67
+ sub_code: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'subCode',
72
+ type: {
73
+ name: 'Enum',
74
+ module: 'ErrorSubCode'
75
+ }
76
+ },
77
+ message: {
78
+ client_side_validation: true,
79
+ required: true,
80
+ serialized_name: 'message',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ more_details: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'moreDetails',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ parameter: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'parameter',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ value: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ read_only: true,
107
+ serialized_name: 'value',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ end
116
+ end
117
+ end
118
+ end