Aucune description

AccountsAvailsResource.php 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * The "avails" collection of methods.
  19. * Typical usage is:
  20. * <code>
  21. * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
  22. * $avails = $playmoviespartnerService->avails;
  23. * </code>
  24. */
  25. class Google_Service_Playmoviespartner_AccountsAvailsResource extends Google_Service_Resource
  26. {
  27. /**
  28. * List Avails owned or managed by the partner. See _Authentication and
  29. * Authorization rules_ and _List methods rules_ for more information about this
  30. * method. (avails.listAccountsAvails)
  31. *
  32. * @param string $accountId REQUIRED. See _General rules_ for more information
  33. * about this field.
  34. * @param array $optParams Optional parameters.
  35. *
  36. * @opt_param int pageSize See _List methods rules_ for info about this field.
  37. * @opt_param string pageToken See _List methods rules_ for info about this
  38. * field.
  39. * @opt_param string pphNames See _List methods rules_ for info about this
  40. * field.
  41. * @opt_param string studioNames See _List methods rules_ for info about this
  42. * field.
  43. * @opt_param string title Filter Avails that match a case-insensitive substring
  44. * of the default Title name.
  45. * @opt_param string territories Filter Avails that match (case-insensitive) any
  46. * of the given country codes, using the "ISO 3166-1 alpha-2" format (examples:
  47. * "US", "us", "Us").
  48. * @opt_param string altId Filter Avails that match a case-insensitive, partner-
  49. * specific custom id.
  50. * @opt_param string videoIds Filter Avails that match any of the given
  51. * `video_id`s.
  52. * @return Google_Service_Playmoviespartner_ListAvailsResponse
  53. */
  54. public function listAccountsAvails($accountId, $optParams = array())
  55. {
  56. $params = array('accountId' => $accountId);
  57. $params = array_merge($params, $optParams);
  58. return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListAvailsResponse");
  59. }
  60. }