google-api-client 0.8.6 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  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 +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,2338 @@
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
+ # Fetches app details for this edit. This includes the default language and
664
+ # developer support contact information.
665
+ # @param [String] package_name
666
+ # Unique identifier for the Android app that is being updated; for example, "com.
667
+ # spiffygame".
668
+ # @param [String] edit_id
669
+ # Unique identifier for this edit.
670
+ # @param [String] fields
671
+ # Selector specifying which fields to include in a partial response.
672
+ # @param [String] quota_user
673
+ # Available to use for quota purposes for server-side applications. Can be any
674
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
675
+ # Overrides userIp if both are provided.
676
+ # @param [String] user_ip
677
+ # IP address of the site where the request originates. Use this if you want to
678
+ # enforce per-user limits.
679
+ # @param [Google::Apis::RequestOptions] options
680
+ # Request-specific options
681
+ #
682
+ # @yield [result, err] Result & error if block supplied
683
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppDetails] parsed result object
684
+ # @yieldparam err [StandardError] error object if request failed
685
+ #
686
+ # @return [Google::Apis::AndroidpublisherV2::AppDetails]
687
+ #
688
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
689
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
690
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
691
+ def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
692
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options)
693
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
694
+ command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
695
+ command.params['packageName'] = package_name unless package_name.nil?
696
+ command.params['editId'] = edit_id unless edit_id.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ command.query['userIp'] = user_ip unless user_ip.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
703
+ # Updates app details for this edit. This method supports patch semantics.
704
+ # @param [String] package_name
705
+ # Unique identifier for the Android app that is being updated; for example, "com.
706
+ # spiffygame".
707
+ # @param [String] edit_id
708
+ # Unique identifier for this edit.
709
+ # @param [Google::Apis::AndroidpublisherV2::AppDetails] app_details_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # Overrides userIp if both are provided.
716
+ # @param [String] user_ip
717
+ # IP address of the site where the request originates. Use this if you want to
718
+ # enforce per-user limits.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppDetails] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::AndroidpublisherV2::AppDetails]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
732
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options)
733
+ command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
734
+ command.request_object = app_details_object
735
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
736
+ command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
737
+ command.params['packageName'] = package_name unless package_name.nil?
738
+ command.params['editId'] = edit_id unless edit_id.nil?
739
+ command.query['fields'] = fields unless fields.nil?
740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
741
+ command.query['userIp'] = user_ip unless user_ip.nil?
742
+ execute_or_queue_command(command, &block)
743
+ end
744
+
745
+ # Updates app details for this edit.
746
+ # @param [String] package_name
747
+ # Unique identifier for the Android app that is being updated; for example, "com.
748
+ # spiffygame".
749
+ # @param [String] edit_id
750
+ # Unique identifier for this edit.
751
+ # @param [Google::Apis::AndroidpublisherV2::AppDetails] app_details_object
752
+ # @param [String] fields
753
+ # Selector specifying which fields to include in a partial response.
754
+ # @param [String] quota_user
755
+ # Available to use for quota purposes for server-side applications. Can be any
756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
+ # Overrides userIp if both are provided.
758
+ # @param [String] user_ip
759
+ # IP address of the site where the request originates. Use this if you want to
760
+ # enforce per-user limits.
761
+ # @param [Google::Apis::RequestOptions] options
762
+ # Request-specific options
763
+ #
764
+ # @yield [result, err] Result & error if block supplied
765
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::AppDetails] parsed result object
766
+ # @yieldparam err [StandardError] error object if request failed
767
+ #
768
+ # @return [Google::Apis::AndroidpublisherV2::AppDetails]
769
+ #
770
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
771
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
772
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
773
+ def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
774
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options)
775
+ command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
776
+ command.request_object = app_details_object
777
+ command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
778
+ command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
779
+ command.params['packageName'] = package_name unless package_name.nil?
780
+ command.params['editId'] = edit_id unless edit_id.nil?
781
+ command.query['fields'] = fields unless fields.nil?
782
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
783
+ command.query['userIp'] = user_ip unless user_ip.nil?
784
+ execute_or_queue_command(command, &block)
785
+ end
786
+
787
+ # Fetches the Expansion File configuration for the APK specified.
788
+ # @param [String] package_name
789
+ # Unique identifier for the Android app that is being updated; for example, "com.
790
+ # spiffygame".
791
+ # @param [String] edit_id
792
+ # Unique identifier for this edit.
793
+ # @param [Fixnum] apk_version_code
794
+ # The version code of the APK whose Expansion File configuration is being read
795
+ # or modified.
796
+ # @param [String] expansion_file_type
797
+ # @param [String] fields
798
+ # Selector specifying which fields to include in a partial response.
799
+ # @param [String] quota_user
800
+ # Available to use for quota purposes for server-side applications. Can be any
801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
802
+ # Overrides userIp if both are provided.
803
+ # @param [String] user_ip
804
+ # IP address of the site where the request originates. Use this if you want to
805
+ # enforce per-user limits.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFile] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ 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)
819
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
820
+ command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
821
+ command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
822
+ command.params['packageName'] = package_name unless package_name.nil?
823
+ command.params['editId'] = edit_id unless edit_id.nil?
824
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
825
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
826
+ command.query['fields'] = fields unless fields.nil?
827
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
828
+ command.query['userIp'] = user_ip unless user_ip.nil?
829
+ execute_or_queue_command(command, &block)
830
+ end
831
+
832
+ # Updates the APK's Expansion File configuration to reference another APK's
833
+ # Expansion Files. To add a new Expansion File use the Upload method. This
834
+ # method supports patch semantics.
835
+ # @param [String] package_name
836
+ # Unique identifier for the Android app that is being updated; for example, "com.
837
+ # spiffygame".
838
+ # @param [String] edit_id
839
+ # Unique identifier for this edit.
840
+ # @param [Fixnum] apk_version_code
841
+ # The version code of the APK whose Expansion File configuration is being read
842
+ # or modified.
843
+ # @param [String] expansion_file_type
844
+ # @param [Google::Apis::AndroidpublisherV2::ExpansionFile] expansion_file_object
845
+ # @param [String] fields
846
+ # Selector specifying which fields to include in a partial response.
847
+ # @param [String] quota_user
848
+ # Available to use for quota purposes for server-side applications. Can be any
849
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
850
+ # Overrides userIp if both are provided.
851
+ # @param [String] user_ip
852
+ # IP address of the site where the request originates. Use this if you want to
853
+ # enforce per-user limits.
854
+ # @param [Google::Apis::RequestOptions] options
855
+ # Request-specific options
856
+ #
857
+ # @yield [result, err] Result & error if block supplied
858
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFile] parsed result object
859
+ # @yieldparam err [StandardError] error object if request failed
860
+ #
861
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
862
+ #
863
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
864
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
865
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
866
+ 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)
867
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
868
+ command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
869
+ command.request_object = expansion_file_object
870
+ command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
871
+ command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
872
+ command.params['packageName'] = package_name unless package_name.nil?
873
+ command.params['editId'] = edit_id unless edit_id.nil?
874
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
875
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
876
+ command.query['fields'] = fields unless fields.nil?
877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
878
+ command.query['userIp'] = user_ip unless user_ip.nil?
879
+ execute_or_queue_command(command, &block)
880
+ end
881
+
882
+ # Updates the APK's Expansion File configuration to reference another APK's
883
+ # Expansion Files. To add a new Expansion File use the Upload method.
884
+ # @param [String] package_name
885
+ # Unique identifier for the Android app that is being updated; for example, "com.
886
+ # spiffygame".
887
+ # @param [String] edit_id
888
+ # Unique identifier for this edit.
889
+ # @param [Fixnum] apk_version_code
890
+ # The version code of the APK whose Expansion File configuration is being read
891
+ # or modified.
892
+ # @param [String] expansion_file_type
893
+ # @param [Google::Apis::AndroidpublisherV2::ExpansionFile] expansion_file_object
894
+ # @param [String] fields
895
+ # Selector specifying which fields to include in a partial response.
896
+ # @param [String] quota_user
897
+ # Available to use for quota purposes for server-side applications. Can be any
898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
899
+ # Overrides userIp if both are provided.
900
+ # @param [String] user_ip
901
+ # IP address of the site where the request originates. Use this if you want to
902
+ # enforce per-user limits.
903
+ # @param [Google::Apis::RequestOptions] options
904
+ # Request-specific options
905
+ #
906
+ # @yield [result, err] Result & error if block supplied
907
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFile] parsed result object
908
+ # @yieldparam err [StandardError] error object if request failed
909
+ #
910
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
911
+ #
912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
915
+ 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)
916
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
917
+ command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
918
+ command.request_object = expansion_file_object
919
+ command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
920
+ command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
921
+ command.params['packageName'] = package_name unless package_name.nil?
922
+ command.params['editId'] = edit_id unless edit_id.nil?
923
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
924
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
925
+ command.query['fields'] = fields unless fields.nil?
926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
927
+ command.query['userIp'] = user_ip unless user_ip.nil?
928
+ execute_or_queue_command(command, &block)
929
+ end
930
+
931
+ # Uploads and attaches a new Expansion File to the APK specified.
932
+ # @param [String] package_name
933
+ # Unique identifier for the Android app that is being updated; for example, "com.
934
+ # spiffygame".
935
+ # @param [String] edit_id
936
+ # Unique identifier for this edit.
937
+ # @param [Fixnum] apk_version_code
938
+ # The version code of the APK whose Expansion File configuration is being read
939
+ # or modified.
940
+ # @param [String] expansion_file_type
941
+ # @param [String] fields
942
+ # Selector specifying which fields to include in a partial response.
943
+ # @param [String] quota_user
944
+ # Available to use for quota purposes for server-side applications. Can be any
945
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
946
+ # Overrides userIp if both are provided.
947
+ # @param [String] user_ip
948
+ # IP address of the site where the request originates. Use this if you want to
949
+ # enforce per-user limits.
950
+ # @param [IO, String] upload_source
951
+ # IO stream or filename containing content to upload
952
+ # @param [String] content_type
953
+ # Content type of the uploaded content.
954
+ # @param [Google::Apis::RequestOptions] options
955
+ # Request-specific options
956
+ #
957
+ # @yield [result, err] Result & error if block supplied
958
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse] parsed result object
959
+ # @yieldparam err [StandardError] error object if request failed
960
+ #
961
+ # @return [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse]
962
+ #
963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
966
+ 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)
967
+ if upload_source.nil?
968
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
969
+ else
970
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
971
+ command.upload_source = upload_source
972
+ command.upload_content_type = content_type
973
+ end
974
+ command.response_representation = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse::Representation
975
+ command.response_class = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse
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
+ # Deletes the image (specified by id) from the edit.
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 [String] language
993
+ # The language code (a BCP-47 language tag) of the localized listing whose
994
+ # images are to read or modified. For example, to select Austrian German, pass "
995
+ # de-AT".
996
+ # @param [String] image_type
997
+ # @param [String] image_id
998
+ # Unique identifier an image within the set of images attached to this edit.
999
+ # @param [String] fields
1000
+ # Selector specifying which fields to include in a partial response.
1001
+ # @param [String] quota_user
1002
+ # Available to use for quota purposes for server-side applications. Can be any
1003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1004
+ # Overrides userIp if both are provided.
1005
+ # @param [String] user_ip
1006
+ # IP address of the site where the request originates. Use this if you want to
1007
+ # enforce per-user limits.
1008
+ # @param [Google::Apis::RequestOptions] options
1009
+ # Request-specific options
1010
+ #
1011
+ # @yield [result, err] Result & error if block supplied
1012
+ # @yieldparam result [NilClass] No result returned for this method
1013
+ # @yieldparam err [StandardError] error object if request failed
1014
+ #
1015
+ # @return [void]
1016
+ #
1017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1020
+ def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1021
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
1022
+ command.params['packageName'] = package_name unless package_name.nil?
1023
+ command.params['editId'] = edit_id unless edit_id.nil?
1024
+ command.params['language'] = language unless language.nil?
1025
+ command.params['imageType'] = image_type unless image_type.nil?
1026
+ command.params['imageId'] = image_id unless image_id.nil?
1027
+ command.query['fields'] = fields unless fields.nil?
1028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1029
+ command.query['userIp'] = user_ip unless user_ip.nil?
1030
+ execute_or_queue_command(command, &block)
1031
+ end
1032
+
1033
+ # Deletes all images for the specified language and image type.
1034
+ # @param [String] package_name
1035
+ # Unique identifier for the Android app that is being updated; for example, "com.
1036
+ # spiffygame".
1037
+ # @param [String] edit_id
1038
+ # Unique identifier for this edit.
1039
+ # @param [String] language
1040
+ # The language code (a BCP-47 language tag) of the localized listing whose
1041
+ # images are to read or modified. For example, to select Austrian German, pass "
1042
+ # de-AT".
1043
+ # @param [String] image_type
1044
+ # @param [String] fields
1045
+ # Selector specifying which fields to include in a partial response.
1046
+ # @param [String] quota_user
1047
+ # Available to use for quota purposes for server-side applications. Can be any
1048
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1049
+ # Overrides userIp if both are provided.
1050
+ # @param [String] user_ip
1051
+ # IP address of the site where the request originates. Use this if you want to
1052
+ # enforce per-user limits.
1053
+ # @param [Google::Apis::RequestOptions] options
1054
+ # Request-specific options
1055
+ #
1056
+ # @yield [result, err] Result & error if block supplied
1057
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse] parsed result object
1058
+ # @yieldparam err [StandardError] error object if request failed
1059
+ #
1060
+ # @return [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse]
1061
+ #
1062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1065
+ def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1066
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1067
+ command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation
1068
+ command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse
1069
+ command.params['packageName'] = package_name unless package_name.nil?
1070
+ command.params['editId'] = edit_id unless edit_id.nil?
1071
+ command.params['language'] = language unless language.nil?
1072
+ command.params['imageType'] = image_type unless image_type.nil?
1073
+ command.query['fields'] = fields unless fields.nil?
1074
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1075
+ command.query['userIp'] = user_ip unless user_ip.nil?
1076
+ execute_or_queue_command(command, &block)
1077
+ end
1078
+
1079
+ # Lists all images for the specified language and image type.
1080
+ # @param [String] package_name
1081
+ # Unique identifier for the Android app that is being updated; for example, "com.
1082
+ # spiffygame".
1083
+ # @param [String] edit_id
1084
+ # Unique identifier for this edit.
1085
+ # @param [String] language
1086
+ # The language code (a BCP-47 language tag) of the localized listing whose
1087
+ # images are to read or modified. For example, to select Austrian German, pass "
1088
+ # de-AT".
1089
+ # @param [String] image_type
1090
+ # @param [String] fields
1091
+ # Selector specifying which fields to include in a partial response.
1092
+ # @param [String] quota_user
1093
+ # Available to use for quota purposes for server-side applications. Can be any
1094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1095
+ # Overrides userIp if both are provided.
1096
+ # @param [String] user_ip
1097
+ # IP address of the site where the request originates. Use this if you want to
1098
+ # enforce per-user limits.
1099
+ # @param [Google::Apis::RequestOptions] options
1100
+ # Request-specific options
1101
+ #
1102
+ # @yield [result, err] Result & error if block supplied
1103
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListImagesResponse] parsed result object
1104
+ # @yieldparam err [StandardError] error object if request failed
1105
+ #
1106
+ # @return [Google::Apis::AndroidpublisherV2::ListImagesResponse]
1107
+ #
1108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1111
+ def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1112
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1113
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation
1114
+ command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse
1115
+ command.params['packageName'] = package_name unless package_name.nil?
1116
+ command.params['editId'] = edit_id unless edit_id.nil?
1117
+ command.params['language'] = language unless language.nil?
1118
+ command.params['imageType'] = image_type unless image_type.nil?
1119
+ command.query['fields'] = fields unless fields.nil?
1120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1121
+ command.query['userIp'] = user_ip unless user_ip.nil?
1122
+ execute_or_queue_command(command, &block)
1123
+ end
1124
+
1125
+ # Uploads a new image and adds it to the list of images for the specified
1126
+ # language and image type.
1127
+ # @param [String] package_name
1128
+ # Unique identifier for the Android app that is being updated; for example, "com.
1129
+ # spiffygame".
1130
+ # @param [String] edit_id
1131
+ # Unique identifier for this edit.
1132
+ # @param [String] language
1133
+ # The language code (a BCP-47 language tag) of the localized listing whose
1134
+ # images are to read or modified. For example, to select Austrian German, pass "
1135
+ # de-AT".
1136
+ # @param [String] image_type
1137
+ # @param [String] fields
1138
+ # Selector specifying which fields to include in a partial response.
1139
+ # @param [String] quota_user
1140
+ # Available to use for quota purposes for server-side applications. Can be any
1141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1142
+ # Overrides userIp if both are provided.
1143
+ # @param [String] user_ip
1144
+ # IP address of the site where the request originates. Use this if you want to
1145
+ # enforce per-user limits.
1146
+ # @param [IO, String] upload_source
1147
+ # IO stream or filename containing content to upload
1148
+ # @param [String] content_type
1149
+ # Content type of the uploaded content.
1150
+ # @param [Google::Apis::RequestOptions] options
1151
+ # Request-specific options
1152
+ #
1153
+ # @yield [result, err] Result & error if block supplied
1154
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::UploadImagesResponse] parsed result object
1155
+ # @yieldparam err [StandardError] error object if request failed
1156
+ #
1157
+ # @return [Google::Apis::AndroidpublisherV2::UploadImagesResponse]
1158
+ #
1159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1162
+ 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)
1163
+ if upload_source.nil?
1164
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1165
+ else
1166
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1167
+ command.upload_source = upload_source
1168
+ command.upload_content_type = content_type
1169
+ end
1170
+ command.response_representation = Google::Apis::AndroidpublisherV2::UploadImagesResponse::Representation
1171
+ command.response_class = Google::Apis::AndroidpublisherV2::UploadImagesResponse
1172
+ command.params['packageName'] = package_name unless package_name.nil?
1173
+ command.params['editId'] = edit_id unless edit_id.nil?
1174
+ command.params['language'] = language unless language.nil?
1175
+ command.params['imageType'] = image_type unless image_type.nil?
1176
+ command.query['fields'] = fields unless fields.nil?
1177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1178
+ command.query['userIp'] = user_ip unless user_ip.nil?
1179
+ execute_or_queue_command(command, &block)
1180
+ end
1181
+
1182
+ # Deletes the specified localized store listing from an edit.
1183
+ # @param [String] package_name
1184
+ # Unique identifier for the Android app that is being updated; for example, "com.
1185
+ # spiffygame".
1186
+ # @param [String] edit_id
1187
+ # Unique identifier for this edit.
1188
+ # @param [String] language
1189
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1190
+ # modify. For example, to select Austrian German, pass "de-AT".
1191
+ # @param [String] fields
1192
+ # Selector specifying which fields to include in a partial response.
1193
+ # @param [String] quota_user
1194
+ # Available to use for quota purposes for server-side applications. Can be any
1195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1196
+ # Overrides userIp if both are provided.
1197
+ # @param [String] user_ip
1198
+ # IP address of the site where the request originates. Use this if you want to
1199
+ # enforce per-user limits.
1200
+ # @param [Google::Apis::RequestOptions] options
1201
+ # Request-specific options
1202
+ #
1203
+ # @yield [result, err] Result & error if block supplied
1204
+ # @yieldparam result [NilClass] No result returned for this method
1205
+ # @yieldparam err [StandardError] error object if request failed
1206
+ #
1207
+ # @return [void]
1208
+ #
1209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1212
+ def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1213
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options)
1214
+ command.params['packageName'] = package_name unless package_name.nil?
1215
+ command.params['editId'] = edit_id unless edit_id.nil?
1216
+ command.params['language'] = language unless language.nil?
1217
+ command.query['fields'] = fields unless fields.nil?
1218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1219
+ command.query['userIp'] = user_ip unless user_ip.nil?
1220
+ execute_or_queue_command(command, &block)
1221
+ end
1222
+
1223
+ # Deletes all localized listings from an edit.
1224
+ # @param [String] package_name
1225
+ # Unique identifier for the Android app that is being updated; for example, "com.
1226
+ # spiffygame".
1227
+ # @param [String] edit_id
1228
+ # Unique identifier for this edit.
1229
+ # @param [String] fields
1230
+ # Selector specifying which fields to include in a partial response.
1231
+ # @param [String] quota_user
1232
+ # Available to use for quota purposes for server-side applications. Can be any
1233
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1234
+ # Overrides userIp if both are provided.
1235
+ # @param [String] user_ip
1236
+ # IP address of the site where the request originates. Use this if you want to
1237
+ # enforce per-user limits.
1238
+ # @param [Google::Apis::RequestOptions] options
1239
+ # Request-specific options
1240
+ #
1241
+ # @yield [result, err] Result & error if block supplied
1242
+ # @yieldparam result [NilClass] No result returned for this method
1243
+ # @yieldparam err [StandardError] error object if request failed
1244
+ #
1245
+ # @return [void]
1246
+ #
1247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1250
+ def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1251
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options)
1252
+ command.params['packageName'] = package_name unless package_name.nil?
1253
+ command.params['editId'] = edit_id unless edit_id.nil?
1254
+ command.query['fields'] = fields unless fields.nil?
1255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1256
+ command.query['userIp'] = user_ip unless user_ip.nil?
1257
+ execute_or_queue_command(command, &block)
1258
+ end
1259
+
1260
+ # Fetches information about a localized store listing.
1261
+ # @param [String] package_name
1262
+ # Unique identifier for the Android app that is being updated; for example, "com.
1263
+ # spiffygame".
1264
+ # @param [String] edit_id
1265
+ # Unique identifier for this edit.
1266
+ # @param [String] language
1267
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1268
+ # modify. For example, to select Austrian German, pass "de-AT".
1269
+ # @param [String] fields
1270
+ # Selector specifying which fields to include in a partial response.
1271
+ # @param [String] quota_user
1272
+ # Available to use for quota purposes for server-side applications. Can be any
1273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1274
+ # Overrides userIp if both are provided.
1275
+ # @param [String] user_ip
1276
+ # IP address of the site where the request originates. Use this if you want to
1277
+ # enforce per-user limits.
1278
+ # @param [Google::Apis::RequestOptions] options
1279
+ # Request-specific options
1280
+ #
1281
+ # @yield [result, err] Result & error if block supplied
1282
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Listing] parsed result object
1283
+ # @yieldparam err [StandardError] error object if request failed
1284
+ #
1285
+ # @return [Google::Apis::AndroidpublisherV2::Listing]
1286
+ #
1287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1290
+ def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1291
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options)
1292
+ command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1293
+ command.response_class = Google::Apis::AndroidpublisherV2::Listing
1294
+ command.params['packageName'] = package_name unless package_name.nil?
1295
+ command.params['editId'] = edit_id unless edit_id.nil?
1296
+ command.params['language'] = language unless language.nil?
1297
+ command.query['fields'] = fields unless fields.nil?
1298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1299
+ command.query['userIp'] = user_ip unless user_ip.nil?
1300
+ execute_or_queue_command(command, &block)
1301
+ end
1302
+
1303
+ # Returns all of the localized store listings attached to this edit.
1304
+ # @param [String] package_name
1305
+ # Unique identifier for the Android app that is being updated; for example, "com.
1306
+ # spiffygame".
1307
+ # @param [String] edit_id
1308
+ # Unique identifier for this edit.
1309
+ # @param [String] fields
1310
+ # Selector specifying which fields to include in a partial response.
1311
+ # @param [String] quota_user
1312
+ # Available to use for quota purposes for server-side applications. Can be any
1313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1314
+ # Overrides userIp if both are provided.
1315
+ # @param [String] user_ip
1316
+ # IP address of the site where the request originates. Use this if you want to
1317
+ # enforce per-user limits.
1318
+ # @param [Google::Apis::RequestOptions] options
1319
+ # Request-specific options
1320
+ #
1321
+ # @yield [result, err] Result & error if block supplied
1322
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListListingsResponse] parsed result object
1323
+ # @yieldparam err [StandardError] error object if request failed
1324
+ #
1325
+ # @return [Google::Apis::AndroidpublisherV2::ListListingsResponse]
1326
+ #
1327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1330
+ def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1331
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options)
1332
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation
1333
+ command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse
1334
+ command.params['packageName'] = package_name unless package_name.nil?
1335
+ command.params['editId'] = edit_id unless edit_id.nil?
1336
+ command.query['fields'] = fields unless fields.nil?
1337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1338
+ command.query['userIp'] = user_ip unless user_ip.nil?
1339
+ execute_or_queue_command(command, &block)
1340
+ end
1341
+
1342
+ # Creates or updates a localized store listing. This method supports patch
1343
+ # semantics.
1344
+ # @param [String] package_name
1345
+ # Unique identifier for the Android app that is being updated; for example, "com.
1346
+ # spiffygame".
1347
+ # @param [String] edit_id
1348
+ # Unique identifier for this edit.
1349
+ # @param [String] language
1350
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1351
+ # modify. For example, to select Austrian German, pass "de-AT".
1352
+ # @param [Google::Apis::AndroidpublisherV2::Listing] listing_object
1353
+ # @param [String] fields
1354
+ # Selector specifying which fields to include in a partial response.
1355
+ # @param [String] quota_user
1356
+ # Available to use for quota purposes for server-side applications. Can be any
1357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1358
+ # Overrides userIp if both are provided.
1359
+ # @param [String] user_ip
1360
+ # IP address of the site where the request originates. Use this if you want to
1361
+ # enforce per-user limits.
1362
+ # @param [Google::Apis::RequestOptions] options
1363
+ # Request-specific options
1364
+ #
1365
+ # @yield [result, err] Result & error if block supplied
1366
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Listing] parsed result object
1367
+ # @yieldparam err [StandardError] error object if request failed
1368
+ #
1369
+ # @return [Google::Apis::AndroidpublisherV2::Listing]
1370
+ #
1371
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1372
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1373
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1374
+ def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1375
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options)
1376
+ command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1377
+ command.request_object = listing_object
1378
+ command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1379
+ command.response_class = Google::Apis::AndroidpublisherV2::Listing
1380
+ command.params['packageName'] = package_name unless package_name.nil?
1381
+ command.params['editId'] = edit_id unless edit_id.nil?
1382
+ command.params['language'] = language unless language.nil?
1383
+ command.query['fields'] = fields unless fields.nil?
1384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1385
+ command.query['userIp'] = user_ip unless user_ip.nil?
1386
+ execute_or_queue_command(command, &block)
1387
+ end
1388
+
1389
+ # Creates or updates a localized store listing.
1390
+ # @param [String] package_name
1391
+ # Unique identifier for the Android app that is being updated; for example, "com.
1392
+ # spiffygame".
1393
+ # @param [String] edit_id
1394
+ # Unique identifier for this edit.
1395
+ # @param [String] language
1396
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1397
+ # modify. For example, to select Austrian German, pass "de-AT".
1398
+ # @param [Google::Apis::AndroidpublisherV2::Listing] listing_object
1399
+ # @param [String] fields
1400
+ # Selector specifying which fields to include in a partial response.
1401
+ # @param [String] quota_user
1402
+ # Available to use for quota purposes for server-side applications. Can be any
1403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1404
+ # Overrides userIp if both are provided.
1405
+ # @param [String] user_ip
1406
+ # IP address of the site where the request originates. Use this if you want to
1407
+ # enforce per-user limits.
1408
+ # @param [Google::Apis::RequestOptions] options
1409
+ # Request-specific options
1410
+ #
1411
+ # @yield [result, err] Result & error if block supplied
1412
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Listing] parsed result object
1413
+ # @yieldparam err [StandardError] error object if request failed
1414
+ #
1415
+ # @return [Google::Apis::AndroidpublisherV2::Listing]
1416
+ #
1417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1420
+ def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1421
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options)
1422
+ command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1423
+ command.request_object = listing_object
1424
+ command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
1425
+ command.response_class = Google::Apis::AndroidpublisherV2::Listing
1426
+ command.params['packageName'] = package_name unless package_name.nil?
1427
+ command.params['editId'] = edit_id unless edit_id.nil?
1428
+ command.params['language'] = language unless language.nil?
1429
+ command.query['fields'] = fields unless fields.nil?
1430
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1431
+ command.query['userIp'] = user_ip unless user_ip.nil?
1432
+ execute_or_queue_command(command, &block)
1433
+ end
1434
+
1435
+ #
1436
+ # @param [String] package_name
1437
+ # Unique identifier for the Android app that is being updated; for example, "com.
1438
+ # spiffygame".
1439
+ # @param [String] edit_id
1440
+ # Unique identifier for this edit.
1441
+ # @param [String] track
1442
+ # @param [String] fields
1443
+ # Selector specifying which fields to include in a partial response.
1444
+ # @param [String] quota_user
1445
+ # Available to use for quota purposes for server-side applications. Can be any
1446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1447
+ # Overrides userIp if both are provided.
1448
+ # @param [String] user_ip
1449
+ # IP address of the site where the request originates. Use this if you want to
1450
+ # enforce per-user limits.
1451
+ # @param [Google::Apis::RequestOptions] options
1452
+ # Request-specific options
1453
+ #
1454
+ # @yield [result, err] Result & error if block supplied
1455
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Testers] parsed result object
1456
+ # @yieldparam err [StandardError] error object if request failed
1457
+ #
1458
+ # @return [Google::Apis::AndroidpublisherV2::Testers]
1459
+ #
1460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1463
+ def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1464
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options)
1465
+ command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1466
+ command.response_class = Google::Apis::AndroidpublisherV2::Testers
1467
+ command.params['packageName'] = package_name unless package_name.nil?
1468
+ command.params['editId'] = edit_id unless edit_id.nil?
1469
+ command.params['track'] = track unless track.nil?
1470
+ command.query['fields'] = fields unless fields.nil?
1471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1472
+ command.query['userIp'] = user_ip unless user_ip.nil?
1473
+ execute_or_queue_command(command, &block)
1474
+ end
1475
+
1476
+ #
1477
+ # @param [String] package_name
1478
+ # Unique identifier for the Android app that is being updated; for example, "com.
1479
+ # spiffygame".
1480
+ # @param [String] edit_id
1481
+ # Unique identifier for this edit.
1482
+ # @param [String] track
1483
+ # @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
1484
+ # @param [String] fields
1485
+ # Selector specifying which fields to include in a partial response.
1486
+ # @param [String] quota_user
1487
+ # Available to use for quota purposes for server-side applications. Can be any
1488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1489
+ # Overrides userIp if both are provided.
1490
+ # @param [String] user_ip
1491
+ # IP address of the site where the request originates. Use this if you want to
1492
+ # enforce per-user limits.
1493
+ # @param [Google::Apis::RequestOptions] options
1494
+ # Request-specific options
1495
+ #
1496
+ # @yield [result, err] Result & error if block supplied
1497
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Testers] parsed result object
1498
+ # @yieldparam err [StandardError] error object if request failed
1499
+ #
1500
+ # @return [Google::Apis::AndroidpublisherV2::Testers]
1501
+ #
1502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1505
+ def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1506
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options)
1507
+ command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1508
+ command.request_object = testers_object
1509
+ command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1510
+ command.response_class = Google::Apis::AndroidpublisherV2::Testers
1511
+ command.params['packageName'] = package_name unless package_name.nil?
1512
+ command.params['editId'] = edit_id unless edit_id.nil?
1513
+ command.params['track'] = track unless track.nil?
1514
+ command.query['fields'] = fields unless fields.nil?
1515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1516
+ command.query['userIp'] = user_ip unless user_ip.nil?
1517
+ execute_or_queue_command(command, &block)
1518
+ end
1519
+
1520
+ #
1521
+ # @param [String] package_name
1522
+ # Unique identifier for the Android app that is being updated; for example, "com.
1523
+ # spiffygame".
1524
+ # @param [String] edit_id
1525
+ # Unique identifier for this edit.
1526
+ # @param [String] track
1527
+ # @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
1528
+ # @param [String] fields
1529
+ # Selector specifying which fields to include in a partial response.
1530
+ # @param [String] quota_user
1531
+ # Available to use for quota purposes for server-side applications. Can be any
1532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1533
+ # Overrides userIp if both are provided.
1534
+ # @param [String] user_ip
1535
+ # IP address of the site where the request originates. Use this if you want to
1536
+ # enforce per-user limits.
1537
+ # @param [Google::Apis::RequestOptions] options
1538
+ # Request-specific options
1539
+ #
1540
+ # @yield [result, err] Result & error if block supplied
1541
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Testers] parsed result object
1542
+ # @yieldparam err [StandardError] error object if request failed
1543
+ #
1544
+ # @return [Google::Apis::AndroidpublisherV2::Testers]
1545
+ #
1546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1549
+ def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1550
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options)
1551
+ command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1552
+ command.request_object = testers_object
1553
+ command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
1554
+ command.response_class = Google::Apis::AndroidpublisherV2::Testers
1555
+ command.params['packageName'] = package_name unless package_name.nil?
1556
+ command.params['editId'] = edit_id unless edit_id.nil?
1557
+ command.params['track'] = track unless track.nil?
1558
+ command.query['fields'] = fields unless fields.nil?
1559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1560
+ command.query['userIp'] = user_ip unless user_ip.nil?
1561
+ execute_or_queue_command(command, &block)
1562
+ end
1563
+
1564
+ # Fetches the track configuration for the specified track type. Includes the APK
1565
+ # version codes that are in this track.
1566
+ # @param [String] package_name
1567
+ # Unique identifier for the Android app that is being updated; for example, "com.
1568
+ # spiffygame".
1569
+ # @param [String] edit_id
1570
+ # Unique identifier for this edit.
1571
+ # @param [String] track
1572
+ # The track type to read or modify.
1573
+ # @param [String] fields
1574
+ # Selector specifying which fields to include in a partial response.
1575
+ # @param [String] quota_user
1576
+ # Available to use for quota purposes for server-side applications. Can be any
1577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1578
+ # Overrides userIp if both are provided.
1579
+ # @param [String] user_ip
1580
+ # IP address of the site where the request originates. Use this if you want to
1581
+ # enforce per-user limits.
1582
+ # @param [Google::Apis::RequestOptions] options
1583
+ # Request-specific options
1584
+ #
1585
+ # @yield [result, err] Result & error if block supplied
1586
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Track] parsed result object
1587
+ # @yieldparam err [StandardError] error object if request failed
1588
+ #
1589
+ # @return [Google::Apis::AndroidpublisherV2::Track]
1590
+ #
1591
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1592
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1593
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1594
+ def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1595
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options)
1596
+ command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1597
+ command.response_class = Google::Apis::AndroidpublisherV2::Track
1598
+ command.params['packageName'] = package_name unless package_name.nil?
1599
+ command.params['editId'] = edit_id unless edit_id.nil?
1600
+ command.params['track'] = track unless track.nil?
1601
+ command.query['fields'] = fields unless fields.nil?
1602
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1603
+ command.query['userIp'] = user_ip unless user_ip.nil?
1604
+ execute_or_queue_command(command, &block)
1605
+ end
1606
+
1607
+ # Lists all the track configurations for this edit.
1608
+ # @param [String] package_name
1609
+ # Unique identifier for the Android app that is being updated; for example, "com.
1610
+ # spiffygame".
1611
+ # @param [String] edit_id
1612
+ # Unique identifier for this edit.
1613
+ # @param [String] fields
1614
+ # Selector specifying which fields to include in a partial response.
1615
+ # @param [String] quota_user
1616
+ # Available to use for quota purposes for server-side applications. Can be any
1617
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1618
+ # Overrides userIp if both are provided.
1619
+ # @param [String] user_ip
1620
+ # IP address of the site where the request originates. Use this if you want to
1621
+ # enforce per-user limits.
1622
+ # @param [Google::Apis::RequestOptions] options
1623
+ # Request-specific options
1624
+ #
1625
+ # @yield [result, err] Result & error if block supplied
1626
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListTracksResponse] parsed result object
1627
+ # @yieldparam err [StandardError] error object if request failed
1628
+ #
1629
+ # @return [Google::Apis::AndroidpublisherV2::ListTracksResponse]
1630
+ #
1631
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1632
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1633
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1634
+ def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1635
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options)
1636
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation
1637
+ command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse
1638
+ command.params['packageName'] = package_name unless package_name.nil?
1639
+ command.params['editId'] = edit_id unless edit_id.nil?
1640
+ command.query['fields'] = fields unless fields.nil?
1641
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1642
+ command.query['userIp'] = user_ip unless user_ip.nil?
1643
+ execute_or_queue_command(command, &block)
1644
+ end
1645
+
1646
+ # Updates the track configuration for the specified track type. When halted, the
1647
+ # rollout track cannot be updated without adding new APKs, and adding new APKs
1648
+ # will cause it to resume. This method supports patch semantics.
1649
+ # @param [String] package_name
1650
+ # Unique identifier for the Android app that is being updated; for example, "com.
1651
+ # spiffygame".
1652
+ # @param [String] edit_id
1653
+ # Unique identifier for this edit.
1654
+ # @param [String] track
1655
+ # The track type to read or modify.
1656
+ # @param [Google::Apis::AndroidpublisherV2::Track] track_object
1657
+ # @param [String] fields
1658
+ # Selector specifying which fields to include in a partial response.
1659
+ # @param [String] quota_user
1660
+ # Available to use for quota purposes for server-side applications. Can be any
1661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1662
+ # Overrides userIp if both are provided.
1663
+ # @param [String] user_ip
1664
+ # IP address of the site where the request originates. Use this if you want to
1665
+ # enforce per-user limits.
1666
+ # @param [Google::Apis::RequestOptions] options
1667
+ # Request-specific options
1668
+ #
1669
+ # @yield [result, err] Result & error if block supplied
1670
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Track] parsed result object
1671
+ # @yieldparam err [StandardError] error object if request failed
1672
+ #
1673
+ # @return [Google::Apis::AndroidpublisherV2::Track]
1674
+ #
1675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1678
+ def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1679
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options)
1680
+ command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1681
+ command.request_object = track_object
1682
+ command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1683
+ command.response_class = Google::Apis::AndroidpublisherV2::Track
1684
+ command.params['packageName'] = package_name unless package_name.nil?
1685
+ command.params['editId'] = edit_id unless edit_id.nil?
1686
+ command.params['track'] = track unless track.nil?
1687
+ command.query['fields'] = fields unless fields.nil?
1688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1689
+ command.query['userIp'] = user_ip unless user_ip.nil?
1690
+ execute_or_queue_command(command, &block)
1691
+ end
1692
+
1693
+ # Updates the track configuration for the specified track type. When halted, the
1694
+ # rollout track cannot be updated without adding new APKs, and adding new APKs
1695
+ # will cause it to resume.
1696
+ # @param [String] package_name
1697
+ # Unique identifier for the Android app that is being updated; for example, "com.
1698
+ # spiffygame".
1699
+ # @param [String] edit_id
1700
+ # Unique identifier for this edit.
1701
+ # @param [String] track
1702
+ # The track type to read or modify.
1703
+ # @param [Google::Apis::AndroidpublisherV2::Track] track_object
1704
+ # @param [String] fields
1705
+ # Selector specifying which fields to include in a partial response.
1706
+ # @param [String] quota_user
1707
+ # Available to use for quota purposes for server-side applications. Can be any
1708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1709
+ # Overrides userIp if both are provided.
1710
+ # @param [String] user_ip
1711
+ # IP address of the site where the request originates. Use this if you want to
1712
+ # enforce per-user limits.
1713
+ # @param [Google::Apis::RequestOptions] options
1714
+ # Request-specific options
1715
+ #
1716
+ # @yield [result, err] Result & error if block supplied
1717
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::Track] parsed result object
1718
+ # @yieldparam err [StandardError] error object if request failed
1719
+ #
1720
+ # @return [Google::Apis::AndroidpublisherV2::Track]
1721
+ #
1722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1725
+ def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1726
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options)
1727
+ command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1728
+ command.request_object = track_object
1729
+ command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
1730
+ command.response_class = Google::Apis::AndroidpublisherV2::Track
1731
+ command.params['packageName'] = package_name unless package_name.nil?
1732
+ command.params['editId'] = edit_id unless edit_id.nil?
1733
+ command.params['track'] = track unless track.nil?
1734
+ command.query['fields'] = fields unless fields.nil?
1735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1736
+ command.query['userIp'] = user_ip unless user_ip.nil?
1737
+ execute_or_queue_command(command, &block)
1738
+ end
1739
+
1740
+ # Lists the user's current inapp item or subscription entitlements
1741
+ # @param [String] package_name
1742
+ # The package name of the application the inapp product was sold in (for example,
1743
+ # 'com.some.thing').
1744
+ # @param [Fixnum] max_results
1745
+ # @param [String] product_id
1746
+ # The product id of the inapp product (for example, 'sku1'). This can be used to
1747
+ # restrict the result set.
1748
+ # @param [Fixnum] start_index
1749
+ # @param [String] token
1750
+ # @param [String] fields
1751
+ # Selector specifying which fields to include in a partial response.
1752
+ # @param [String] quota_user
1753
+ # Available to use for quota purposes for server-side applications. Can be any
1754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1755
+ # Overrides userIp if both are provided.
1756
+ # @param [String] user_ip
1757
+ # IP address of the site where the request originates. Use this if you want to
1758
+ # enforce per-user limits.
1759
+ # @param [Google::Apis::RequestOptions] options
1760
+ # Request-specific options
1761
+ #
1762
+ # @yield [result, err] Result & error if block supplied
1763
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse] parsed result object
1764
+ # @yieldparam err [StandardError] error object if request failed
1765
+ #
1766
+ # @return [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse]
1767
+ #
1768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1771
+ 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)
1772
+ command = make_simple_command(:get, '{packageName}/entitlements', options)
1773
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation
1774
+ command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse
1775
+ command.params['packageName'] = package_name unless package_name.nil?
1776
+ command.query['maxResults'] = max_results unless max_results.nil?
1777
+ command.query['productId'] = product_id unless product_id.nil?
1778
+ command.query['startIndex'] = start_index unless start_index.nil?
1779
+ command.query['token'] = token unless token.nil?
1780
+ command.query['fields'] = fields unless fields.nil?
1781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1782
+ command.query['userIp'] = user_ip unless user_ip.nil?
1783
+ execute_or_queue_command(command, &block)
1784
+ end
1785
+
1786
+ #
1787
+ # @param [Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest] in_app_products_batch_request_object
1788
+ # @param [String] fields
1789
+ # Selector specifying which fields to include in a partial response.
1790
+ # @param [String] quota_user
1791
+ # Available to use for quota purposes for server-side applications. Can be any
1792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1793
+ # Overrides userIp if both are provided.
1794
+ # @param [String] user_ip
1795
+ # IP address of the site where the request originates. Use this if you want to
1796
+ # enforce per-user limits.
1797
+ # @param [Google::Apis::RequestOptions] options
1798
+ # Request-specific options
1799
+ #
1800
+ # @yield [result, err] Result & error if block supplied
1801
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse] parsed result object
1802
+ # @yieldparam err [StandardError] error object if request failed
1803
+ #
1804
+ # @return [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse]
1805
+ #
1806
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1807
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1808
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1809
+ def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1810
+ command = make_simple_command(:post, 'inappproducts/batch', options)
1811
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
1812
+ command.request_object = in_app_products_batch_request_object
1813
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
1814
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse
1815
+ command.query['fields'] = fields unless fields.nil?
1816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1817
+ command.query['userIp'] = user_ip unless user_ip.nil?
1818
+ execute_or_queue_command(command, &block)
1819
+ end
1820
+
1821
+ # Delete an in-app product for an app.
1822
+ # @param [String] package_name
1823
+ # Unique identifier for the Android app with the in-app product; for example, "
1824
+ # com.spiffygame".
1825
+ # @param [String] sku
1826
+ # Unique identifier for the in-app product.
1827
+ # @param [String] fields
1828
+ # Selector specifying which fields to include in a partial response.
1829
+ # @param [String] quota_user
1830
+ # Available to use for quota purposes for server-side applications. Can be any
1831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1832
+ # Overrides userIp if both are provided.
1833
+ # @param [String] user_ip
1834
+ # IP address of the site where the request originates. Use this if you want to
1835
+ # enforce per-user limits.
1836
+ # @param [Google::Apis::RequestOptions] options
1837
+ # Request-specific options
1838
+ #
1839
+ # @yield [result, err] Result & error if block supplied
1840
+ # @yieldparam result [NilClass] No result returned for this method
1841
+ # @yieldparam err [StandardError] error object if request failed
1842
+ #
1843
+ # @return [void]
1844
+ #
1845
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1846
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1847
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1848
+ def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1849
+ command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options)
1850
+ command.params['packageName'] = package_name unless package_name.nil?
1851
+ command.params['sku'] = sku unless sku.nil?
1852
+ command.query['fields'] = fields unless fields.nil?
1853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1854
+ command.query['userIp'] = user_ip unless user_ip.nil?
1855
+ execute_or_queue_command(command, &block)
1856
+ end
1857
+
1858
+ # Returns information about the in-app product specified.
1859
+ # @param [String] package_name
1860
+ # @param [String] sku
1861
+ # Unique identifier for the in-app product.
1862
+ # @param [String] fields
1863
+ # Selector specifying which fields to include in a partial response.
1864
+ # @param [String] quota_user
1865
+ # Available to use for quota purposes for server-side applications. Can be any
1866
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1867
+ # Overrides userIp if both are provided.
1868
+ # @param [String] user_ip
1869
+ # IP address of the site where the request originates. Use this if you want to
1870
+ # enforce per-user limits.
1871
+ # @param [Google::Apis::RequestOptions] options
1872
+ # Request-specific options
1873
+ #
1874
+ # @yield [result, err] Result & error if block supplied
1875
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
1876
+ # @yieldparam err [StandardError] error object if request failed
1877
+ #
1878
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1879
+ #
1880
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1881
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1882
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1883
+ def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1884
+ command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options)
1885
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
1886
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
1887
+ command.params['packageName'] = package_name unless package_name.nil?
1888
+ command.params['sku'] = sku unless sku.nil?
1889
+ command.query['fields'] = fields unless fields.nil?
1890
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1891
+ command.query['userIp'] = user_ip unless user_ip.nil?
1892
+ execute_or_queue_command(command, &block)
1893
+ end
1894
+
1895
+ # Creates a new in-app product for an app.
1896
+ # @param [String] package_name
1897
+ # Unique identifier for the Android app; for example, "com.spiffygame".
1898
+ # @param [Google::Apis::AndroidpublisherV2::InAppProduct] in_app_product_object
1899
+ # @param [Boolean] auto_convert_missing_prices
1900
+ # If true the prices for all regions targeted by the parent app that don't have
1901
+ # a price specified for this in-app product will be auto converted to the target
1902
+ # currency based on the default price. Defaults to false.
1903
+ # @param [String] fields
1904
+ # Selector specifying which fields to include in a partial response.
1905
+ # @param [String] quota_user
1906
+ # Available to use for quota purposes for server-side applications. Can be any
1907
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1908
+ # Overrides userIp if both are provided.
1909
+ # @param [String] user_ip
1910
+ # IP address of the site where the request originates. Use this if you want to
1911
+ # enforce per-user limits.
1912
+ # @param [Google::Apis::RequestOptions] options
1913
+ # Request-specific options
1914
+ #
1915
+ # @yield [result, err] Result & error if block supplied
1916
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
1917
+ # @yieldparam err [StandardError] error object if request failed
1918
+ #
1919
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1920
+ #
1921
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1922
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1923
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1924
+ 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)
1925
+ command = make_simple_command(:post, '{packageName}/inappproducts', options)
1926
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
1927
+ command.request_object = in_app_product_object
1928
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
1929
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
1930
+ command.params['packageName'] = package_name unless package_name.nil?
1931
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1932
+ command.query['fields'] = fields unless fields.nil?
1933
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1934
+ command.query['userIp'] = user_ip unless user_ip.nil?
1935
+ execute_or_queue_command(command, &block)
1936
+ end
1937
+
1938
+ # List all the in-app products for an Android app, both subscriptions and
1939
+ # managed in-app products..
1940
+ # @param [String] package_name
1941
+ # Unique identifier for the Android app with in-app products; for example, "com.
1942
+ # spiffygame".
1943
+ # @param [Fixnum] max_results
1944
+ # @param [Fixnum] start_index
1945
+ # @param [String] token
1946
+ # @param [String] fields
1947
+ # Selector specifying which fields to include in a partial response.
1948
+ # @param [String] quota_user
1949
+ # Available to use for quota purposes for server-side applications. Can be any
1950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1951
+ # Overrides userIp if both are provided.
1952
+ # @param [String] user_ip
1953
+ # IP address of the site where the request originates. Use this if you want to
1954
+ # enforce per-user limits.
1955
+ # @param [Google::Apis::RequestOptions] options
1956
+ # Request-specific options
1957
+ #
1958
+ # @yield [result, err] Result & error if block supplied
1959
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse] parsed result object
1960
+ # @yieldparam err [StandardError] error object if request failed
1961
+ #
1962
+ # @return [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse]
1963
+ #
1964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1967
+ 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)
1968
+ command = make_simple_command(:get, '{packageName}/inappproducts', options)
1969
+ command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation
1970
+ command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse
1971
+ command.params['packageName'] = package_name unless package_name.nil?
1972
+ command.query['maxResults'] = max_results unless max_results.nil?
1973
+ command.query['startIndex'] = start_index unless start_index.nil?
1974
+ command.query['token'] = token unless token.nil?
1975
+ command.query['fields'] = fields unless fields.nil?
1976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1977
+ command.query['userIp'] = user_ip unless user_ip.nil?
1978
+ execute_or_queue_command(command, &block)
1979
+ end
1980
+
1981
+ # Updates the details of an in-app product. This method supports patch semantics.
1982
+ # @param [String] package_name
1983
+ # Unique identifier for the Android app with the in-app product; for example, "
1984
+ # com.spiffygame".
1985
+ # @param [String] sku
1986
+ # Unique identifier for the in-app product.
1987
+ # @param [Google::Apis::AndroidpublisherV2::InAppProduct] in_app_product_object
1988
+ # @param [Boolean] auto_convert_missing_prices
1989
+ # If true the prices for all regions targeted by the parent app that don't have
1990
+ # a price specified for this in-app product will be auto converted to the target
1991
+ # currency based on the default price. Defaults to false.
1992
+ # @param [String] fields
1993
+ # Selector specifying which fields to include in a partial response.
1994
+ # @param [String] quota_user
1995
+ # Available to use for quota purposes for server-side applications. Can be any
1996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1997
+ # Overrides userIp if both are provided.
1998
+ # @param [String] user_ip
1999
+ # IP address of the site where the request originates. Use this if you want to
2000
+ # enforce per-user limits.
2001
+ # @param [Google::Apis::RequestOptions] options
2002
+ # Request-specific options
2003
+ #
2004
+ # @yield [result, err] Result & error if block supplied
2005
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
2006
+ # @yieldparam err [StandardError] error object if request failed
2007
+ #
2008
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
2009
+ #
2010
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2011
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2012
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2013
+ 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)
2014
+ command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options)
2015
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2016
+ command.request_object = in_app_product_object
2017
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2018
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
2019
+ command.params['packageName'] = package_name unless package_name.nil?
2020
+ command.params['sku'] = sku unless sku.nil?
2021
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2022
+ command.query['fields'] = fields unless fields.nil?
2023
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2024
+ command.query['userIp'] = user_ip unless user_ip.nil?
2025
+ execute_or_queue_command(command, &block)
2026
+ end
2027
+
2028
+ # Updates the details of an in-app product.
2029
+ # @param [String] package_name
2030
+ # Unique identifier for the Android app with the in-app product; for example, "
2031
+ # com.spiffygame".
2032
+ # @param [String] sku
2033
+ # Unique identifier for the in-app product.
2034
+ # @param [Google::Apis::AndroidpublisherV2::InAppProduct] in_app_product_object
2035
+ # @param [Boolean] auto_convert_missing_prices
2036
+ # If true the prices for all regions targeted by the parent app that don't have
2037
+ # a price specified for this in-app product will be auto converted to the target
2038
+ # currency based on the default price. Defaults to false.
2039
+ # @param [String] fields
2040
+ # Selector specifying which fields to include in a partial response.
2041
+ # @param [String] quota_user
2042
+ # Available to use for quota purposes for server-side applications. Can be any
2043
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2044
+ # Overrides userIp if both are provided.
2045
+ # @param [String] user_ip
2046
+ # IP address of the site where the request originates. Use this if you want to
2047
+ # enforce per-user limits.
2048
+ # @param [Google::Apis::RequestOptions] options
2049
+ # Request-specific options
2050
+ #
2051
+ # @yield [result, err] Result & error if block supplied
2052
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProduct] parsed result object
2053
+ # @yieldparam err [StandardError] error object if request failed
2054
+ #
2055
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
2056
+ #
2057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2060
+ 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)
2061
+ command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options)
2062
+ command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2063
+ command.request_object = in_app_product_object
2064
+ command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
2065
+ command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
2066
+ command.params['packageName'] = package_name unless package_name.nil?
2067
+ command.params['sku'] = sku unless sku.nil?
2068
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2069
+ command.query['fields'] = fields unless fields.nil?
2070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2071
+ command.query['userIp'] = user_ip unless user_ip.nil?
2072
+ execute_or_queue_command(command, &block)
2073
+ end
2074
+
2075
+ # Checks the purchase and consumption status of an inapp item.
2076
+ # @param [String] package_name
2077
+ # The package name of the application the inapp product was sold in (for example,
2078
+ # 'com.some.thing').
2079
+ # @param [String] product_id
2080
+ # The inapp product SKU (for example, 'com.some.thing.inapp1').
2081
+ # @param [String] token
2082
+ # The token provided to the user's device when the inapp product was purchased.
2083
+ # @param [String] fields
2084
+ # Selector specifying which fields to include in a partial response.
2085
+ # @param [String] quota_user
2086
+ # Available to use for quota purposes for server-side applications. Can be any
2087
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2088
+ # Overrides userIp if both are provided.
2089
+ # @param [String] user_ip
2090
+ # IP address of the site where the request originates. Use this if you want to
2091
+ # enforce per-user limits.
2092
+ # @param [Google::Apis::RequestOptions] options
2093
+ # Request-specific options
2094
+ #
2095
+ # @yield [result, err] Result & error if block supplied
2096
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::ProductPurchase] parsed result object
2097
+ # @yieldparam err [StandardError] error object if request failed
2098
+ #
2099
+ # @return [Google::Apis::AndroidpublisherV2::ProductPurchase]
2100
+ #
2101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2104
+ def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2105
+ command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options)
2106
+ command.response_representation = Google::Apis::AndroidpublisherV2::ProductPurchase::Representation
2107
+ command.response_class = Google::Apis::AndroidpublisherV2::ProductPurchase
2108
+ command.params['packageName'] = package_name unless package_name.nil?
2109
+ command.params['productId'] = product_id unless product_id.nil?
2110
+ command.params['token'] = token unless token.nil?
2111
+ command.query['fields'] = fields unless fields.nil?
2112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2113
+ command.query['userIp'] = user_ip unless user_ip.nil?
2114
+ execute_or_queue_command(command, &block)
2115
+ end
2116
+
2117
+ # Cancels a user's subscription purchase. The subscription remains valid until
2118
+ # its expiration time.
2119
+ # @param [String] package_name
2120
+ # The package name of the application for which this subscription was purchased (
2121
+ # for example, 'com.some.thing').
2122
+ # @param [String] subscription_id
2123
+ # The purchased subscription ID (for example, 'monthly001').
2124
+ # @param [String] token
2125
+ # The token provided to the user's device when the subscription was purchased.
2126
+ # @param [String] fields
2127
+ # Selector specifying which fields to include in a partial response.
2128
+ # @param [String] quota_user
2129
+ # Available to use for quota purposes for server-side applications. Can be any
2130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2131
+ # Overrides userIp if both are provided.
2132
+ # @param [String] user_ip
2133
+ # IP address of the site where the request originates. Use this if you want to
2134
+ # enforce per-user limits.
2135
+ # @param [Google::Apis::RequestOptions] options
2136
+ # Request-specific options
2137
+ #
2138
+ # @yield [result, err] Result & error if block supplied
2139
+ # @yieldparam result [NilClass] No result returned for this method
2140
+ # @yieldparam err [StandardError] error object if request failed
2141
+ #
2142
+ # @return [void]
2143
+ #
2144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2147
+ def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2148
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options)
2149
+ command.params['packageName'] = package_name unless package_name.nil?
2150
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2151
+ command.params['token'] = token unless token.nil?
2152
+ command.query['fields'] = fields unless fields.nil?
2153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2154
+ command.query['userIp'] = user_ip unless user_ip.nil?
2155
+ execute_or_queue_command(command, &block)
2156
+ end
2157
+
2158
+ # Defers a user's subscription purchase until a specified future expiration time.
2159
+ # @param [String] package_name
2160
+ # The package name of the application for which this subscription was purchased (
2161
+ # for example, 'com.some.thing').
2162
+ # @param [String] subscription_id
2163
+ # The purchased subscription ID (for example, 'monthly001').
2164
+ # @param [String] token
2165
+ # The token provided to the user's device when the subscription was purchased.
2166
+ # @param [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest] defer_subscription_purchases_request_object
2167
+ # @param [String] fields
2168
+ # Selector specifying which fields to include in a partial response.
2169
+ # @param [String] quota_user
2170
+ # Available to use for quota purposes for server-side applications. Can be any
2171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2172
+ # Overrides userIp if both are provided.
2173
+ # @param [String] user_ip
2174
+ # IP address of the site where the request originates. Use this if you want to
2175
+ # enforce per-user limits.
2176
+ # @param [Google::Apis::RequestOptions] options
2177
+ # Request-specific options
2178
+ #
2179
+ # @yield [result, err] Result & error if block supplied
2180
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse] parsed result object
2181
+ # @yieldparam err [StandardError] error object if request failed
2182
+ #
2183
+ # @return [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse]
2184
+ #
2185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2188
+ 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)
2189
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
2190
+ command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation
2191
+ command.request_object = defer_subscription_purchases_request_object
2192
+ command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation
2193
+ command.response_class = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse
2194
+ command.params['packageName'] = package_name unless package_name.nil?
2195
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2196
+ command.params['token'] = token unless token.nil?
2197
+ command.query['fields'] = fields unless fields.nil?
2198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2199
+ command.query['userIp'] = user_ip unless user_ip.nil?
2200
+ execute_or_queue_command(command, &block)
2201
+ end
2202
+
2203
+ # Checks whether a user's subscription purchase is valid and returns its expiry
2204
+ # time.
2205
+ # @param [String] package_name
2206
+ # The package name of the application for which this subscription was purchased (
2207
+ # for example, 'com.some.thing').
2208
+ # @param [String] subscription_id
2209
+ # The purchased subscription ID (for example, 'monthly001').
2210
+ # @param [String] token
2211
+ # The token provided to the user's device when the subscription was purchased.
2212
+ # @param [String] fields
2213
+ # Selector specifying which fields to include in a partial response.
2214
+ # @param [String] quota_user
2215
+ # Available to use for quota purposes for server-side applications. Can be any
2216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2217
+ # Overrides userIp if both are provided.
2218
+ # @param [String] user_ip
2219
+ # IP address of the site where the request originates. Use this if you want to
2220
+ # enforce per-user limits.
2221
+ # @param [Google::Apis::RequestOptions] options
2222
+ # Request-specific options
2223
+ #
2224
+ # @yield [result, err] Result & error if block supplied
2225
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::SubscriptionPurchase] parsed result object
2226
+ # @yieldparam err [StandardError] error object if request failed
2227
+ #
2228
+ # @return [Google::Apis::AndroidpublisherV2::SubscriptionPurchase]
2229
+ #
2230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2233
+ def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2234
+ command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options)
2235
+ command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchase::Representation
2236
+ command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchase
2237
+ command.params['packageName'] = package_name unless package_name.nil?
2238
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2239
+ command.params['token'] = token unless token.nil?
2240
+ command.query['fields'] = fields unless fields.nil?
2241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2242
+ command.query['userIp'] = user_ip unless user_ip.nil?
2243
+ execute_or_queue_command(command, &block)
2244
+ end
2245
+
2246
+ # Refunds a user's subscription purchase, but the subscription remains valid
2247
+ # until its expiration time and it will continue to recur.
2248
+ # @param [String] package_name
2249
+ # The package name of the application for which this subscription was purchased (
2250
+ # for example, 'com.some.thing').
2251
+ # @param [String] subscription_id
2252
+ # The purchased subscription ID (for example, 'monthly001').
2253
+ # @param [String] token
2254
+ # The token provided to the user's device when the subscription was purchased.
2255
+ # @param [String] fields
2256
+ # Selector specifying which fields to include in a partial response.
2257
+ # @param [String] quota_user
2258
+ # Available to use for quota purposes for server-side applications. Can be any
2259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2260
+ # Overrides userIp if both are provided.
2261
+ # @param [String] user_ip
2262
+ # IP address of the site where the request originates. Use this if you want to
2263
+ # enforce per-user limits.
2264
+ # @param [Google::Apis::RequestOptions] options
2265
+ # Request-specific options
2266
+ #
2267
+ # @yield [result, err] Result & error if block supplied
2268
+ # @yieldparam result [NilClass] No result returned for this method
2269
+ # @yieldparam err [StandardError] error object if request failed
2270
+ #
2271
+ # @return [void]
2272
+ #
2273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2276
+ def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2277
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options)
2278
+ command.params['packageName'] = package_name unless package_name.nil?
2279
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2280
+ command.params['token'] = token unless token.nil?
2281
+ command.query['fields'] = fields unless fields.nil?
2282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2283
+ command.query['userIp'] = user_ip unless user_ip.nil?
2284
+ execute_or_queue_command(command, &block)
2285
+ end
2286
+
2287
+ # Refunds and immediately revokes a user's subscription purchase. Access to the
2288
+ # subscription will be terminated immediately and it will stop recurring.
2289
+ # @param [String] package_name
2290
+ # The package name of the application for which this subscription was purchased (
2291
+ # for example, 'com.some.thing').
2292
+ # @param [String] subscription_id
2293
+ # The purchased subscription ID (for example, 'monthly001').
2294
+ # @param [String] token
2295
+ # The token provided to the user's device when the subscription was purchased.
2296
+ # @param [String] fields
2297
+ # Selector specifying which fields to include in a partial response.
2298
+ # @param [String] quota_user
2299
+ # Available to use for quota purposes for server-side applications. Can be any
2300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2301
+ # Overrides userIp if both are provided.
2302
+ # @param [String] user_ip
2303
+ # IP address of the site where the request originates. Use this if you want to
2304
+ # enforce per-user limits.
2305
+ # @param [Google::Apis::RequestOptions] options
2306
+ # Request-specific options
2307
+ #
2308
+ # @yield [result, err] Result & error if block supplied
2309
+ # @yieldparam result [NilClass] No result returned for this method
2310
+ # @yieldparam err [StandardError] error object if request failed
2311
+ #
2312
+ # @return [void]
2313
+ #
2314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2317
+ def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2318
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options)
2319
+ command.params['packageName'] = package_name unless package_name.nil?
2320
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2321
+ command.params['token'] = token unless token.nil?
2322
+ command.query['fields'] = fields unless fields.nil?
2323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2324
+ command.query['userIp'] = user_ip unless user_ip.nil?
2325
+ execute_or_queue_command(command, &block)
2326
+ end
2327
+
2328
+ protected
2329
+
2330
+ def apply_command_defaults(command)
2331
+ command.query['key'] = key unless key.nil?
2332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2333
+ command.query['userIp'] = user_ip unless user_ip.nil?
2334
+ end
2335
+ end
2336
+ end
2337
+ end
2338
+ end