google-api-client 0.8.7 → 0.9.pre1

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