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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 * List Avails owned or managed by the partner. | 96 * List Avails owned or managed by the partner. |
97 * | 97 * |
98 * See _Authentication and Authorization rules_ and | 98 * See _Authentication and Authorization rules_ and |
99 * _List methods rules_ for more information about this method. | 99 * _List methods rules_ for more information about this method. |
100 * | 100 * |
101 * Request parameters: | 101 * Request parameters: |
102 * | 102 * |
103 * [accountId] - REQUIRED. See _General rules_ for more information about this | 103 * [accountId] - REQUIRED. See _General rules_ for more information about this |
104 * field. | 104 * field. |
105 * | 105 * |
106 * [altId] - Filter Avails that match a case-insensitive, partner-specific | |
107 * custom id. | |
108 * NOTE: this field is deprecated and will be removed on V2; `alt_ids` | |
109 * should be used instead. | |
110 * | |
111 * [studioNames] - See _List methods rules_ for info about this field. | |
112 * | |
113 * [territories] - Filter Avails that match (case-insensitive) any of the | 106 * [territories] - Filter Avails that match (case-insensitive) any of the |
114 * given country codes, | 107 * given country codes, |
115 * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). | 108 * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
116 * | 109 * |
117 * [title] - Filter that matches Avails with a `title_internal_alias`, | 110 * [title] - Filter that matches Avails with a `title_internal_alias`, |
118 * `series_title_internal_alias`, `season_title_internal_alias`, | 111 * `series_title_internal_alias`, `season_title_internal_alias`, |
119 * or `episode_title_internal_alias` that contains the given | 112 * or `episode_title_internal_alias` that contains the given |
120 * case-insensitive title. | 113 * case-insensitive title. |
121 * | 114 * |
| 115 * [videoIds] - Filter Avails that match any of the given `video_id`s. |
| 116 * |
122 * [pageToken] - See _List methods rules_ for info about this field. | 117 * [pageToken] - See _List methods rules_ for info about this field. |
123 * | 118 * |
124 * [videoIds] - Filter Avails that match any of the given `video_id`s. | |
125 * | |
126 * [pageSize] - See _List methods rules_ for info about this field. | 119 * [pageSize] - See _List methods rules_ for info about this field. |
127 * | 120 * |
128 * [altIds] - Filter Avails that match (case-insensitive) any of the given | 121 * [altIds] - Filter Avails that match (case-insensitive) any of the given |
129 * partner-specific custom ids. | 122 * partner-specific custom ids. |
130 * | 123 * |
131 * [pphNames] - See _List methods rules_ for info about this field. | 124 * [pphNames] - See _List methods rules_ for info about this field. |
132 * | 125 * |
| 126 * [altId] - Filter Avails that match a case-insensitive, partner-specific |
| 127 * custom id. |
| 128 * NOTE: this field is deprecated and will be removed on V2; `alt_ids` |
| 129 * should be used instead. |
| 130 * |
| 131 * [studioNames] - See _List methods rules_ for info about this field. |
| 132 * |
133 * Completes with a [ListAvailsResponse]. | 133 * Completes with a [ListAvailsResponse]. |
134 * | 134 * |
135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
136 * error. | 136 * error. |
137 * | 137 * |
138 * 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, |
139 * this method will complete with the same error. | 139 * this method will complete with the same error. |
140 */ | 140 */ |
141 async.Future<ListAvailsResponse> list(core.String accountId, {core.String altI
d, core.List<core.String> studioNames, core.List<core.String> territories, core.
String title, core.String pageToken, core.List<core.String> videoIds, core.int p
ageSize, core.List<core.String> altIds, core.List<core.String> pphNames}) { | 141 async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.S
tring> territories, core.String title, core.List<core.String> videoIds, core.Str
ing pageToken, core.int pageSize, core.List<core.String> altIds, core.List<core.
String> pphNames, core.String altId, core.List<core.String> studioNames}) { |
142 var _url = null; | 142 var _url = null; |
143 var _queryParams = new core.Map(); | 143 var _queryParams = new core.Map(); |
144 var _uploadMedia = null; | 144 var _uploadMedia = null; |
145 var _uploadOptions = null; | 145 var _uploadOptions = null; |
146 var _downloadOptions = commons.DownloadOptions.Metadata; | 146 var _downloadOptions = commons.DownloadOptions.Metadata; |
147 var _body = null; | 147 var _body = null; |
148 | 148 |
149 if (accountId == null) { | 149 if (accountId == null) { |
150 throw new core.ArgumentError("Parameter accountId is required."); | 150 throw new core.ArgumentError("Parameter accountId is required."); |
151 } | 151 } |
152 if (altId != null) { | |
153 _queryParams["altId"] = [altId]; | |
154 } | |
155 if (studioNames != null) { | |
156 _queryParams["studioNames"] = studioNames; | |
157 } | |
158 if (territories != null) { | 152 if (territories != null) { |
159 _queryParams["territories"] = territories; | 153 _queryParams["territories"] = territories; |
160 } | 154 } |
161 if (title != null) { | 155 if (title != null) { |
162 _queryParams["title"] = [title]; | 156 _queryParams["title"] = [title]; |
163 } | 157 } |
| 158 if (videoIds != null) { |
| 159 _queryParams["videoIds"] = videoIds; |
| 160 } |
164 if (pageToken != null) { | 161 if (pageToken != null) { |
165 _queryParams["pageToken"] = [pageToken]; | 162 _queryParams["pageToken"] = [pageToken]; |
166 } | 163 } |
167 if (videoIds != null) { | |
168 _queryParams["videoIds"] = videoIds; | |
169 } | |
170 if (pageSize != null) { | 164 if (pageSize != null) { |
171 _queryParams["pageSize"] = ["${pageSize}"]; | 165 _queryParams["pageSize"] = ["${pageSize}"]; |
172 } | 166 } |
173 if (altIds != null) { | 167 if (altIds != null) { |
174 _queryParams["altIds"] = altIds; | 168 _queryParams["altIds"] = altIds; |
175 } | 169 } |
176 if (pphNames != null) { | 170 if (pphNames != null) { |
177 _queryParams["pphNames"] = pphNames; | 171 _queryParams["pphNames"] = pphNames; |
178 } | 172 } |
| 173 if (altId != null) { |
| 174 _queryParams["altId"] = [altId]; |
| 175 } |
| 176 if (studioNames != null) { |
| 177 _queryParams["studioNames"] = studioNames; |
| 178 } |
179 | 179 |
180 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; | 180 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; |
181 | 181 |
182 var _response = _requester.request(_url, | 182 var _response = _requester.request(_url, |
183 "GET", | 183 "GET", |
184 body: _body, | 184 body: _body, |
185 queryParams: _queryParams, | 185 queryParams: _queryParams, |
186 uploadOptions: _uploadOptions, | 186 uploadOptions: _uploadOptions, |
187 uploadMedia: _uploadMedia, | 187 uploadMedia: _uploadMedia, |
188 downloadOptions: _downloadOptions); | 188 downloadOptions: _downloadOptions); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 * List Orders owned or managed by the partner. | 250 * List Orders owned or managed by the partner. |
251 * | 251 * |
252 * See _Authentication and Authorization rules_ and | 252 * See _Authentication and Authorization rules_ and |
253 * _List methods rules_ for more information about this method. | 253 * _List methods rules_ for more information about this method. |
254 * | 254 * |
255 * Request parameters: | 255 * Request parameters: |
256 * | 256 * |
257 * [accountId] - REQUIRED. See _General rules_ for more information about this | 257 * [accountId] - REQUIRED. See _General rules_ for more information about this |
258 * field. | 258 * field. |
259 * | 259 * |
| 260 * [pageSize] - See _List methods rules_ for info about this field. |
| 261 * |
260 * [pphNames] - See _List methods rules_ for info about this field. | 262 * [pphNames] - See _List methods rules_ for info about this field. |
261 * | 263 * |
262 * [status] - Filter Orders that match one of the given status. | 264 * [status] - Filter Orders that match one of the given status. |
263 * | 265 * |
264 * [name] - Filter that matches Orders with a `name`, `show`, `season` or | 266 * [name] - Filter that matches Orders with a `name`, `show`, `season` or |
265 * `episode` | 267 * `episode` |
266 * that contains the given case-insensitive name. | 268 * that contains the given case-insensitive name. |
267 * | 269 * |
268 * [studioNames] - See _List methods rules_ for info about this field. | 270 * [studioNames] - See _List methods rules_ for info about this field. |
269 * | 271 * |
270 * [videoIds] - Filter Orders that match any of the given `video_id`s. | 272 * [videoIds] - Filter Orders that match any of the given `video_id`s. |
271 * | 273 * |
272 * [customId] - Filter Orders that match a case-insensitive, partner-specific | 274 * [customId] - Filter Orders that match a case-insensitive, partner-specific |
273 * custom id. | 275 * custom id. |
274 * | 276 * |
275 * [pageToken] - See _List methods rules_ for info about this field. | 277 * [pageToken] - See _List methods rules_ for info about this field. |
276 * | 278 * |
277 * [pageSize] - See _List methods rules_ for info about this field. | |
278 * | |
279 * Completes with a [ListOrdersResponse]. | 279 * Completes with a [ListOrdersResponse]. |
280 * | 280 * |
281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
282 * error. | 282 * error. |
283 * | 283 * |
284 * 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, |
285 * this method will complete with the same error. | 285 * this method will complete with the same error. |
286 */ | 286 */ |
287 async.Future<ListOrdersResponse> list(core.String accountId, {core.List<core.S
tring> pphNames, core.List<core.String> status, core.String name, core.List<core
.String> studioNames, core.List<core.String> videoIds, core.String customId, cor
e.String pageToken, core.int pageSize}) { | 287 async.Future<ListOrdersResponse> list(core.String accountId, {core.int pageSiz
e, core.List<core.String> pphNames, core.List<core.String> status, core.String n
ame, core.List<core.String> studioNames, core.List<core.String> videoIds, core.S
tring customId, core.String pageToken}) { |
288 var _url = null; | 288 var _url = null; |
289 var _queryParams = new core.Map(); | 289 var _queryParams = new core.Map(); |
290 var _uploadMedia = null; | 290 var _uploadMedia = null; |
291 var _uploadOptions = null; | 291 var _uploadOptions = null; |
292 var _downloadOptions = commons.DownloadOptions.Metadata; | 292 var _downloadOptions = commons.DownloadOptions.Metadata; |
293 var _body = null; | 293 var _body = null; |
294 | 294 |
295 if (accountId == null) { | 295 if (accountId == null) { |
296 throw new core.ArgumentError("Parameter accountId is required."); | 296 throw new core.ArgumentError("Parameter accountId is required."); |
297 } | 297 } |
| 298 if (pageSize != null) { |
| 299 _queryParams["pageSize"] = ["${pageSize}"]; |
| 300 } |
298 if (pphNames != null) { | 301 if (pphNames != null) { |
299 _queryParams["pphNames"] = pphNames; | 302 _queryParams["pphNames"] = pphNames; |
300 } | 303 } |
301 if (status != null) { | 304 if (status != null) { |
302 _queryParams["status"] = status; | 305 _queryParams["status"] = status; |
303 } | 306 } |
304 if (name != null) { | 307 if (name != null) { |
305 _queryParams["name"] = [name]; | 308 _queryParams["name"] = [name]; |
306 } | 309 } |
307 if (studioNames != null) { | 310 if (studioNames != null) { |
308 _queryParams["studioNames"] = studioNames; | 311 _queryParams["studioNames"] = studioNames; |
309 } | 312 } |
310 if (videoIds != null) { | 313 if (videoIds != null) { |
311 _queryParams["videoIds"] = videoIds; | 314 _queryParams["videoIds"] = videoIds; |
312 } | 315 } |
313 if (customId != null) { | 316 if (customId != null) { |
314 _queryParams["customId"] = [customId]; | 317 _queryParams["customId"] = [customId]; |
315 } | 318 } |
316 if (pageToken != null) { | 319 if (pageToken != null) { |
317 _queryParams["pageToken"] = [pageToken]; | 320 _queryParams["pageToken"] = [pageToken]; |
318 } | 321 } |
319 if (pageSize != null) { | |
320 _queryParams["pageSize"] = ["${pageSize}"]; | |
321 } | |
322 | 322 |
323 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
rs'; | 323 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
rs'; |
324 | 324 |
325 var _response = _requester.request(_url, | 325 var _response = _requester.request(_url, |
326 "GET", | 326 "GET", |
327 body: _body, | 327 body: _body, |
328 queryParams: _queryParams, | 328 queryParams: _queryParams, |
329 uploadOptions: _uploadOptions, | 329 uploadOptions: _uploadOptions, |
330 uploadMedia: _uploadMedia, | 330 uploadMedia: _uploadMedia, |
331 downloadOptions: _downloadOptions); | 331 downloadOptions: _downloadOptions); |
(...skipping 15 matching lines...) Expand all Loading... |
347 * List StoreInfos owned or managed by the partner. | 347 * List StoreInfos owned or managed by the partner. |
348 * | 348 * |
349 * See _Authentication and Authorization rules_ and | 349 * See _Authentication and Authorization rules_ and |
350 * _List methods rules_ for more information about this method. | 350 * _List methods rules_ for more information about this method. |
351 * | 351 * |
352 * Request parameters: | 352 * Request parameters: |
353 * | 353 * |
354 * [accountId] - REQUIRED. See _General rules_ for more information about this | 354 * [accountId] - REQUIRED. See _General rules_ for more information about this |
355 * field. | 355 * field. |
356 * | 356 * |
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. | 357 * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. |
363 * | 358 * |
364 * [pageToken] - See _List methods rules_ for info about this field. | 359 * [pageToken] - See _List methods rules_ for info about this field. |
365 * | 360 * |
366 * [videoId] - Filter StoreInfos that match a given `video_id`. | 361 * [videoId] - Filter StoreInfos that match a given `video_id`. |
367 * NOTE: this field is deprecated and will be removed on V2; `video_ids` | 362 * NOTE: this field is deprecated and will be removed on V2; `video_ids` |
368 * should be used instead. | 363 * should be used instead. |
369 * | 364 * |
370 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. | 365 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. |
371 * | 366 * |
372 * [pageSize] - See _List methods rules_ for info about this field. | 367 * [pageSize] - See _List methods rules_ for info about this field. |
373 * | 368 * |
374 * [mids] - Filter StoreInfos that match any of the given `mid`s. | 369 * [mids] - Filter StoreInfos that match any of the given `mid`s. |
375 * | 370 * |
376 * [pphNames] - See _List methods rules_ for info about this field. | 371 * [pphNames] - See _List methods rules_ for info about this field. |
377 * | 372 * |
378 * [countries] - Filter StoreInfos that match (case-insensitive) any of the | 373 * [countries] - Filter StoreInfos that match (case-insensitive) any of the |
379 * given country | 374 * given country |
380 * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). | 375 * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
381 * | 376 * |
| 377 * [studioNames] - See _List methods rules_ for info about this field. |
| 378 * |
| 379 * [name] - Filter that matches StoreInfos with a `name` or `show_name` |
| 380 * that contains the given case-insensitive name. |
| 381 * |
382 * Completes with a [ListStoreInfosResponse]. | 382 * Completes with a [ListStoreInfosResponse]. |
383 * | 383 * |
384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
385 * error. | 385 * error. |
386 * | 386 * |
387 * 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, |
388 * this method will complete with the same error. | 388 * this method will complete with the same error. |
389 */ | 389 */ |
390 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<co
re.String> studioNames, core.String name, core.List<core.String> seasonIds, core
.String pageToken, core.String videoId, core.List<core.String> videoIds, core.in
t pageSize, core.List<core.String> mids, core.List<core.String> pphNames, core.L
ist<core.String> countries}) { | 390 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<co
re.String> seasonIds, core.String pageToken, core.String videoId, core.List<core
.String> videoIds, core.int pageSize, core.List<core.String> mids, core.List<cor
e.String> pphNames, core.List<core.String> countries, core.List<core.String> stu
dioNames, core.String name}) { |
391 var _url = null; | 391 var _url = null; |
392 var _queryParams = new core.Map(); | 392 var _queryParams = new core.Map(); |
393 var _uploadMedia = null; | 393 var _uploadMedia = null; |
394 var _uploadOptions = null; | 394 var _uploadOptions = null; |
395 var _downloadOptions = commons.DownloadOptions.Metadata; | 395 var _downloadOptions = commons.DownloadOptions.Metadata; |
396 var _body = null; | 396 var _body = null; |
397 | 397 |
398 if (accountId == null) { | 398 if (accountId == null) { |
399 throw new core.ArgumentError("Parameter accountId is required."); | 399 throw new core.ArgumentError("Parameter accountId is required."); |
400 } | 400 } |
401 if (studioNames != null) { | |
402 _queryParams["studioNames"] = studioNames; | |
403 } | |
404 if (name != null) { | |
405 _queryParams["name"] = [name]; | |
406 } | |
407 if (seasonIds != null) { | 401 if (seasonIds != null) { |
408 _queryParams["seasonIds"] = seasonIds; | 402 _queryParams["seasonIds"] = seasonIds; |
409 } | 403 } |
410 if (pageToken != null) { | 404 if (pageToken != null) { |
411 _queryParams["pageToken"] = [pageToken]; | 405 _queryParams["pageToken"] = [pageToken]; |
412 } | 406 } |
413 if (videoId != null) { | 407 if (videoId != null) { |
414 _queryParams["videoId"] = [videoId]; | 408 _queryParams["videoId"] = [videoId]; |
415 } | 409 } |
416 if (videoIds != null) { | 410 if (videoIds != null) { |
417 _queryParams["videoIds"] = videoIds; | 411 _queryParams["videoIds"] = videoIds; |
418 } | 412 } |
419 if (pageSize != null) { | 413 if (pageSize != null) { |
420 _queryParams["pageSize"] = ["${pageSize}"]; | 414 _queryParams["pageSize"] = ["${pageSize}"]; |
421 } | 415 } |
422 if (mids != null) { | 416 if (mids != null) { |
423 _queryParams["mids"] = mids; | 417 _queryParams["mids"] = mids; |
424 } | 418 } |
425 if (pphNames != null) { | 419 if (pphNames != null) { |
426 _queryParams["pphNames"] = pphNames; | 420 _queryParams["pphNames"] = pphNames; |
427 } | 421 } |
428 if (countries != null) { | 422 if (countries != null) { |
429 _queryParams["countries"] = countries; | 423 _queryParams["countries"] = countries; |
430 } | 424 } |
| 425 if (studioNames != null) { |
| 426 _queryParams["studioNames"] = studioNames; |
| 427 } |
| 428 if (name != null) { |
| 429 _queryParams["name"] = [name]; |
| 430 } |
431 | 431 |
432 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; | 432 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; |
433 | 433 |
434 var _response = _requester.request(_url, | 434 var _response = _requester.request(_url, |
435 "GET", | 435 "GET", |
436 body: _body, | 436 body: _body, |
437 queryParams: _queryParams, | 437 queryParams: _queryParams, |
438 uploadOptions: _uploadOptions, | 438 uploadOptions: _uploadOptions, |
439 uploadMedia: _uploadMedia, | 439 uploadMedia: _uploadMedia, |
440 downloadOptions: _downloadOptions); | 440 downloadOptions: _downloadOptions); |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 } | 1653 } |
1654 if (type != null) { | 1654 if (type != null) { |
1655 _json["type"] = type; | 1655 _json["type"] = type; |
1656 } | 1656 } |
1657 if (videoId != null) { | 1657 if (videoId != null) { |
1658 _json["videoId"] = videoId; | 1658 _json["videoId"] = videoId; |
1659 } | 1659 } |
1660 return _json; | 1660 return _json; |
1661 } | 1661 } |
1662 } | 1662 } |
OLD | NEW |