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 PivotSuggestions
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String]
17
+ attr_accessor :pivot
18
+
19
+ # @return [Array<Query>]
20
+ attr_accessor :suggestions
21
+
22
+
23
+ #
24
+ # Mapper for PivotSuggestions 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: 'PivotSuggestions',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'PivotSuggestions',
35
+ model_properties: {
36
+ pivot: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'pivot',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ suggestions: {
45
+ client_side_validation: true,
46
+ required: true,
47
+ serialized_name: 'suggestions',
48
+ type: {
49
+ name: 'Sequence',
50
+ element: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'QueryElementType',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'Query'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,100 @@
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 search query.
10
+ #
11
+ class Query
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The query string. Use this string as the query term in
16
+ # a new search request.
17
+ attr_accessor :text
18
+
19
+ # @return [String] The display version of the query term. This version of
20
+ # the query term may contain special characters that highlight the search
21
+ # term found in the query string. The string contains the highlighting
22
+ # characters only if the query enabled hit highlighting
23
+ attr_accessor :display_text
24
+
25
+ # @return [String] The URL that takes the user to the Bing search results
26
+ # page for the query.Only related search results include this field.
27
+ attr_accessor :web_search_url
28
+
29
+ # @return [String]
30
+ attr_accessor :search_link
31
+
32
+ # @return [ImageObject]
33
+ attr_accessor :thumbnail
34
+
35
+
36
+ #
37
+ # Mapper for Query 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: 'Query',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'Query',
48
+ model_properties: {
49
+ text: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: 'text',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ display_text: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'displayText',
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
+ search_link: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'searchLink',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ thumbnail: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'thumbnail',
89
+ type: {
90
+ name: 'Composite',
91
+ class_name: 'ImageObject'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,126 @@
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 query context that Bing used for the request.
10
+ #
11
+ class QueryContext
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The query string as specified in the request.
16
+ attr_accessor :original_query
17
+
18
+ # @return [String] The query string used by Bing to perform the query.
19
+ # Bing uses the altered query string if the original query string
20
+ # contained spelling mistakes. For example, if the query string is
21
+ # "saling downwind", the altered query string will be "sailing downwind".
22
+ # This field is included only if the original query string contains a
23
+ # spelling mistake.
24
+ attr_accessor :altered_query
25
+
26
+ # @return [String] The query string to use to force Bing to use the
27
+ # original string. For example, if the query string is "saling downwind",
28
+ # the override query string will be "+saling downwind". Remember to
29
+ # encode the query string which results in "%2Bsaling+downwind". This
30
+ # field is included only if the original query string contains a spelling
31
+ # mistake.
32
+ attr_accessor :alteration_override_query
33
+
34
+ # @return [Boolean] A Boolean value that indicates whether the specified
35
+ # query has adult intent. The value is true if the query has adult
36
+ # intent; otherwise, false.
37
+ attr_accessor :adult_intent
38
+
39
+ # @return [Boolean] A Boolean value that indicates whether Bing requires
40
+ # the user's location to provide accurate results. If you specified the
41
+ # user's location by using the X-MSEdge-ClientIP and X-Search-Location
42
+ # headers, you can ignore this field. For location aware queries, such as
43
+ # "today's weather" or "restaurants near me" that need the user's
44
+ # location to provide accurate results, this field is set to true. For
45
+ # location aware queries that include the location (for example, "Seattle
46
+ # weather"), this field is set to false. This field is also set to false
47
+ # for queries that are not location aware, such as "best sellers".
48
+ attr_accessor :ask_user_for_location
49
+
50
+ # @return [Boolean]
51
+ attr_accessor :is_transactional
52
+
53
+
54
+ #
55
+ # Mapper for QueryContext class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'QueryContext',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'QueryContext',
66
+ model_properties: {
67
+ original_query: {
68
+ client_side_validation: true,
69
+ required: true,
70
+ serialized_name: 'originalQuery',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ altered_query: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'alteredQuery',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ alteration_override_query: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'alterationOverrideQuery',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ adult_intent: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'adultIntent',
98
+ type: {
99
+ name: 'Boolean'
100
+ }
101
+ },
102
+ ask_user_for_location: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'askUserForLocation',
107
+ type: {
108
+ name: 'Boolean'
109
+ }
110
+ },
111
+ is_transactional: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'isTransactional',
116
+ type: {
117
+ name: 'Boolean'
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,72 @@
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 response. All schemas that could be returned at the root of a
10
+ # response should inherit from this
11
+ #
12
+ class Response < Identifiable
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Response"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The URL To Bing's search result for this item.
24
+ attr_accessor :web_search_url
25
+
26
+
27
+ #
28
+ # Mapper for Response 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: 'Response',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Response',
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
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,59 @@
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 ResponseBase
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+ @@discriminatorMap["ImageObject"] = "ImageObject"
18
+ @@discriminatorMap["VideoObject"] = "VideoObject"
19
+ @@discriminatorMap["Videos"] = "Videos"
20
+ @@discriminatorMap["SearchResultsAnswer"] = "SearchResultsAnswer"
21
+ @@discriminatorMap["Answer"] = "Answer"
22
+ @@discriminatorMap["MediaObject"] = "MediaObject"
23
+ @@discriminatorMap["Response"] = "Response"
24
+ @@discriminatorMap["Thing"] = "Thing"
25
+ @@discriminatorMap["CreativeWork"] = "CreativeWork"
26
+ @@discriminatorMap["Identifiable"] = "Identifiable"
27
+ @@discriminatorMap["ErrorResponse"] = "ErrorResponse"
28
+ @@discriminatorMap["TrendingVideos"] = "TrendingVideos"
29
+ @@discriminatorMap["VideoDetails"] = "VideoDetails"
30
+
31
+ def initialize
32
+ @_type = "ResponseBase"
33
+ end
34
+
35
+ attr_accessor :_type
36
+
37
+
38
+ #
39
+ # Mapper for ResponseBase class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'ResponseBase',
47
+ type: {
48
+ name: 'Composite',
49
+ polymorphic_discriminator: '_type',
50
+ uber_parent: 'ResponseBase',
51
+ class_name: 'ResponseBase',
52
+ model_properties: {
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ 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 SafeSearch
10
+ #
11
+ module SafeSearch
12
+ Off = "Off"
13
+ Moderate = "Moderate"
14
+ Strict = "Strict"
15
+ end
16
+ end
17
+ end