No Description

Playmoviespartner.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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 Playmoviespartner (v1).
  19. *
  20. * <p>
  21. * Lets Google Play Movies Partners get the delivery status of their titles.</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_Playmoviespartner 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_experienceLocales;
  37. public $accounts_orders;
  38. public $accounts_storeInfos;
  39. public $accounts_storeInfos_country;
  40. /**
  41. * Constructs the internal representation of the Playmoviespartner service.
  42. *
  43. * @param Google_Client $client
  44. */
  45. public function __construct(Google_Client $client)
  46. {
  47. parent::__construct($client);
  48. $this->rootUrl = 'https://playmoviespartner.googleapis.com/';
  49. $this->servicePath = '';
  50. $this->version = 'v1';
  51. $this->serviceName = 'playmoviespartner';
  52. $this->accounts_avails = new Google_Service_Playmoviespartner_AccountsAvailsResource(
  53. $this,
  54. $this->serviceName,
  55. 'avails',
  56. array(
  57. 'methods' => array(
  58. 'list' => array(
  59. 'path' => 'v1/accounts/{accountId}/avails',
  60. 'httpMethod' => 'GET',
  61. 'parameters' => array(
  62. 'accountId' => array(
  63. 'location' => 'path',
  64. 'type' => 'string',
  65. 'required' => true,
  66. ),
  67. 'pageSize' => array(
  68. 'location' => 'query',
  69. 'type' => 'integer',
  70. ),
  71. 'pageToken' => array(
  72. 'location' => 'query',
  73. 'type' => 'string',
  74. ),
  75. 'pphNames' => array(
  76. 'location' => 'query',
  77. 'type' => 'string',
  78. 'repeated' => true,
  79. ),
  80. 'studioNames' => array(
  81. 'location' => 'query',
  82. 'type' => 'string',
  83. 'repeated' => true,
  84. ),
  85. 'title' => array(
  86. 'location' => 'query',
  87. 'type' => 'string',
  88. ),
  89. 'territories' => array(
  90. 'location' => 'query',
  91. 'type' => 'string',
  92. 'repeated' => true,
  93. ),
  94. 'altId' => array(
  95. 'location' => 'query',
  96. 'type' => 'string',
  97. ),
  98. 'videoIds' => array(
  99. 'location' => 'query',
  100. 'type' => 'string',
  101. 'repeated' => true,
  102. ),
  103. ),
  104. ),
  105. )
  106. )
  107. );
  108. $this->accounts_experienceLocales = new Google_Service_Playmoviespartner_AccountsExperienceLocalesResource(
  109. $this,
  110. $this->serviceName,
  111. 'experienceLocales',
  112. array(
  113. 'methods' => array(
  114. 'get' => array(
  115. 'path' => 'v1/accounts/{accountId}/experienceLocales/{elId}',
  116. 'httpMethod' => 'GET',
  117. 'parameters' => array(
  118. 'accountId' => array(
  119. 'location' => 'path',
  120. 'type' => 'string',
  121. 'required' => true,
  122. ),
  123. 'elId' => array(
  124. 'location' => 'path',
  125. 'type' => 'string',
  126. 'required' => true,
  127. ),
  128. ),
  129. ),'list' => array(
  130. 'path' => 'v1/accounts/{accountId}/experienceLocales',
  131. 'httpMethod' => 'GET',
  132. 'parameters' => array(
  133. 'accountId' => array(
  134. 'location' => 'path',
  135. 'type' => 'string',
  136. 'required' => true,
  137. ),
  138. 'pageSize' => array(
  139. 'location' => 'query',
  140. 'type' => 'integer',
  141. ),
  142. 'pageToken' => array(
  143. 'location' => 'query',
  144. 'type' => 'string',
  145. ),
  146. 'pphNames' => array(
  147. 'location' => 'query',
  148. 'type' => 'string',
  149. 'repeated' => true,
  150. ),
  151. 'studioNames' => array(
  152. 'location' => 'query',
  153. 'type' => 'string',
  154. 'repeated' => true,
  155. ),
  156. 'titleLevelEidr' => array(
  157. 'location' => 'query',
  158. 'type' => 'string',
  159. ),
  160. 'editLevelEidr' => array(
  161. 'location' => 'query',
  162. 'type' => 'string',
  163. ),
  164. 'status' => array(
  165. 'location' => 'query',
  166. 'type' => 'string',
  167. 'repeated' => true,
  168. ),
  169. 'customId' => array(
  170. 'location' => 'query',
  171. 'type' => 'string',
  172. ),
  173. 'altCutId' => array(
  174. 'location' => 'query',
  175. 'type' => 'string',
  176. ),
  177. ),
  178. ),
  179. )
  180. )
  181. );
  182. $this->accounts_orders = new Google_Service_Playmoviespartner_AccountsOrdersResource(
  183. $this,
  184. $this->serviceName,
  185. 'orders',
  186. array(
  187. 'methods' => array(
  188. 'get' => array(
  189. 'path' => 'v1/accounts/{accountId}/orders/{orderId}',
  190. 'httpMethod' => 'GET',
  191. 'parameters' => array(
  192. 'accountId' => array(
  193. 'location' => 'path',
  194. 'type' => 'string',
  195. 'required' => true,
  196. ),
  197. 'orderId' => array(
  198. 'location' => 'path',
  199. 'type' => 'string',
  200. 'required' => true,
  201. ),
  202. ),
  203. ),'list' => array(
  204. 'path' => 'v1/accounts/{accountId}/orders',
  205. 'httpMethod' => 'GET',
  206. 'parameters' => array(
  207. 'accountId' => array(
  208. 'location' => 'path',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ),
  212. 'pageSize' => array(
  213. 'location' => 'query',
  214. 'type' => 'integer',
  215. ),
  216. 'pageToken' => array(
  217. 'location' => 'query',
  218. 'type' => 'string',
  219. ),
  220. 'pphNames' => array(
  221. 'location' => 'query',
  222. 'type' => 'string',
  223. 'repeated' => true,
  224. ),
  225. 'studioNames' => array(
  226. 'location' => 'query',
  227. 'type' => 'string',
  228. 'repeated' => true,
  229. ),
  230. 'name' => array(
  231. 'location' => 'query',
  232. 'type' => 'string',
  233. ),
  234. 'status' => array(
  235. 'location' => 'query',
  236. 'type' => 'string',
  237. 'repeated' => true,
  238. ),
  239. 'customId' => array(
  240. 'location' => 'query',
  241. 'type' => 'string',
  242. ),
  243. ),
  244. ),
  245. )
  246. )
  247. );
  248. $this->accounts_storeInfos = new Google_Service_Playmoviespartner_AccountsStoreInfosResource(
  249. $this,
  250. $this->serviceName,
  251. 'storeInfos',
  252. array(
  253. 'methods' => array(
  254. 'list' => array(
  255. 'path' => 'v1/accounts/{accountId}/storeInfos',
  256. 'httpMethod' => 'GET',
  257. 'parameters' => array(
  258. 'accountId' => array(
  259. 'location' => 'path',
  260. 'type' => 'string',
  261. 'required' => true,
  262. ),
  263. 'pageSize' => array(
  264. 'location' => 'query',
  265. 'type' => 'integer',
  266. ),
  267. 'pageToken' => array(
  268. 'location' => 'query',
  269. 'type' => 'string',
  270. ),
  271. 'pphNames' => array(
  272. 'location' => 'query',
  273. 'type' => 'string',
  274. 'repeated' => true,
  275. ),
  276. 'studioNames' => array(
  277. 'location' => 'query',
  278. 'type' => 'string',
  279. 'repeated' => true,
  280. ),
  281. 'videoId' => array(
  282. 'location' => 'query',
  283. 'type' => 'string',
  284. ),
  285. 'countries' => array(
  286. 'location' => 'query',
  287. 'type' => 'string',
  288. 'repeated' => true,
  289. ),
  290. 'name' => array(
  291. 'location' => 'query',
  292. 'type' => 'string',
  293. ),
  294. 'videoIds' => array(
  295. 'location' => 'query',
  296. 'type' => 'string',
  297. 'repeated' => true,
  298. ),
  299. ),
  300. ),
  301. )
  302. )
  303. );
  304. $this->accounts_storeInfos_country = new Google_Service_Playmoviespartner_AccountsStoreInfosCountryResource(
  305. $this,
  306. $this->serviceName,
  307. 'country',
  308. array(
  309. 'methods' => array(
  310. 'get' => array(
  311. 'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}',
  312. 'httpMethod' => 'GET',
  313. 'parameters' => array(
  314. 'accountId' => array(
  315. 'location' => 'path',
  316. 'type' => 'string',
  317. 'required' => true,
  318. ),
  319. 'videoId' => array(
  320. 'location' => 'path',
  321. 'type' => 'string',
  322. 'required' => true,
  323. ),
  324. 'country' => array(
  325. 'location' => 'path',
  326. 'type' => 'string',
  327. 'required' => true,
  328. ),
  329. ),
  330. ),
  331. )
  332. )
  333. );
  334. }
  335. }