Nenhuma descrição

PlayMovies.php 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. * Service definition for PlayMovies (v1).
  19. *
  20. * <p>
  21. * Gets the delivery status of titles for Google Play Movies Partners.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/playmoviespartner/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_PlayMovies extends Google_Service
  31. {
  32. /** View the digital assets you publish on Google Play Movies and TV. */
  33. const PLAYMOVIES_PARTNER_READONLY =
  34. "https://www.googleapis.com/auth/playmovies_partner.readonly";
  35. public $accounts_avails;
  36. public $accounts_orders;
  37. public $accounts_storeInfos;
  38. public $accounts_storeInfos_country;
  39. /**
  40. * Constructs the internal representation of the PlayMovies service.
  41. *
  42. * @param Google_Client $client
  43. */
  44. public function __construct(Google_Client $client)
  45. {
  46. parent::__construct($client);
  47. $this->rootUrl = 'https://playmoviespartner.googleapis.com/';
  48. $this->servicePath = '';
  49. $this->version = 'v1';
  50. $this->serviceName = 'playmoviespartner';
  51. $this->accounts_avails = new Google_Service_PlayMovies_Resource_AccountsAvails(
  52. $this,
  53. $this->serviceName,
  54. 'avails',
  55. array(
  56. 'methods' => array(
  57. 'get' => array(
  58. 'path' => 'v1/accounts/{accountId}/avails/{availId}',
  59. 'httpMethod' => 'GET',
  60. 'parameters' => array(
  61. 'accountId' => array(
  62. 'location' => 'path',
  63. 'type' => 'string',
  64. 'required' => true,
  65. ),
  66. 'availId' => array(
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ),
  71. ),
  72. ),'list' => array(
  73. 'path' => 'v1/accounts/{accountId}/avails',
  74. 'httpMethod' => 'GET',
  75. 'parameters' => array(
  76. 'accountId' => array(
  77. 'location' => 'path',
  78. 'type' => 'string',
  79. 'required' => true,
  80. ),
  81. 'pphNames' => array(
  82. 'location' => 'query',
  83. 'type' => 'string',
  84. 'repeated' => true,
  85. ),
  86. 'altId' => array(
  87. 'location' => 'query',
  88. 'type' => 'string',
  89. ),
  90. 'studioNames' => array(
  91. 'location' => 'query',
  92. 'type' => 'string',
  93. 'repeated' => true,
  94. ),
  95. 'territories' => array(
  96. 'location' => 'query',
  97. 'type' => 'string',
  98. 'repeated' => true,
  99. ),
  100. 'title' => array(
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ),
  104. 'videoIds' => array(
  105. 'location' => 'query',
  106. 'type' => 'string',
  107. 'repeated' => true,
  108. ),
  109. 'pageToken' => array(
  110. 'location' => 'query',
  111. 'type' => 'string',
  112. ),
  113. 'pageSize' => array(
  114. 'location' => 'query',
  115. 'type' => 'integer',
  116. ),
  117. 'altIds' => array(
  118. 'location' => 'query',
  119. 'type' => 'string',
  120. 'repeated' => true,
  121. ),
  122. ),
  123. ),
  124. )
  125. )
  126. );
  127. $this->accounts_orders = new Google_Service_PlayMovies_Resource_AccountsOrders(
  128. $this,
  129. $this->serviceName,
  130. 'orders',
  131. array(
  132. 'methods' => array(
  133. 'get' => array(
  134. 'path' => 'v1/accounts/{accountId}/orders/{orderId}',
  135. 'httpMethod' => 'GET',
  136. 'parameters' => array(
  137. 'accountId' => array(
  138. 'location' => 'path',
  139. 'type' => 'string',
  140. 'required' => true,
  141. ),
  142. 'orderId' => array(
  143. 'location' => 'path',
  144. 'type' => 'string',
  145. 'required' => true,
  146. ),
  147. ),
  148. ),'list' => array(
  149. 'path' => 'v1/accounts/{accountId}/orders',
  150. 'httpMethod' => 'GET',
  151. 'parameters' => array(
  152. 'accountId' => array(
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ),
  157. 'status' => array(
  158. 'location' => 'query',
  159. 'type' => 'string',
  160. 'repeated' => true,
  161. ),
  162. 'name' => array(
  163. 'location' => 'query',
  164. 'type' => 'string',
  165. ),
  166. 'studioNames' => array(
  167. 'location' => 'query',
  168. 'type' => 'string',
  169. 'repeated' => true,
  170. ),
  171. 'pageToken' => array(
  172. 'location' => 'query',
  173. 'type' => 'string',
  174. ),
  175. 'customId' => array(
  176. 'location' => 'query',
  177. 'type' => 'string',
  178. ),
  179. 'videoIds' => array(
  180. 'location' => 'query',
  181. 'type' => 'string',
  182. 'repeated' => true,
  183. ),
  184. 'pageSize' => array(
  185. 'location' => 'query',
  186. 'type' => 'integer',
  187. ),
  188. 'pphNames' => array(
  189. 'location' => 'query',
  190. 'type' => 'string',
  191. 'repeated' => true,
  192. ),
  193. ),
  194. ),
  195. )
  196. )
  197. );
  198. $this->accounts_storeInfos = new Google_Service_PlayMovies_Resource_AccountsStoreInfos(
  199. $this,
  200. $this->serviceName,
  201. 'storeInfos',
  202. array(
  203. 'methods' => array(
  204. 'list' => array(
  205. 'path' => 'v1/accounts/{accountId}/storeInfos',
  206. 'httpMethod' => 'GET',
  207. 'parameters' => array(
  208. 'accountId' => array(
  209. 'location' => 'path',
  210. 'type' => 'string',
  211. 'required' => true,
  212. ),
  213. 'pageSize' => array(
  214. 'location' => 'query',
  215. 'type' => 'integer',
  216. ),
  217. 'mids' => array(
  218. 'location' => 'query',
  219. 'type' => 'string',
  220. 'repeated' => true,
  221. ),
  222. 'pphNames' => array(
  223. 'location' => 'query',
  224. 'type' => 'string',
  225. 'repeated' => true,
  226. ),
  227. 'countries' => array(
  228. 'location' => 'query',
  229. 'type' => 'string',
  230. 'repeated' => true,
  231. ),
  232. 'name' => array(
  233. 'location' => 'query',
  234. 'type' => 'string',
  235. ),
  236. 'studioNames' => array(
  237. 'location' => 'query',
  238. 'type' => 'string',
  239. 'repeated' => true,
  240. ),
  241. 'seasonIds' => array(
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. 'repeated' => true,
  245. ),
  246. 'videoIds' => array(
  247. 'location' => 'query',
  248. 'type' => 'string',
  249. 'repeated' => true,
  250. ),
  251. 'videoId' => array(
  252. 'location' => 'query',
  253. 'type' => 'string',
  254. ),
  255. 'pageToken' => array(
  256. 'location' => 'query',
  257. 'type' => 'string',
  258. ),
  259. ),
  260. ),
  261. )
  262. )
  263. );
  264. $this->accounts_storeInfos_country = new Google_Service_PlayMovies_Resource_AccountsStoreInfosCountry(
  265. $this,
  266. $this->serviceName,
  267. 'country',
  268. array(
  269. 'methods' => array(
  270. 'get' => array(
  271. 'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}',
  272. 'httpMethod' => 'GET',
  273. 'parameters' => array(
  274. 'accountId' => array(
  275. 'location' => 'path',
  276. 'type' => 'string',
  277. 'required' => true,
  278. ),
  279. 'videoId' => array(
  280. 'location' => 'path',
  281. 'type' => 'string',
  282. 'required' => true,
  283. ),
  284. 'country' => array(
  285. 'location' => 'path',
  286. 'type' => 'string',
  287. 'required' => true,
  288. ),
  289. ),
  290. ),
  291. )
  292. )
  293. );
  294. }
  295. }