azure_cognitiveservices_videosearch 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch.rb +60 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/answer.rb +90 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/creative_work.rb +169 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error.rb +118 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error_code.rb +20 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error_response.rb +89 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/error_sub_code.rb +25 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/freshness.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/identifiable.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/image_object.rb +208 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/media_object.rb +209 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/pivot_suggestions.rb +67 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/query.rb +100 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/query_context.rb +126 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/response.rb +72 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/response_base.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/safe_search.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/search_results_answer.rb +113 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/text_format.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/thing.rb +143 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos.rb +109 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_category.rb +67 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_subcategory.rb +67 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/trending_videos_tile.rb +61 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_details.rb +95 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_insight_module.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_length.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_object.rb +304 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_pricing.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_query_scenario.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/video_resolution.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/videos.rb +193 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/models/videos_module.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/module_definition.rb +9 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/video_search_client.rb +127 -0
- data/lib/1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb +2253 -0
- data/lib/azure_cognitiveservices_videosearch.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/videosearch_profile_module.rb +187 -0
- data/lib/profiles/latest/videosearch_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/videosearch_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +162 -0
@@ -0,0 +1,113 @@
|
|
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 SearchResultsAnswer < Answer
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "SearchResultsAnswer"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
# @return [Integer] The estimated number of webpages that are relevant to
|
24
|
+
# the query. Use this number along with the count and offset query
|
25
|
+
# parameters to page the results.
|
26
|
+
attr_accessor :total_estimated_matches
|
27
|
+
|
28
|
+
# @return [Boolean]
|
29
|
+
attr_accessor :is_family_friendly
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for SearchResultsAnswer class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'SearchResultsAnswer',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'SearchResultsAnswer',
|
44
|
+
model_properties: {
|
45
|
+
_type: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: true,
|
48
|
+
serialized_name: '_type',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
id: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'id',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
web_search_url: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'webSearchUrl',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
follow_up_queries: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'followUpQueries',
|
76
|
+
type: {
|
77
|
+
name: 'Sequence',
|
78
|
+
element: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'QueryElementType',
|
82
|
+
type: {
|
83
|
+
name: 'Composite',
|
84
|
+
class_name: 'Query'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
},
|
89
|
+
total_estimated_matches: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
read_only: true,
|
93
|
+
serialized_name: 'totalEstimatedMatches',
|
94
|
+
type: {
|
95
|
+
name: 'Number'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
is_family_friendly: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
read_only: true,
|
102
|
+
serialized_name: 'isFamilyFriendly',
|
103
|
+
type: {
|
104
|
+
name: 'Boolean'
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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 TextFormat
|
10
|
+
#
|
11
|
+
module TextFormat
|
12
|
+
Raw = "Raw"
|
13
|
+
Html = "Html"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,143 @@
|
|
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 Thing < Response
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "Thing"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
# @return [String] The name of the thing represented by this object.
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# @return [String] The URL to get more information about the thing
|
27
|
+
# represented by this object.
|
28
|
+
attr_accessor :url
|
29
|
+
|
30
|
+
# @return [ImageObject]
|
31
|
+
attr_accessor :image
|
32
|
+
|
33
|
+
# @return [String] A short description of the item.
|
34
|
+
attr_accessor :description
|
35
|
+
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :alternate_name
|
38
|
+
|
39
|
+
# @return [String] An ID that uniquely identifies this item.
|
40
|
+
attr_accessor :bing_id
|
41
|
+
|
42
|
+
|
43
|
+
#
|
44
|
+
# Mapper for Thing class as Ruby Hash.
|
45
|
+
# This will be used for serialization/deserialization.
|
46
|
+
#
|
47
|
+
def self.mapper()
|
48
|
+
{
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'Thing',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'Thing',
|
55
|
+
model_properties: {
|
56
|
+
_type: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: true,
|
59
|
+
serialized_name: '_type',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
id: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'id',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
web_search_url: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'webSearchUrl',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
name: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
read_only: true,
|
86
|
+
serialized_name: 'name',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
},
|
91
|
+
url: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: false,
|
94
|
+
read_only: true,
|
95
|
+
serialized_name: 'url',
|
96
|
+
type: {
|
97
|
+
name: 'String'
|
98
|
+
}
|
99
|
+
},
|
100
|
+
image: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
read_only: true,
|
104
|
+
serialized_name: 'image',
|
105
|
+
type: {
|
106
|
+
name: 'Composite',
|
107
|
+
class_name: 'ImageObject'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
description: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
read_only: true,
|
114
|
+
serialized_name: 'description',
|
115
|
+
type: {
|
116
|
+
name: 'String'
|
117
|
+
}
|
118
|
+
},
|
119
|
+
alternate_name: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
read_only: true,
|
123
|
+
serialized_name: 'alternateName',
|
124
|
+
type: {
|
125
|
+
name: 'String'
|
126
|
+
}
|
127
|
+
},
|
128
|
+
bing_id: {
|
129
|
+
client_side_validation: true,
|
130
|
+
required: false,
|
131
|
+
read_only: true,
|
132
|
+
serialized_name: 'bingId',
|
133
|
+
type: {
|
134
|
+
name: 'String'
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,109 @@
|
|
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 TrendingVideos < Response
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@_type = "TrendingVideos"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :_type
|
22
|
+
|
23
|
+
# @return [Array<TrendingVideosTile>]
|
24
|
+
attr_accessor :banner_tiles
|
25
|
+
|
26
|
+
# @return [Array<TrendingVideosCategory>]
|
27
|
+
attr_accessor :categories
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for TrendingVideos 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: 'TrendingVideos',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'TrendingVideos',
|
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
|
+
banner_tiles: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: true,
|
72
|
+
serialized_name: 'bannerTiles',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'TrendingVideosTileElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'TrendingVideosTile'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
categories: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: true,
|
89
|
+
serialized_name: 'categories',
|
90
|
+
type: {
|
91
|
+
name: 'Sequence',
|
92
|
+
element: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'TrendingVideosCategoryElementType',
|
96
|
+
type: {
|
97
|
+
name: 'Composite',
|
98
|
+
class_name: 'TrendingVideosCategory'
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -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 TrendingVideosCategory
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :title
|
18
|
+
|
19
|
+
# @return [Array<TrendingVideosSubcategory>]
|
20
|
+
attr_accessor :subcategories
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for TrendingVideosCategory 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/Category',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'TrendingVideosCategory',
|
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
|
+
subcategories: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'subcategories',
|
48
|
+
type: {
|
49
|
+
name: 'Sequence',
|
50
|
+
element: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'TrendingVideosSubcategoryElementType',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'TrendingVideosSubcategory'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|