OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.playmoviespartner.v1; | 3 library googleapis.playmoviespartner.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 "GET", | 86 "GET", |
87 body: _body, | 87 body: _body, |
88 queryParams: _queryParams, | 88 queryParams: _queryParams, |
89 uploadOptions: _uploadOptions, | 89 uploadOptions: _uploadOptions, |
90 uploadMedia: _uploadMedia, | 90 uploadMedia: _uploadMedia, |
91 downloadOptions: _downloadOptions); | 91 downloadOptions: _downloadOptions); |
92 return _response.then((data) => new Avail.fromJson(data)); | 92 return _response.then((data) => new Avail.fromJson(data)); |
93 } | 93 } |
94 | 94 |
95 /** | 95 /** |
96 * List Avails owned or managed by the partner. See _Authentication and | 96 * List Avails owned or managed by the partner. |
97 * Authorization rules_ and _List methods rules_ for more information about | 97 * |
98 * this method. | 98 * See _Authentication and Authorization rules_ and |
| 99 * _List methods rules_ for more information about this method. |
99 * | 100 * |
100 * Request parameters: | 101 * Request parameters: |
101 * | 102 * |
102 * [accountId] - REQUIRED. See _General rules_ for more information about this | 103 * [accountId] - REQUIRED. See _General rules_ for more information about this |
103 * field. | 104 * field. |
104 * | 105 * |
105 * [pageSize] - See _List methods rules_ for info about this field. | |
106 * | |
107 * [pageToken] - See _List methods rules_ for info about this field. | 106 * [pageToken] - See _List methods rules_ for info about this field. |
108 * | 107 * |
109 * [pphNames] - See _List methods rules_ for info about this field. | 108 * [videoIds] - Filter Avails that match any of the given `video_id`s. |
110 * | 109 * |
111 * [studioNames] - See _List methods rules_ for info about this field. | 110 * [pageSize] - See _List methods rules_ for info about this field. |
112 * | |
113 * [title] - Filter that matches Avails with a `title_internal_alias`, | |
114 * `series_title_internal_alias`, `season_title_internal_alias`, or | |
115 * `episode_title_internal_alias` that contains the given case-insensitive | |
116 * title. | |
117 * | |
118 * [territories] - Filter Avails that match (case-insensitive) any of the | |
119 * given country codes, using the "ISO 3166-1 alpha-2" format (examples: "US", | |
120 * "us", "Us"). | |
121 * | |
122 * [altId] - Filter Avails that match a case-insensitive, partner-specific | |
123 * custom id. NOTE: this field is deprecated and will be removed on V2; | |
124 * `alt_ids` should be used instead. | |
125 * | |
126 * [videoIds] - Filter Avails that match any of the given `video_id`s. | |
127 * | 111 * |
128 * [altIds] - Filter Avails that match (case-insensitive) any of the given | 112 * [altIds] - Filter Avails that match (case-insensitive) any of the given |
129 * partner-specific custom ids. | 113 * partner-specific custom ids. |
130 * | 114 * |
| 115 * [pphNames] - See _List methods rules_ for info about this field. |
| 116 * |
| 117 * [altId] - Filter Avails that match a case-insensitive, partner-specific |
| 118 * custom id. |
| 119 * NOTE: this field is deprecated and will be removed on V2; `alt_ids` |
| 120 * should be used instead. |
| 121 * |
| 122 * [studioNames] - See _List methods rules_ for info about this field. |
| 123 * |
| 124 * [territories] - Filter Avails that match (case-insensitive) any of the |
| 125 * given country codes, |
| 126 * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
| 127 * |
| 128 * [title] - Filter that matches Avails with a `title_internal_alias`, |
| 129 * `series_title_internal_alias`, `season_title_internal_alias`, |
| 130 * or `episode_title_internal_alias` that contains the given |
| 131 * case-insensitive title. |
| 132 * |
131 * Completes with a [ListAvailsResponse]. | 133 * Completes with a [ListAvailsResponse]. |
132 * | 134 * |
133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
134 * error. | 136 * error. |
135 * | 137 * |
136 * If the used [http.Client] completes with an error when making a REST call, | 138 * If the used [http.Client] completes with an error when making a REST call, |
137 * this method will complete with the same error. | 139 * this method will complete with the same error. |
138 */ | 140 */ |
139 async.Future<ListAvailsResponse> list(core.String accountId, {core.int pageSiz
e, core.String pageToken, core.List<core.String> pphNames, core.List<core.String
> studioNames, core.String title, core.List<core.String> territories, core.Strin
g altId, core.List<core.String> videoIds, core.List<core.String> altIds}) { | 141 async.Future<ListAvailsResponse> list(core.String accountId, {core.String page
Token, core.List<core.String> videoIds, core.int pageSize, core.List<core.String
> altIds, core.List<core.String> pphNames, core.String altId, core.List<core.Str
ing> studioNames, core.List<core.String> territories, core.String title}) { |
140 var _url = null; | 142 var _url = null; |
141 var _queryParams = new core.Map(); | 143 var _queryParams = new core.Map(); |
142 var _uploadMedia = null; | 144 var _uploadMedia = null; |
143 var _uploadOptions = null; | 145 var _uploadOptions = null; |
144 var _downloadOptions = commons.DownloadOptions.Metadata; | 146 var _downloadOptions = commons.DownloadOptions.Metadata; |
145 var _body = null; | 147 var _body = null; |
146 | 148 |
147 if (accountId == null) { | 149 if (accountId == null) { |
148 throw new core.ArgumentError("Parameter accountId is required."); | 150 throw new core.ArgumentError("Parameter accountId is required."); |
149 } | 151 } |
| 152 if (pageToken != null) { |
| 153 _queryParams["pageToken"] = [pageToken]; |
| 154 } |
| 155 if (videoIds != null) { |
| 156 _queryParams["videoIds"] = videoIds; |
| 157 } |
150 if (pageSize != null) { | 158 if (pageSize != null) { |
151 _queryParams["pageSize"] = ["${pageSize}"]; | 159 _queryParams["pageSize"] = ["${pageSize}"]; |
152 } | 160 } |
153 if (pageToken != null) { | 161 if (altIds != null) { |
154 _queryParams["pageToken"] = [pageToken]; | 162 _queryParams["altIds"] = altIds; |
155 } | 163 } |
156 if (pphNames != null) { | 164 if (pphNames != null) { |
157 _queryParams["pphNames"] = pphNames; | 165 _queryParams["pphNames"] = pphNames; |
158 } | 166 } |
| 167 if (altId != null) { |
| 168 _queryParams["altId"] = [altId]; |
| 169 } |
159 if (studioNames != null) { | 170 if (studioNames != null) { |
160 _queryParams["studioNames"] = studioNames; | 171 _queryParams["studioNames"] = studioNames; |
161 } | 172 } |
| 173 if (territories != null) { |
| 174 _queryParams["territories"] = territories; |
| 175 } |
162 if (title != null) { | 176 if (title != null) { |
163 _queryParams["title"] = [title]; | 177 _queryParams["title"] = [title]; |
164 } | 178 } |
165 if (territories != null) { | |
166 _queryParams["territories"] = territories; | |
167 } | |
168 if (altId != null) { | |
169 _queryParams["altId"] = [altId]; | |
170 } | |
171 if (videoIds != null) { | |
172 _queryParams["videoIds"] = videoIds; | |
173 } | |
174 if (altIds != null) { | |
175 _queryParams["altIds"] = altIds; | |
176 } | |
177 | 179 |
178 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; | 180 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; |
179 | 181 |
180 var _response = _requester.request(_url, | 182 var _response = _requester.request(_url, |
181 "GET", | 183 "GET", |
182 body: _body, | 184 body: _body, |
183 queryParams: _queryParams, | 185 queryParams: _queryParams, |
184 uploadOptions: _uploadOptions, | 186 uploadOptions: _uploadOptions, |
185 uploadMedia: _uploadMedia, | 187 uploadMedia: _uploadMedia, |
186 downloadOptions: _downloadOptions); | 188 downloadOptions: _downloadOptions); |
187 return _response.then((data) => new ListAvailsResponse.fromJson(data)); | 189 return _response.then((data) => new ListAvailsResponse.fromJson(data)); |
188 } | 190 } |
189 | 191 |
190 } | 192 } |
191 | 193 |
192 | 194 |
193 class AccountsOrdersResourceApi { | 195 class AccountsOrdersResourceApi { |
194 final commons.ApiRequester _requester; | 196 final commons.ApiRequester _requester; |
195 | 197 |
196 AccountsOrdersResourceApi(commons.ApiRequester client) : | 198 AccountsOrdersResourceApi(commons.ApiRequester client) : |
197 _requester = client; | 199 _requester = client; |
198 | 200 |
199 /** | 201 /** |
200 * Get an Order given its id. See _Authentication and Authorization rules_ and | 202 * Get an Order given its id. |
| 203 * |
| 204 * See _Authentication and Authorization rules_ and |
201 * _Get methods rules_ for more information about this method. | 205 * _Get methods rules_ for more information about this method. |
202 * | 206 * |
203 * Request parameters: | 207 * Request parameters: |
204 * | 208 * |
205 * [accountId] - REQUIRED. See _General rules_ for more information about this | 209 * [accountId] - REQUIRED. See _General rules_ for more information about this |
206 * field. | 210 * field. |
207 * | 211 * |
208 * [orderId] - REQUIRED. Order ID. | 212 * [orderId] - REQUIRED. Order ID. |
209 * | 213 * |
210 * Completes with a [Order]. | 214 * Completes with a [Order]. |
(...skipping 25 matching lines...) Expand all Loading... |
236 "GET", | 240 "GET", |
237 body: _body, | 241 body: _body, |
238 queryParams: _queryParams, | 242 queryParams: _queryParams, |
239 uploadOptions: _uploadOptions, | 243 uploadOptions: _uploadOptions, |
240 uploadMedia: _uploadMedia, | 244 uploadMedia: _uploadMedia, |
241 downloadOptions: _downloadOptions); | 245 downloadOptions: _downloadOptions); |
242 return _response.then((data) => new Order.fromJson(data)); | 246 return _response.then((data) => new Order.fromJson(data)); |
243 } | 247 } |
244 | 248 |
245 /** | 249 /** |
246 * List Orders owned or managed by the partner. See _Authentication and | 250 * List Orders owned or managed by the partner. |
247 * Authorization rules_ and _List methods rules_ for more information about | 251 * |
248 * this method. | 252 * See _Authentication and Authorization rules_ and |
| 253 * _List methods rules_ for more information about this method. |
249 * | 254 * |
250 * Request parameters: | 255 * Request parameters: |
251 * | 256 * |
252 * [accountId] - REQUIRED. See _General rules_ for more information about this | 257 * [accountId] - REQUIRED. See _General rules_ for more information about this |
253 * field. | 258 * field. |
254 * | 259 * |
255 * [pageSize] - See _List methods rules_ for info about this field. | 260 * [videoIds] - Filter Orders that match any of the given `video_id`s. |
| 261 * |
| 262 * [customId] - Filter Orders that match a case-insensitive, partner-specific |
| 263 * custom id. |
256 * | 264 * |
257 * [pageToken] - See _List methods rules_ for info about this field. | 265 * [pageToken] - See _List methods rules_ for info about this field. |
258 * | 266 * |
| 267 * [pageSize] - See _List methods rules_ for info about this field. |
| 268 * |
259 * [pphNames] - See _List methods rules_ for info about this field. | 269 * [pphNames] - See _List methods rules_ for info about this field. |
260 * | 270 * |
| 271 * [status] - Filter Orders that match one of the given status. |
| 272 * |
261 * [studioNames] - See _List methods rules_ for info about this field. | 273 * [studioNames] - See _List methods rules_ for info about this field. |
262 * | 274 * |
263 * [name] - Filter that matches Orders with a `name`, `show`, `season` or | 275 * [name] - Filter that matches Orders with a `name`, `show`, `season` or |
264 * `episode` that contains the given case-insensitive name. | 276 * `episode` |
265 * | 277 * that contains the given case-insensitive name. |
266 * [status] - Filter Orders that match one of the given status. | |
267 * | |
268 * [customId] - Filter Orders that match a case-insensitive, partner-specific | |
269 * custom id. | |
270 * | |
271 * [videoIds] - Filter Orders that match any of the given `video_id`s. | |
272 * | 278 * |
273 * Completes with a [ListOrdersResponse]. | 279 * Completes with a [ListOrdersResponse]. |
274 * | 280 * |
275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
276 * error. | 282 * error. |
277 * | 283 * |
278 * If the used [http.Client] completes with an error when making a REST call, | 284 * If the used [http.Client] completes with an error when making a REST call, |
279 * this method will complete with the same error. | 285 * this method will complete with the same error. |
280 */ | 286 */ |
281 async.Future<ListOrdersResponse> list(core.String accountId, {core.int pageSiz
e, core.String pageToken, core.List<core.String> pphNames, core.List<core.String
> studioNames, core.String name, core.List<core.String> status, core.String cust
omId, core.List<core.String> videoIds}) { | 287 async.Future<ListOrdersResponse> list(core.String accountId, {core.List<core.S
tring> videoIds, core.String customId, core.String pageToken, core.int pageSize,
core.List<core.String> pphNames, core.List<core.String> status, core.List<core.
String> studioNames, core.String name}) { |
282 var _url = null; | 288 var _url = null; |
283 var _queryParams = new core.Map(); | 289 var _queryParams = new core.Map(); |
284 var _uploadMedia = null; | 290 var _uploadMedia = null; |
285 var _uploadOptions = null; | 291 var _uploadOptions = null; |
286 var _downloadOptions = commons.DownloadOptions.Metadata; | 292 var _downloadOptions = commons.DownloadOptions.Metadata; |
287 var _body = null; | 293 var _body = null; |
288 | 294 |
289 if (accountId == null) { | 295 if (accountId == null) { |
290 throw new core.ArgumentError("Parameter accountId is required."); | 296 throw new core.ArgumentError("Parameter accountId is required."); |
291 } | 297 } |
| 298 if (videoIds != null) { |
| 299 _queryParams["videoIds"] = videoIds; |
| 300 } |
| 301 if (customId != null) { |
| 302 _queryParams["customId"] = [customId]; |
| 303 } |
| 304 if (pageToken != null) { |
| 305 _queryParams["pageToken"] = [pageToken]; |
| 306 } |
292 if (pageSize != null) { | 307 if (pageSize != null) { |
293 _queryParams["pageSize"] = ["${pageSize}"]; | 308 _queryParams["pageSize"] = ["${pageSize}"]; |
294 } | 309 } |
295 if (pageToken != null) { | |
296 _queryParams["pageToken"] = [pageToken]; | |
297 } | |
298 if (pphNames != null) { | 310 if (pphNames != null) { |
299 _queryParams["pphNames"] = pphNames; | 311 _queryParams["pphNames"] = pphNames; |
300 } | 312 } |
| 313 if (status != null) { |
| 314 _queryParams["status"] = status; |
| 315 } |
301 if (studioNames != null) { | 316 if (studioNames != null) { |
302 _queryParams["studioNames"] = studioNames; | 317 _queryParams["studioNames"] = studioNames; |
303 } | 318 } |
304 if (name != null) { | 319 if (name != null) { |
305 _queryParams["name"] = [name]; | 320 _queryParams["name"] = [name]; |
306 } | 321 } |
307 if (status != null) { | |
308 _queryParams["status"] = status; | |
309 } | |
310 if (customId != null) { | |
311 _queryParams["customId"] = [customId]; | |
312 } | |
313 if (videoIds != null) { | |
314 _queryParams["videoIds"] = videoIds; | |
315 } | |
316 | 322 |
317 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
rs'; | 323 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
rs'; |
318 | 324 |
319 var _response = _requester.request(_url, | 325 var _response = _requester.request(_url, |
320 "GET", | 326 "GET", |
321 body: _body, | 327 body: _body, |
322 queryParams: _queryParams, | 328 queryParams: _queryParams, |
323 uploadOptions: _uploadOptions, | 329 uploadOptions: _uploadOptions, |
324 uploadMedia: _uploadMedia, | 330 uploadMedia: _uploadMedia, |
325 downloadOptions: _downloadOptions); | 331 downloadOptions: _downloadOptions); |
326 return _response.then((data) => new ListOrdersResponse.fromJson(data)); | 332 return _response.then((data) => new ListOrdersResponse.fromJson(data)); |
327 } | 333 } |
328 | 334 |
329 } | 335 } |
330 | 336 |
331 | 337 |
332 class AccountsStoreInfosResourceApi { | 338 class AccountsStoreInfosResourceApi { |
333 final commons.ApiRequester _requester; | 339 final commons.ApiRequester _requester; |
334 | 340 |
335 AccountsStoreInfosCountryResourceApi get country => new AccountsStoreInfosCoun
tryResourceApi(_requester); | 341 AccountsStoreInfosCountryResourceApi get country => new AccountsStoreInfosCoun
tryResourceApi(_requester); |
336 | 342 |
337 AccountsStoreInfosResourceApi(commons.ApiRequester client) : | 343 AccountsStoreInfosResourceApi(commons.ApiRequester client) : |
338 _requester = client; | 344 _requester = client; |
339 | 345 |
340 /** | 346 /** |
341 * List StoreInfos owned or managed by the partner. See _Authentication and | 347 * List StoreInfos owned or managed by the partner. |
342 * Authorization rules_ and _List methods rules_ for more information about | 348 * |
343 * this method. | 349 * See _Authentication and Authorization rules_ and |
| 350 * _List methods rules_ for more information about this method. |
344 * | 351 * |
345 * Request parameters: | 352 * Request parameters: |
346 * | 353 * |
347 * [accountId] - REQUIRED. See _General rules_ for more information about this | 354 * [accountId] - REQUIRED. See _General rules_ for more information about this |
348 * field. | 355 * field. |
349 * | 356 * |
350 * [pageSize] - See _List methods rules_ for info about this field. | 357 * [studioNames] - See _List methods rules_ for info about this field. |
| 358 * |
| 359 * [name] - Filter that matches StoreInfos with a `name` or `show_name` |
| 360 * that contains the given case-insensitive name. |
| 361 * |
| 362 * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. |
| 363 * |
| 364 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. |
| 365 * |
| 366 * [videoId] - Filter StoreInfos that match a given `video_id`. |
| 367 * NOTE: this field is deprecated and will be removed on V2; `video_ids` |
| 368 * should be used instead. |
351 * | 369 * |
352 * [pageToken] - See _List methods rules_ for info about this field. | 370 * [pageToken] - See _List methods rules_ for info about this field. |
353 * | 371 * |
354 * [pphNames] - See _List methods rules_ for info about this field. | 372 * [pageSize] - See _List methods rules_ for info about this field. |
355 * | |
356 * [studioNames] - See _List methods rules_ for info about this field. | |
357 * | |
358 * [videoId] - Filter StoreInfos that match a given `video_id`. NOTE: this | |
359 * field is deprecated and will be removed on V2; `video_ids` should be used | |
360 * instead. | |
361 * | |
362 * [countries] - Filter StoreInfos that match (case-insensitive) any of the | |
363 * given country codes, using the "ISO 3166-1 alpha-2" format (examples: "US", | |
364 * "us", "Us"). | |
365 * | |
366 * [name] - Filter that matches StoreInfos with a `name` or `show_name` that | |
367 * contains the given case-insensitive name. | |
368 * | |
369 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. | |
370 * | 373 * |
371 * [mids] - Filter StoreInfos that match any of the given `mid`s. | 374 * [mids] - Filter StoreInfos that match any of the given `mid`s. |
372 * | 375 * |
373 * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. | 376 * [pphNames] - See _List methods rules_ for info about this field. |
| 377 * |
| 378 * [countries] - Filter StoreInfos that match (case-insensitive) any of the |
| 379 * given country |
| 380 * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
374 * | 381 * |
375 * Completes with a [ListStoreInfosResponse]. | 382 * Completes with a [ListStoreInfosResponse]. |
376 * | 383 * |
377 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
378 * error. | 385 * error. |
379 * | 386 * |
380 * If the used [http.Client] completes with an error when making a REST call, | 387 * If the used [http.Client] completes with an error when making a REST call, |
381 * this method will complete with the same error. | 388 * this method will complete with the same error. |
382 */ | 389 */ |
383 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.int pag
eSize, core.String pageToken, core.List<core.String> pphNames, core.List<core.St
ring> studioNames, core.String videoId, core.List<core.String> countries, core.S
tring name, core.List<core.String> videoIds, core.List<core.String> mids, core.L
ist<core.String> seasonIds}) { | 390 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<co
re.String> studioNames, core.String name, core.List<core.String> seasonIds, core
.List<core.String> videoIds, core.String videoId, core.String pageToken, core.in
t pageSize, core.List<core.String> mids, core.List<core.String> pphNames, core.L
ist<core.String> countries}) { |
384 var _url = null; | 391 var _url = null; |
385 var _queryParams = new core.Map(); | 392 var _queryParams = new core.Map(); |
386 var _uploadMedia = null; | 393 var _uploadMedia = null; |
387 var _uploadOptions = null; | 394 var _uploadOptions = null; |
388 var _downloadOptions = commons.DownloadOptions.Metadata; | 395 var _downloadOptions = commons.DownloadOptions.Metadata; |
389 var _body = null; | 396 var _body = null; |
390 | 397 |
391 if (accountId == null) { | 398 if (accountId == null) { |
392 throw new core.ArgumentError("Parameter accountId is required."); | 399 throw new core.ArgumentError("Parameter accountId is required."); |
393 } | 400 } |
| 401 if (studioNames != null) { |
| 402 _queryParams["studioNames"] = studioNames; |
| 403 } |
| 404 if (name != null) { |
| 405 _queryParams["name"] = [name]; |
| 406 } |
| 407 if (seasonIds != null) { |
| 408 _queryParams["seasonIds"] = seasonIds; |
| 409 } |
| 410 if (videoIds != null) { |
| 411 _queryParams["videoIds"] = videoIds; |
| 412 } |
| 413 if (videoId != null) { |
| 414 _queryParams["videoId"] = [videoId]; |
| 415 } |
| 416 if (pageToken != null) { |
| 417 _queryParams["pageToken"] = [pageToken]; |
| 418 } |
394 if (pageSize != null) { | 419 if (pageSize != null) { |
395 _queryParams["pageSize"] = ["${pageSize}"]; | 420 _queryParams["pageSize"] = ["${pageSize}"]; |
396 } | 421 } |
397 if (pageToken != null) { | 422 if (mids != null) { |
398 _queryParams["pageToken"] = [pageToken]; | 423 _queryParams["mids"] = mids; |
399 } | 424 } |
400 if (pphNames != null) { | 425 if (pphNames != null) { |
401 _queryParams["pphNames"] = pphNames; | 426 _queryParams["pphNames"] = pphNames; |
402 } | 427 } |
403 if (studioNames != null) { | |
404 _queryParams["studioNames"] = studioNames; | |
405 } | |
406 if (videoId != null) { | |
407 _queryParams["videoId"] = [videoId]; | |
408 } | |
409 if (countries != null) { | 428 if (countries != null) { |
410 _queryParams["countries"] = countries; | 429 _queryParams["countries"] = countries; |
411 } | 430 } |
412 if (name != null) { | |
413 _queryParams["name"] = [name]; | |
414 } | |
415 if (videoIds != null) { | |
416 _queryParams["videoIds"] = videoIds; | |
417 } | |
418 if (mids != null) { | |
419 _queryParams["mids"] = mids; | |
420 } | |
421 if (seasonIds != null) { | |
422 _queryParams["seasonIds"] = seasonIds; | |
423 } | |
424 | 431 |
425 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; | 432 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; |
426 | 433 |
427 var _response = _requester.request(_url, | 434 var _response = _requester.request(_url, |
428 "GET", | 435 "GET", |
429 body: _body, | 436 body: _body, |
430 queryParams: _queryParams, | 437 queryParams: _queryParams, |
431 uploadOptions: _uploadOptions, | 438 uploadOptions: _uploadOptions, |
432 uploadMedia: _uploadMedia, | 439 uploadMedia: _uploadMedia, |
433 downloadOptions: _downloadOptions); | 440 downloadOptions: _downloadOptions); |
434 return _response.then((data) => new ListStoreInfosResponse.fromJson(data)); | 441 return _response.then((data) => new ListStoreInfosResponse.fromJson(data)); |
435 } | 442 } |
436 | 443 |
437 } | 444 } |
438 | 445 |
439 | 446 |
440 class AccountsStoreInfosCountryResourceApi { | 447 class AccountsStoreInfosCountryResourceApi { |
441 final commons.ApiRequester _requester; | 448 final commons.ApiRequester _requester; |
442 | 449 |
443 AccountsStoreInfosCountryResourceApi(commons.ApiRequester client) : | 450 AccountsStoreInfosCountryResourceApi(commons.ApiRequester client) : |
444 _requester = client; | 451 _requester = client; |
445 | 452 |
446 /** | 453 /** |
447 * Get a StoreInfo given its video id and country. See _Authentication and | 454 * Get a StoreInfo given its video id and country. |
448 * Authorization rules_ and _Get methods rules_ for more information about | 455 * |
449 * this method. | 456 * See _Authentication and Authorization rules_ and |
| 457 * _Get methods rules_ for more information about this method. |
450 * | 458 * |
451 * Request parameters: | 459 * Request parameters: |
452 * | 460 * |
453 * [accountId] - REQUIRED. See _General rules_ for more information about this | 461 * [accountId] - REQUIRED. See _General rules_ for more information about this |
454 * field. | 462 * field. |
455 * | 463 * |
456 * [videoId] - REQUIRED. Video ID. | 464 * [videoId] - REQUIRED. Video ID. |
457 * | 465 * |
458 * [country] - REQUIRED. Edit country. | 466 * [country] - REQUIRED. Edit country. |
459 * | 467 * |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 return _response.then((data) => new StoreInfo.fromJson(data)); | 503 return _response.then((data) => new StoreInfo.fromJson(data)); |
496 } | 504 } |
497 | 505 |
498 } | 506 } |
499 | 507 |
500 | 508 |
501 | 509 |
502 /** | 510 /** |
503 * An Avail describes the Availability Window of a specific Edit in a given | 511 * An Avail describes the Availability Window of a specific Edit in a given |
504 * country, which means the period Google is allowed to sell or rent the Edit. | 512 * country, which means the period Google is allowed to sell or rent the Edit. |
| 513 * |
505 * Avails are exposed in EMA format Version 1.6b (available at | 514 * Avails are exposed in EMA format Version 1.6b (available at |
506 * http://www.movielabs.com/md/avails/) Studios can see the Avails for the | 515 * http://www.movielabs.com/md/avails/) |
507 * Titles they own. Post-production houses cannot see any Avails. | 516 * |
| 517 * Studios can see the Avails for the Titles they own. |
| 518 * Post-production houses cannot see any Avails. |
508 */ | 519 */ |
509 class Avail { | 520 class Avail { |
510 /** | 521 /** |
511 * Other identifier referring to the Edit, as defined by partner. Example: | 522 * Other identifier referring to the Edit, as defined by partner. |
512 * "GOOGLER_2006" | 523 * Example: "GOOGLER_2006" |
513 */ | 524 */ |
514 core.String altId; | 525 core.String altId; |
515 /** | 526 /** |
516 * ID internally generated by Google to uniquely identify an Avail. Not part | 527 * ID internally generated by Google to uniquely identify an Avail. |
517 * of EMA Specs. | 528 * Not part of EMA Specs. |
518 */ | 529 */ |
519 core.String availId; | 530 core.String availId; |
520 /** | 531 /** |
521 * Communicating an exempt category as defined by FCC regulations. It is not | 532 * Communicating an exempt category as defined by FCC regulations. |
522 * required for non-US Avails. Example: "1" | 533 * It is not required for non-US Avails. |
| 534 * Example: "1" |
523 */ | 535 */ |
524 core.String captionExemption; | 536 core.String captionExemption; |
525 /** Communicating if caption file will be delivered. */ | 537 /** Communicating if caption file will be delivered. */ |
526 core.bool captionIncluded; | 538 core.bool captionIncluded; |
527 /** | 539 /** |
528 * Title Identifier. This should be the Title Level EIDR. Example: | 540 * Title Identifier. This should be the Title Level EIDR. |
529 * "10.5240/1489-49A2-3956-4B2D-FE16-5". | 541 * Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". |
530 */ | 542 */ |
531 core.String contentId; | 543 core.String contentId; |
532 /** | 544 /** |
533 * The name of the studio that owns the Edit referred in the Avail. This is | 545 * The name of the studio that owns the Edit referred in the Avail. |
534 * the equivalent of `studio_name` in other resources, but it follows the EMA | 546 * This is the equivalent of `studio_name` in other resources, but it follows |
535 * nomenclature. Example: "Google Films". | 547 * the EMA nomenclature. |
| 548 * Example: "Google Films". |
536 */ | 549 */ |
537 core.String displayName; | 550 core.String displayName; |
538 /** | 551 /** |
539 * Manifestation Identifier. This should be the Manifestation Level EIDR. | 552 * Manifestation Identifier. This should be the Manifestation |
| 553 * Level EIDR. |
540 * Example: "10.2340/1489-49A2-3956-4B2D-FE16-7" | 554 * Example: "10.2340/1489-49A2-3956-4B2D-FE16-7" |
541 */ | 555 */ |
542 core.String encodeId; | 556 core.String encodeId; |
543 /** | 557 /** |
544 * End of term in YYYY-MM-DD format in the timezone of the country of the | 558 * End of term in YYYY-MM-DD format in the timezone of the country |
545 * Avail. "Open" if no end date is available. Example: "2019-02-17" | 559 * of the Avail. |
| 560 * "Open" if no end date is available. |
| 561 * Example: "2019-02-17" |
546 */ | 562 */ |
547 core.String end; | 563 core.String end; |
548 /** | 564 /** |
549 * Other identifier referring to the episode, as defined by partner. Only | 565 * Other identifier referring to the episode, as defined by partner. |
550 * available on TV avails. Example: "rs_googlers_s1_3". | 566 * Only available on TV avails. |
| 567 * Example: "rs_googlers_s1_3". |
551 */ | 568 */ |
552 core.String episodeAltId; | 569 core.String episodeAltId; |
553 /** | 570 /** |
554 * The number assigned to the episode within a season. Only available on TV | 571 * The number assigned to the episode within a season. |
555 * Avails. Example: "3". | 572 * Only available on TV Avails. |
| 573 * Example: "3". |
556 */ | 574 */ |
557 core.String episodeNumber; | 575 core.String episodeNumber; |
558 /** | 576 /** |
559 * OPTIONAL.TV Only. Title used by involved parties to refer to this episode. | 577 * OPTIONAL.TV Only. Title used by involved parties to refer to this episode. |
560 * Only available on TV Avails. Example: "Coding at Google". | 578 * Only available on TV Avails. |
| 579 * Example: "Coding at Google". |
561 */ | 580 */ |
562 core.String episodeTitleInternalAlias; | 581 core.String episodeTitleInternalAlias; |
563 /** | 582 /** |
564 * Indicates the format profile covered by the transaction. | 583 * Indicates the format profile covered by the transaction. |
565 * Possible string values are: | 584 * Possible string values are: |
566 * - "FORMAT_PROFILE_UNSPECIFIED" : A FORMAT_PROFILE_UNSPECIFIED. | 585 * - "FORMAT_PROFILE_UNSPECIFIED" : Value could not be determined, please |
567 * - "SD" : A SD. | 586 * contact technical support if |
568 * - "HD" : A HD. | 587 * it should. |
569 * - "UHD" : A UHD. | 588 * - "SD" : Standard-definition format. |
| 589 * - "HD" : High-definition format. |
| 590 * - "UHD" : 4K UHD. |
570 */ | 591 */ |
571 core.String formatProfile; | 592 core.String formatProfile; |
572 /** | 593 /** |
573 * Type of transaction. | 594 * Type of transaction. |
574 * Possible string values are: | 595 * Possible string values are: |
575 * - "LICENSE_TYPE_UNSPECIFIED" : A LICENSE_TYPE_UNSPECIFIED. | 596 * - "LICENSE_TYPE_UNSPECIFIED" : Value could not be determined, please |
576 * - "EST" : A EST. | 597 * contact technical support if |
577 * - "VOD" : A VOD. | 598 * it should. |
578 * - "SVOD" : A SVOD. | 599 * - "EST" : Electronic Sell Through - purchase policy for unlimited viewing. |
579 * - "POEST" : A POEST. | 600 * - "VOD" : Video On Demand - rental policy for temporary viewing. |
| 601 * - "SVOD" : Subscription Video On Demand - used for subscription platforms. |
| 602 * Not supported on Google Play. |
| 603 * - "POEST" : Pre-order Electronic Sell Through - pre-order purchase only |
| 604 * window. |
580 */ | 605 */ |
581 core.String licenseType; | 606 core.String licenseType; |
582 /** | 607 /** |
583 * Name of the post-production houses that manage the Avail. Not part of EMA | 608 * Name of the post-production houses that manage the Avail. |
584 * Specs. | 609 * Not part of EMA Specs. |
585 */ | 610 */ |
586 core.List<core.String> pphNames; | 611 core.List<core.String> pphNames; |
587 /** | 612 /** |
588 * Type of pricing that should be applied to this Avail based on how the | 613 * Type of pricing that should be applied to this Avail |
589 * partner classify them. Example: "Tier", "WSP", "SRP", or "Category". | 614 * based on how the partner classify them. |
| 615 * Example: "Tier", "WSP", "SRP", or "Category". |
590 */ | 616 */ |
591 core.String priceType; | 617 core.String priceType; |
592 /** Value to be applied to the pricing type. Example: "4" or "2.99" */ | 618 /** |
| 619 * Value to be applied to the pricing type. |
| 620 * Example: "4" or "2.99" |
| 621 */ |
593 core.String priceValue; | 622 core.String priceValue; |
594 /** | 623 /** |
595 * Edit Identifier. This should be the Edit Level EIDR. Example: | 624 * Edit Identifier. This should be the Edit Level EIDR. |
596 * "10.2340/1489-49A2-3956-4B2D-FE16-6" | 625 * Example: "10.2340/1489-49A2-3956-4B2D-FE16-6" |
597 */ | 626 */ |
598 core.String productId; | 627 core.String productId; |
599 /** | 628 /** |
600 * Value representing the rating reason. Rating reasons should be formatted as | 629 * Value representing the rating reason. |
601 * per [EMA ratings spec](http://www.movielabs.com/md/ratings/) and | 630 * Rating reasons should be formatted as per |
602 * comma-separated for inclusion of multiple reasons. Example: "L, S, V" | 631 * [EMA ratings spec](http://www.movielabs.com/md/ratings/) |
| 632 * and comma-separated for inclusion of multiple reasons. |
| 633 * Example: "L, S, V" |
603 */ | 634 */ |
604 core.String ratingReason; | 635 core.String ratingReason; |
605 /** | 636 /** |
606 * Rating system applied to the version of title within territory of Avail. | 637 * Rating system applied to the version of title within territory |
607 * Rating systems should be formatted as per [EMA ratings | 638 * of Avail. |
608 * spec](http://www.movielabs.com/md/ratings/) Example: "MPAA" | 639 * Rating systems should be formatted as per |
| 640 * [EMA ratings spec](http://www.movielabs.com/md/ratings/) |
| 641 * Example: "MPAA" |
609 */ | 642 */ |
610 core.String ratingSystem; | 643 core.String ratingSystem; |
611 /** | 644 /** |
612 * Value representing the rating. Ratings should be formatted as per | 645 * Value representing the rating. |
613 * http://www.movielabs.com/md/ratings/ Example: "PG" | 646 * Ratings should be formatted as per http://www.movielabs.com/md/ratings/ |
| 647 * Example: "PG" |
614 */ | 648 */ |
615 core.String ratingValue; | 649 core.String ratingValue; |
616 /** | 650 /** |
617 * Release date of the Title in earliest released territory. Typically it is | 651 * Release date of the Title in earliest released territory. |
618 * just the year, but it is free-form as per EMA spec. Examples: "1979", "Oct | 652 * Typically it is just the year, but it is free-form as per EMA spec. |
619 * 2014" | 653 * Examples: "1979", "Oct 2014" |
620 */ | 654 */ |
621 core.String releaseDate; | 655 core.String releaseDate; |
622 /** | 656 /** |
623 * Other identifier referring to the season, as defined by partner. Only | 657 * Other identifier referring to the season, as defined by partner. |
624 * available on TV avails. Example: "rs_googlers_s1". | 658 * Only available on TV avails. |
| 659 * Example: "rs_googlers_s1". |
625 */ | 660 */ |
626 core.String seasonAltId; | 661 core.String seasonAltId; |
627 /** | 662 /** |
628 * The number assigned to the season within a series. Only available on TV | 663 * The number assigned to the season within a series. |
629 * Avails. Example: "1". | 664 * Only available on TV Avails. |
| 665 * Example: "1". |
630 */ | 666 */ |
631 core.String seasonNumber; | 667 core.String seasonNumber; |
632 /** | 668 /** |
633 * Title used by involved parties to refer to this season. Only available on | 669 * Title used by involved parties to refer to this season. |
634 * TV Avails. Example: "Googlers, The". | 670 * Only available on TV Avails. |
| 671 * Example: "Googlers, The". |
635 */ | 672 */ |
636 core.String seasonTitleInternalAlias; | 673 core.String seasonTitleInternalAlias; |
637 /** | 674 /** |
638 * Other identifier referring to the series, as defined by partner. Only | 675 * Other identifier referring to the series, as defined by partner. |
639 * available on TV avails. Example: "rs_googlers". | 676 * Only available on TV avails. |
| 677 * Example: "rs_googlers". |
640 */ | 678 */ |
641 core.String seriesAltId; | 679 core.String seriesAltId; |
642 /** | 680 /** |
643 * Title used by involved parties to refer to this series. Only available on | 681 * Title used by involved parties to refer to this series. |
644 * TV Avails. Example: "Googlers, The". | 682 * Only available on TV Avails. |
| 683 * Example: "Googlers, The". |
645 */ | 684 */ |
646 core.String seriesTitleInternalAlias; | 685 core.String seriesTitleInternalAlias; |
647 /** | 686 /** |
648 * Start of term in YYYY-MM-DD format in the timezone of the country of the | 687 * Start of term in YYYY-MM-DD format in the timezone of the |
649 * Avail. Example: "2013-05-14". | 688 * country of the Avail. |
| 689 * Example: "2013-05-14". |
650 */ | 690 */ |
651 core.String start; | 691 core.String start; |
652 /** | 692 /** |
653 * Spoken language of the intended audience. Language shall be encoded in | 693 * Spoken language of the intended audience. |
654 * accordance with RFC 5646. Example: "fr". | 694 * Language shall be encoded in accordance with RFC 5646. |
| 695 * Example: "fr". |
655 */ | 696 */ |
656 core.String storeLanguage; | 697 core.String storeLanguage; |
657 /** | 698 /** |
658 * First date an Edit could be publically announced as becoming available at a | 699 * First date an Edit could be publically announced as becoming |
659 * specific future date in territory of Avail. *Not* the Avail start date or | 700 * available at a specific future date in territory of Avail. |
660 * pre-order start date. Format is YYYY-MM-DD. Only available for pre-orders. | 701 * *Not* the Avail start date or pre-order start date. |
| 702 * Format is YYYY-MM-DD. |
| 703 * Only available for pre-orders. |
661 * Example: "2012-12-10" | 704 * Example: "2012-12-10" |
662 */ | 705 */ |
663 core.String suppressionLiftDate; | 706 core.String suppressionLiftDate; |
664 /** | 707 /** |
665 * ISO 3166-1 alpha-2 country code for the country or territory of this Avail. | 708 * ISO 3166-1 alpha-2 country code for the country or territory |
666 * For Avails, we use Territory in lieu of Country to comply with EMA | 709 * of this Avail. |
667 * specifications. But please note that Territory and Country identify the | 710 * For Avails, we use Territory in lieu of Country to comply with |
668 * same thing. Example: "US". | 711 * EMA specifications. |
| 712 * But please note that Territory and Country identify the same thing. |
| 713 * Example: "US". |
669 */ | 714 */ |
670 core.String territory; | 715 core.String territory; |
671 /** | 716 /** |
672 * Title used by involved parties to refer to this content. Example: | 717 * Title used by involved parties to refer to this content. |
673 * "Googlers, The". Only available on Movie Avails. | 718 * Example: "Googlers, The". |
| 719 * Only available on Movie Avails. |
674 */ | 720 */ |
675 core.String titleInternalAlias; | 721 core.String titleInternalAlias; |
676 /** | 722 /** |
677 * Google-generated ID identifying the video linked to this Avail, once | 723 * Google-generated ID identifying the video linked to this Avail, once |
678 * delivered. Not part of EMA Specs. Example: 'gtry456_xc' | 724 * delivered. |
| 725 * Not part of EMA Specs. |
| 726 * Example: 'gtry456_xc' |
679 */ | 727 */ |
680 core.String videoId; | 728 core.String videoId; |
681 /** | 729 /** |
682 * Work type as enumerated in EMA. | 730 * Work type as enumerated in EMA. |
683 * Possible string values are: | 731 * Possible string values are: |
684 * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 732 * - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please contact |
685 * - "MOVIE" : A MOVIE. | 733 * technical support if |
686 * - "SEASON" : A SEASON. | 734 * it should. |
687 * - "EPISODE" : A EPISODE. | 735 * - "MOVIE" : A movie picture. |
688 * - "BUNDLE" : A BUNDLE. | 736 * - "SEASON" : A season of a TV show. |
| 737 * - "EPISODE" : An episode of a TV show. |
| 738 * - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the |
| 739 * return" |
689 */ | 740 */ |
690 core.String workType; | 741 core.String workType; |
691 | 742 |
692 Avail(); | 743 Avail(); |
693 | 744 |
694 Avail.fromJson(core.Map _json) { | 745 Avail.fromJson(core.Map _json) { |
695 if (_json.containsKey("altId")) { | 746 if (_json.containsKey("altId")) { |
696 altId = _json["altId"]; | 747 altId = _json["altId"]; |
697 } | 748 } |
698 if (_json.containsKey("availId")) { | 749 if (_json.containsKey("availId")) { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 _json["storeInfos"] = storeInfos.map((value) => (value).toJson()).toList()
; | 1057 _json["storeInfos"] = storeInfos.map((value) => (value).toJson()).toList()
; |
1007 } | 1058 } |
1008 if (totalSize != null) { | 1059 if (totalSize != null) { |
1009 _json["totalSize"] = totalSize; | 1060 _json["totalSize"] = totalSize; |
1010 } | 1061 } |
1011 return _json; | 1062 return _json; |
1012 } | 1063 } |
1013 } | 1064 } |
1014 | 1065 |
1015 /** | 1066 /** |
1016 * An Order tracks the fulfillment of an Edit when delivered using the legacy, | 1067 * An Order tracks the fulfillment of an Edit when delivered using the |
1017 * non-component-based delivery. Each Order is uniquely identified by an | 1068 * legacy, non-component-based delivery. |
1018 * `order_id`, which is generated by Google. Externally, Orders can also be | 1069 * |
1019 * identified by partners using its `custom_id` (when provided). | 1070 * Each Order is uniquely identified by an `order_id`, which is generated |
| 1071 * by Google. |
| 1072 * |
| 1073 * Externally, Orders can also be identified by partners using its `custom_id` |
| 1074 * (when provided). |
1020 */ | 1075 */ |
1021 class Order { | 1076 class Order { |
1022 /** Timestamp when the Order was approved. */ | 1077 /** Timestamp when the Order was approved. */ |
1023 core.String approvedTime; | 1078 core.String approvedTime; |
1024 /** | 1079 /** |
1025 * YouTube Channel ID that should be used to fulfill the Order. Example: | 1080 * YouTube Channel ID that should be used to fulfill the Order. |
1026 * "UCRG64darCZhb". | 1081 * Example: "UCRG64darCZhb". |
1027 */ | 1082 */ |
1028 core.String channelId; | 1083 core.String channelId; |
1029 /** | 1084 /** |
1030 * YouTube Channel Name that should be used to fulfill the Order. Example: | 1085 * YouTube Channel Name that should be used to fulfill the Order. |
1031 * "Google_channel". | 1086 * Example: "Google_channel". |
1032 */ | 1087 */ |
1033 core.String channelName; | 1088 core.String channelName; |
1034 /** | 1089 /** |
1035 * Countries where the Order is available, using the "ISO 3166-1 alpha-2" | 1090 * Countries where the Order is available, |
1036 * format (example: "US"). | 1091 * using the "ISO 3166-1 alpha-2" format (example: "US"). |
1037 */ | 1092 */ |
1038 core.List<core.String> countries; | 1093 core.List<core.String> countries; |
1039 /** | 1094 /** |
1040 * ID that can be used to externally identify an Order. This ID is provided by | 1095 * ID that can be used to externally identify an Order. |
1041 * partners when submitting the Avails. Example: 'GOOGLER_2006' | 1096 * This ID is provided by partners when submitting the Avails. |
| 1097 * Example: 'GOOGLER_2006' |
1042 */ | 1098 */ |
1043 core.String customId; | 1099 core.String customId; |
1044 /** | 1100 /** |
1045 * Timestamp of the earliest start date of the Avails linked to this Order. | 1101 * Timestamp of the earliest start date of the Avails |
| 1102 * linked to this Order. |
1046 */ | 1103 */ |
1047 core.String earliestAvailStartTime; | 1104 core.String earliestAvailStartTime; |
1048 /** | 1105 /** |
1049 * Default Episode name, usually in the language of the country of origin. | 1106 * Default Episode name, |
1050 * Only available for TV Edits Example: "Googlers, The - Pilot". | 1107 * usually in the language of the country of origin. |
| 1108 * Only available for TV Edits |
| 1109 * Example: "Googlers, The - Pilot". |
1051 */ | 1110 */ |
1052 core.String episodeName; | 1111 core.String episodeName; |
1053 /** Legacy Order priority, as defined by Google. Example: 'P0' */ | 1112 /** |
| 1113 * Legacy Order priority, as defined by Google. |
| 1114 * Example: 'P0' |
| 1115 */ |
1054 core.String legacyPriority; | 1116 core.String legacyPriority; |
1055 /** | 1117 /** |
1056 * Default Edit name, usually in the language of the country of origin. | 1118 * Default Edit name, |
| 1119 * usually in the language of the country of origin. |
1057 * Example: "Googlers, The". | 1120 * Example: "Googlers, The". |
1058 */ | 1121 */ |
1059 core.String name; | 1122 core.String name; |
1060 /** | 1123 /** |
1061 * A simpler representation of the priority. | 1124 * A simpler representation of the priority. |
1062 * Possible string values are: | 1125 * Possible string values are: |
1063 * - "NORMALIZED_PRIORITY_UNSPECIFIED" : A NORMALIZED_PRIORITY_UNSPECIFIED. | 1126 * - "NORMALIZED_PRIORITY_UNSPECIFIED" : Value could not be determined, please |
1064 * - "LOW_PRIORITY" : A LOW_PRIORITY. | 1127 * contact technical support if |
1065 * - "HIGH_PRIORITY" : A HIGH_PRIORITY. | 1128 * it should. |
| 1129 * - "LOW_PRIORITY" : A low-priority asset, typically from a library movie. |
| 1130 * - "HIGH_PRIORITY" : A high-priority asset, typically from a new release or |
| 1131 * box office hit. |
1066 */ | 1132 */ |
1067 core.String normalizedPriority; | 1133 core.String normalizedPriority; |
1068 /** | 1134 /** |
1069 * ID internally generated by Google to uniquely identify an Order. Example: | 1135 * ID internally generated by Google to uniquely identify an Order. |
1070 * 'abcde12_x' | 1136 * Example: 'abcde12_x' |
1071 */ | 1137 */ |
1072 core.String orderId; | 1138 core.String orderId; |
1073 /** Timestamp when the Order was created. */ | 1139 /** Timestamp when the Order was created. */ |
1074 core.String orderedTime; | 1140 core.String orderedTime; |
1075 /** Name of the post-production house that manages the Edit ordered. */ | 1141 /** Name of the post-production house that manages the Edit ordered. */ |
1076 core.String pphName; | 1142 core.String pphName; |
1077 /** | 1143 /** |
1078 * Order priority, as defined by Google. The higher the value, the higher the | 1144 * Order priority, as defined by Google. |
1079 * priority. Example: 90 | 1145 * The higher the value, the higher the priority. |
| 1146 * Example: 90 |
1080 */ | 1147 */ |
1081 core.double priority; | 1148 core.double priority; |
1082 /** Timestamp when the Order was fulfilled. */ | 1149 /** Timestamp when the Order was fulfilled. */ |
1083 core.String receivedTime; | 1150 core.String receivedTime; |
1084 /** | 1151 /** |
1085 * Field explaining why an Order has been rejected. Example: "Trailer audio is | 1152 * Field explaining why an Order has been rejected. |
1086 * 2ch mono, please re-deliver in stereo". | 1153 * Example: "Trailer audio is 2ch mono, please re-deliver in stereo". |
1087 */ | 1154 */ |
1088 core.String rejectionNote; | 1155 core.String rejectionNote; |
1089 /** | 1156 /** |
1090 * Default Season name, usually in the language of the country of origin. Only | 1157 * Default Season name, |
1091 * available for TV Edits Example: "Googlers, The - A Brave New World". | 1158 * usually in the language of the country of origin. |
| 1159 * Only available for TV Edits |
| 1160 * Example: "Googlers, The - A Brave New World". |
1092 */ | 1161 */ |
1093 core.String seasonName; | 1162 core.String seasonName; |
1094 /** | 1163 /** |
1095 * Default Show name, usually in the language of the country of origin. Only | 1164 * Default Show name, |
1096 * available for TV Edits Example: "Googlers, The". | 1165 * usually in the language of the country of origin. |
| 1166 * Only available for TV Edits |
| 1167 * Example: "Googlers, The". |
1097 */ | 1168 */ |
1098 core.String showName; | 1169 core.String showName; |
1099 /** | 1170 /** |
1100 * High-level status of the order. | 1171 * High-level status of the order. |
1101 * Possible string values are: | 1172 * Possible string values are: |
1102 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. | 1173 * - "STATUS_UNSPECIFIED" : Value could not be determined, please contact |
1103 * - "STATUS_APPROVED" : A STATUS_APPROVED. | 1174 * technical support if |
1104 * - "STATUS_FAILED" : A STATUS_FAILED. | 1175 * it should. |
1105 * - "STATUS_PROCESSING" : A STATUS_PROCESSING. | 1176 * - "STATUS_APPROVED" : Approved by Google. |
1106 * - "STATUS_UNFULFILLED" : A STATUS_UNFULFILLED. | 1177 * - "STATUS_FAILED" : Waiting for partner to re-deliver the asset after a |
1107 * - "STATUS_NOT_AVAILABLE" : A STATUS_NOT_AVAILABLE. | 1178 * rejection by Google. |
| 1179 * - "STATUS_PROCESSING" : Waiting for Google to process the asset. |
| 1180 * - "STATUS_UNFULFILLED" : Waiting for partner to deliver the asset. |
| 1181 * - "STATUS_NOT_AVAILABLE" : Used when Status is not available (i.e: Orders |
| 1182 * for TV Seasons). |
1108 */ | 1183 */ |
1109 core.String status; | 1184 core.String status; |
1110 /** | 1185 /** |
1111 * Detailed status of the order | 1186 * Detailed status of the order |
1112 * Possible string values are: | 1187 * Possible string values are: |
1113 * - "ORDER_STATUS_UNSPECIFIED" : A ORDER_STATUS_UNSPECIFIED. | 1188 * - "ORDER_STATUS_UNSPECIFIED" : Value could not be determined, please |
1114 * - "ORDER_STATUS_QC_APPROVED" : A ORDER_STATUS_QC_APPROVED. | 1189 * contact technical support if |
1115 * - "ORDER_STATUS_QC_REJECTION" : A ORDER_STATUS_QC_REJECTION. | 1190 * it should. |
1116 * - "ORDER_STATUS_INTERNAL_FIX" : A ORDER_STATUS_INTERNAL_FIX. | 1191 * - "ORDER_STATUS_QC_APPROVED" : Approved by Google's Quality Control team. |
1117 * - "ORDER_STATUS_OPEN_ORDER" : A ORDER_STATUS_OPEN_ORDER. | 1192 * - "ORDER_STATUS_QC_REJECTION" : Rejected by Google's Quality Control team, |
1118 * - "ORDER_STATUS_NOT_AVAILABLE" : A ORDER_STATUS_NOT_AVAILABLE. | 1193 * pending partner redelivery. |
1119 * - "ORDER_STATUS_AWAITING_REDELIVERY" : A ORDER_STATUS_AWAITING_REDELIVERY. | 1194 * - "ORDER_STATUS_INTERNAL_FIX" : Internal error while processing the Order. |
1120 * - "ORDER_STATUS_READY_FOR_QC" : A ORDER_STATUS_READY_FOR_QC. | 1195 * - "ORDER_STATUS_OPEN_ORDER" : Waiting for initial delivery from partner. |
1121 * - "ORDER_STATUS_FILE_PROCESSING" : A ORDER_STATUS_FILE_PROCESSING. | 1196 * - "ORDER_STATUS_NOT_AVAILABLE" : Used on Orders that do not have Status, |
| 1197 * like TV Seasons. |
| 1198 * - "ORDER_STATUS_AWAITING_REDELIVERY" : Waiting for re-delivery from |
| 1199 * partner. |
| 1200 * - "ORDER_STATUS_READY_FOR_QC" : Asset was delivered by partner, but is |
| 1201 * being reviewed by Google's |
| 1202 * Quality Control team. |
| 1203 * - "ORDER_STATUS_FILE_PROCESSING" : Waiting for Google to process the asset. |
1122 */ | 1204 */ |
1123 core.String statusDetail; | 1205 core.String statusDetail; |
1124 /** Name of the studio that owns the Edit ordered. */ | 1206 /** Name of the studio that owns the Edit ordered. */ |
1125 core.String studioName; | 1207 core.String studioName; |
1126 /** | 1208 /** |
1127 * Type of the Edit linked to the Order. | 1209 * Type of the Edit linked to the Order. |
1128 * Possible string values are: | 1210 * Possible string values are: |
1129 * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 1211 * - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please contact |
1130 * - "MOVIE" : A MOVIE. | 1212 * technical support if |
1131 * - "SEASON" : A SEASON. | 1213 * it should. |
1132 * - "EPISODE" : A EPISODE. | 1214 * - "MOVIE" : A movie picture. |
1133 * - "BUNDLE" : A BUNDLE. | 1215 * - "SEASON" : A season of a TV show. |
| 1216 * - "EPISODE" : An episode of a TV show. |
| 1217 * - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the |
| 1218 * return" |
1134 */ | 1219 */ |
1135 core.String type; | 1220 core.String type; |
1136 /** | 1221 /** |
1137 * Google-generated ID identifying the video linked to this Order, once | 1222 * Google-generated ID identifying the video linked to this Order, once |
1138 * delivered. Example: 'gtry456_xc'. | 1223 * delivered. |
| 1224 * Example: 'gtry456_xc'. |
1139 */ | 1225 */ |
1140 core.String videoId; | 1226 core.String videoId; |
1141 | 1227 |
1142 Order(); | 1228 Order(); |
1143 | 1229 |
1144 Order.fromJson(core.Map _json) { | 1230 Order.fromJson(core.Map _json) { |
1145 if (_json.containsKey("approvedTime")) { | 1231 if (_json.containsKey("approvedTime")) { |
1146 approvedTime = _json["approvedTime"]; | 1232 approvedTime = _json["approvedTime"]; |
1147 } | 1233 } |
1148 if (_json.containsKey("channelId")) { | 1234 if (_json.containsKey("channelId")) { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 _json["type"] = type; | 1368 _json["type"] = type; |
1283 } | 1369 } |
1284 if (videoId != null) { | 1370 if (videoId != null) { |
1285 _json["videoId"] = videoId; | 1371 _json["videoId"] = videoId; |
1286 } | 1372 } |
1287 return _json; | 1373 return _json; |
1288 } | 1374 } |
1289 } | 1375 } |
1290 | 1376 |
1291 /** | 1377 /** |
1292 * Information about a playable sequence (video) associated with an Edit and | 1378 * Information about a playable sequence (video) associated with an Edit |
1293 * available at the Google Play Store. Internally, each StoreInfo is uniquely | 1379 * and available at the Google Play Store. |
1294 * identified by a `video_id` and `country`. Externally, Title-level EIDR or | 1380 * |
1295 * Edit-level EIDR, if provided, can also be used to identify a specific title | 1381 * Internally, each StoreInfo is uniquely identified by a `video_id` |
1296 * or edit in a country. | 1382 * and `country`. |
| 1383 * |
| 1384 * Externally, Title-level EIDR or Edit-level EIDR, if provided, |
| 1385 * can also be used to identify a specific title or edit in a country. |
1297 */ | 1386 */ |
1298 class StoreInfo { | 1387 class StoreInfo { |
1299 /** Audio tracks available for this Edit. */ | 1388 /** Audio tracks available for this Edit. */ |
1300 core.List<core.String> audioTracks; | 1389 core.List<core.String> audioTracks; |
1301 /** | 1390 /** |
1302 * Country where Edit is available in ISO 3166-1 alpha-2 country code. | 1391 * Country where Edit is available in ISO 3166-1 alpha-2 country |
| 1392 * code. |
1303 * Example: "US". | 1393 * Example: "US". |
1304 */ | 1394 */ |
1305 core.String country; | 1395 core.String country; |
1306 /** Edit-level EIDR ID. Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". */ | 1396 /** |
| 1397 * Edit-level EIDR ID. |
| 1398 * Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". |
| 1399 */ |
1307 core.String editLevelEidr; | 1400 core.String editLevelEidr; |
1308 /** | 1401 /** |
1309 * The number assigned to the episode within a season. Only available on TV | 1402 * The number assigned to the episode within a season. |
1310 * Edits. Example: "1". | 1403 * Only available on TV Edits. |
| 1404 * Example: "1". |
1311 */ | 1405 */ |
1312 core.String episodeNumber; | 1406 core.String episodeNumber; |
1313 /** Whether the Edit has a 5.1 channel audio track. */ | 1407 /** Whether the Edit has a 5.1 channel audio track. */ |
1314 core.bool hasAudio51; | 1408 core.bool hasAudio51; |
1315 /** Whether the Edit has a EST offer. */ | 1409 /** Whether the Edit has a EST offer. */ |
1316 core.bool hasEstOffer; | 1410 core.bool hasEstOffer; |
1317 /** Whether the Edit has a HD offer. */ | 1411 /** Whether the Edit has a HD offer. */ |
1318 core.bool hasHdOffer; | 1412 core.bool hasHdOffer; |
1319 /** Whether the Edit has info cards. */ | 1413 /** Whether the Edit has info cards. */ |
1320 core.bool hasInfoCards; | 1414 core.bool hasInfoCards; |
1321 /** Whether the Edit has a SD offer. */ | 1415 /** Whether the Edit has a SD offer. */ |
1322 core.bool hasSdOffer; | 1416 core.bool hasSdOffer; |
1323 /** Whether the Edit has a VOD offer. */ | 1417 /** Whether the Edit has a VOD offer. */ |
1324 core.bool hasVodOffer; | 1418 core.bool hasVodOffer; |
1325 /** Timestamp when the Edit went live on the Store. */ | 1419 /** Timestamp when the Edit went live on the Store. */ |
1326 core.String liveTime; | 1420 core.String liveTime; |
1327 /** | 1421 /** |
1328 * Knowledge Graph ID associated to this Edit, if available. This ID links the | 1422 * Knowledge Graph ID associated to this Edit, if available. |
1329 * Edit to its knowledge entity, externally accessible at http://freebase.com. | 1423 * This ID links the Edit to its knowledge entity, externally accessible |
| 1424 * at http://freebase.com. |
1330 * In the absense of Title EIDR or Edit EIDR, this ID helps link together | 1425 * In the absense of Title EIDR or Edit EIDR, this ID helps link together |
1331 * multiple Edits across countries. Example: '/m/0ffx29' | 1426 * multiple Edits across countries. |
| 1427 * Example: '/m/0ffx29' |
1332 */ | 1428 */ |
1333 core.String mid; | 1429 core.String mid; |
1334 /** | 1430 /** |
1335 * Default Edit name, usually in the language of the country of origin. | 1431 * Default Edit name, usually in the language of the country of |
| 1432 * origin. |
1336 * Example: "Googlers, The". | 1433 * Example: "Googlers, The". |
1337 */ | 1434 */ |
1338 core.String name; | 1435 core.String name; |
1339 /** Name of the post-production houses that manage the Edit. */ | 1436 /** Name of the post-production houses that manage the Edit. */ |
1340 core.List<core.String> pphNames; | 1437 core.List<core.String> pphNames; |
1341 /** | 1438 /** |
1342 * Google-generated ID identifying the season linked to the Edit. Only | 1439 * Google-generated ID identifying the season linked to the Edit. |
1343 * available for TV Edits. Example: 'ster23ex' | 1440 * Only available for TV Edits. |
| 1441 * Example: 'ster23ex' |
1344 */ | 1442 */ |
1345 core.String seasonId; | 1443 core.String seasonId; |
1346 /** | 1444 /** |
1347 * Default Season name, usually in the language of the country of origin. Only | 1445 * Default Season name, usually in the language of the country of |
1348 * available for TV Edits Example: "Googlers, The - A Brave New World". | 1446 * origin. |
| 1447 * Only available for TV Edits |
| 1448 * Example: "Googlers, The - A Brave New World". |
1349 */ | 1449 */ |
1350 core.String seasonName; | 1450 core.String seasonName; |
1351 /** | 1451 /** |
1352 * The number assigned to the season within a show. Only available on TV | 1452 * The number assigned to the season within a show. |
1353 * Edits. Example: "1". | 1453 * Only available on TV Edits. |
| 1454 * Example: "1". |
1354 */ | 1455 */ |
1355 core.String seasonNumber; | 1456 core.String seasonNumber; |
1356 /** | 1457 /** |
1357 * Google-generated ID identifying the show linked to the Edit. Only available | 1458 * Google-generated ID identifying the show linked to the Edit. |
1358 * for TV Edits. Example: 'et2hsue_x' | 1459 * Only available for TV Edits. |
| 1460 * Example: 'et2hsue_x' |
1359 */ | 1461 */ |
1360 core.String showId; | 1462 core.String showId; |
1361 /** | 1463 /** |
1362 * Default Show name, usually in the language of the country of origin. Only | 1464 * Default Show name, usually in the language of the country of |
1363 * available for TV Edits Example: "Googlers, The". | 1465 * origin. |
| 1466 * Only available for TV Edits |
| 1467 * Example: "Googlers, The". |
1364 */ | 1468 */ |
1365 core.String showName; | 1469 core.String showName; |
1366 /** Name of the studio that owns the Edit ordered. */ | 1470 /** Name of the studio that owns the Edit ordered. */ |
1367 core.String studioName; | 1471 core.String studioName; |
1368 /** Subtitles available for this Edit. */ | 1472 /** Subtitles available for this Edit. */ |
1369 core.List<core.String> subtitles; | 1473 core.List<core.String> subtitles; |
1370 /** Title-level EIDR ID. Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". */ | 1474 /** |
| 1475 * Title-level EIDR ID. |
| 1476 * Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". |
| 1477 */ |
1371 core.String titleLevelEidr; | 1478 core.String titleLevelEidr; |
1372 /** | 1479 /** |
1373 * Google-generated ID identifying the trailer linked to the Edit. Example: | 1480 * Google-generated ID identifying the trailer linked to the Edit. |
1374 * 'bhd_4e_cx' | 1481 * Example: 'bhd_4e_cx' |
1375 */ | 1482 */ |
1376 core.String trailerId; | 1483 core.String trailerId; |
1377 /** | 1484 /** |
1378 * Edit type, like Movie, Episode or Season. | 1485 * Edit type, like Movie, Episode or Season. |
1379 * Possible string values are: | 1486 * Possible string values are: |
1380 * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 1487 * - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please contact |
1381 * - "MOVIE" : A MOVIE. | 1488 * technical support if |
1382 * - "SEASON" : A SEASON. | 1489 * it should. |
1383 * - "EPISODE" : A EPISODE. | 1490 * - "MOVIE" : A movie picture. |
1384 * - "BUNDLE" : A BUNDLE. | 1491 * - "SEASON" : A season of a TV show. |
| 1492 * - "EPISODE" : An episode of a TV show. |
| 1493 * - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the |
| 1494 * return" |
1385 */ | 1495 */ |
1386 core.String type; | 1496 core.String type; |
1387 /** | 1497 /** |
1388 * Google-generated ID identifying the video linked to the Edit. Example: | 1498 * Google-generated ID identifying the video linked to the Edit. |
1389 * 'gtry456_xc' | 1499 * Example: 'gtry456_xc' |
1390 */ | 1500 */ |
1391 core.String videoId; | 1501 core.String videoId; |
1392 | 1502 |
1393 StoreInfo(); | 1503 StoreInfo(); |
1394 | 1504 |
1395 StoreInfo.fromJson(core.Map _json) { | 1505 StoreInfo.fromJson(core.Map _json) { |
1396 if (_json.containsKey("audioTracks")) { | 1506 if (_json.containsKey("audioTracks")) { |
1397 audioTracks = _json["audioTracks"]; | 1507 audioTracks = _json["audioTracks"]; |
1398 } | 1508 } |
1399 if (_json.containsKey("country")) { | 1509 if (_json.containsKey("country")) { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 } | 1653 } |
1544 if (type != null) { | 1654 if (type != null) { |
1545 _json["type"] = type; | 1655 _json["type"] = type; |
1546 } | 1656 } |
1547 if (videoId != null) { | 1657 if (videoId != null) { |
1548 _json["videoId"] = videoId; | 1658 _json["videoId"] = videoId; |
1549 } | 1659 } |
1550 return _json; | 1660 return _json; |
1551 } | 1661 } |
1552 } | 1662 } |
OLD | NEW |