AndroidPublisher.php 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104
  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. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for AndroidPublisher (v3).
  21. *
  22. * <p>
  23. * Lets Android application developers access their Google Play accounts.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/android-publisher" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class AndroidPublisher extends \Google\Service
  33. {
  34. /** View and manage your Google Play Developer account. */
  35. const ANDROIDPUBLISHER =
  36. "https://www.googleapis.com/auth/androidpublisher";
  37. public $applications_deviceTierConfigs;
  38. public $edits;
  39. public $edits_apks;
  40. public $edits_bundles;
  41. public $edits_countryavailability;
  42. public $edits_deobfuscationfiles;
  43. public $edits_details;
  44. public $edits_expansionfiles;
  45. public $edits_images;
  46. public $edits_listings;
  47. public $edits_testers;
  48. public $edits_tracks;
  49. public $generatedapks;
  50. public $grants;
  51. public $inappproducts;
  52. public $internalappsharingartifacts;
  53. public $monetization;
  54. public $monetization_subscriptions;
  55. public $monetization_subscriptions_basePlans;
  56. public $monetization_subscriptions_basePlans_offers;
  57. public $orders;
  58. public $purchases_products;
  59. public $purchases_subscriptions;
  60. public $purchases_subscriptionsv2;
  61. public $purchases_voidedpurchases;
  62. public $reviews;
  63. public $systemapks_variants;
  64. public $users;
  65. /**
  66. * Constructs the internal representation of the AndroidPublisher service.
  67. *
  68. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  69. * config array to pass to a new Client instance.
  70. * @param string $rootUrl The root URL used for requests to the service.
  71. */
  72. public function __construct($clientOrConfig = [], $rootUrl = null)
  73. {
  74. parent::__construct($clientOrConfig);
  75. $this->rootUrl = $rootUrl ?: 'https://androidpublisher.googleapis.com/';
  76. $this->servicePath = '';
  77. $this->batchPath = 'batch';
  78. $this->version = 'v3';
  79. $this->serviceName = 'androidpublisher';
  80. $this->applications_deviceTierConfigs = new AndroidPublisher\Resource\ApplicationsDeviceTierConfigs(
  81. $this,
  82. $this->serviceName,
  83. 'deviceTierConfigs',
  84. [
  85. 'methods' => [
  86. 'create' => [
  87. 'path' => 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs',
  88. 'httpMethod' => 'POST',
  89. 'parameters' => [
  90. 'packageName' => [
  91. 'location' => 'path',
  92. 'type' => 'string',
  93. 'required' => true,
  94. ],
  95. 'allowUnknownDevices' => [
  96. 'location' => 'query',
  97. 'type' => 'boolean',
  98. ],
  99. ],
  100. ],'get' => [
  101. 'path' => 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}',
  102. 'httpMethod' => 'GET',
  103. 'parameters' => [
  104. 'packageName' => [
  105. 'location' => 'path',
  106. 'type' => 'string',
  107. 'required' => true,
  108. ],
  109. 'deviceTierConfigId' => [
  110. 'location' => 'path',
  111. 'type' => 'string',
  112. 'required' => true,
  113. ],
  114. ],
  115. ],'list' => [
  116. 'path' => 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs',
  117. 'httpMethod' => 'GET',
  118. 'parameters' => [
  119. 'packageName' => [
  120. 'location' => 'path',
  121. 'type' => 'string',
  122. 'required' => true,
  123. ],
  124. 'pageSize' => [
  125. 'location' => 'query',
  126. 'type' => 'integer',
  127. ],
  128. 'pageToken' => [
  129. 'location' => 'query',
  130. 'type' => 'string',
  131. ],
  132. ],
  133. ],
  134. ]
  135. ]
  136. );
  137. $this->edits = new AndroidPublisher\Resource\Edits(
  138. $this,
  139. $this->serviceName,
  140. 'edits',
  141. [
  142. 'methods' => [
  143. 'commit' => [
  144. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}:commit',
  145. 'httpMethod' => 'POST',
  146. 'parameters' => [
  147. 'packageName' => [
  148. 'location' => 'path',
  149. 'type' => 'string',
  150. 'required' => true,
  151. ],
  152. 'editId' => [
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ],
  157. 'changesNotSentForReview' => [
  158. 'location' => 'query',
  159. 'type' => 'boolean',
  160. ],
  161. ],
  162. ],'delete' => [
  163. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}',
  164. 'httpMethod' => 'DELETE',
  165. 'parameters' => [
  166. 'packageName' => [
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ],
  171. 'editId' => [
  172. 'location' => 'path',
  173. 'type' => 'string',
  174. 'required' => true,
  175. ],
  176. ],
  177. ],'get' => [
  178. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}',
  179. 'httpMethod' => 'GET',
  180. 'parameters' => [
  181. 'packageName' => [
  182. 'location' => 'path',
  183. 'type' => 'string',
  184. 'required' => true,
  185. ],
  186. 'editId' => [
  187. 'location' => 'path',
  188. 'type' => 'string',
  189. 'required' => true,
  190. ],
  191. ],
  192. ],'insert' => [
  193. 'path' => 'androidpublisher/v3/applications/{packageName}/edits',
  194. 'httpMethod' => 'POST',
  195. 'parameters' => [
  196. 'packageName' => [
  197. 'location' => 'path',
  198. 'type' => 'string',
  199. 'required' => true,
  200. ],
  201. ],
  202. ],'validate' => [
  203. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}:validate',
  204. 'httpMethod' => 'POST',
  205. 'parameters' => [
  206. 'packageName' => [
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ],
  211. 'editId' => [
  212. 'location' => 'path',
  213. 'type' => 'string',
  214. 'required' => true,
  215. ],
  216. ],
  217. ],
  218. ]
  219. ]
  220. );
  221. $this->edits_apks = new AndroidPublisher\Resource\EditsApks(
  222. $this,
  223. $this->serviceName,
  224. 'apks',
  225. [
  226. 'methods' => [
  227. 'addexternallyhosted' => [
  228. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted',
  229. 'httpMethod' => 'POST',
  230. 'parameters' => [
  231. 'packageName' => [
  232. 'location' => 'path',
  233. 'type' => 'string',
  234. 'required' => true,
  235. ],
  236. 'editId' => [
  237. 'location' => 'path',
  238. 'type' => 'string',
  239. 'required' => true,
  240. ],
  241. ],
  242. ],'list' => [
  243. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks',
  244. 'httpMethod' => 'GET',
  245. 'parameters' => [
  246. 'packageName' => [
  247. 'location' => 'path',
  248. 'type' => 'string',
  249. 'required' => true,
  250. ],
  251. 'editId' => [
  252. 'location' => 'path',
  253. 'type' => 'string',
  254. 'required' => true,
  255. ],
  256. ],
  257. ],'upload' => [
  258. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks',
  259. 'httpMethod' => 'POST',
  260. 'parameters' => [
  261. 'packageName' => [
  262. 'location' => 'path',
  263. 'type' => 'string',
  264. 'required' => true,
  265. ],
  266. 'editId' => [
  267. 'location' => 'path',
  268. 'type' => 'string',
  269. 'required' => true,
  270. ],
  271. ],
  272. ],
  273. ]
  274. ]
  275. );
  276. $this->edits_bundles = new AndroidPublisher\Resource\EditsBundles(
  277. $this,
  278. $this->serviceName,
  279. 'bundles',
  280. [
  281. 'methods' => [
  282. 'list' => [
  283. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles',
  284. 'httpMethod' => 'GET',
  285. 'parameters' => [
  286. 'packageName' => [
  287. 'location' => 'path',
  288. 'type' => 'string',
  289. 'required' => true,
  290. ],
  291. 'editId' => [
  292. 'location' => 'path',
  293. 'type' => 'string',
  294. 'required' => true,
  295. ],
  296. ],
  297. ],'upload' => [
  298. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles',
  299. 'httpMethod' => 'POST',
  300. 'parameters' => [
  301. 'packageName' => [
  302. 'location' => 'path',
  303. 'type' => 'string',
  304. 'required' => true,
  305. ],
  306. 'editId' => [
  307. 'location' => 'path',
  308. 'type' => 'string',
  309. 'required' => true,
  310. ],
  311. 'ackBundleInstallationWarning' => [
  312. 'location' => 'query',
  313. 'type' => 'boolean',
  314. ],
  315. ],
  316. ],
  317. ]
  318. ]
  319. );
  320. $this->edits_countryavailability = new AndroidPublisher\Resource\EditsCountryavailability(
  321. $this,
  322. $this->serviceName,
  323. 'countryavailability',
  324. [
  325. 'methods' => [
  326. 'get' => [
  327. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}',
  328. 'httpMethod' => 'GET',
  329. 'parameters' => [
  330. 'packageName' => [
  331. 'location' => 'path',
  332. 'type' => 'string',
  333. 'required' => true,
  334. ],
  335. 'editId' => [
  336. 'location' => 'path',
  337. 'type' => 'string',
  338. 'required' => true,
  339. ],
  340. 'track' => [
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ],
  345. ],
  346. ],
  347. ]
  348. ]
  349. );
  350. $this->edits_deobfuscationfiles = new AndroidPublisher\Resource\EditsDeobfuscationfiles(
  351. $this,
  352. $this->serviceName,
  353. 'deobfuscationfiles',
  354. [
  355. 'methods' => [
  356. 'upload' => [
  357. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}',
  358. 'httpMethod' => 'POST',
  359. 'parameters' => [
  360. 'packageName' => [
  361. 'location' => 'path',
  362. 'type' => 'string',
  363. 'required' => true,
  364. ],
  365. 'editId' => [
  366. 'location' => 'path',
  367. 'type' => 'string',
  368. 'required' => true,
  369. ],
  370. 'apkVersionCode' => [
  371. 'location' => 'path',
  372. 'type' => 'integer',
  373. 'required' => true,
  374. ],
  375. 'deobfuscationFileType' => [
  376. 'location' => 'path',
  377. 'type' => 'string',
  378. 'required' => true,
  379. ],
  380. ],
  381. ],
  382. ]
  383. ]
  384. );
  385. $this->edits_details = new AndroidPublisher\Resource\EditsDetails(
  386. $this,
  387. $this->serviceName,
  388. 'details',
  389. [
  390. 'methods' => [
  391. 'get' => [
  392. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details',
  393. 'httpMethod' => 'GET',
  394. 'parameters' => [
  395. 'packageName' => [
  396. 'location' => 'path',
  397. 'type' => 'string',
  398. 'required' => true,
  399. ],
  400. 'editId' => [
  401. 'location' => 'path',
  402. 'type' => 'string',
  403. 'required' => true,
  404. ],
  405. ],
  406. ],'patch' => [
  407. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details',
  408. 'httpMethod' => 'PATCH',
  409. 'parameters' => [
  410. 'packageName' => [
  411. 'location' => 'path',
  412. 'type' => 'string',
  413. 'required' => true,
  414. ],
  415. 'editId' => [
  416. 'location' => 'path',
  417. 'type' => 'string',
  418. 'required' => true,
  419. ],
  420. ],
  421. ],'update' => [
  422. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details',
  423. 'httpMethod' => 'PUT',
  424. 'parameters' => [
  425. 'packageName' => [
  426. 'location' => 'path',
  427. 'type' => 'string',
  428. 'required' => true,
  429. ],
  430. 'editId' => [
  431. 'location' => 'path',
  432. 'type' => 'string',
  433. 'required' => true,
  434. ],
  435. ],
  436. ],
  437. ]
  438. ]
  439. );
  440. $this->edits_expansionfiles = new AndroidPublisher\Resource\EditsExpansionfiles(
  441. $this,
  442. $this->serviceName,
  443. 'expansionfiles',
  444. [
  445. 'methods' => [
  446. 'get' => [
  447. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
  448. 'httpMethod' => 'GET',
  449. 'parameters' => [
  450. 'packageName' => [
  451. 'location' => 'path',
  452. 'type' => 'string',
  453. 'required' => true,
  454. ],
  455. 'editId' => [
  456. 'location' => 'path',
  457. 'type' => 'string',
  458. 'required' => true,
  459. ],
  460. 'apkVersionCode' => [
  461. 'location' => 'path',
  462. 'type' => 'integer',
  463. 'required' => true,
  464. ],
  465. 'expansionFileType' => [
  466. 'location' => 'path',
  467. 'type' => 'string',
  468. 'required' => true,
  469. ],
  470. ],
  471. ],'patch' => [
  472. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
  473. 'httpMethod' => 'PATCH',
  474. 'parameters' => [
  475. 'packageName' => [
  476. 'location' => 'path',
  477. 'type' => 'string',
  478. 'required' => true,
  479. ],
  480. 'editId' => [
  481. 'location' => 'path',
  482. 'type' => 'string',
  483. 'required' => true,
  484. ],
  485. 'apkVersionCode' => [
  486. 'location' => 'path',
  487. 'type' => 'integer',
  488. 'required' => true,
  489. ],
  490. 'expansionFileType' => [
  491. 'location' => 'path',
  492. 'type' => 'string',
  493. 'required' => true,
  494. ],
  495. ],
  496. ],'update' => [
  497. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
  498. 'httpMethod' => 'PUT',
  499. 'parameters' => [
  500. 'packageName' => [
  501. 'location' => 'path',
  502. 'type' => 'string',
  503. 'required' => true,
  504. ],
  505. 'editId' => [
  506. 'location' => 'path',
  507. 'type' => 'string',
  508. 'required' => true,
  509. ],
  510. 'apkVersionCode' => [
  511. 'location' => 'path',
  512. 'type' => 'integer',
  513. 'required' => true,
  514. ],
  515. 'expansionFileType' => [
  516. 'location' => 'path',
  517. 'type' => 'string',
  518. 'required' => true,
  519. ],
  520. ],
  521. ],'upload' => [
  522. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
  523. 'httpMethod' => 'POST',
  524. 'parameters' => [
  525. 'packageName' => [
  526. 'location' => 'path',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ],
  530. 'editId' => [
  531. 'location' => 'path',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ],
  535. 'apkVersionCode' => [
  536. 'location' => 'path',
  537. 'type' => 'integer',
  538. 'required' => true,
  539. ],
  540. 'expansionFileType' => [
  541. 'location' => 'path',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ],
  545. ],
  546. ],
  547. ]
  548. ]
  549. );
  550. $this->edits_images = new AndroidPublisher\Resource\EditsImages(
  551. $this,
  552. $this->serviceName,
  553. 'images',
  554. [
  555. 'methods' => [
  556. 'delete' => [
  557. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}',
  558. 'httpMethod' => 'DELETE',
  559. 'parameters' => [
  560. 'packageName' => [
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ],
  565. 'editId' => [
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ],
  570. 'language' => [
  571. 'location' => 'path',
  572. 'type' => 'string',
  573. 'required' => true,
  574. ],
  575. 'imageType' => [
  576. 'location' => 'path',
  577. 'type' => 'string',
  578. 'required' => true,
  579. ],
  580. 'imageId' => [
  581. 'location' => 'path',
  582. 'type' => 'string',
  583. 'required' => true,
  584. ],
  585. ],
  586. ],'deleteall' => [
  587. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}',
  588. 'httpMethod' => 'DELETE',
  589. 'parameters' => [
  590. 'packageName' => [
  591. 'location' => 'path',
  592. 'type' => 'string',
  593. 'required' => true,
  594. ],
  595. 'editId' => [
  596. 'location' => 'path',
  597. 'type' => 'string',
  598. 'required' => true,
  599. ],
  600. 'language' => [
  601. 'location' => 'path',
  602. 'type' => 'string',
  603. 'required' => true,
  604. ],
  605. 'imageType' => [
  606. 'location' => 'path',
  607. 'type' => 'string',
  608. 'required' => true,
  609. ],
  610. ],
  611. ],'list' => [
  612. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}',
  613. 'httpMethod' => 'GET',
  614. 'parameters' => [
  615. 'packageName' => [
  616. 'location' => 'path',
  617. 'type' => 'string',
  618. 'required' => true,
  619. ],
  620. 'editId' => [
  621. 'location' => 'path',
  622. 'type' => 'string',
  623. 'required' => true,
  624. ],
  625. 'language' => [
  626. 'location' => 'path',
  627. 'type' => 'string',
  628. 'required' => true,
  629. ],
  630. 'imageType' => [
  631. 'location' => 'path',
  632. 'type' => 'string',
  633. 'required' => true,
  634. ],
  635. ],
  636. ],'upload' => [
  637. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}',
  638. 'httpMethod' => 'POST',
  639. 'parameters' => [
  640. 'packageName' => [
  641. 'location' => 'path',
  642. 'type' => 'string',
  643. 'required' => true,
  644. ],
  645. 'editId' => [
  646. 'location' => 'path',
  647. 'type' => 'string',
  648. 'required' => true,
  649. ],
  650. 'language' => [
  651. 'location' => 'path',
  652. 'type' => 'string',
  653. 'required' => true,
  654. ],
  655. 'imageType' => [
  656. 'location' => 'path',
  657. 'type' => 'string',
  658. 'required' => true,
  659. ],
  660. ],
  661. ],
  662. ]
  663. ]
  664. );
  665. $this->edits_listings = new AndroidPublisher\Resource\EditsListings(
  666. $this,
  667. $this->serviceName,
  668. 'listings',
  669. [
  670. 'methods' => [
  671. 'delete' => [
  672. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}',
  673. 'httpMethod' => 'DELETE',
  674. 'parameters' => [
  675. 'packageName' => [
  676. 'location' => 'path',
  677. 'type' => 'string',
  678. 'required' => true,
  679. ],
  680. 'editId' => [
  681. 'location' => 'path',
  682. 'type' => 'string',
  683. 'required' => true,
  684. ],
  685. 'language' => [
  686. 'location' => 'path',
  687. 'type' => 'string',
  688. 'required' => true,
  689. ],
  690. ],
  691. ],'deleteall' => [
  692. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings',
  693. 'httpMethod' => 'DELETE',
  694. 'parameters' => [
  695. 'packageName' => [
  696. 'location' => 'path',
  697. 'type' => 'string',
  698. 'required' => true,
  699. ],
  700. 'editId' => [
  701. 'location' => 'path',
  702. 'type' => 'string',
  703. 'required' => true,
  704. ],
  705. ],
  706. ],'get' => [
  707. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}',
  708. 'httpMethod' => 'GET',
  709. 'parameters' => [
  710. 'packageName' => [
  711. 'location' => 'path',
  712. 'type' => 'string',
  713. 'required' => true,
  714. ],
  715. 'editId' => [
  716. 'location' => 'path',
  717. 'type' => 'string',
  718. 'required' => true,
  719. ],
  720. 'language' => [
  721. 'location' => 'path',
  722. 'type' => 'string',
  723. 'required' => true,
  724. ],
  725. ],
  726. ],'list' => [
  727. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings',
  728. 'httpMethod' => 'GET',
  729. 'parameters' => [
  730. 'packageName' => [
  731. 'location' => 'path',
  732. 'type' => 'string',
  733. 'required' => true,
  734. ],
  735. 'editId' => [
  736. 'location' => 'path',
  737. 'type' => 'string',
  738. 'required' => true,
  739. ],
  740. ],
  741. ],'patch' => [
  742. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}',
  743. 'httpMethod' => 'PATCH',
  744. 'parameters' => [
  745. 'packageName' => [
  746. 'location' => 'path',
  747. 'type' => 'string',
  748. 'required' => true,
  749. ],
  750. 'editId' => [
  751. 'location' => 'path',
  752. 'type' => 'string',
  753. 'required' => true,
  754. ],
  755. 'language' => [
  756. 'location' => 'path',
  757. 'type' => 'string',
  758. 'required' => true,
  759. ],
  760. ],
  761. ],'update' => [
  762. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}',
  763. 'httpMethod' => 'PUT',
  764. 'parameters' => [
  765. 'packageName' => [
  766. 'location' => 'path',
  767. 'type' => 'string',
  768. 'required' => true,
  769. ],
  770. 'editId' => [
  771. 'location' => 'path',
  772. 'type' => 'string',
  773. 'required' => true,
  774. ],
  775. 'language' => [
  776. 'location' => 'path',
  777. 'type' => 'string',
  778. 'required' => true,
  779. ],
  780. ],
  781. ],
  782. ]
  783. ]
  784. );
  785. $this->edits_testers = new AndroidPublisher\Resource\EditsTesters(
  786. $this,
  787. $this->serviceName,
  788. 'testers',
  789. [
  790. 'methods' => [
  791. 'get' => [
  792. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}',
  793. 'httpMethod' => 'GET',
  794. 'parameters' => [
  795. 'packageName' => [
  796. 'location' => 'path',
  797. 'type' => 'string',
  798. 'required' => true,
  799. ],
  800. 'editId' => [
  801. 'location' => 'path',
  802. 'type' => 'string',
  803. 'required' => true,
  804. ],
  805. 'track' => [
  806. 'location' => 'path',
  807. 'type' => 'string',
  808. 'required' => true,
  809. ],
  810. ],
  811. ],'patch' => [
  812. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}',
  813. 'httpMethod' => 'PATCH',
  814. 'parameters' => [
  815. 'packageName' => [
  816. 'location' => 'path',
  817. 'type' => 'string',
  818. 'required' => true,
  819. ],
  820. 'editId' => [
  821. 'location' => 'path',
  822. 'type' => 'string',
  823. 'required' => true,
  824. ],
  825. 'track' => [
  826. 'location' => 'path',
  827. 'type' => 'string',
  828. 'required' => true,
  829. ],
  830. ],
  831. ],'update' => [
  832. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}',
  833. 'httpMethod' => 'PUT',
  834. 'parameters' => [
  835. 'packageName' => [
  836. 'location' => 'path',
  837. 'type' => 'string',
  838. 'required' => true,
  839. ],
  840. 'editId' => [
  841. 'location' => 'path',
  842. 'type' => 'string',
  843. 'required' => true,
  844. ],
  845. 'track' => [
  846. 'location' => 'path',
  847. 'type' => 'string',
  848. 'required' => true,
  849. ],
  850. ],
  851. ],
  852. ]
  853. ]
  854. );
  855. $this->edits_tracks = new AndroidPublisher\Resource\EditsTracks(
  856. $this,
  857. $this->serviceName,
  858. 'tracks',
  859. [
  860. 'methods' => [
  861. 'get' => [
  862. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}',
  863. 'httpMethod' => 'GET',
  864. 'parameters' => [
  865. 'packageName' => [
  866. 'location' => 'path',
  867. 'type' => 'string',
  868. 'required' => true,
  869. ],
  870. 'editId' => [
  871. 'location' => 'path',
  872. 'type' => 'string',
  873. 'required' => true,
  874. ],
  875. 'track' => [
  876. 'location' => 'path',
  877. 'type' => 'string',
  878. 'required' => true,
  879. ],
  880. ],
  881. ],'list' => [
  882. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks',
  883. 'httpMethod' => 'GET',
  884. 'parameters' => [
  885. 'packageName' => [
  886. 'location' => 'path',
  887. 'type' => 'string',
  888. 'required' => true,
  889. ],
  890. 'editId' => [
  891. 'location' => 'path',
  892. 'type' => 'string',
  893. 'required' => true,
  894. ],
  895. ],
  896. ],'patch' => [
  897. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}',
  898. 'httpMethod' => 'PATCH',
  899. 'parameters' => [
  900. 'packageName' => [
  901. 'location' => 'path',
  902. 'type' => 'string',
  903. 'required' => true,
  904. ],
  905. 'editId' => [
  906. 'location' => 'path',
  907. 'type' => 'string',
  908. 'required' => true,
  909. ],
  910. 'track' => [
  911. 'location' => 'path',
  912. 'type' => 'string',
  913. 'required' => true,
  914. ],
  915. ],
  916. ],'update' => [
  917. 'path' => 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}',
  918. 'httpMethod' => 'PUT',
  919. 'parameters' => [
  920. 'packageName' => [
  921. 'location' => 'path',
  922. 'type' => 'string',
  923. 'required' => true,
  924. ],
  925. 'editId' => [
  926. 'location' => 'path',
  927. 'type' => 'string',
  928. 'required' => true,
  929. ],
  930. 'track' => [
  931. 'location' => 'path',
  932. 'type' => 'string',
  933. 'required' => true,
  934. ],
  935. ],
  936. ],
  937. ]
  938. ]
  939. );
  940. $this->generatedapks = new AndroidPublisher\Resource\Generatedapks(
  941. $this,
  942. $this->serviceName,
  943. 'generatedapks',
  944. [
  945. 'methods' => [
  946. 'download' => [
  947. 'path' => 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download',
  948. 'httpMethod' => 'GET',
  949. 'parameters' => [
  950. 'packageName' => [
  951. 'location' => 'path',
  952. 'type' => 'string',
  953. 'required' => true,
  954. ],
  955. 'versionCode' => [
  956. 'location' => 'path',
  957. 'type' => 'integer',
  958. 'required' => true,
  959. ],
  960. 'downloadId' => [
  961. 'location' => 'path',
  962. 'type' => 'string',
  963. 'required' => true,
  964. ],
  965. ],
  966. ],'list' => [
  967. 'path' => 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}',
  968. 'httpMethod' => 'GET',
  969. 'parameters' => [
  970. 'packageName' => [
  971. 'location' => 'path',
  972. 'type' => 'string',
  973. 'required' => true,
  974. ],
  975. 'versionCode' => [
  976. 'location' => 'path',
  977. 'type' => 'integer',
  978. 'required' => true,
  979. ],
  980. ],
  981. ],
  982. ]
  983. ]
  984. );
  985. $this->grants = new AndroidPublisher\Resource\Grants(
  986. $this,
  987. $this->serviceName,
  988. 'grants',
  989. [
  990. 'methods' => [
  991. 'create' => [
  992. 'path' => 'androidpublisher/v3/{+parent}/grants',
  993. 'httpMethod' => 'POST',
  994. 'parameters' => [
  995. 'parent' => [
  996. 'location' => 'path',
  997. 'type' => 'string',
  998. 'required' => true,
  999. ],
  1000. ],
  1001. ],'delete' => [
  1002. 'path' => 'androidpublisher/v3/{+name}',
  1003. 'httpMethod' => 'DELETE',
  1004. 'parameters' => [
  1005. 'name' => [
  1006. 'location' => 'path',
  1007. 'type' => 'string',
  1008. 'required' => true,
  1009. ],
  1010. ],
  1011. ],'patch' => [
  1012. 'path' => 'androidpublisher/v3/{+name}',
  1013. 'httpMethod' => 'PATCH',
  1014. 'parameters' => [
  1015. 'name' => [
  1016. 'location' => 'path',
  1017. 'type' => 'string',
  1018. 'required' => true,
  1019. ],
  1020. 'updateMask' => [
  1021. 'location' => 'query',
  1022. 'type' => 'string',
  1023. ],
  1024. ],
  1025. ],
  1026. ]
  1027. ]
  1028. );
  1029. $this->inappproducts = new AndroidPublisher\Resource\Inappproducts(
  1030. $this,
  1031. $this->serviceName,
  1032. 'inappproducts',
  1033. [
  1034. 'methods' => [
  1035. 'delete' => [
  1036. 'path' => 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}',
  1037. 'httpMethod' => 'DELETE',
  1038. 'parameters' => [
  1039. 'packageName' => [
  1040. 'location' => 'path',
  1041. 'type' => 'string',
  1042. 'required' => true,
  1043. ],
  1044. 'sku' => [
  1045. 'location' => 'path',
  1046. 'type' => 'string',
  1047. 'required' => true,
  1048. ],
  1049. ],
  1050. ],'get' => [
  1051. 'path' => 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}',
  1052. 'httpMethod' => 'GET',
  1053. 'parameters' => [
  1054. 'packageName' => [
  1055. 'location' => 'path',
  1056. 'type' => 'string',
  1057. 'required' => true,
  1058. ],
  1059. 'sku' => [
  1060. 'location' => 'path',
  1061. 'type' => 'string',
  1062. 'required' => true,
  1063. ],
  1064. ],
  1065. ],'insert' => [
  1066. 'path' => 'androidpublisher/v3/applications/{packageName}/inappproducts',
  1067. 'httpMethod' => 'POST',
  1068. 'parameters' => [
  1069. 'packageName' => [
  1070. 'location' => 'path',
  1071. 'type' => 'string',
  1072. 'required' => true,
  1073. ],
  1074. 'autoConvertMissingPrices' => [
  1075. 'location' => 'query',
  1076. 'type' => 'boolean',
  1077. ],
  1078. ],
  1079. ],'list' => [
  1080. 'path' => 'androidpublisher/v3/applications/{packageName}/inappproducts',
  1081. 'httpMethod' => 'GET',
  1082. 'parameters' => [
  1083. 'packageName' => [
  1084. 'location' => 'path',
  1085. 'type' => 'string',
  1086. 'required' => true,
  1087. ],
  1088. 'maxResults' => [
  1089. 'location' => 'query',
  1090. 'type' => 'integer',
  1091. ],
  1092. 'startIndex' => [
  1093. 'location' => 'query',
  1094. 'type' => 'integer',
  1095. ],
  1096. 'token' => [
  1097. 'location' => 'query',
  1098. 'type' => 'string',
  1099. ],
  1100. ],
  1101. ],'patch' => [
  1102. 'path' => 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}',
  1103. 'httpMethod' => 'PATCH',
  1104. 'parameters' => [
  1105. 'packageName' => [
  1106. 'location' => 'path',
  1107. 'type' => 'string',
  1108. 'required' => true,
  1109. ],
  1110. 'sku' => [
  1111. 'location' => 'path',
  1112. 'type' => 'string',
  1113. 'required' => true,
  1114. ],
  1115. 'autoConvertMissingPrices' => [
  1116. 'location' => 'query',
  1117. 'type' => 'boolean',
  1118. ],
  1119. ],
  1120. ],'update' => [
  1121. 'path' => 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}',
  1122. 'httpMethod' => 'PUT',
  1123. 'parameters' => [
  1124. 'packageName' => [
  1125. 'location' => 'path',
  1126. 'type' => 'string',
  1127. 'required' => true,
  1128. ],
  1129. 'sku' => [
  1130. 'location' => 'path',
  1131. 'type' => 'string',
  1132. 'required' => true,
  1133. ],
  1134. 'allowMissing' => [
  1135. 'location' => 'query',
  1136. 'type' => 'boolean',
  1137. ],
  1138. 'autoConvertMissingPrices' => [
  1139. 'location' => 'query',
  1140. 'type' => 'boolean',
  1141. ],
  1142. ],
  1143. ],
  1144. ]
  1145. ]
  1146. );
  1147. $this->internalappsharingartifacts = new AndroidPublisher\Resource\Internalappsharingartifacts(
  1148. $this,
  1149. $this->serviceName,
  1150. 'internalappsharingartifacts',
  1151. [
  1152. 'methods' => [
  1153. 'uploadapk' => [
  1154. 'path' => 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk',
  1155. 'httpMethod' => 'POST',
  1156. 'parameters' => [
  1157. 'packageName' => [
  1158. 'location' => 'path',
  1159. 'type' => 'string',
  1160. 'required' => true,
  1161. ],
  1162. ],
  1163. ],'uploadbundle' => [
  1164. 'path' => 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle',
  1165. 'httpMethod' => 'POST',
  1166. 'parameters' => [
  1167. 'packageName' => [
  1168. 'location' => 'path',
  1169. 'type' => 'string',
  1170. 'required' => true,
  1171. ],
  1172. ],
  1173. ],
  1174. ]
  1175. ]
  1176. );
  1177. $this->monetization = new AndroidPublisher\Resource\Monetization(
  1178. $this,
  1179. $this->serviceName,
  1180. 'monetization',
  1181. [
  1182. 'methods' => [
  1183. 'convertRegionPrices' => [
  1184. 'path' => 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices',
  1185. 'httpMethod' => 'POST',
  1186. 'parameters' => [
  1187. 'packageName' => [
  1188. 'location' => 'path',
  1189. 'type' => 'string',
  1190. 'required' => true,
  1191. ],
  1192. ],
  1193. ],
  1194. ]
  1195. ]
  1196. );
  1197. $this->monetization_subscriptions = new AndroidPublisher\Resource\MonetizationSubscriptions(
  1198. $this,
  1199. $this->serviceName,
  1200. 'subscriptions',
  1201. [
  1202. 'methods' => [
  1203. 'archive' => [
  1204. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive',
  1205. 'httpMethod' => 'POST',
  1206. 'parameters' => [
  1207. 'packageName' => [
  1208. 'location' => 'path',
  1209. 'type' => 'string',
  1210. 'required' => true,
  1211. ],
  1212. 'productId' => [
  1213. 'location' => 'path',
  1214. 'type' => 'string',
  1215. 'required' => true,
  1216. ],
  1217. ],
  1218. ],'create' => [
  1219. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions',
  1220. 'httpMethod' => 'POST',
  1221. 'parameters' => [
  1222. 'packageName' => [
  1223. 'location' => 'path',
  1224. 'type' => 'string',
  1225. 'required' => true,
  1226. ],
  1227. 'productId' => [
  1228. 'location' => 'query',
  1229. 'type' => 'string',
  1230. ],
  1231. 'regionsVersion.version' => [
  1232. 'location' => 'query',
  1233. 'type' => 'string',
  1234. ],
  1235. ],
  1236. ],'delete' => [
  1237. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}',
  1238. 'httpMethod' => 'DELETE',
  1239. 'parameters' => [
  1240. 'packageName' => [
  1241. 'location' => 'path',
  1242. 'type' => 'string',
  1243. 'required' => true,
  1244. ],
  1245. 'productId' => [
  1246. 'location' => 'path',
  1247. 'type' => 'string',
  1248. 'required' => true,
  1249. ],
  1250. ],
  1251. ],'get' => [
  1252. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}',
  1253. 'httpMethod' => 'GET',
  1254. 'parameters' => [
  1255. 'packageName' => [
  1256. 'location' => 'path',
  1257. 'type' => 'string',
  1258. 'required' => true,
  1259. ],
  1260. 'productId' => [
  1261. 'location' => 'path',
  1262. 'type' => 'string',
  1263. 'required' => true,
  1264. ],
  1265. ],
  1266. ],'list' => [
  1267. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions',
  1268. 'httpMethod' => 'GET',
  1269. 'parameters' => [
  1270. 'packageName' => [
  1271. 'location' => 'path',
  1272. 'type' => 'string',
  1273. 'required' => true,
  1274. ],
  1275. 'pageSize' => [
  1276. 'location' => 'query',
  1277. 'type' => 'integer',
  1278. ],
  1279. 'pageToken' => [
  1280. 'location' => 'query',
  1281. 'type' => 'string',
  1282. ],
  1283. 'showArchived' => [
  1284. 'location' => 'query',
  1285. 'type' => 'boolean',
  1286. ],
  1287. ],
  1288. ],'patch' => [
  1289. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}',
  1290. 'httpMethod' => 'PATCH',
  1291. 'parameters' => [
  1292. 'packageName' => [
  1293. 'location' => 'path',
  1294. 'type' => 'string',
  1295. 'required' => true,
  1296. ],
  1297. 'productId' => [
  1298. 'location' => 'path',
  1299. 'type' => 'string',
  1300. 'required' => true,
  1301. ],
  1302. 'regionsVersion.version' => [
  1303. 'location' => 'query',
  1304. 'type' => 'string',
  1305. ],
  1306. 'updateMask' => [
  1307. 'location' => 'query',
  1308. 'type' => 'string',
  1309. ],
  1310. ],
  1311. ],
  1312. ]
  1313. ]
  1314. );
  1315. $this->monetization_subscriptions_basePlans = new AndroidPublisher\Resource\MonetizationSubscriptionsBasePlans(
  1316. $this,
  1317. $this->serviceName,
  1318. 'basePlans',
  1319. [
  1320. 'methods' => [
  1321. 'activate' => [
  1322. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate',
  1323. 'httpMethod' => 'POST',
  1324. 'parameters' => [
  1325. 'packageName' => [
  1326. 'location' => 'path',
  1327. 'type' => 'string',
  1328. 'required' => true,
  1329. ],
  1330. 'productId' => [
  1331. 'location' => 'path',
  1332. 'type' => 'string',
  1333. 'required' => true,
  1334. ],
  1335. 'basePlanId' => [
  1336. 'location' => 'path',
  1337. 'type' => 'string',
  1338. 'required' => true,
  1339. ],
  1340. ],
  1341. ],'deactivate' => [
  1342. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate',
  1343. 'httpMethod' => 'POST',
  1344. 'parameters' => [
  1345. 'packageName' => [
  1346. 'location' => 'path',
  1347. 'type' => 'string',
  1348. 'required' => true,
  1349. ],
  1350. 'productId' => [
  1351. 'location' => 'path',
  1352. 'type' => 'string',
  1353. 'required' => true,
  1354. ],
  1355. 'basePlanId' => [
  1356. 'location' => 'path',
  1357. 'type' => 'string',
  1358. 'required' => true,
  1359. ],
  1360. ],
  1361. ],'delete' => [
  1362. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}',
  1363. 'httpMethod' => 'DELETE',
  1364. 'parameters' => [
  1365. 'packageName' => [
  1366. 'location' => 'path',
  1367. 'type' => 'string',
  1368. 'required' => true,
  1369. ],
  1370. 'productId' => [
  1371. 'location' => 'path',
  1372. 'type' => 'string',
  1373. 'required' => true,
  1374. ],
  1375. 'basePlanId' => [
  1376. 'location' => 'path',
  1377. 'type' => 'string',
  1378. 'required' => true,
  1379. ],
  1380. ],
  1381. ],'migratePrices' => [
  1382. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices',
  1383. 'httpMethod' => 'POST',
  1384. 'parameters' => [
  1385. 'packageName' => [
  1386. 'location' => 'path',
  1387. 'type' => 'string',
  1388. 'required' => true,
  1389. ],
  1390. 'productId' => [
  1391. 'location' => 'path',
  1392. 'type' => 'string',
  1393. 'required' => true,
  1394. ],
  1395. 'basePlanId' => [
  1396. 'location' => 'path',
  1397. 'type' => 'string',
  1398. 'required' => true,
  1399. ],
  1400. ],
  1401. ],
  1402. ]
  1403. ]
  1404. );
  1405. $this->monetization_subscriptions_basePlans_offers = new AndroidPublisher\Resource\MonetizationSubscriptionsBasePlansOffers(
  1406. $this,
  1407. $this->serviceName,
  1408. 'offers',
  1409. [
  1410. 'methods' => [
  1411. 'activate' => [
  1412. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate',
  1413. 'httpMethod' => 'POST',
  1414. 'parameters' => [
  1415. 'packageName' => [
  1416. 'location' => 'path',
  1417. 'type' => 'string',
  1418. 'required' => true,
  1419. ],
  1420. 'productId' => [
  1421. 'location' => 'path',
  1422. 'type' => 'string',
  1423. 'required' => true,
  1424. ],
  1425. 'basePlanId' => [
  1426. 'location' => 'path',
  1427. 'type' => 'string',
  1428. 'required' => true,
  1429. ],
  1430. 'offerId' => [
  1431. 'location' => 'path',
  1432. 'type' => 'string',
  1433. 'required' => true,
  1434. ],
  1435. ],
  1436. ],'create' => [
  1437. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers',
  1438. 'httpMethod' => 'POST',
  1439. 'parameters' => [
  1440. 'packageName' => [
  1441. 'location' => 'path',
  1442. 'type' => 'string',
  1443. 'required' => true,
  1444. ],
  1445. 'productId' => [
  1446. 'location' => 'path',
  1447. 'type' => 'string',
  1448. 'required' => true,
  1449. ],
  1450. 'basePlanId' => [
  1451. 'location' => 'path',
  1452. 'type' => 'string',
  1453. 'required' => true,
  1454. ],
  1455. 'offerId' => [
  1456. 'location' => 'query',
  1457. 'type' => 'string',
  1458. ],
  1459. 'regionsVersion.version' => [
  1460. 'location' => 'query',
  1461. 'type' => 'string',
  1462. ],
  1463. ],
  1464. ],'deactivate' => [
  1465. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate',
  1466. 'httpMethod' => 'POST',
  1467. 'parameters' => [
  1468. 'packageName' => [
  1469. 'location' => 'path',
  1470. 'type' => 'string',
  1471. 'required' => true,
  1472. ],
  1473. 'productId' => [
  1474. 'location' => 'path',
  1475. 'type' => 'string',
  1476. 'required' => true,
  1477. ],
  1478. 'basePlanId' => [
  1479. 'location' => 'path',
  1480. 'type' => 'string',
  1481. 'required' => true,
  1482. ],
  1483. 'offerId' => [
  1484. 'location' => 'path',
  1485. 'type' => 'string',
  1486. 'required' => true,
  1487. ],
  1488. ],
  1489. ],'delete' => [
  1490. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}',
  1491. 'httpMethod' => 'DELETE',
  1492. 'parameters' => [
  1493. 'packageName' => [
  1494. 'location' => 'path',
  1495. 'type' => 'string',
  1496. 'required' => true,
  1497. ],
  1498. 'productId' => [
  1499. 'location' => 'path',
  1500. 'type' => 'string',
  1501. 'required' => true,
  1502. ],
  1503. 'basePlanId' => [
  1504. 'location' => 'path',
  1505. 'type' => 'string',
  1506. 'required' => true,
  1507. ],
  1508. 'offerId' => [
  1509. 'location' => 'path',
  1510. 'type' => 'string',
  1511. 'required' => true,
  1512. ],
  1513. ],
  1514. ],'get' => [
  1515. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}',
  1516. 'httpMethod' => 'GET',
  1517. 'parameters' => [
  1518. 'packageName' => [
  1519. 'location' => 'path',
  1520. 'type' => 'string',
  1521. 'required' => true,
  1522. ],
  1523. 'productId' => [
  1524. 'location' => 'path',
  1525. 'type' => 'string',
  1526. 'required' => true,
  1527. ],
  1528. 'basePlanId' => [
  1529. 'location' => 'path',
  1530. 'type' => 'string',
  1531. 'required' => true,
  1532. ],
  1533. 'offerId' => [
  1534. 'location' => 'path',
  1535. 'type' => 'string',
  1536. 'required' => true,
  1537. ],
  1538. ],
  1539. ],'list' => [
  1540. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers',
  1541. 'httpMethod' => 'GET',
  1542. 'parameters' => [
  1543. 'packageName' => [
  1544. 'location' => 'path',
  1545. 'type' => 'string',
  1546. 'required' => true,
  1547. ],
  1548. 'productId' => [
  1549. 'location' => 'path',
  1550. 'type' => 'string',
  1551. 'required' => true,
  1552. ],
  1553. 'basePlanId' => [
  1554. 'location' => 'path',
  1555. 'type' => 'string',
  1556. 'required' => true,
  1557. ],
  1558. 'pageSize' => [
  1559. 'location' => 'query',
  1560. 'type' => 'integer',
  1561. ],
  1562. 'pageToken' => [
  1563. 'location' => 'query',
  1564. 'type' => 'string',
  1565. ],
  1566. ],
  1567. ],'patch' => [
  1568. 'path' => 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}',
  1569. 'httpMethod' => 'PATCH',
  1570. 'parameters' => [
  1571. 'packageName' => [
  1572. 'location' => 'path',
  1573. 'type' => 'string',
  1574. 'required' => true,
  1575. ],
  1576. 'productId' => [
  1577. 'location' => 'path',
  1578. 'type' => 'string',
  1579. 'required' => true,
  1580. ],
  1581. 'basePlanId' => [
  1582. 'location' => 'path',
  1583. 'type' => 'string',
  1584. 'required' => true,
  1585. ],
  1586. 'offerId' => [
  1587. 'location' => 'path',
  1588. 'type' => 'string',
  1589. 'required' => true,
  1590. ],
  1591. 'regionsVersion.version' => [
  1592. 'location' => 'query',
  1593. 'type' => 'string',
  1594. ],
  1595. 'updateMask' => [
  1596. 'location' => 'query',
  1597. 'type' => 'string',
  1598. ],
  1599. ],
  1600. ],
  1601. ]
  1602. ]
  1603. );
  1604. $this->orders = new AndroidPublisher\Resource\Orders(
  1605. $this,
  1606. $this->serviceName,
  1607. 'orders',
  1608. [
  1609. 'methods' => [
  1610. 'refund' => [
  1611. 'path' => 'androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund',
  1612. 'httpMethod' => 'POST',
  1613. 'parameters' => [
  1614. 'packageName' => [
  1615. 'location' => 'path',
  1616. 'type' => 'string',
  1617. 'required' => true,
  1618. ],
  1619. 'orderId' => [
  1620. 'location' => 'path',
  1621. 'type' => 'string',
  1622. 'required' => true,
  1623. ],
  1624. 'revoke' => [
  1625. 'location' => 'query',
  1626. 'type' => 'boolean',
  1627. ],
  1628. ],
  1629. ],
  1630. ]
  1631. ]
  1632. );
  1633. $this->purchases_products = new AndroidPublisher\Resource\PurchasesProducts(
  1634. $this,
  1635. $this->serviceName,
  1636. 'products',
  1637. [
  1638. 'methods' => [
  1639. 'acknowledge' => [
  1640. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge',
  1641. 'httpMethod' => 'POST',
  1642. 'parameters' => [
  1643. 'packageName' => [
  1644. 'location' => 'path',
  1645. 'type' => 'string',
  1646. 'required' => true,
  1647. ],
  1648. 'productId' => [
  1649. 'location' => 'path',
  1650. 'type' => 'string',
  1651. 'required' => true,
  1652. ],
  1653. 'token' => [
  1654. 'location' => 'path',
  1655. 'type' => 'string',
  1656. 'required' => true,
  1657. ],
  1658. ],
  1659. ],'get' => [
  1660. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}',
  1661. 'httpMethod' => 'GET',
  1662. 'parameters' => [
  1663. 'packageName' => [
  1664. 'location' => 'path',
  1665. 'type' => 'string',
  1666. 'required' => true,
  1667. ],
  1668. 'productId' => [
  1669. 'location' => 'path',
  1670. 'type' => 'string',
  1671. 'required' => true,
  1672. ],
  1673. 'token' => [
  1674. 'location' => 'path',
  1675. 'type' => 'string',
  1676. 'required' => true,
  1677. ],
  1678. ],
  1679. ],
  1680. ]
  1681. ]
  1682. );
  1683. $this->purchases_subscriptions = new AndroidPublisher\Resource\PurchasesSubscriptions(
  1684. $this,
  1685. $this->serviceName,
  1686. 'subscriptions',
  1687. [
  1688. 'methods' => [
  1689. 'acknowledge' => [
  1690. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge',
  1691. 'httpMethod' => 'POST',
  1692. 'parameters' => [
  1693. 'packageName' => [
  1694. 'location' => 'path',
  1695. 'type' => 'string',
  1696. 'required' => true,
  1697. ],
  1698. 'subscriptionId' => [
  1699. 'location' => 'path',
  1700. 'type' => 'string',
  1701. 'required' => true,
  1702. ],
  1703. 'token' => [
  1704. 'location' => 'path',
  1705. 'type' => 'string',
  1706. 'required' => true,
  1707. ],
  1708. ],
  1709. ],'cancel' => [
  1710. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel',
  1711. 'httpMethod' => 'POST',
  1712. 'parameters' => [
  1713. 'packageName' => [
  1714. 'location' => 'path',
  1715. 'type' => 'string',
  1716. 'required' => true,
  1717. ],
  1718. 'subscriptionId' => [
  1719. 'location' => 'path',
  1720. 'type' => 'string',
  1721. 'required' => true,
  1722. ],
  1723. 'token' => [
  1724. 'location' => 'path',
  1725. 'type' => 'string',
  1726. 'required' => true,
  1727. ],
  1728. ],
  1729. ],'defer' => [
  1730. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer',
  1731. 'httpMethod' => 'POST',
  1732. 'parameters' => [
  1733. 'packageName' => [
  1734. 'location' => 'path',
  1735. 'type' => 'string',
  1736. 'required' => true,
  1737. ],
  1738. 'subscriptionId' => [
  1739. 'location' => 'path',
  1740. 'type' => 'string',
  1741. 'required' => true,
  1742. ],
  1743. 'token' => [
  1744. 'location' => 'path',
  1745. 'type' => 'string',
  1746. 'required' => true,
  1747. ],
  1748. ],
  1749. ],'get' => [
  1750. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}',
  1751. 'httpMethod' => 'GET',
  1752. 'parameters' => [
  1753. 'packageName' => [
  1754. 'location' => 'path',
  1755. 'type' => 'string',
  1756. 'required' => true,
  1757. ],
  1758. 'subscriptionId' => [
  1759. 'location' => 'path',
  1760. 'type' => 'string',
  1761. 'required' => true,
  1762. ],
  1763. 'token' => [
  1764. 'location' => 'path',
  1765. 'type' => 'string',
  1766. 'required' => true,
  1767. ],
  1768. ],
  1769. ],'refund' => [
  1770. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund',
  1771. 'httpMethod' => 'POST',
  1772. 'parameters' => [
  1773. 'packageName' => [
  1774. 'location' => 'path',
  1775. 'type' => 'string',
  1776. 'required' => true,
  1777. ],
  1778. 'subscriptionId' => [
  1779. 'location' => 'path',
  1780. 'type' => 'string',
  1781. 'required' => true,
  1782. ],
  1783. 'token' => [
  1784. 'location' => 'path',
  1785. 'type' => 'string',
  1786. 'required' => true,
  1787. ],
  1788. ],
  1789. ],'revoke' => [
  1790. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke',
  1791. 'httpMethod' => 'POST',
  1792. 'parameters' => [
  1793. 'packageName' => [
  1794. 'location' => 'path',
  1795. 'type' => 'string',
  1796. 'required' => true,
  1797. ],
  1798. 'subscriptionId' => [
  1799. 'location' => 'path',
  1800. 'type' => 'string',
  1801. 'required' => true,
  1802. ],
  1803. 'token' => [
  1804. 'location' => 'path',
  1805. 'type' => 'string',
  1806. 'required' => true,
  1807. ],
  1808. ],
  1809. ],
  1810. ]
  1811. ]
  1812. );
  1813. $this->purchases_subscriptionsv2 = new AndroidPublisher\Resource\PurchasesSubscriptionsv2(
  1814. $this,
  1815. $this->serviceName,
  1816. 'subscriptionsv2',
  1817. [
  1818. 'methods' => [
  1819. 'get' => [
  1820. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}',
  1821. 'httpMethod' => 'GET',
  1822. 'parameters' => [
  1823. 'packageName' => [
  1824. 'location' => 'path',
  1825. 'type' => 'string',
  1826. 'required' => true,
  1827. ],
  1828. 'token' => [
  1829. 'location' => 'path',
  1830. 'type' => 'string',
  1831. 'required' => true,
  1832. ],
  1833. ],
  1834. ],
  1835. ]
  1836. ]
  1837. );
  1838. $this->purchases_voidedpurchases = new AndroidPublisher\Resource\PurchasesVoidedpurchases(
  1839. $this,
  1840. $this->serviceName,
  1841. 'voidedpurchases',
  1842. [
  1843. 'methods' => [
  1844. 'list' => [
  1845. 'path' => 'androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases',
  1846. 'httpMethod' => 'GET',
  1847. 'parameters' => [
  1848. 'packageName' => [
  1849. 'location' => 'path',
  1850. 'type' => 'string',
  1851. 'required' => true,
  1852. ],
  1853. 'endTime' => [
  1854. 'location' => 'query',
  1855. 'type' => 'string',
  1856. ],
  1857. 'maxResults' => [
  1858. 'location' => 'query',
  1859. 'type' => 'integer',
  1860. ],
  1861. 'startIndex' => [
  1862. 'location' => 'query',
  1863. 'type' => 'integer',
  1864. ],
  1865. 'startTime' => [
  1866. 'location' => 'query',
  1867. 'type' => 'string',
  1868. ],
  1869. 'token' => [
  1870. 'location' => 'query',
  1871. 'type' => 'string',
  1872. ],
  1873. 'type' => [
  1874. 'location' => 'query',
  1875. 'type' => 'integer',
  1876. ],
  1877. ],
  1878. ],
  1879. ]
  1880. ]
  1881. );
  1882. $this->reviews = new AndroidPublisher\Resource\Reviews(
  1883. $this,
  1884. $this->serviceName,
  1885. 'reviews',
  1886. [
  1887. 'methods' => [
  1888. 'get' => [
  1889. 'path' => 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}',
  1890. 'httpMethod' => 'GET',
  1891. 'parameters' => [
  1892. 'packageName' => [
  1893. 'location' => 'path',
  1894. 'type' => 'string',
  1895. 'required' => true,
  1896. ],
  1897. 'reviewId' => [
  1898. 'location' => 'path',
  1899. 'type' => 'string',
  1900. 'required' => true,
  1901. ],
  1902. 'translationLanguage' => [
  1903. 'location' => 'query',
  1904. 'type' => 'string',
  1905. ],
  1906. ],
  1907. ],'list' => [
  1908. 'path' => 'androidpublisher/v3/applications/{packageName}/reviews',
  1909. 'httpMethod' => 'GET',
  1910. 'parameters' => [
  1911. 'packageName' => [
  1912. 'location' => 'path',
  1913. 'type' => 'string',
  1914. 'required' => true,
  1915. ],
  1916. 'maxResults' => [
  1917. 'location' => 'query',
  1918. 'type' => 'integer',
  1919. ],
  1920. 'startIndex' => [
  1921. 'location' => 'query',
  1922. 'type' => 'integer',
  1923. ],
  1924. 'token' => [
  1925. 'location' => 'query',
  1926. 'type' => 'string',
  1927. ],
  1928. 'translationLanguage' => [
  1929. 'location' => 'query',
  1930. 'type' => 'string',
  1931. ],
  1932. ],
  1933. ],'reply' => [
  1934. 'path' => 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply',
  1935. 'httpMethod' => 'POST',
  1936. 'parameters' => [
  1937. 'packageName' => [
  1938. 'location' => 'path',
  1939. 'type' => 'string',
  1940. 'required' => true,
  1941. ],
  1942. 'reviewId' => [
  1943. 'location' => 'path',
  1944. 'type' => 'string',
  1945. 'required' => true,
  1946. ],
  1947. ],
  1948. ],
  1949. ]
  1950. ]
  1951. );
  1952. $this->systemapks_variants = new AndroidPublisher\Resource\SystemapksVariants(
  1953. $this,
  1954. $this->serviceName,
  1955. 'variants',
  1956. [
  1957. 'methods' => [
  1958. 'create' => [
  1959. 'path' => 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants',
  1960. 'httpMethod' => 'POST',
  1961. 'parameters' => [
  1962. 'packageName' => [
  1963. 'location' => 'path',
  1964. 'type' => 'string',
  1965. 'required' => true,
  1966. ],
  1967. 'versionCode' => [
  1968. 'location' => 'path',
  1969. 'type' => 'string',
  1970. 'required' => true,
  1971. ],
  1972. ],
  1973. ],'download' => [
  1974. 'path' => 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download',
  1975. 'httpMethod' => 'GET',
  1976. 'parameters' => [
  1977. 'packageName' => [
  1978. 'location' => 'path',
  1979. 'type' => 'string',
  1980. 'required' => true,
  1981. ],
  1982. 'versionCode' => [
  1983. 'location' => 'path',
  1984. 'type' => 'string',
  1985. 'required' => true,
  1986. ],
  1987. 'variantId' => [
  1988. 'location' => 'path',
  1989. 'type' => 'integer',
  1990. 'required' => true,
  1991. ],
  1992. ],
  1993. ],'get' => [
  1994. 'path' => 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}',
  1995. 'httpMethod' => 'GET',
  1996. 'parameters' => [
  1997. 'packageName' => [
  1998. 'location' => 'path',
  1999. 'type' => 'string',
  2000. 'required' => true,
  2001. ],
  2002. 'versionCode' => [
  2003. 'location' => 'path',
  2004. 'type' => 'string',
  2005. 'required' => true,
  2006. ],
  2007. 'variantId' => [
  2008. 'location' => 'path',
  2009. 'type' => 'integer',
  2010. 'required' => true,
  2011. ],
  2012. ],
  2013. ],'list' => [
  2014. 'path' => 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants',
  2015. 'httpMethod' => 'GET',
  2016. 'parameters' => [
  2017. 'packageName' => [
  2018. 'location' => 'path',
  2019. 'type' => 'string',
  2020. 'required' => true,
  2021. ],
  2022. 'versionCode' => [
  2023. 'location' => 'path',
  2024. 'type' => 'string',
  2025. 'required' => true,
  2026. ],
  2027. ],
  2028. ],
  2029. ]
  2030. ]
  2031. );
  2032. $this->users = new AndroidPublisher\Resource\Users(
  2033. $this,
  2034. $this->serviceName,
  2035. 'users',
  2036. [
  2037. 'methods' => [
  2038. 'create' => [
  2039. 'path' => 'androidpublisher/v3/{+parent}/users',
  2040. 'httpMethod' => 'POST',
  2041. 'parameters' => [
  2042. 'parent' => [
  2043. 'location' => 'path',
  2044. 'type' => 'string',
  2045. 'required' => true,
  2046. ],
  2047. ],
  2048. ],'delete' => [
  2049. 'path' => 'androidpublisher/v3/{+name}',
  2050. 'httpMethod' => 'DELETE',
  2051. 'parameters' => [
  2052. 'name' => [
  2053. 'location' => 'path',
  2054. 'type' => 'string',
  2055. 'required' => true,
  2056. ],
  2057. ],
  2058. ],'list' => [
  2059. 'path' => 'androidpublisher/v3/{+parent}/users',
  2060. 'httpMethod' => 'GET',
  2061. 'parameters' => [
  2062. 'parent' => [
  2063. 'location' => 'path',
  2064. 'type' => 'string',
  2065. 'required' => true,
  2066. ],
  2067. 'pageSize' => [
  2068. 'location' => 'query',
  2069. 'type' => 'integer',
  2070. ],
  2071. 'pageToken' => [
  2072. 'location' => 'query',
  2073. 'type' => 'string',
  2074. ],
  2075. ],
  2076. ],'patch' => [
  2077. 'path' => 'androidpublisher/v3/{+name}',
  2078. 'httpMethod' => 'PATCH',
  2079. 'parameters' => [
  2080. 'name' => [
  2081. 'location' => 'path',
  2082. 'type' => 'string',
  2083. 'required' => true,
  2084. ],
  2085. 'updateMask' => [
  2086. 'location' => 'query',
  2087. 'type' => 'string',
  2088. ],
  2089. ],
  2090. ],
  2091. ]
  2092. ]
  2093. );
  2094. }
  2095. }
  2096. // Adding a class alias for backwards compatibility with the previous class name.
  2097. class_alias(AndroidPublisher::class, 'Google_Service_AndroidPublisher');