...
1 package videosearch
2
3
4
5
6
7
8
9
10 type ErrorCode string
11
12 const (
13
14 InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
15
16 InvalidAuthorization ErrorCode = "InvalidAuthorization"
17
18 InvalidRequest ErrorCode = "InvalidRequest"
19
20 None ErrorCode = "None"
21
22 RateLimitExceeded ErrorCode = "RateLimitExceeded"
23
24 ServerError ErrorCode = "ServerError"
25 )
26
27
28 func PossibleErrorCodeValues() []ErrorCode {
29 return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
30 }
31
32
33 type ErrorSubCode string
34
35 const (
36
37 AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
38
39 AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
40
41 AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
42
43 AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
44
45 Blocked ErrorSubCode = "Blocked"
46
47 HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
48
49 NotImplemented ErrorSubCode = "NotImplemented"
50
51 ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
52
53 ParameterMissing ErrorSubCode = "ParameterMissing"
54
55 ResourceError ErrorSubCode = "ResourceError"
56
57 UnexpectedError ErrorSubCode = "UnexpectedError"
58 )
59
60
61 func PossibleErrorSubCodeValues() []ErrorSubCode {
62 return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
63 }
64
65
66 type Freshness string
67
68 const (
69
70 Day Freshness = "Day"
71
72 Month Freshness = "Month"
73
74 Week Freshness = "Week"
75 )
76
77
78 func PossibleFreshnessValues() []Freshness {
79 return []Freshness{Day, Month, Week}
80 }
81
82
83 type SafeSearch string
84
85 const (
86
87 Moderate SafeSearch = "Moderate"
88
89 Off SafeSearch = "Off"
90
91 Strict SafeSearch = "Strict"
92 )
93
94
95 func PossibleSafeSearchValues() []SafeSearch {
96 return []SafeSearch{Moderate, Off, Strict}
97 }
98
99
100 type TextFormat string
101
102 const (
103
104 HTML TextFormat = "Html"
105
106 Raw TextFormat = "Raw"
107 )
108
109
110 func PossibleTextFormatValues() []TextFormat {
111 return []TextFormat{HTML, Raw}
112 }
113
114
115 type Type string
116
117 const (
118
119 TypeAnswer Type = "Answer"
120
121 TypeCreativeWork Type = "CreativeWork"
122
123 TypeErrorResponse Type = "ErrorResponse"
124
125 TypeIdentifiable Type = "Identifiable"
126
127 TypeImageObject Type = "ImageObject"
128
129 TypeMediaObject Type = "MediaObject"
130
131 TypeResponse Type = "Response"
132
133 TypeResponseBase Type = "ResponseBase"
134
135 TypeSearchResultsAnswer Type = "SearchResultsAnswer"
136
137 TypeThing Type = "Thing"
138
139 TypeTrendingVideos Type = "TrendingVideos"
140
141 TypeVideoDetails Type = "VideoDetails"
142
143 TypeVideoObject Type = "VideoObject"
144
145 TypeVideos Type = "Videos"
146 )
147
148
149 func PossibleTypeValues() []Type {
150 return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeMediaObject, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeTrendingVideos, TypeVideoDetails, TypeVideoObject, TypeVideos}
151 }
152
153
154 type VideoInsightModule string
155
156 const (
157
158 All VideoInsightModule = "All"
159
160 RelatedVideos VideoInsightModule = "RelatedVideos"
161
162 VideoResult VideoInsightModule = "VideoResult"
163 )
164
165
166 func PossibleVideoInsightModuleValues() []VideoInsightModule {
167 return []VideoInsightModule{All, RelatedVideos, VideoResult}
168 }
169
170
171 type VideoLength string
172
173 const (
174
175 VideoLengthAll VideoLength = "All"
176
177 VideoLengthLong VideoLength = "Long"
178
179 VideoLengthMedium VideoLength = "Medium"
180
181 VideoLengthShort VideoLength = "Short"
182 )
183
184
185 func PossibleVideoLengthValues() []VideoLength {
186 return []VideoLength{VideoLengthAll, VideoLengthLong, VideoLengthMedium, VideoLengthShort}
187 }
188
189
190 type VideoPricing string
191
192 const (
193
194 VideoPricingAll VideoPricing = "All"
195
196 VideoPricingFree VideoPricing = "Free"
197
198 VideoPricingPaid VideoPricing = "Paid"
199 )
200
201
202 func PossibleVideoPricingValues() []VideoPricing {
203 return []VideoPricing{VideoPricingAll, VideoPricingFree, VideoPricingPaid}
204 }
205
206
207 type VideoQueryScenario string
208
209 const (
210
211 List VideoQueryScenario = "List"
212
213 SingleDominantVideo VideoQueryScenario = "SingleDominantVideo"
214 )
215
216
217 func PossibleVideoQueryScenarioValues() []VideoQueryScenario {
218 return []VideoQueryScenario{List, SingleDominantVideo}
219 }
220
221
222 type VideoResolution string
223
224 const (
225
226 VideoResolutionAll VideoResolution = "All"
227
228 VideoResolutionHD1080p VideoResolution = "HD1080p"
229
230 VideoResolutionHD720p VideoResolution = "HD720p"
231
232 VideoResolutionSD480p VideoResolution = "SD480p"
233 )
234
235
236 func PossibleVideoResolutionValues() []VideoResolution {
237 return []VideoResolution{VideoResolutionAll, VideoResolutionHD1080p, VideoResolutionHD720p, VideoResolutionSD480p}
238 }
239
View as plain text