lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,2572 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AndroidpublisherV2
23
+ # Google Play Developer API
24
+ #
25
+ # Lets Android application developers access their Google Play accounts.
26
+ #
27
+ # @example
28
+ # require 'google/apis/androidpublisher_v2'
29
+ #
30
+ # Androidpublisher = Google::Apis::AndroidpublisherV2 # Alias the module
31
+ # service = Androidpublisher::AndroidPublisherService.new
32
+ #
33
+ # @see https://developers.google.com/android-publisher
34
+ class AndroidPublisherService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'androidpublisher/v2/applications/')
53
+ end
54
+
55
+ # Commits/applies the changes made in this edit back to the app.
56
+ # @param [String] package_name
57
+ # Unique identifier for the Android app that is being updated; for example, "com.
58
+ # spiffygame".
59
+ # @param [String] edit_id
60
+ # Unique identifier for this edit.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # Overrides userIp if both are provided.
67
+ # @param [String] user_ip
68
+ # IP address of the site where the request originates. Use this if you want to
69
+ # enforce per-user limits.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppEdit] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::AndroidpublisherV2::AppEdit]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
+ command = make_simple_command(:post, '{packageName}/edits/{editId}:commit', options)
84
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
85
+ command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
86
+ command.params['packageName'] = package_name unless package_name.nil?
87
+ command.params['editId'] = edit_id unless edit_id.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ command.query['userIp'] = user_ip unless user_ip.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
94
+ # Deletes an edit for an app. Creating a new edit will automatically delete any
95
+ # of your previous edits so this method need only be called if you want to
96
+ # preemptively abandon an edit.
97
+ # @param [String] package_name
98
+ # Unique identifier for the Android app that is being updated; for example, "com.
99
+ # spiffygame".
100
+ # @param [String] edit_id
101
+ # Unique identifier for this edit.
102
+ # @param [String] fields
103
+ # Selector specifying which fields to include in a partial response.
104
+ # @param [String] quota_user
105
+ # Available to use for quota purposes for server-side applications. Can be any
106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
107
+ # Overrides userIp if both are provided.
108
+ # @param [String] user_ip
109
+ # IP address of the site where the request originates. Use this if you want to
110
+ # enforce per-user limits.
111
+ # @param [Google::Apis::RequestOptions] options
112
+ # Request-specific options
113
+ #
114
+ # @yield [result, err] Result & error if block supplied
115
+ # @yieldparam result [NilClass] No result returned for this method
116
+ # @yieldparam err [StandardError] error object if request failed
117
+ #
118
+ # @return [void]
119
+ #
120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
123
+ def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
124
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}', options)
125
+ command.params['packageName'] = package_name unless package_name.nil?
126
+ command.params['editId'] = edit_id unless edit_id.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ command.query['userIp'] = user_ip unless user_ip.nil?
130
+ execute_or_queue_command(command, &block)
131
+ end
132
+
133
+ # Returns information about the edit specified. Calls will fail if the edit is
134
+ # no long active (e.g. has been deleted, superseded or expired).
135
+ # @param [String] package_name
136
+ # Unique identifier for the Android app that is being updated; for example, "com.
137
+ # spiffygame".
138
+ # @param [String] edit_id
139
+ # Unique identifier for this edit.
140
+ # @param [String] fields
141
+ # Selector specifying which fields to include in a partial response.
142
+ # @param [String] quota_user
143
+ # Available to use for quota purposes for server-side applications. Can be any
144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
145
+ # Overrides userIp if both are provided.
146
+ # @param [String] user_ip
147
+ # IP address of the site where the request originates. Use this if you want to
148
+ # enforce per-user limits.
149
+ # @param [Google::Apis::RequestOptions] options
150
+ # Request-specific options
151
+ #
152
+ # @yield [result, err] Result & error if block supplied
153
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppEdit] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::AndroidpublisherV2::AppEdit]
157
+ #
158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
161
+ def get_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
162
+ command = make_simple_command(:get, '{packageName}/edits/{editId}', options)
163
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
164
+ command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
165
+ command.params['packageName'] = package_name unless package_name.nil?
166
+ command.params['editId'] = edit_id unless edit_id.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ command.query['userIp'] = user_ip unless user_ip.nil?
170
+ execute_or_queue_command(command, &block)
171
+ end
172
+
173
+ # Creates a new edit for an app, populated with the app's current state.
174
+ # @param [String] package_name
175
+ # Unique identifier for the Android app that is being updated; for example, "com.
176
+ # spiffygame".
177
+ # @param [Google::Apis::AndroidpublisherV2::AppEdit] app_edit_object
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # Overrides userIp if both are provided.
184
+ # @param [String] user_ip
185
+ # IP address of the site where the request originates. Use this if you want to
186
+ # enforce per-user limits.
187
+ # @param [Google::Apis::RequestOptions] options
188
+ # Request-specific options
189
+ #
190
+ # @yield [result, err] Result & error if block supplied
191
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppEdit] parsed result object
192
+ # @yieldparam err [StandardError] error object if request failed
193
+ #
194
+ # @return [Google::Apis::AndroidpublisherV2::AppEdit]
195
+ #
196
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
197
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
198
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
199
+ def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
200
+ command = make_simple_command(:post, '{packageName}/edits', options)
201
+ command.request_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
202
+ command.request_object = app_edit_object
203
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
204
+ command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
205
+ command.params['packageName'] = package_name unless package_name.nil?
206
+ command.query['fields'] = fields unless fields.nil?
207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
208
+ command.query['userIp'] = user_ip unless user_ip.nil?
209
+ execute_or_queue_command(command, &block)
210
+ end
211
+
212
+ # Checks that the edit can be successfully committed. The edit's changes are not
213
+ # applied to the live app.
214
+ # @param [String] package_name
215
+ # Unique identifier for the Android app that is being updated; for example, "com.
216
+ # spiffygame".
217
+ # @param [String] edit_id
218
+ # Unique identifier for this edit.
219
+ # @param [String] fields
220
+ # Selector specifying which fields to include in a partial response.
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # Overrides userIp if both are provided.
225
+ # @param [String] user_ip
226
+ # IP address of the site where the request originates. Use this if you want to
227
+ # enforce per-user limits.
228
+ # @param [Google::Apis::RequestOptions] options
229
+ # Request-specific options
230
+ #
231
+ # @yield [result, err] Result & error if block supplied
232
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppEdit] parsed result object
233
+ # @yieldparam err [StandardError] error object if request failed
234
+ #
235
+ # @return [Google::Apis::AndroidpublisherV2::AppEdit]
236
+ #
237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
240
+ def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
241
+ command = make_simple_command(:post, '{packageName}/edits/{editId}:validate', options)
242
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
243
+ command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
244
+ command.params['packageName'] = package_name unless package_name.nil?
245
+ command.params['editId'] = edit_id unless edit_id.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ command.query['userIp'] = user_ip unless user_ip.nil?
249
+ execute_or_queue_command(command, &block)
250
+ end
251
+
252
+ # Deletes the APK-specific localized listing for a specified APK and language
253
+ # code.
254
+ # @param [String] package_name
255
+ # Unique identifier for the Android app that is being updated; for example, "com.
256
+ # spiffygame".
257
+ # @param [String] edit_id
258
+ # Unique identifier for this edit.
259
+ # @param [Fixnum] apk_version_code
260
+ # The APK version code whose APK-specific listings should be read or modified.
261
+ # @param [String] language
262
+ # The language code (a BCP-47 language tag) of the APK-specific localized
263
+ # listing to read or modify. For example, to select Austrian German, pass "de-AT"
264
+ # .
265
+ # @param [String] fields
266
+ # Selector specifying which fields to include in a partial response.
267
+ # @param [String] quota_user
268
+ # Available to use for quota purposes for server-side applications. Can be any
269
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
270
+ # Overrides userIp if both are provided.
271
+ # @param [String] user_ip
272
+ # IP address of the site where the request originates. Use this if you want to
273
+ # enforce per-user limits.
274
+ # @param [Google::Apis::RequestOptions] options
275
+ # Request-specific options
276
+ #
277
+ # @yield [result, err] Result & error if block supplied
278
+ # @yieldparam result [NilClass] No result returned for this method
279
+ # @yieldparam err [StandardError] error object if request failed
280
+ #
281
+ # @return [void]
282
+ #
283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
286
+ def delete_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
287
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
288
+ command.params['packageName'] = package_name unless package_name.nil?
289
+ command.params['editId'] = edit_id unless edit_id.nil?
290
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
291
+ command.params['language'] = language unless language.nil?
292
+ command.query['fields'] = fields unless fields.nil?
293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
294
+ command.query['userIp'] = user_ip unless user_ip.nil?
295
+ execute_or_queue_command(command, &block)
296
+ end
297
+
298
+ # Deletes all the APK-specific localized listings for a specified APK.
299
+ # @param [String] package_name
300
+ # Unique identifier for the Android app that is being updated; for example, "com.
301
+ # spiffygame".
302
+ # @param [String] edit_id
303
+ # Unique identifier for this edit.
304
+ # @param [Fixnum] apk_version_code
305
+ # The APK version code whose APK-specific listings should be read or modified.
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
308
+ # @param [String] quota_user
309
+ # Available to use for quota purposes for server-side applications. Can be any
310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
311
+ # Overrides userIp if both are provided.
312
+ # @param [String] user_ip
313
+ # IP address of the site where the request originates. Use this if you want to
314
+ # enforce per-user limits.
315
+ # @param [Google::Apis::RequestOptions] options
316
+ # Request-specific options
317
+ #
318
+ # @yield [result, err] Result & error if block supplied
319
+ # @yieldparam result [NilClass] No result returned for this method
320
+ # @yieldparam err [StandardError] error object if request failed
321
+ #
322
+ # @return [void]
323
+ #
324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
327
+ def delete_all_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
328
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
329
+ command.params['packageName'] = package_name unless package_name.nil?
330
+ command.params['editId'] = edit_id unless edit_id.nil?
331
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
332
+ command.query['fields'] = fields unless fields.nil?
333
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
334
+ command.query['userIp'] = user_ip unless user_ip.nil?
335
+ execute_or_queue_command(command, &block)
336
+ end
337
+
338
+ # Fetches the APK-specific localized listing for a specified APK and language
339
+ # code.
340
+ # @param [String] package_name
341
+ # Unique identifier for the Android app that is being updated; for example, "com.
342
+ # spiffygame".
343
+ # @param [String] edit_id
344
+ # Unique identifier for this edit.
345
+ # @param [Fixnum] apk_version_code
346
+ # The APK version code whose APK-specific listings should be read or modified.
347
+ # @param [String] language
348
+ # The language code (a BCP-47 language tag) of the APK-specific localized
349
+ # listing to read or modify. For example, to select Austrian German, pass "de-AT"
350
+ # .
351
+ # @param [String] fields
352
+ # Selector specifying which fields to include in a partial response.
353
+ # @param [String] quota_user
354
+ # Available to use for quota purposes for server-side applications. Can be any
355
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
356
+ # Overrides userIp if both are provided.
357
+ # @param [String] user_ip
358
+ # IP address of the site where the request originates. Use this if you want to
359
+ # enforce per-user limits.
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ApkListing] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::AndroidpublisherV2::ApkListing]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def get_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
373
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
374
+ command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
375
+ command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
376
+ command.params['packageName'] = package_name unless package_name.nil?
377
+ command.params['editId'] = edit_id unless edit_id.nil?
378
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
379
+ command.params['language'] = language unless language.nil?
380
+ command.query['fields'] = fields unless fields.nil?
381
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
382
+ command.query['userIp'] = user_ip unless user_ip.nil?
383
+ execute_or_queue_command(command, &block)
384
+ end
385
+
386
+ # Lists all the APK-specific localized listings for a specified APK.
387
+ # @param [String] package_name
388
+ # Unique identifier for the Android app that is being updated; for example, "com.
389
+ # spiffygame".
390
+ # @param [String] edit_id
391
+ # Unique identifier for this edit.
392
+ # @param [Fixnum] apk_version_code
393
+ # The APK version code whose APK-specific listings should be read or modified.
394
+ # @param [String] fields
395
+ # Selector specifying which fields to include in a partial response.
396
+ # @param [String] quota_user
397
+ # Available to use for quota purposes for server-side applications. Can be any
398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
399
+ # Overrides userIp if both are provided.
400
+ # @param [String] user_ip
401
+ # IP address of the site where the request originates. Use this if you want to
402
+ # enforce per-user limits.
403
+ # @param [Google::Apis::RequestOptions] options
404
+ # Request-specific options
405
+ #
406
+ # @yield [result, err] Result & error if block supplied
407
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListApkListingsResponse] parsed result object
408
+ # @yieldparam err [StandardError] error object if request failed
409
+ #
410
+ # @return [Google::Apis::AndroidpublisherV2::ListApkListingsResponse]
411
+ #
412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
415
+ def list_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
416
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
417
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListApkListingsResponse::Representation
418
+ command.response_class = Google::Apis::AndroidpublisherV2::ListApkListingsResponse
419
+ command.params['packageName'] = package_name unless package_name.nil?
420
+ command.params['editId'] = edit_id unless edit_id.nil?
421
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
422
+ command.query['fields'] = fields unless fields.nil?
423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
424
+ command.query['userIp'] = user_ip unless user_ip.nil?
425
+ execute_or_queue_command(command, &block)
426
+ end
427
+
428
+ # Updates or creates the APK-specific localized listing for a specified APK and
429
+ # language code. This method supports patch semantics.
430
+ # @param [String] package_name
431
+ # Unique identifier for the Android app that is being updated; for example, "com.
432
+ # spiffygame".
433
+ # @param [String] edit_id
434
+ # Unique identifier for this edit.
435
+ # @param [Fixnum] apk_version_code
436
+ # The APK version code whose APK-specific listings should be read or modified.
437
+ # @param [String] language
438
+ # The language code (a BCP-47 language tag) of the APK-specific localized
439
+ # listing to read or modify. For example, to select Austrian German, pass "de-AT"
440
+ # .
441
+ # @param [Google::Apis::AndroidpublisherV2::ApkListing] apk_listing_object
442
+ # @param [String] fields
443
+ # Selector specifying which fields to include in a partial response.
444
+ # @param [String] quota_user
445
+ # Available to use for quota purposes for server-side applications. Can be any
446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
447
+ # Overrides userIp if both are provided.
448
+ # @param [String] user_ip
449
+ # IP address of the site where the request originates. Use this if you want to
450
+ # enforce per-user limits.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ApkListing] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::AndroidpublisherV2::ApkListing]
459
+ #
460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
463
+ def patch_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
464
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
465
+ command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
466
+ command.request_object = apk_listing_object
467
+ command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
468
+ command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
469
+ command.params['packageName'] = package_name unless package_name.nil?
470
+ command.params['editId'] = edit_id unless edit_id.nil?
471
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
472
+ command.params['language'] = language unless language.nil?
473
+ command.query['fields'] = fields unless fields.nil?
474
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
475
+ command.query['userIp'] = user_ip unless user_ip.nil?
476
+ execute_or_queue_command(command, &block)
477
+ end
478
+
479
+ # Updates or creates the APK-specific localized listing for a specified APK and
480
+ # language code.
481
+ # @param [String] package_name
482
+ # Unique identifier for the Android app that is being updated; for example, "com.
483
+ # spiffygame".
484
+ # @param [String] edit_id
485
+ # Unique identifier for this edit.
486
+ # @param [Fixnum] apk_version_code
487
+ # The APK version code whose APK-specific listings should be read or modified.
488
+ # @param [String] language
489
+ # The language code (a BCP-47 language tag) of the APK-specific localized
490
+ # listing to read or modify. For example, to select Austrian German, pass "de-AT"
491
+ # .
492
+ # @param [Google::Apis::AndroidpublisherV2::ApkListing] apk_listing_object
493
+ # @param [String] fields
494
+ # Selector specifying which fields to include in a partial response.
495
+ # @param [String] quota_user
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # Overrides userIp if both are provided.
499
+ # @param [String] user_ip
500
+ # IP address of the site where the request originates. Use this if you want to
501
+ # enforce per-user limits.
502
+ # @param [Google::Apis::RequestOptions] options
503
+ # Request-specific options
504
+ #
505
+ # @yield [result, err] Result & error if block supplied
506
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ApkListing] parsed result object
507
+ # @yieldparam err [StandardError] error object if request failed
508
+ #
509
+ # @return [Google::Apis::AndroidpublisherV2::ApkListing]
510
+ #
511
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
514
+ def update_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
515
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
516
+ command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
517
+ command.request_object = apk_listing_object
518
+ command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
519
+ command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
520
+ command.params['packageName'] = package_name unless package_name.nil?
521
+ command.params['editId'] = edit_id unless edit_id.nil?
522
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
523
+ command.params['language'] = language unless language.nil?
524
+ command.query['fields'] = fields unless fields.nil?
525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
526
+ command.query['userIp'] = user_ip unless user_ip.nil?
527
+ execute_or_queue_command(command, &block)
528
+ end
529
+
530
+ # Creates a new APK without uploading the APK itself to Google Play, instead
531
+ # hosting the APK at a specified URL. This function is only available to
532
+ # enterprises using Google Play for Work whose application is configured to
533
+ # restrict distribution to the enterprise domain.
534
+ # @param [String] package_name
535
+ # Unique identifier for the Android app that is being updated; for example, "com.
536
+ # spiffygame".
537
+ # @param [String] edit_id
538
+ # Unique identifier for this edit.
539
+ # @param [Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest] apks_add_externally_hosted_request_object
540
+ # @param [String] fields
541
+ # Selector specifying which fields to include in a partial response.
542
+ # @param [String] quota_user
543
+ # Available to use for quota purposes for server-side applications. Can be any
544
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
545
+ # Overrides userIp if both are provided.
546
+ # @param [String] user_ip
547
+ # IP address of the site where the request originates. Use this if you want to
548
+ # enforce per-user limits.
549
+ # @param [Google::Apis::RequestOptions] options
550
+ # Request-specific options
551
+ #
552
+ # @yield [result, err] Result & error if block supplied
553
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse] parsed result object
554
+ # @yieldparam err [StandardError] error object if request failed
555
+ #
556
+ # @return [Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse]
557
+ #
558
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
561
+ def add_externally_hosted_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
562
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options)
563
+ command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation
564
+ command.request_object = apks_add_externally_hosted_request_object
565
+ command.response_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse::Representation
566
+ command.response_class = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse
567
+ command.params['packageName'] = package_name unless package_name.nil?
568
+ command.params['editId'] = edit_id unless edit_id.nil?
569
+ command.query['fields'] = fields unless fields.nil?
570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
571
+ command.query['userIp'] = user_ip unless user_ip.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
575
+ #
576
+ # @param [String] package_name
577
+ # Unique identifier for the Android app that is being updated; for example, "com.
578
+ # spiffygame".
579
+ # @param [String] edit_id
580
+ # Unique identifier for this edit.
581
+ # @param [String] fields
582
+ # Selector specifying which fields to include in a partial response.
583
+ # @param [String] quota_user
584
+ # Available to use for quota purposes for server-side applications. Can be any
585
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
586
+ # Overrides userIp if both are provided.
587
+ # @param [String] user_ip
588
+ # IP address of the site where the request originates. Use this if you want to
589
+ # enforce per-user limits.
590
+ # @param [Google::Apis::RequestOptions] options
591
+ # Request-specific options
592
+ #
593
+ # @yield [result, err] Result & error if block supplied
594
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListApksResponse] parsed result object
595
+ # @yieldparam err [StandardError] error object if request failed
596
+ #
597
+ # @return [Google::Apis::AndroidpublisherV2::ListApksResponse]
598
+ #
599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
602
+ def list_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
603
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options)
604
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListApksResponse::Representation
605
+ command.response_class = Google::Apis::AndroidpublisherV2::ListApksResponse
606
+ command.params['packageName'] = package_name unless package_name.nil?
607
+ command.params['editId'] = edit_id unless edit_id.nil?
608
+ command.query['fields'] = fields unless fields.nil?
609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ command.query['userIp'] = user_ip unless user_ip.nil?
611
+ execute_or_queue_command(command, &block)
612
+ end
613
+
614
+ #
615
+ # @param [String] package_name
616
+ # Unique identifier for the Android app that is being updated; for example, "com.
617
+ # spiffygame".
618
+ # @param [String] edit_id
619
+ # Unique identifier for this edit.
620
+ # @param [String] fields
621
+ # Selector specifying which fields to include in a partial response.
622
+ # @param [String] quota_user
623
+ # Available to use for quota purposes for server-side applications. Can be any
624
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
625
+ # Overrides userIp if both are provided.
626
+ # @param [String] user_ip
627
+ # IP address of the site where the request originates. Use this if you want to
628
+ # enforce per-user limits.
629
+ # @param [IO, String] upload_source
630
+ # IO stream or filename containing content to upload
631
+ # @param [String] content_type
632
+ # Content type of the uploaded content.
633
+ # @param [Google::Apis::RequestOptions] options
634
+ # Request-specific options
635
+ #
636
+ # @yield [result, err] Result & error if block supplied
637
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Apk] parsed result object
638
+ # @yieldparam err [StandardError] error object if request failed
639
+ #
640
+ # @return [Google::Apis::AndroidpublisherV2::Apk]
641
+ #
642
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
643
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
644
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
645
+ def upload_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
646
+ if upload_source.nil?
647
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options)
648
+ else
649
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks', options)
650
+ command.upload_source = upload_source
651
+ command.upload_content_type = content_type
652
+ end
653
+ command.response_representation = Google::Apis::AndroidpublisherV2::Apk::Representation
654
+ command.response_class = Google::Apis::AndroidpublisherV2::Apk
655
+ command.params['packageName'] = package_name unless package_name.nil?
656
+ command.params['editId'] = edit_id unless edit_id.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ command.query['userIp'] = user_ip unless user_ip.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
663
+ # Uploads the deobfuscation file of the specified APK. If a deobfuscation file
664
+ # already exists, it will be replaced.
665
+ # @param [String] package_name
666
+ # Unique identifier of the Android app for which the deobfuscatiuon files are
667
+ # being uploaded; for example, "com.spiffygame".
668
+ # @param [String] edit_id
669
+ # Unique identifier for this edit.
670
+ # @param [Fixnum] apk_version_code
671
+ # The version code of the APK whose deobfuscation file is being uploaded.
672
+ # @param [String] deobfuscation_file_type
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # Overrides userIp if both are provided.
679
+ # @param [String] user_ip
680
+ # IP address of the site where the request originates. Use this if you want to
681
+ # enforce per-user limits.
682
+ # @param [IO, String] upload_source
683
+ # IO stream or filename containing content to upload
684
+ # @param [String] content_type
685
+ # Content type of the uploaded content.
686
+ # @param [Google::Apis::RequestOptions] options
687
+ # Request-specific options
688
+ #
689
+ # @yield [result, err] Result & error if block supplied
690
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse] parsed result object
691
+ # @yieldparam err [StandardError] error object if request failed
692
+ #
693
+ # @return [Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse]
694
+ #
695
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
696
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
697
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
698
+ def upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
699
+ if upload_source.nil?
700
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
701
+ else
702
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
703
+ command.upload_source = upload_source
704
+ command.upload_content_type = content_type
705
+ end
706
+ command.response_representation = Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse::Representation
707
+ command.response_class = Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse
708
+ command.params['packageName'] = package_name unless package_name.nil?
709
+ command.params['editId'] = edit_id unless edit_id.nil?
710
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
711
+ command.params['deobfuscationFileType'] = deobfuscation_file_type unless deobfuscation_file_type.nil?
712
+ command.query['fields'] = fields unless fields.nil?
713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
714
+ command.query['userIp'] = user_ip unless user_ip.nil?
715
+ execute_or_queue_command(command, &block)
716
+ end
717
+
718
+ # Fetches app details for this edit. This includes the default language and
719
+ # developer support contact information.
720
+ # @param [String] package_name
721
+ # Unique identifier for the Android app that is being updated; for example, "com.
722
+ # spiffygame".
723
+ # @param [String] edit_id
724
+ # Unique identifier for this edit.
725
+ # @param [String] fields
726
+ # Selector specifying which fields to include in a partial response.
727
+ # @param [String] quota_user
728
+ # Available to use for quota purposes for server-side applications. Can be any
729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
730
+ # Overrides userIp if both are provided.
731
+ # @param [String] user_ip
732
+ # IP address of the site where the request originates. Use this if you want to
733
+ # enforce per-user limits.
734
+ # @param [Google::Apis::RequestOptions] options
735
+ # Request-specific options
736
+ #
737
+ # @yield [result, err] Result & error if block supplied
738
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppDetails] parsed result object
739
+ # @yieldparam err [StandardError] error object if request failed
740
+ #
741
+ # @return [Google::Apis::AndroidpublisherV2::AppDetails]
742
+ #
743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746
+ def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
747
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options)
748
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
749
+ command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
750
+ command.params['packageName'] = package_name unless package_name.nil?
751
+ command.params['editId'] = edit_id unless edit_id.nil?
752
+ command.query['fields'] = fields unless fields.nil?
753
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
754
+ command.query['userIp'] = user_ip unless user_ip.nil?
755
+ execute_or_queue_command(command, &block)
756
+ end
757
+
758
+ # Updates app details for this edit. This method supports patch semantics.
759
+ # @param [String] package_name
760
+ # Unique identifier for the Android app that is being updated; for example, "com.
761
+ # spiffygame".
762
+ # @param [String] edit_id
763
+ # Unique identifier for this edit.
764
+ # @param [Google::Apis::AndroidpublisherV2::AppDetails] app_details_object
765
+ # @param [String] fields
766
+ # Selector specifying which fields to include in a partial response.
767
+ # @param [String] quota_user
768
+ # Available to use for quota purposes for server-side applications. Can be any
769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
770
+ # Overrides userIp if both are provided.
771
+ # @param [String] user_ip
772
+ # IP address of the site where the request originates. Use this if you want to
773
+ # enforce per-user limits.
774
+ # @param [Google::Apis::RequestOptions] options
775
+ # Request-specific options
776
+ #
777
+ # @yield [result, err] Result & error if block supplied
778
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppDetails] parsed result object
779
+ # @yieldparam err [StandardError] error object if request failed
780
+ #
781
+ # @return [Google::Apis::AndroidpublisherV2::AppDetails]
782
+ #
783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
786
+ def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
787
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options)
788
+ command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
789
+ command.request_object = app_details_object
790
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
791
+ command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
792
+ command.params['packageName'] = package_name unless package_name.nil?
793
+ command.params['editId'] = edit_id unless edit_id.nil?
794
+ command.query['fields'] = fields unless fields.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
+ command.query['userIp'] = user_ip unless user_ip.nil?
797
+ execute_or_queue_command(command, &block)
798
+ end
799
+
800
+ # Updates app details for this edit.
801
+ # @param [String] package_name
802
+ # Unique identifier for the Android app that is being updated; for example, "com.
803
+ # spiffygame".
804
+ # @param [String] edit_id
805
+ # Unique identifier for this edit.
806
+ # @param [Google::Apis::AndroidpublisherV2::AppDetails] app_details_object
807
+ # @param [String] fields
808
+ # Selector specifying which fields to include in a partial response.
809
+ # @param [String] quota_user
810
+ # Available to use for quota purposes for server-side applications. Can be any
811
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
812
+ # Overrides userIp if both are provided.
813
+ # @param [String] user_ip
814
+ # IP address of the site where the request originates. Use this if you want to
815
+ # enforce per-user limits.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppDetails] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::AndroidpublisherV2::AppDetails]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
829
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options)
830
+ command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
831
+ command.request_object = app_details_object
832
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
833
+ command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
834
+ command.params['packageName'] = package_name unless package_name.nil?
835
+ command.params['editId'] = edit_id unless edit_id.nil?
836
+ command.query['fields'] = fields unless fields.nil?
837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
838
+ command.query['userIp'] = user_ip unless user_ip.nil?
839
+ execute_or_queue_command(command, &block)
840
+ end
841
+
842
+ # Fetches the Expansion File configuration for the APK specified.
843
+ # @param [String] package_name
844
+ # Unique identifier for the Android app that is being updated; for example, "com.
845
+ # spiffygame".
846
+ # @param [String] edit_id
847
+ # Unique identifier for this edit.
848
+ # @param [Fixnum] apk_version_code
849
+ # The version code of the APK whose Expansion File configuration is being read
850
+ # or modified.
851
+ # @param [String] expansion_file_type
852
+ # @param [String] fields
853
+ # Selector specifying which fields to include in a partial response.
854
+ # @param [String] quota_user
855
+ # Available to use for quota purposes for server-side applications. Can be any
856
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
857
+ # Overrides userIp if both are provided.
858
+ # @param [String] user_ip
859
+ # IP address of the site where the request originates. Use this if you want to
860
+ # enforce per-user limits.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFile] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def get_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
874
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
875
+ command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
876
+ command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
877
+ command.params['packageName'] = package_name unless package_name.nil?
878
+ command.params['editId'] = edit_id unless edit_id.nil?
879
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
880
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
881
+ command.query['fields'] = fields unless fields.nil?
882
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
883
+ command.query['userIp'] = user_ip unless user_ip.nil?
884
+ execute_or_queue_command(command, &block)
885
+ end
886
+
887
+ # Updates the APK's Expansion File configuration to reference another APK's
888
+ # Expansion Files. To add a new Expansion File use the Upload method. This
889
+ # method supports patch semantics.
890
+ # @param [String] package_name
891
+ # Unique identifier for the Android app that is being updated; for example, "com.
892
+ # spiffygame".
893
+ # @param [String] edit_id
894
+ # Unique identifier for this edit.
895
+ # @param [Fixnum] apk_version_code
896
+ # The version code of the APK whose Expansion File configuration is being read
897
+ # or modified.
898
+ # @param [String] expansion_file_type
899
+ # @param [Google::Apis::AndroidpublisherV2::ExpansionFile] expansion_file_object
900
+ # @param [String] fields
901
+ # Selector specifying which fields to include in a partial response.
902
+ # @param [String] quota_user
903
+ # Available to use for quota purposes for server-side applications. Can be any
904
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
905
+ # Overrides userIp if both are provided.
906
+ # @param [String] user_ip
907
+ # IP address of the site where the request originates. Use this if you want to
908
+ # enforce per-user limits.
909
+ # @param [Google::Apis::RequestOptions] options
910
+ # Request-specific options
911
+ #
912
+ # @yield [result, err] Result & error if block supplied
913
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFile] parsed result object
914
+ # @yieldparam err [StandardError] error object if request failed
915
+ #
916
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
917
+ #
918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
921
+ def patch_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
922
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
923
+ command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
924
+ command.request_object = expansion_file_object
925
+ command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
926
+ command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
927
+ command.params['packageName'] = package_name unless package_name.nil?
928
+ command.params['editId'] = edit_id unless edit_id.nil?
929
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
930
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
931
+ command.query['fields'] = fields unless fields.nil?
932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
933
+ command.query['userIp'] = user_ip unless user_ip.nil?
934
+ execute_or_queue_command(command, &block)
935
+ end
936
+
937
+ # Updates the APK's Expansion File configuration to reference another APK's
938
+ # Expansion Files. To add a new Expansion File use the Upload method.
939
+ # @param [String] package_name
940
+ # Unique identifier for the Android app that is being updated; for example, "com.
941
+ # spiffygame".
942
+ # @param [String] edit_id
943
+ # Unique identifier for this edit.
944
+ # @param [Fixnum] apk_version_code
945
+ # The version code of the APK whose Expansion File configuration is being read
946
+ # or modified.
947
+ # @param [String] expansion_file_type
948
+ # @param [Google::Apis::AndroidpublisherV2::ExpansionFile] expansion_file_object
949
+ # @param [String] fields
950
+ # Selector specifying which fields to include in a partial response.
951
+ # @param [String] quota_user
952
+ # Available to use for quota purposes for server-side applications. Can be any
953
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
954
+ # Overrides userIp if both are provided.
955
+ # @param [String] user_ip
956
+ # IP address of the site where the request originates. Use this if you want to
957
+ # enforce per-user limits.
958
+ # @param [Google::Apis::RequestOptions] options
959
+ # Request-specific options
960
+ #
961
+ # @yield [result, err] Result & error if block supplied
962
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFile] parsed result object
963
+ # @yieldparam err [StandardError] error object if request failed
964
+ #
965
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
966
+ #
967
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
968
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
969
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
970
+ def update_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
971
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
972
+ command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
973
+ command.request_object = expansion_file_object
974
+ command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
975
+ command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
976
+ command.params['packageName'] = package_name unless package_name.nil?
977
+ command.params['editId'] = edit_id unless edit_id.nil?
978
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
979
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
980
+ command.query['fields'] = fields unless fields.nil?
981
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
982
+ command.query['userIp'] = user_ip unless user_ip.nil?
983
+ execute_or_queue_command(command, &block)
984
+ end
985
+
986
+ # Uploads and attaches a new Expansion File to the APK specified.
987
+ # @param [String] package_name
988
+ # Unique identifier for the Android app that is being updated; for example, "com.
989
+ # spiffygame".
990
+ # @param [String] edit_id
991
+ # Unique identifier for this edit.
992
+ # @param [Fixnum] apk_version_code
993
+ # The version code of the APK whose Expansion File configuration is being read
994
+ # or modified.
995
+ # @param [String] expansion_file_type
996
+ # @param [String] fields
997
+ # Selector specifying which fields to include in a partial response.
998
+ # @param [String] quota_user
999
+ # Available to use for quota purposes for server-side applications. Can be any
1000
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1001
+ # Overrides userIp if both are provided.
1002
+ # @param [String] user_ip
1003
+ # IP address of the site where the request originates. Use this if you want to
1004
+ # enforce per-user limits.
1005
+ # @param [IO, String] upload_source
1006
+ # IO stream or filename containing content to upload
1007
+ # @param [String] content_type
1008
+ # Content type of the uploaded content.
1009
+ # @param [Google::Apis::RequestOptions] options
1010
+ # Request-specific options
1011
+ #
1012
+ # @yield [result, err] Result & error if block supplied
1013
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse] parsed result object
1014
+ # @yieldparam err [StandardError] error object if request failed
1015
+ #
1016
+ # @return [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse]
1017
+ #
1018
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1019
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1020
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1021
+ def upload_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1022
+ if upload_source.nil?
1023
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
1024
+ else
1025
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
1026
+ command.upload_source = upload_source
1027
+ command.upload_content_type = content_type
1028
+ end
1029
+ command.response_representation = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse::Representation
1030
+ command.response_class = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse
1031
+ command.params['packageName'] = package_name unless package_name.nil?
1032
+ command.params['editId'] = edit_id unless edit_id.nil?
1033
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
1034
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
1035
+ command.query['fields'] = fields unless fields.nil?
1036
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1037
+ command.query['userIp'] = user_ip unless user_ip.nil?
1038
+ execute_or_queue_command(command, &block)
1039
+ end
1040
+
1041
+ # Deletes the image (specified by id) from the edit.
1042
+ # @param [String] package_name
1043
+ # Unique identifier for the Android app that is being updated; for example, "com.
1044
+ # spiffygame".
1045
+ # @param [String] edit_id
1046
+ # Unique identifier for this edit.
1047
+ # @param [String] language
1048
+ # The language code (a BCP-47 language tag) of the localized listing whose
1049
+ # images are to read or modified. For example, to select Austrian German, pass "
1050
+ # de-AT".
1051
+ # @param [String] image_type
1052
+ # @param [String] image_id
1053
+ # Unique identifier an image within the set of images attached to this edit.
1054
+ # @param [String] fields
1055
+ # Selector specifying which fields to include in a partial response.
1056
+ # @param [String] quota_user
1057
+ # Available to use for quota purposes for server-side applications. Can be any
1058
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1059
+ # Overrides userIp if both are provided.
1060
+ # @param [String] user_ip
1061
+ # IP address of the site where the request originates. Use this if you want to
1062
+ # enforce per-user limits.
1063
+ # @param [Google::Apis::RequestOptions] options
1064
+ # Request-specific options
1065
+ #
1066
+ # @yield [result, err] Result & error if block supplied
1067
+ # @yieldparam result [NilClass] No result returned for this method
1068
+ # @yieldparam err [StandardError] error object if request failed
1069
+ #
1070
+ # @return [void]
1071
+ #
1072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1075
+ def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1076
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
1077
+ command.params['packageName'] = package_name unless package_name.nil?
1078
+ command.params['editId'] = edit_id unless edit_id.nil?
1079
+ command.params['language'] = language unless language.nil?
1080
+ command.params['imageType'] = image_type unless image_type.nil?
1081
+ command.params['imageId'] = image_id unless image_id.nil?
1082
+ command.query['fields'] = fields unless fields.nil?
1083
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1084
+ command.query['userIp'] = user_ip unless user_ip.nil?
1085
+ execute_or_queue_command(command, &block)
1086
+ end
1087
+
1088
+ # Deletes all images for the specified language and image type.
1089
+ # @param [String] package_name
1090
+ # Unique identifier for the Android app that is being updated; for example, "com.
1091
+ # spiffygame".
1092
+ # @param [String] edit_id
1093
+ # Unique identifier for this edit.
1094
+ # @param [String] language
1095
+ # The language code (a BCP-47 language tag) of the localized listing whose
1096
+ # images are to read or modified. For example, to select Austrian German, pass "
1097
+ # de-AT".
1098
+ # @param [String] image_type
1099
+ # @param [String] fields
1100
+ # Selector specifying which fields to include in a partial response.
1101
+ # @param [String] quota_user
1102
+ # Available to use for quota purposes for server-side applications. Can be any
1103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1104
+ # Overrides userIp if both are provided.
1105
+ # @param [String] user_ip
1106
+ # IP address of the site where the request originates. Use this if you want to
1107
+ # enforce per-user limits.
1108
+ # @param [Google::Apis::RequestOptions] options
1109
+ # Request-specific options
1110
+ #
1111
+ # @yield [result, err] Result & error if block supplied
1112
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse] parsed result object
1113
+ # @yieldparam err [StandardError] error object if request failed
1114
+ #
1115
+ # @return [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse]
1116
+ #
1117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1120
+ def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1121
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1122
+ command.response_representation = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse::Representation
1123
+ command.response_class = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse
1124
+ command.params['packageName'] = package_name unless package_name.nil?
1125
+ command.params['editId'] = edit_id unless edit_id.nil?
1126
+ command.params['language'] = language unless language.nil?
1127
+ command.params['imageType'] = image_type unless image_type.nil?
1128
+ command.query['fields'] = fields unless fields.nil?
1129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1130
+ command.query['userIp'] = user_ip unless user_ip.nil?
1131
+ execute_or_queue_command(command, &block)
1132
+ end
1133
+
1134
+ # Lists all images for the specified language and image type.
1135
+ # @param [String] package_name
1136
+ # Unique identifier for the Android app that is being updated; for example, "com.
1137
+ # spiffygame".
1138
+ # @param [String] edit_id
1139
+ # Unique identifier for this edit.
1140
+ # @param [String] language
1141
+ # The language code (a BCP-47 language tag) of the localized listing whose
1142
+ # images are to read or modified. For example, to select Austrian German, pass "
1143
+ # de-AT".
1144
+ # @param [String] image_type
1145
+ # @param [String] fields
1146
+ # Selector specifying which fields to include in a partial response.
1147
+ # @param [String] quota_user
1148
+ # Available to use for quota purposes for server-side applications. Can be any
1149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1150
+ # Overrides userIp if both are provided.
1151
+ # @param [String] user_ip
1152
+ # IP address of the site where the request originates. Use this if you want to
1153
+ # enforce per-user limits.
1154
+ # @param [Google::Apis::RequestOptions] options
1155
+ # Request-specific options
1156
+ #
1157
+ # @yield [result, err] Result & error if block supplied
1158
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListImagesResponse] parsed result object
1159
+ # @yieldparam err [StandardError] error object if request failed
1160
+ #
1161
+ # @return [Google::Apis::AndroidpublisherV2::ListImagesResponse]
1162
+ #
1163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1166
+ def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1167
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1168
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation
1169
+ command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse
1170
+ command.params['packageName'] = package_name unless package_name.nil?
1171
+ command.params['editId'] = edit_id unless edit_id.nil?
1172
+ command.params['language'] = language unless language.nil?
1173
+ command.params['imageType'] = image_type unless image_type.nil?
1174
+ command.query['fields'] = fields unless fields.nil?
1175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1176
+ command.query['userIp'] = user_ip unless user_ip.nil?
1177
+ execute_or_queue_command(command, &block)
1178
+ end
1179
+
1180
+ # Uploads a new image and adds it to the list of images for the specified
1181
+ # language and image type.
1182
+ # @param [String] package_name
1183
+ # Unique identifier for the Android app that is being updated; for example, "com.
1184
+ # spiffygame".
1185
+ # @param [String] edit_id
1186
+ # Unique identifier for this edit.
1187
+ # @param [String] language
1188
+ # The language code (a BCP-47 language tag) of the localized listing whose
1189
+ # images are to read or modified. For example, to select Austrian German, pass "
1190
+ # de-AT".
1191
+ # @param [String] image_type
1192
+ # @param [String] fields
1193
+ # Selector specifying which fields to include in a partial response.
1194
+ # @param [String] quota_user
1195
+ # Available to use for quota purposes for server-side applications. Can be any
1196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1197
+ # Overrides userIp if both are provided.
1198
+ # @param [String] user_ip
1199
+ # IP address of the site where the request originates. Use this if you want to
1200
+ # enforce per-user limits.
1201
+ # @param [IO, String] upload_source
1202
+ # IO stream or filename containing content to upload
1203
+ # @param [String] content_type
1204
+ # Content type of the uploaded content.
1205
+ # @param [Google::Apis::RequestOptions] options
1206
+ # Request-specific options
1207
+ #
1208
+ # @yield [result, err] Result & error if block supplied
1209
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::UploadImagesResponse] parsed result object
1210
+ # @yieldparam err [StandardError] error object if request failed
1211
+ #
1212
+ # @return [Google::Apis::AndroidpublisherV2::UploadImagesResponse]
1213
+ #
1214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1217
+ def upload_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1218
+ if upload_source.nil?
1219
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1220
+ else
1221
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1222
+ command.upload_source = upload_source
1223
+ command.upload_content_type = content_type
1224
+ end
1225
+ command.response_representation = Google::Apis::AndroidpublisherV2::UploadImagesResponse::Representation
1226
+ command.response_class = Google::Apis::AndroidpublisherV2::UploadImagesResponse
1227
+ command.params['packageName'] = package_name unless package_name.nil?
1228
+ command.params['editId'] = edit_id unless edit_id.nil?
1229
+ command.params['language'] = language unless language.nil?
1230
+ command.params['imageType'] = image_type unless image_type.nil?
1231
+ command.query['fields'] = fields unless fields.nil?
1232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1233
+ command.query['userIp'] = user_ip unless user_ip.nil?
1234
+ execute_or_queue_command(command, &block)
1235
+ end
1236
+
1237
+ # Deletes the specified localized store listing from an edit.
1238
+ # @param [String] package_name
1239
+ # Unique identifier for the Android app that is being updated; for example, "com.
1240
+ # spiffygame".
1241
+ # @param [String] edit_id
1242
+ # Unique identifier for this edit.
1243
+ # @param [String] language
1244
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1245
+ # modify. For example, to select Austrian German, pass "de-AT".
1246
+ # @param [String] fields
1247
+ # Selector specifying which fields to include in a partial response.
1248
+ # @param [String] quota_user
1249
+ # Available to use for quota purposes for server-side applications. Can be any
1250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1251
+ # Overrides userIp if both are provided.
1252
+ # @param [String] user_ip
1253
+ # IP address of the site where the request originates. Use this if you want to
1254
+ # enforce per-user limits.
1255
+ # @param [Google::Apis::RequestOptions] options
1256
+ # Request-specific options
1257
+ #
1258
+ # @yield [result, err] Result & error if block supplied
1259
+ # @yieldparam result [NilClass] No result returned for this method
1260
+ # @yieldparam err [StandardError] error object if request failed
1261
+ #
1262
+ # @return [void]
1263
+ #
1264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1267
+ def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1268
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options)
1269
+ command.params['packageName'] = package_name unless package_name.nil?
1270
+ command.params['editId'] = edit_id unless edit_id.nil?
1271
+ command.params['language'] = language unless language.nil?
1272
+ command.query['fields'] = fields unless fields.nil?
1273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1274
+ command.query['userIp'] = user_ip unless user_ip.nil?
1275
+ execute_or_queue_command(command, &block)
1276
+ end
1277
+
1278
+ # Deletes all localized listings from an edit.
1279
+ # @param [String] package_name
1280
+ # Unique identifier for the Android app that is being updated; for example, "com.
1281
+ # spiffygame".
1282
+ # @param [String] edit_id
1283
+ # Unique identifier for this edit.
1284
+ # @param [String] fields
1285
+ # Selector specifying which fields to include in a partial response.
1286
+ # @param [String] quota_user
1287
+ # Available to use for quota purposes for server-side applications. Can be any
1288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1289
+ # Overrides userIp if both are provided.
1290
+ # @param [String] user_ip
1291
+ # IP address of the site where the request originates. Use this if you want to
1292
+ # enforce per-user limits.
1293
+ # @param [Google::Apis::RequestOptions] options
1294
+ # Request-specific options
1295
+ #
1296
+ # @yield [result, err] Result & error if block supplied
1297
+ # @yieldparam result [NilClass] No result returned for this method
1298
+ # @yieldparam err [StandardError] error object if request failed
1299
+ #
1300
+ # @return [void]
1301
+ #
1302
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1303
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1304
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1305
+ def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1306
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options)
1307
+ command.params['packageName'] = package_name unless package_name.nil?
1308
+ command.params['editId'] = edit_id unless edit_id.nil?
1309
+ command.query['fields'] = fields unless fields.nil?
1310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1311
+ command.query['userIp'] = user_ip unless user_ip.nil?
1312
+ execute_or_queue_command(command, &block)
1313
+ end
1314
+
1315
+ # Fetches information about a localized store listing.
1316
+ # @param [String] package_name
1317
+ # Unique identifier for the Android app that is being updated; for example, "com.
1318
+ # spiffygame".
1319
+ # @param [String] edit_id
1320
+ # Unique identifier for this edit.
1321
+ # @param [String] language
1322
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1323
+ # modify. For example, to select Austrian German, pass "de-AT".
1324
+ # @param [String] fields
1325
+ # Selector specifying which fields to include in a partial response.
1326
+ # @param [String] quota_user
1327
+ # Available to use for quota purposes for server-side applications. Can be any
1328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1329
+ # Overrides userIp if both are provided.
1330
+ # @param [String] user_ip
1331
+ # IP address of the site where the request originates. Use this if you want to
1332
+ # enforce per-user limits.
1333
+ # @param [Google::Apis::RequestOptions] options
1334
+ # Request-specific options
1335
+ #
1336
+ # @yield [result, err] Result & error if block supplied
1337
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Listing] parsed result object
1338
+ # @yieldparam err [StandardError] error object if request failed
1339
+ #
1340
+ # @return [Google::Apis::AndroidpublisherV2::Listing]
1341
+ #
1342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1345
+ def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1346
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options)
1347
+ command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1348
+ command.response_class = Google::Apis::AndroidpublisherV2::Listing
1349
+ command.params['packageName'] = package_name unless package_name.nil?
1350
+ command.params['editId'] = edit_id unless edit_id.nil?
1351
+ command.params['language'] = language unless language.nil?
1352
+ command.query['fields'] = fields unless fields.nil?
1353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1354
+ command.query['userIp'] = user_ip unless user_ip.nil?
1355
+ execute_or_queue_command(command, &block)
1356
+ end
1357
+
1358
+ # Returns all of the localized store listings attached to this edit.
1359
+ # @param [String] package_name
1360
+ # Unique identifier for the Android app that is being updated; for example, "com.
1361
+ # spiffygame".
1362
+ # @param [String] edit_id
1363
+ # Unique identifier for this edit.
1364
+ # @param [String] fields
1365
+ # Selector specifying which fields to include in a partial response.
1366
+ # @param [String] quota_user
1367
+ # Available to use for quota purposes for server-side applications. Can be any
1368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1369
+ # Overrides userIp if both are provided.
1370
+ # @param [String] user_ip
1371
+ # IP address of the site where the request originates. Use this if you want to
1372
+ # enforce per-user limits.
1373
+ # @param [Google::Apis::RequestOptions] options
1374
+ # Request-specific options
1375
+ #
1376
+ # @yield [result, err] Result & error if block supplied
1377
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListListingsResponse] parsed result object
1378
+ # @yieldparam err [StandardError] error object if request failed
1379
+ #
1380
+ # @return [Google::Apis::AndroidpublisherV2::ListListingsResponse]
1381
+ #
1382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1385
+ def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1386
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options)
1387
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation
1388
+ command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse
1389
+ command.params['packageName'] = package_name unless package_name.nil?
1390
+ command.params['editId'] = edit_id unless edit_id.nil?
1391
+ command.query['fields'] = fields unless fields.nil?
1392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1393
+ command.query['userIp'] = user_ip unless user_ip.nil?
1394
+ execute_or_queue_command(command, &block)
1395
+ end
1396
+
1397
+ # Creates or updates a localized store listing. This method supports patch
1398
+ # semantics.
1399
+ # @param [String] package_name
1400
+ # Unique identifier for the Android app that is being updated; for example, "com.
1401
+ # spiffygame".
1402
+ # @param [String] edit_id
1403
+ # Unique identifier for this edit.
1404
+ # @param [String] language
1405
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1406
+ # modify. For example, to select Austrian German, pass "de-AT".
1407
+ # @param [Google::Apis::AndroidpublisherV2::Listing] listing_object
1408
+ # @param [String] fields
1409
+ # Selector specifying which fields to include in a partial response.
1410
+ # @param [String] quota_user
1411
+ # Available to use for quota purposes for server-side applications. Can be any
1412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1413
+ # Overrides userIp if both are provided.
1414
+ # @param [String] user_ip
1415
+ # IP address of the site where the request originates. Use this if you want to
1416
+ # enforce per-user limits.
1417
+ # @param [Google::Apis::RequestOptions] options
1418
+ # Request-specific options
1419
+ #
1420
+ # @yield [result, err] Result & error if block supplied
1421
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Listing] parsed result object
1422
+ # @yieldparam err [StandardError] error object if request failed
1423
+ #
1424
+ # @return [Google::Apis::AndroidpublisherV2::Listing]
1425
+ #
1426
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1427
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1428
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1429
+ def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1430
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options)
1431
+ command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1432
+ command.request_object = listing_object
1433
+ command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1434
+ command.response_class = Google::Apis::AndroidpublisherV2::Listing
1435
+ command.params['packageName'] = package_name unless package_name.nil?
1436
+ command.params['editId'] = edit_id unless edit_id.nil?
1437
+ command.params['language'] = language unless language.nil?
1438
+ command.query['fields'] = fields unless fields.nil?
1439
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1440
+ command.query['userIp'] = user_ip unless user_ip.nil?
1441
+ execute_or_queue_command(command, &block)
1442
+ end
1443
+
1444
+ # Creates or updates a localized store listing.
1445
+ # @param [String] package_name
1446
+ # Unique identifier for the Android app that is being updated; for example, "com.
1447
+ # spiffygame".
1448
+ # @param [String] edit_id
1449
+ # Unique identifier for this edit.
1450
+ # @param [String] language
1451
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1452
+ # modify. For example, to select Austrian German, pass "de-AT".
1453
+ # @param [Google::Apis::AndroidpublisherV2::Listing] listing_object
1454
+ # @param [String] fields
1455
+ # Selector specifying which fields to include in a partial response.
1456
+ # @param [String] quota_user
1457
+ # Available to use for quota purposes for server-side applications. Can be any
1458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1459
+ # Overrides userIp if both are provided.
1460
+ # @param [String] user_ip
1461
+ # IP address of the site where the request originates. Use this if you want to
1462
+ # enforce per-user limits.
1463
+ # @param [Google::Apis::RequestOptions] options
1464
+ # Request-specific options
1465
+ #
1466
+ # @yield [result, err] Result & error if block supplied
1467
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Listing] parsed result object
1468
+ # @yieldparam err [StandardError] error object if request failed
1469
+ #
1470
+ # @return [Google::Apis::AndroidpublisherV2::Listing]
1471
+ #
1472
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1473
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1474
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1475
+ def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1476
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options)
1477
+ command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1478
+ command.request_object = listing_object
1479
+ command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1480
+ command.response_class = Google::Apis::AndroidpublisherV2::Listing
1481
+ command.params['packageName'] = package_name unless package_name.nil?
1482
+ command.params['editId'] = edit_id unless edit_id.nil?
1483
+ command.params['language'] = language unless language.nil?
1484
+ command.query['fields'] = fields unless fields.nil?
1485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1486
+ command.query['userIp'] = user_ip unless user_ip.nil?
1487
+ execute_or_queue_command(command, &block)
1488
+ end
1489
+
1490
+ #
1491
+ # @param [String] package_name
1492
+ # Unique identifier for the Android app that is being updated; for example, "com.
1493
+ # spiffygame".
1494
+ # @param [String] edit_id
1495
+ # Unique identifier for this edit.
1496
+ # @param [String] track
1497
+ # @param [String] fields
1498
+ # Selector specifying which fields to include in a partial response.
1499
+ # @param [String] quota_user
1500
+ # Available to use for quota purposes for server-side applications. Can be any
1501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1502
+ # Overrides userIp if both are provided.
1503
+ # @param [String] user_ip
1504
+ # IP address of the site where the request originates. Use this if you want to
1505
+ # enforce per-user limits.
1506
+ # @param [Google::Apis::RequestOptions] options
1507
+ # Request-specific options
1508
+ #
1509
+ # @yield [result, err] Result & error if block supplied
1510
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Testers] parsed result object
1511
+ # @yieldparam err [StandardError] error object if request failed
1512
+ #
1513
+ # @return [Google::Apis::AndroidpublisherV2::Testers]
1514
+ #
1515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1518
+ def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1519
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options)
1520
+ command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1521
+ command.response_class = Google::Apis::AndroidpublisherV2::Testers
1522
+ command.params['packageName'] = package_name unless package_name.nil?
1523
+ command.params['editId'] = edit_id unless edit_id.nil?
1524
+ command.params['track'] = track unless track.nil?
1525
+ command.query['fields'] = fields unless fields.nil?
1526
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1527
+ command.query['userIp'] = user_ip unless user_ip.nil?
1528
+ execute_or_queue_command(command, &block)
1529
+ end
1530
+
1531
+ #
1532
+ # @param [String] package_name
1533
+ # Unique identifier for the Android app that is being updated; for example, "com.
1534
+ # spiffygame".
1535
+ # @param [String] edit_id
1536
+ # Unique identifier for this edit.
1537
+ # @param [String] track
1538
+ # @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
1539
+ # @param [String] fields
1540
+ # Selector specifying which fields to include in a partial response.
1541
+ # @param [String] quota_user
1542
+ # Available to use for quota purposes for server-side applications. Can be any
1543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1544
+ # Overrides userIp if both are provided.
1545
+ # @param [String] user_ip
1546
+ # IP address of the site where the request originates. Use this if you want to
1547
+ # enforce per-user limits.
1548
+ # @param [Google::Apis::RequestOptions] options
1549
+ # Request-specific options
1550
+ #
1551
+ # @yield [result, err] Result & error if block supplied
1552
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Testers] parsed result object
1553
+ # @yieldparam err [StandardError] error object if request failed
1554
+ #
1555
+ # @return [Google::Apis::AndroidpublisherV2::Testers]
1556
+ #
1557
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1558
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1559
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1560
+ def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1561
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options)
1562
+ command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1563
+ command.request_object = testers_object
1564
+ command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1565
+ command.response_class = Google::Apis::AndroidpublisherV2::Testers
1566
+ command.params['packageName'] = package_name unless package_name.nil?
1567
+ command.params['editId'] = edit_id unless edit_id.nil?
1568
+ command.params['track'] = track unless track.nil?
1569
+ command.query['fields'] = fields unless fields.nil?
1570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1571
+ command.query['userIp'] = user_ip unless user_ip.nil?
1572
+ execute_or_queue_command(command, &block)
1573
+ end
1574
+
1575
+ #
1576
+ # @param [String] package_name
1577
+ # Unique identifier for the Android app that is being updated; for example, "com.
1578
+ # spiffygame".
1579
+ # @param [String] edit_id
1580
+ # Unique identifier for this edit.
1581
+ # @param [String] track
1582
+ # @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
1583
+ # @param [String] fields
1584
+ # Selector specifying which fields to include in a partial response.
1585
+ # @param [String] quota_user
1586
+ # Available to use for quota purposes for server-side applications. Can be any
1587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1588
+ # Overrides userIp if both are provided.
1589
+ # @param [String] user_ip
1590
+ # IP address of the site where the request originates. Use this if you want to
1591
+ # enforce per-user limits.
1592
+ # @param [Google::Apis::RequestOptions] options
1593
+ # Request-specific options
1594
+ #
1595
+ # @yield [result, err] Result & error if block supplied
1596
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Testers] parsed result object
1597
+ # @yieldparam err [StandardError] error object if request failed
1598
+ #
1599
+ # @return [Google::Apis::AndroidpublisherV2::Testers]
1600
+ #
1601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1604
+ def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1605
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options)
1606
+ command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1607
+ command.request_object = testers_object
1608
+ command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1609
+ command.response_class = Google::Apis::AndroidpublisherV2::Testers
1610
+ command.params['packageName'] = package_name unless package_name.nil?
1611
+ command.params['editId'] = edit_id unless edit_id.nil?
1612
+ command.params['track'] = track unless track.nil?
1613
+ command.query['fields'] = fields unless fields.nil?
1614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1615
+ command.query['userIp'] = user_ip unless user_ip.nil?
1616
+ execute_or_queue_command(command, &block)
1617
+ end
1618
+
1619
+ # Fetches the track configuration for the specified track type. Includes the APK
1620
+ # version codes that are in this track.
1621
+ # @param [String] package_name
1622
+ # Unique identifier for the Android app that is being updated; for example, "com.
1623
+ # spiffygame".
1624
+ # @param [String] edit_id
1625
+ # Unique identifier for this edit.
1626
+ # @param [String] track
1627
+ # The track type to read or modify.
1628
+ # @param [String] fields
1629
+ # Selector specifying which fields to include in a partial response.
1630
+ # @param [String] quota_user
1631
+ # Available to use for quota purposes for server-side applications. Can be any
1632
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1633
+ # Overrides userIp if both are provided.
1634
+ # @param [String] user_ip
1635
+ # IP address of the site where the request originates. Use this if you want to
1636
+ # enforce per-user limits.
1637
+ # @param [Google::Apis::RequestOptions] options
1638
+ # Request-specific options
1639
+ #
1640
+ # @yield [result, err] Result & error if block supplied
1641
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Track] parsed result object
1642
+ # @yieldparam err [StandardError] error object if request failed
1643
+ #
1644
+ # @return [Google::Apis::AndroidpublisherV2::Track]
1645
+ #
1646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1649
+ def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1650
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options)
1651
+ command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1652
+ command.response_class = Google::Apis::AndroidpublisherV2::Track
1653
+ command.params['packageName'] = package_name unless package_name.nil?
1654
+ command.params['editId'] = edit_id unless edit_id.nil?
1655
+ command.params['track'] = track unless track.nil?
1656
+ command.query['fields'] = fields unless fields.nil?
1657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1658
+ command.query['userIp'] = user_ip unless user_ip.nil?
1659
+ execute_or_queue_command(command, &block)
1660
+ end
1661
+
1662
+ # Lists all the track configurations for this edit.
1663
+ # @param [String] package_name
1664
+ # Unique identifier for the Android app that is being updated; for example, "com.
1665
+ # spiffygame".
1666
+ # @param [String] edit_id
1667
+ # Unique identifier for this edit.
1668
+ # @param [String] fields
1669
+ # Selector specifying which fields to include in a partial response.
1670
+ # @param [String] quota_user
1671
+ # Available to use for quota purposes for server-side applications. Can be any
1672
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1673
+ # Overrides userIp if both are provided.
1674
+ # @param [String] user_ip
1675
+ # IP address of the site where the request originates. Use this if you want to
1676
+ # enforce per-user limits.
1677
+ # @param [Google::Apis::RequestOptions] options
1678
+ # Request-specific options
1679
+ #
1680
+ # @yield [result, err] Result & error if block supplied
1681
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListTracksResponse] parsed result object
1682
+ # @yieldparam err [StandardError] error object if request failed
1683
+ #
1684
+ # @return [Google::Apis::AndroidpublisherV2::ListTracksResponse]
1685
+ #
1686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1689
+ def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1690
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options)
1691
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation
1692
+ command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse
1693
+ command.params['packageName'] = package_name unless package_name.nil?
1694
+ command.params['editId'] = edit_id unless edit_id.nil?
1695
+ command.query['fields'] = fields unless fields.nil?
1696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1697
+ command.query['userIp'] = user_ip unless user_ip.nil?
1698
+ execute_or_queue_command(command, &block)
1699
+ end
1700
+
1701
+ # Updates the track configuration for the specified track type. When halted, the
1702
+ # rollout track cannot be updated without adding new APKs, and adding new APKs
1703
+ # will cause it to resume. This method supports patch semantics.
1704
+ # @param [String] package_name
1705
+ # Unique identifier for the Android app that is being updated; for example, "com.
1706
+ # spiffygame".
1707
+ # @param [String] edit_id
1708
+ # Unique identifier for this edit.
1709
+ # @param [String] track
1710
+ # The track type to read or modify.
1711
+ # @param [Google::Apis::AndroidpublisherV2::Track] track_object
1712
+ # @param [String] fields
1713
+ # Selector specifying which fields to include in a partial response.
1714
+ # @param [String] quota_user
1715
+ # Available to use for quota purposes for server-side applications. Can be any
1716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1717
+ # Overrides userIp if both are provided.
1718
+ # @param [String] user_ip
1719
+ # IP address of the site where the request originates. Use this if you want to
1720
+ # enforce per-user limits.
1721
+ # @param [Google::Apis::RequestOptions] options
1722
+ # Request-specific options
1723
+ #
1724
+ # @yield [result, err] Result & error if block supplied
1725
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Track] parsed result object
1726
+ # @yieldparam err [StandardError] error object if request failed
1727
+ #
1728
+ # @return [Google::Apis::AndroidpublisherV2::Track]
1729
+ #
1730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1733
+ def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1734
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options)
1735
+ command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1736
+ command.request_object = track_object
1737
+ command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1738
+ command.response_class = Google::Apis::AndroidpublisherV2::Track
1739
+ command.params['packageName'] = package_name unless package_name.nil?
1740
+ command.params['editId'] = edit_id unless edit_id.nil?
1741
+ command.params['track'] = track unless track.nil?
1742
+ command.query['fields'] = fields unless fields.nil?
1743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1744
+ command.query['userIp'] = user_ip unless user_ip.nil?
1745
+ execute_or_queue_command(command, &block)
1746
+ end
1747
+
1748
+ # Updates the track configuration for the specified track type. When halted, the
1749
+ # rollout track cannot be updated without adding new APKs, and adding new APKs
1750
+ # will cause it to resume.
1751
+ # @param [String] package_name
1752
+ # Unique identifier for the Android app that is being updated; for example, "com.
1753
+ # spiffygame".
1754
+ # @param [String] edit_id
1755
+ # Unique identifier for this edit.
1756
+ # @param [String] track
1757
+ # The track type to read or modify.
1758
+ # @param [Google::Apis::AndroidpublisherV2::Track] track_object
1759
+ # @param [String] fields
1760
+ # Selector specifying which fields to include in a partial response.
1761
+ # @param [String] quota_user
1762
+ # Available to use for quota purposes for server-side applications. Can be any
1763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1764
+ # Overrides userIp if both are provided.
1765
+ # @param [String] user_ip
1766
+ # IP address of the site where the request originates. Use this if you want to
1767
+ # enforce per-user limits.
1768
+ # @param [Google::Apis::RequestOptions] options
1769
+ # Request-specific options
1770
+ #
1771
+ # @yield [result, err] Result & error if block supplied
1772
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Track] parsed result object
1773
+ # @yieldparam err [StandardError] error object if request failed
1774
+ #
1775
+ # @return [Google::Apis::AndroidpublisherV2::Track]
1776
+ #
1777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1780
+ def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1781
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options)
1782
+ command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1783
+ command.request_object = track_object
1784
+ command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1785
+ command.response_class = Google::Apis::AndroidpublisherV2::Track
1786
+ command.params['packageName'] = package_name unless package_name.nil?
1787
+ command.params['editId'] = edit_id unless edit_id.nil?
1788
+ command.params['track'] = track unless track.nil?
1789
+ command.query['fields'] = fields unless fields.nil?
1790
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1791
+ command.query['userIp'] = user_ip unless user_ip.nil?
1792
+ execute_or_queue_command(command, &block)
1793
+ end
1794
+
1795
+ # Lists the user's current inapp item or subscription entitlements
1796
+ # @param [String] package_name
1797
+ # The package name of the application the inapp product was sold in (for example,
1798
+ # 'com.some.thing').
1799
+ # @param [Fixnum] max_results
1800
+ # @param [String] product_id
1801
+ # The product id of the inapp product (for example, 'sku1'). This can be used to
1802
+ # restrict the result set.
1803
+ # @param [Fixnum] start_index
1804
+ # @param [String] token
1805
+ # @param [String] fields
1806
+ # Selector specifying which fields to include in a partial response.
1807
+ # @param [String] quota_user
1808
+ # Available to use for quota purposes for server-side applications. Can be any
1809
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1810
+ # Overrides userIp if both are provided.
1811
+ # @param [String] user_ip
1812
+ # IP address of the site where the request originates. Use this if you want to
1813
+ # enforce per-user limits.
1814
+ # @param [Google::Apis::RequestOptions] options
1815
+ # Request-specific options
1816
+ #
1817
+ # @yield [result, err] Result & error if block supplied
1818
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse] parsed result object
1819
+ # @yieldparam err [StandardError] error object if request failed
1820
+ #
1821
+ # @return [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse]
1822
+ #
1823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1826
+ def list_entitlements(package_name, max_results: nil, product_id: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1827
+ command = make_simple_command(:get, '{packageName}/entitlements', options)
1828
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation
1829
+ command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse
1830
+ command.params['packageName'] = package_name unless package_name.nil?
1831
+ command.query['maxResults'] = max_results unless max_results.nil?
1832
+ command.query['productId'] = product_id unless product_id.nil?
1833
+ command.query['startIndex'] = start_index unless start_index.nil?
1834
+ command.query['token'] = token unless token.nil?
1835
+ command.query['fields'] = fields unless fields.nil?
1836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1837
+ command.query['userIp'] = user_ip unless user_ip.nil?
1838
+ execute_or_queue_command(command, &block)
1839
+ end
1840
+
1841
+ #
1842
+ # @param [Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest] in_app_products_batch_request_object
1843
+ # @param [String] fields
1844
+ # Selector specifying which fields to include in a partial response.
1845
+ # @param [String] quota_user
1846
+ # Available to use for quota purposes for server-side applications. Can be any
1847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1848
+ # Overrides userIp if both are provided.
1849
+ # @param [String] user_ip
1850
+ # IP address of the site where the request originates. Use this if you want to
1851
+ # enforce per-user limits.
1852
+ # @param [Google::Apis::RequestOptions] options
1853
+ # Request-specific options
1854
+ #
1855
+ # @yield [result, err] Result & error if block supplied
1856
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse] parsed result object
1857
+ # @yieldparam err [StandardError] error object if request failed
1858
+ #
1859
+ # @return [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse]
1860
+ #
1861
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1862
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1863
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1864
+ def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1865
+ command = make_simple_command(:post, 'inappproducts/batch', options)
1866
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
1867
+ command.request_object = in_app_products_batch_request_object
1868
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
1869
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse
1870
+ command.query['fields'] = fields unless fields.nil?
1871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1872
+ command.query['userIp'] = user_ip unless user_ip.nil?
1873
+ execute_or_queue_command(command, &block)
1874
+ end
1875
+
1876
+ # Delete an in-app product for an app.
1877
+ # @param [String] package_name
1878
+ # Unique identifier for the Android app with the in-app product; for example, "
1879
+ # com.spiffygame".
1880
+ # @param [String] sku
1881
+ # Unique identifier for the in-app product.
1882
+ # @param [String] fields
1883
+ # Selector specifying which fields to include in a partial response.
1884
+ # @param [String] quota_user
1885
+ # Available to use for quota purposes for server-side applications. Can be any
1886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1887
+ # Overrides userIp if both are provided.
1888
+ # @param [String] user_ip
1889
+ # IP address of the site where the request originates. Use this if you want to
1890
+ # enforce per-user limits.
1891
+ # @param [Google::Apis::RequestOptions] options
1892
+ # Request-specific options
1893
+ #
1894
+ # @yield [result, err] Result & error if block supplied
1895
+ # @yieldparam result [NilClass] No result returned for this method
1896
+ # @yieldparam err [StandardError] error object if request failed
1897
+ #
1898
+ # @return [void]
1899
+ #
1900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1903
+ def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1904
+ command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options)
1905
+ command.params['packageName'] = package_name unless package_name.nil?
1906
+ command.params['sku'] = sku unless sku.nil?
1907
+ command.query['fields'] = fields unless fields.nil?
1908
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1909
+ command.query['userIp'] = user_ip unless user_ip.nil?
1910
+ execute_or_queue_command(command, &block)
1911
+ end
1912
+
1913
+ # Returns information about the in-app product specified.
1914
+ # @param [String] package_name
1915
+ # @param [String] sku
1916
+ # Unique identifier for the in-app product.
1917
+ # @param [String] fields
1918
+ # Selector specifying which fields to include in a partial response.
1919
+ # @param [String] quota_user
1920
+ # Available to use for quota purposes for server-side applications. Can be any
1921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1922
+ # Overrides userIp if both are provided.
1923
+ # @param [String] user_ip
1924
+ # IP address of the site where the request originates. Use this if you want to
1925
+ # enforce per-user limits.
1926
+ # @param [Google::Apis::RequestOptions] options
1927
+ # Request-specific options
1928
+ #
1929
+ # @yield [result, err] Result & error if block supplied
1930
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
1931
+ # @yieldparam err [StandardError] error object if request failed
1932
+ #
1933
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1934
+ #
1935
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1936
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1937
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1938
+ def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1939
+ command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options)
1940
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
1941
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
1942
+ command.params['packageName'] = package_name unless package_name.nil?
1943
+ command.params['sku'] = sku unless sku.nil?
1944
+ command.query['fields'] = fields unless fields.nil?
1945
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1946
+ command.query['userIp'] = user_ip unless user_ip.nil?
1947
+ execute_or_queue_command(command, &block)
1948
+ end
1949
+
1950
+ # Creates a new in-app product for an app.
1951
+ # @param [String] package_name
1952
+ # Unique identifier for the Android app; for example, "com.spiffygame".
1953
+ # @param [Google::Apis::AndroidpublisherV2::InAppProduct] in_app_product_object
1954
+ # @param [Boolean] auto_convert_missing_prices
1955
+ # If true the prices for all regions targeted by the parent app that don't have
1956
+ # a price specified for this in-app product will be auto converted to the target
1957
+ # currency based on the default price. Defaults to false.
1958
+ # @param [String] fields
1959
+ # Selector specifying which fields to include in a partial response.
1960
+ # @param [String] quota_user
1961
+ # Available to use for quota purposes for server-side applications. Can be any
1962
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1963
+ # Overrides userIp if both are provided.
1964
+ # @param [String] user_ip
1965
+ # IP address of the site where the request originates. Use this if you want to
1966
+ # enforce per-user limits.
1967
+ # @param [Google::Apis::RequestOptions] options
1968
+ # Request-specific options
1969
+ #
1970
+ # @yield [result, err] Result & error if block supplied
1971
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
1972
+ # @yieldparam err [StandardError] error object if request failed
1973
+ #
1974
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1975
+ #
1976
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1977
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1978
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1979
+ def insert_in_app_product(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1980
+ command = make_simple_command(:post, '{packageName}/inappproducts', options)
1981
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
1982
+ command.request_object = in_app_product_object
1983
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
1984
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
1985
+ command.params['packageName'] = package_name unless package_name.nil?
1986
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1987
+ command.query['fields'] = fields unless fields.nil?
1988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1989
+ command.query['userIp'] = user_ip unless user_ip.nil?
1990
+ execute_or_queue_command(command, &block)
1991
+ end
1992
+
1993
+ # List all the in-app products for an Android app, both subscriptions and
1994
+ # managed in-app products..
1995
+ # @param [String] package_name
1996
+ # Unique identifier for the Android app with in-app products; for example, "com.
1997
+ # spiffygame".
1998
+ # @param [Fixnum] max_results
1999
+ # @param [Fixnum] start_index
2000
+ # @param [String] token
2001
+ # @param [String] fields
2002
+ # Selector specifying which fields to include in a partial response.
2003
+ # @param [String] quota_user
2004
+ # Available to use for quota purposes for server-side applications. Can be any
2005
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2006
+ # Overrides userIp if both are provided.
2007
+ # @param [String] user_ip
2008
+ # IP address of the site where the request originates. Use this if you want to
2009
+ # enforce per-user limits.
2010
+ # @param [Google::Apis::RequestOptions] options
2011
+ # Request-specific options
2012
+ #
2013
+ # @yield [result, err] Result & error if block supplied
2014
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse] parsed result object
2015
+ # @yieldparam err [StandardError] error object if request failed
2016
+ #
2017
+ # @return [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse]
2018
+ #
2019
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2020
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2021
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2022
+ def list_in_app_products(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2023
+ command = make_simple_command(:get, '{packageName}/inappproducts', options)
2024
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation
2025
+ command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse
2026
+ command.params['packageName'] = package_name unless package_name.nil?
2027
+ command.query['maxResults'] = max_results unless max_results.nil?
2028
+ command.query['startIndex'] = start_index unless start_index.nil?
2029
+ command.query['token'] = token unless token.nil?
2030
+ command.query['fields'] = fields unless fields.nil?
2031
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2032
+ command.query['userIp'] = user_ip unless user_ip.nil?
2033
+ execute_or_queue_command(command, &block)
2034
+ end
2035
+
2036
+ # Updates the details of an in-app product. This method supports patch semantics.
2037
+ # @param [String] package_name
2038
+ # Unique identifier for the Android app with the in-app product; for example, "
2039
+ # com.spiffygame".
2040
+ # @param [String] sku
2041
+ # Unique identifier for the in-app product.
2042
+ # @param [Google::Apis::AndroidpublisherV2::InAppProduct] in_app_product_object
2043
+ # @param [Boolean] auto_convert_missing_prices
2044
+ # If true the prices for all regions targeted by the parent app that don't have
2045
+ # a price specified for this in-app product will be auto converted to the target
2046
+ # currency based on the default price. Defaults to false.
2047
+ # @param [String] fields
2048
+ # Selector specifying which fields to include in a partial response.
2049
+ # @param [String] quota_user
2050
+ # Available to use for quota purposes for server-side applications. Can be any
2051
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2052
+ # Overrides userIp if both are provided.
2053
+ # @param [String] user_ip
2054
+ # IP address of the site where the request originates. Use this if you want to
2055
+ # enforce per-user limits.
2056
+ # @param [Google::Apis::RequestOptions] options
2057
+ # Request-specific options
2058
+ #
2059
+ # @yield [result, err] Result & error if block supplied
2060
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
2061
+ # @yieldparam err [StandardError] error object if request failed
2062
+ #
2063
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
2064
+ #
2065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2068
+ def patch_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2069
+ command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options)
2070
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2071
+ command.request_object = in_app_product_object
2072
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2073
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
2074
+ command.params['packageName'] = package_name unless package_name.nil?
2075
+ command.params['sku'] = sku unless sku.nil?
2076
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2077
+ command.query['fields'] = fields unless fields.nil?
2078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2079
+ command.query['userIp'] = user_ip unless user_ip.nil?
2080
+ execute_or_queue_command(command, &block)
2081
+ end
2082
+
2083
+ # Updates the details of an in-app product.
2084
+ # @param [String] package_name
2085
+ # Unique identifier for the Android app with the in-app product; for example, "
2086
+ # com.spiffygame".
2087
+ # @param [String] sku
2088
+ # Unique identifier for the in-app product.
2089
+ # @param [Google::Apis::AndroidpublisherV2::InAppProduct] in_app_product_object
2090
+ # @param [Boolean] auto_convert_missing_prices
2091
+ # If true the prices for all regions targeted by the parent app that don't have
2092
+ # a price specified for this in-app product will be auto converted to the target
2093
+ # currency based on the default price. Defaults to false.
2094
+ # @param [String] fields
2095
+ # Selector specifying which fields to include in a partial response.
2096
+ # @param [String] quota_user
2097
+ # Available to use for quota purposes for server-side applications. Can be any
2098
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2099
+ # Overrides userIp if both are provided.
2100
+ # @param [String] user_ip
2101
+ # IP address of the site where the request originates. Use this if you want to
2102
+ # enforce per-user limits.
2103
+ # @param [Google::Apis::RequestOptions] options
2104
+ # Request-specific options
2105
+ #
2106
+ # @yield [result, err] Result & error if block supplied
2107
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
2108
+ # @yieldparam err [StandardError] error object if request failed
2109
+ #
2110
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
2111
+ #
2112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2115
+ def update_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2116
+ command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options)
2117
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2118
+ command.request_object = in_app_product_object
2119
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2120
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
2121
+ command.params['packageName'] = package_name unless package_name.nil?
2122
+ command.params['sku'] = sku unless sku.nil?
2123
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2124
+ command.query['fields'] = fields unless fields.nil?
2125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2126
+ command.query['userIp'] = user_ip unless user_ip.nil?
2127
+ execute_or_queue_command(command, &block)
2128
+ end
2129
+
2130
+ # Checks the purchase and consumption status of an inapp item.
2131
+ # @param [String] package_name
2132
+ # The package name of the application the inapp product was sold in (for example,
2133
+ # 'com.some.thing').
2134
+ # @param [String] product_id
2135
+ # The inapp product SKU (for example, 'com.some.thing.inapp1').
2136
+ # @param [String] token
2137
+ # The token provided to the user's device when the inapp product was purchased.
2138
+ # @param [String] fields
2139
+ # Selector specifying which fields to include in a partial response.
2140
+ # @param [String] quota_user
2141
+ # Available to use for quota purposes for server-side applications. Can be any
2142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2143
+ # Overrides userIp if both are provided.
2144
+ # @param [String] user_ip
2145
+ # IP address of the site where the request originates. Use this if you want to
2146
+ # enforce per-user limits.
2147
+ # @param [Google::Apis::RequestOptions] options
2148
+ # Request-specific options
2149
+ #
2150
+ # @yield [result, err] Result & error if block supplied
2151
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ProductPurchase] parsed result object
2152
+ # @yieldparam err [StandardError] error object if request failed
2153
+ #
2154
+ # @return [Google::Apis::AndroidpublisherV2::ProductPurchase]
2155
+ #
2156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2159
+ def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2160
+ command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options)
2161
+ command.response_representation = Google::Apis::AndroidpublisherV2::ProductPurchase::Representation
2162
+ command.response_class = Google::Apis::AndroidpublisherV2::ProductPurchase
2163
+ command.params['packageName'] = package_name unless package_name.nil?
2164
+ command.params['productId'] = product_id unless product_id.nil?
2165
+ command.params['token'] = token unless token.nil?
2166
+ command.query['fields'] = fields unless fields.nil?
2167
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2168
+ command.query['userIp'] = user_ip unless user_ip.nil?
2169
+ execute_or_queue_command(command, &block)
2170
+ end
2171
+
2172
+ # Cancels a user's subscription purchase. The subscription remains valid until
2173
+ # its expiration time.
2174
+ # @param [String] package_name
2175
+ # The package name of the application for which this subscription was purchased (
2176
+ # for example, 'com.some.thing').
2177
+ # @param [String] subscription_id
2178
+ # The purchased subscription ID (for example, 'monthly001').
2179
+ # @param [String] token
2180
+ # The token provided to the user's device when the subscription was purchased.
2181
+ # @param [String] fields
2182
+ # Selector specifying which fields to include in a partial response.
2183
+ # @param [String] quota_user
2184
+ # Available to use for quota purposes for server-side applications. Can be any
2185
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2186
+ # Overrides userIp if both are provided.
2187
+ # @param [String] user_ip
2188
+ # IP address of the site where the request originates. Use this if you want to
2189
+ # enforce per-user limits.
2190
+ # @param [Google::Apis::RequestOptions] options
2191
+ # Request-specific options
2192
+ #
2193
+ # @yield [result, err] Result & error if block supplied
2194
+ # @yieldparam result [NilClass] No result returned for this method
2195
+ # @yieldparam err [StandardError] error object if request failed
2196
+ #
2197
+ # @return [void]
2198
+ #
2199
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2200
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2201
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2202
+ def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2203
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options)
2204
+ command.params['packageName'] = package_name unless package_name.nil?
2205
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2206
+ command.params['token'] = token unless token.nil?
2207
+ command.query['fields'] = fields unless fields.nil?
2208
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2209
+ command.query['userIp'] = user_ip unless user_ip.nil?
2210
+ execute_or_queue_command(command, &block)
2211
+ end
2212
+
2213
+ # Defers a user's subscription purchase until a specified future expiration time.
2214
+ # @param [String] package_name
2215
+ # The package name of the application for which this subscription was purchased (
2216
+ # for example, 'com.some.thing').
2217
+ # @param [String] subscription_id
2218
+ # The purchased subscription ID (for example, 'monthly001').
2219
+ # @param [String] token
2220
+ # The token provided to the user's device when the subscription was purchased.
2221
+ # @param [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest] defer_subscription_purchases_request_object
2222
+ # @param [String] fields
2223
+ # Selector specifying which fields to include in a partial response.
2224
+ # @param [String] quota_user
2225
+ # Available to use for quota purposes for server-side applications. Can be any
2226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2227
+ # Overrides userIp if both are provided.
2228
+ # @param [String] user_ip
2229
+ # IP address of the site where the request originates. Use this if you want to
2230
+ # enforce per-user limits.
2231
+ # @param [Google::Apis::RequestOptions] options
2232
+ # Request-specific options
2233
+ #
2234
+ # @yield [result, err] Result & error if block supplied
2235
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse] parsed result object
2236
+ # @yieldparam err [StandardError] error object if request failed
2237
+ #
2238
+ # @return [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse]
2239
+ #
2240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2243
+ def defer_purchase_subscription(package_name, subscription_id, token, defer_subscription_purchases_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2244
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
2245
+ command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation
2246
+ command.request_object = defer_subscription_purchases_request_object
2247
+ command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation
2248
+ command.response_class = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse
2249
+ command.params['packageName'] = package_name unless package_name.nil?
2250
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2251
+ command.params['token'] = token unless token.nil?
2252
+ command.query['fields'] = fields unless fields.nil?
2253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2254
+ command.query['userIp'] = user_ip unless user_ip.nil?
2255
+ execute_or_queue_command(command, &block)
2256
+ end
2257
+
2258
+ # Checks whether a user's subscription purchase is valid and returns its expiry
2259
+ # time.
2260
+ # @param [String] package_name
2261
+ # The package name of the application for which this subscription was purchased (
2262
+ # for example, 'com.some.thing').
2263
+ # @param [String] subscription_id
2264
+ # The purchased subscription ID (for example, 'monthly001').
2265
+ # @param [String] token
2266
+ # The token provided to the user's device when the subscription was purchased.
2267
+ # @param [String] fields
2268
+ # Selector specifying which fields to include in a partial response.
2269
+ # @param [String] quota_user
2270
+ # Available to use for quota purposes for server-side applications. Can be any
2271
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2272
+ # Overrides userIp if both are provided.
2273
+ # @param [String] user_ip
2274
+ # IP address of the site where the request originates. Use this if you want to
2275
+ # enforce per-user limits.
2276
+ # @param [Google::Apis::RequestOptions] options
2277
+ # Request-specific options
2278
+ #
2279
+ # @yield [result, err] Result & error if block supplied
2280
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::SubscriptionPurchase] parsed result object
2281
+ # @yieldparam err [StandardError] error object if request failed
2282
+ #
2283
+ # @return [Google::Apis::AndroidpublisherV2::SubscriptionPurchase]
2284
+ #
2285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2288
+ def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2289
+ command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options)
2290
+ command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchase::Representation
2291
+ command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchase
2292
+ command.params['packageName'] = package_name unless package_name.nil?
2293
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2294
+ command.params['token'] = token unless token.nil?
2295
+ command.query['fields'] = fields unless fields.nil?
2296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2297
+ command.query['userIp'] = user_ip unless user_ip.nil?
2298
+ execute_or_queue_command(command, &block)
2299
+ end
2300
+
2301
+ # Refunds a user's subscription purchase, but the subscription remains valid
2302
+ # until its expiration time and it will continue to recur.
2303
+ # @param [String] package_name
2304
+ # The package name of the application for which this subscription was purchased (
2305
+ # for example, 'com.some.thing').
2306
+ # @param [String] subscription_id
2307
+ # The purchased subscription ID (for example, 'monthly001').
2308
+ # @param [String] token
2309
+ # The token provided to the user's device when the subscription was purchased.
2310
+ # @param [String] fields
2311
+ # Selector specifying which fields to include in a partial response.
2312
+ # @param [String] quota_user
2313
+ # Available to use for quota purposes for server-side applications. Can be any
2314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2315
+ # Overrides userIp if both are provided.
2316
+ # @param [String] user_ip
2317
+ # IP address of the site where the request originates. Use this if you want to
2318
+ # enforce per-user limits.
2319
+ # @param [Google::Apis::RequestOptions] options
2320
+ # Request-specific options
2321
+ #
2322
+ # @yield [result, err] Result & error if block supplied
2323
+ # @yieldparam result [NilClass] No result returned for this method
2324
+ # @yieldparam err [StandardError] error object if request failed
2325
+ #
2326
+ # @return [void]
2327
+ #
2328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2331
+ def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2332
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options)
2333
+ command.params['packageName'] = package_name unless package_name.nil?
2334
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2335
+ command.params['token'] = token unless token.nil?
2336
+ command.query['fields'] = fields unless fields.nil?
2337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2338
+ command.query['userIp'] = user_ip unless user_ip.nil?
2339
+ execute_or_queue_command(command, &block)
2340
+ end
2341
+
2342
+ # Refunds and immediately revokes a user's subscription purchase. Access to the
2343
+ # subscription will be terminated immediately and it will stop recurring.
2344
+ # @param [String] package_name
2345
+ # The package name of the application for which this subscription was purchased (
2346
+ # for example, 'com.some.thing').
2347
+ # @param [String] subscription_id
2348
+ # The purchased subscription ID (for example, 'monthly001').
2349
+ # @param [String] token
2350
+ # The token provided to the user's device when the subscription was purchased.
2351
+ # @param [String] fields
2352
+ # Selector specifying which fields to include in a partial response.
2353
+ # @param [String] quota_user
2354
+ # Available to use for quota purposes for server-side applications. Can be any
2355
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2356
+ # Overrides userIp if both are provided.
2357
+ # @param [String] user_ip
2358
+ # IP address of the site where the request originates. Use this if you want to
2359
+ # enforce per-user limits.
2360
+ # @param [Google::Apis::RequestOptions] options
2361
+ # Request-specific options
2362
+ #
2363
+ # @yield [result, err] Result & error if block supplied
2364
+ # @yieldparam result [NilClass] No result returned for this method
2365
+ # @yieldparam err [StandardError] error object if request failed
2366
+ #
2367
+ # @return [void]
2368
+ #
2369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2372
+ def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2373
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options)
2374
+ command.params['packageName'] = package_name unless package_name.nil?
2375
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2376
+ command.params['token'] = token unless token.nil?
2377
+ command.query['fields'] = fields unless fields.nil?
2378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2379
+ command.query['userIp'] = user_ip unless user_ip.nil?
2380
+ execute_or_queue_command(command, &block)
2381
+ end
2382
+
2383
+ # Lists the purchases that were cancelled, refunded or charged-back.
2384
+ # @param [String] package_name
2385
+ # The package name of the application for which voided purchases need to be
2386
+ # returned (for example, 'com.some.thing').
2387
+ # @param [String] end_time
2388
+ # The time, in milliseconds since the Epoch, of the newest voided in-app product
2389
+ # purchase that you want to see in the response. The value of this parameter
2390
+ # cannot be greater than the current time and is ignored if a pagination token
2391
+ # is set. Default value is current time.
2392
+ # @param [Fixnum] max_results
2393
+ # @param [Fixnum] start_index
2394
+ # @param [String] start_time
2395
+ # The time, in milliseconds since the Epoch, of the oldest voided in-app product
2396
+ # purchase that you want to see in the response. The value of this parameter
2397
+ # cannot be older than 30 days and is ignored if a pagination token is set.
2398
+ # Default value is current time minus 30 days.
2399
+ # @param [String] token
2400
+ # @param [String] fields
2401
+ # Selector specifying which fields to include in a partial response.
2402
+ # @param [String] quota_user
2403
+ # Available to use for quota purposes for server-side applications. Can be any
2404
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2405
+ # Overrides userIp if both are provided.
2406
+ # @param [String] user_ip
2407
+ # IP address of the site where the request originates. Use this if you want to
2408
+ # enforce per-user limits.
2409
+ # @param [Google::Apis::RequestOptions] options
2410
+ # Request-specific options
2411
+ #
2412
+ # @yield [result, err] Result & error if block supplied
2413
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse] parsed result object
2414
+ # @yieldparam err [StandardError] error object if request failed
2415
+ #
2416
+ # @return [Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse]
2417
+ #
2418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2421
+ def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2422
+ command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options)
2423
+ command.response_representation = Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse::Representation
2424
+ command.response_class = Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse
2425
+ command.params['packageName'] = package_name unless package_name.nil?
2426
+ command.query['endTime'] = end_time unless end_time.nil?
2427
+ command.query['maxResults'] = max_results unless max_results.nil?
2428
+ command.query['startIndex'] = start_index unless start_index.nil?
2429
+ command.query['startTime'] = start_time unless start_time.nil?
2430
+ command.query['token'] = token unless token.nil?
2431
+ command.query['fields'] = fields unless fields.nil?
2432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2433
+ command.query['userIp'] = user_ip unless user_ip.nil?
2434
+ execute_or_queue_command(command, &block)
2435
+ end
2436
+
2437
+ # Returns a single review.
2438
+ # @param [String] package_name
2439
+ # Unique identifier for the Android app for which we want reviews; for example, "
2440
+ # com.spiffygame".
2441
+ # @param [String] review_id
2442
+ # @param [String] translation_language
2443
+ # @param [String] fields
2444
+ # Selector specifying which fields to include in a partial response.
2445
+ # @param [String] quota_user
2446
+ # Available to use for quota purposes for server-side applications. Can be any
2447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2448
+ # Overrides userIp if both are provided.
2449
+ # @param [String] user_ip
2450
+ # IP address of the site where the request originates. Use this if you want to
2451
+ # enforce per-user limits.
2452
+ # @param [Google::Apis::RequestOptions] options
2453
+ # Request-specific options
2454
+ #
2455
+ # @yield [result, err] Result & error if block supplied
2456
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Review] parsed result object
2457
+ # @yieldparam err [StandardError] error object if request failed
2458
+ #
2459
+ # @return [Google::Apis::AndroidpublisherV2::Review]
2460
+ #
2461
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2462
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2463
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2464
+ def get_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2465
+ command = make_simple_command(:get, '{packageName}/reviews/{reviewId}', options)
2466
+ command.response_representation = Google::Apis::AndroidpublisherV2::Review::Representation
2467
+ command.response_class = Google::Apis::AndroidpublisherV2::Review
2468
+ command.params['packageName'] = package_name unless package_name.nil?
2469
+ command.params['reviewId'] = review_id unless review_id.nil?
2470
+ command.query['translationLanguage'] = translation_language unless translation_language.nil?
2471
+ command.query['fields'] = fields unless fields.nil?
2472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2473
+ command.query['userIp'] = user_ip unless user_ip.nil?
2474
+ execute_or_queue_command(command, &block)
2475
+ end
2476
+
2477
+ # Returns a list of reviews.
2478
+ # @param [String] package_name
2479
+ # Unique identifier for the Android app for which we want reviews; for example, "
2480
+ # com.spiffygame".
2481
+ # @param [Fixnum] max_results
2482
+ # @param [Fixnum] start_index
2483
+ # @param [String] token
2484
+ # @param [String] translation_language
2485
+ # @param [String] fields
2486
+ # Selector specifying which fields to include in a partial response.
2487
+ # @param [String] quota_user
2488
+ # Available to use for quota purposes for server-side applications. Can be any
2489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2490
+ # Overrides userIp if both are provided.
2491
+ # @param [String] user_ip
2492
+ # IP address of the site where the request originates. Use this if you want to
2493
+ # enforce per-user limits.
2494
+ # @param [Google::Apis::RequestOptions] options
2495
+ # Request-specific options
2496
+ #
2497
+ # @yield [result, err] Result & error if block supplied
2498
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ReviewsListResponse] parsed result object
2499
+ # @yieldparam err [StandardError] error object if request failed
2500
+ #
2501
+ # @return [Google::Apis::AndroidpublisherV2::ReviewsListResponse]
2502
+ #
2503
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2504
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2505
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2506
+ def list_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2507
+ command = make_simple_command(:get, '{packageName}/reviews', options)
2508
+ command.response_representation = Google::Apis::AndroidpublisherV2::ReviewsListResponse::Representation
2509
+ command.response_class = Google::Apis::AndroidpublisherV2::ReviewsListResponse
2510
+ command.params['packageName'] = package_name unless package_name.nil?
2511
+ command.query['maxResults'] = max_results unless max_results.nil?
2512
+ command.query['startIndex'] = start_index unless start_index.nil?
2513
+ command.query['token'] = token unless token.nil?
2514
+ command.query['translationLanguage'] = translation_language unless translation_language.nil?
2515
+ command.query['fields'] = fields unless fields.nil?
2516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2517
+ command.query['userIp'] = user_ip unless user_ip.nil?
2518
+ execute_or_queue_command(command, &block)
2519
+ end
2520
+
2521
+ # Reply to a single review, or update an existing reply.
2522
+ # @param [String] package_name
2523
+ # Unique identifier for the Android app for which we want reviews; for example, "
2524
+ # com.spiffygame".
2525
+ # @param [String] review_id
2526
+ # @param [Google::Apis::AndroidpublisherV2::ReviewsReplyRequest] reviews_reply_request_object
2527
+ # @param [String] fields
2528
+ # Selector specifying which fields to include in a partial response.
2529
+ # @param [String] quota_user
2530
+ # Available to use for quota purposes for server-side applications. Can be any
2531
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2532
+ # Overrides userIp if both are provided.
2533
+ # @param [String] user_ip
2534
+ # IP address of the site where the request originates. Use this if you want to
2535
+ # enforce per-user limits.
2536
+ # @param [Google::Apis::RequestOptions] options
2537
+ # Request-specific options
2538
+ #
2539
+ # @yield [result, err] Result & error if block supplied
2540
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ReviewsReplyResponse] parsed result object
2541
+ # @yieldparam err [StandardError] error object if request failed
2542
+ #
2543
+ # @return [Google::Apis::AndroidpublisherV2::ReviewsReplyResponse]
2544
+ #
2545
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2546
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2547
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2548
+ def reply_review(package_name, review_id, reviews_reply_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2549
+ command = make_simple_command(:post, '{packageName}/reviews/{reviewId}:reply', options)
2550
+ command.request_representation = Google::Apis::AndroidpublisherV2::ReviewsReplyRequest::Representation
2551
+ command.request_object = reviews_reply_request_object
2552
+ command.response_representation = Google::Apis::AndroidpublisherV2::ReviewsReplyResponse::Representation
2553
+ command.response_class = Google::Apis::AndroidpublisherV2::ReviewsReplyResponse
2554
+ command.params['packageName'] = package_name unless package_name.nil?
2555
+ command.params['reviewId'] = review_id unless review_id.nil?
2556
+ command.query['fields'] = fields unless fields.nil?
2557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2558
+ command.query['userIp'] = user_ip unless user_ip.nil?
2559
+ execute_or_queue_command(command, &block)
2560
+ end
2561
+
2562
+ protected
2563
+
2564
+ def apply_command_defaults(command)
2565
+ command.query['key'] = key unless key.nil?
2566
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2567
+ command.query['userIp'] = user_ip unless user_ip.nil?
2568
+ end
2569
+ end
2570
+ end
2571
+ end
2572
+ end