google-api-client 0.20.1 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +190 -0
  3. data/README.md +3 -12
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  10. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
  12. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
  15. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  16. data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
  17. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  18. data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
  19. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  20. data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
  21. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  22. data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
  23. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
  25. data/generated/google/apis/admin_directory_v1.rb +3 -3
  26. data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +363 -577
  29. data/generated/google/apis/admin_reports_v1.rb +1 -1
  30. data/generated/google/apis/admin_reports_v1/service.rb +21 -35
  31. data/generated/google/apis/adsense_v1_4.rb +1 -1
  32. data/generated/google/apis/adsense_v1_4/service.rb +117 -195
  33. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  34. data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
  35. data/generated/google/apis/analytics_v2_4.rb +1 -1
  36. data/generated/google/apis/analytics_v2_4/service.rb +21 -35
  37. data/generated/google/apis/analytics_v3.rb +4 -1
  38. data/generated/google/apis/analytics_v3/classes.rb +119 -60
  39. data/generated/google/apis/analytics_v3/representations.rb +43 -12
  40. data/generated/google/apis/analytics_v3/service.rb +294 -435
  41. data/generated/google/apis/analyticsreporting_v4.rb +2 -2
  42. data/generated/google/apis/analyticsreporting_v4/classes.rb +1 -1
  43. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  44. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  45. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +10 -1
  46. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +1 -0
  47. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
  49. data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
  50. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  51. data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
  52. data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
  53. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  54. data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
  55. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  56. data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
  57. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  58. data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
  59. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
  60. data/generated/google/apis/androidpublisher_v2/service.rb +297 -286
  61. data/generated/google/apis/androidpublisher_v3.rb +34 -0
  62. data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
  63. data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
  64. data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
  65. data/generated/google/apis/appengine_v1.rb +1 -1
  66. data/generated/google/apis/appengine_v1/classes.rb +11 -4
  67. data/generated/google/apis/appengine_v1/service.rb +28 -19
  68. data/generated/google/apis/appengine_v1beta.rb +1 -1
  69. data/generated/google/apis/appengine_v1beta/classes.rb +11 -7
  70. data/generated/google/apis/appengine_v1beta/service.rb +28 -19
  71. data/generated/google/apis/appsactivity_v1.rb +1 -1
  72. data/generated/google/apis/appsactivity_v1/service.rb +6 -10
  73. data/generated/google/apis/appsmarket_v2/service.rb +12 -20
  74. data/generated/google/apis/appstate_v1.rb +1 -1
  75. data/generated/google/apis/appstate_v1/service.rb +18 -30
  76. data/generated/google/apis/bigquery_v2.rb +1 -1
  77. data/generated/google/apis/bigquery_v2/classes.rb +76 -15
  78. data/generated/google/apis/bigquery_v2/representations.rb +22 -0
  79. data/generated/google/apis/bigquery_v2/service.rb +69 -115
  80. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  81. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
  82. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
  83. data/generated/google/apis/blogger_v2/service.rb +30 -50
  84. data/generated/google/apis/blogger_v3/service.rb +102 -170
  85. data/generated/google/apis/books_v1.rb +1 -1
  86. data/generated/google/apis/books_v1/service.rb +156 -260
  87. data/generated/google/apis/calendar_v3.rb +1 -1
  88. data/generated/google/apis/calendar_v3/service.rb +114 -190
  89. data/generated/google/apis/chat_v1.rb +1 -1
  90. data/generated/google/apis/chat_v1/classes.rb +6 -0
  91. data/generated/google/apis/chat_v1/representations.rb +1 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +18 -30
  93. data/generated/google/apis/classroom_v1.rb +1 -1
  94. data/generated/google/apis/classroom_v1/classes.rb +0 -69
  95. data/generated/google/apis/classroom_v1/representations.rb +0 -31
  96. data/generated/google/apis/classroom_v1/service.rb +0 -88
  97. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  98. data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
  99. data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
  100. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  101. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -1
  102. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  103. data/generated/google/apis/cloudfunctions_v1.rb +3 -4
  104. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  105. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  106. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
  107. data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
  108. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
  109. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
  110. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
  111. data/generated/google/apis/cloudiot_v1.rb +1 -1
  112. data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
  113. data/generated/google/apis/cloudiot_v1/service.rb +387 -0
  114. data/generated/google/apis/cloudkms_v1.rb +2 -2
  115. data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
  116. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  117. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +31 -9
  119. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
  120. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  121. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
  122. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  123. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
  124. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  125. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
  126. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  127. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
  128. data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
  129. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  130. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  131. data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
  132. data/generated/google/apis/composer_v1beta1/classes.rb +640 -0
  133. data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
  134. data/generated/google/apis/composer_v1beta1/service.rb +462 -0
  135. data/generated/google/apis/compute_alpha.rb +1 -1
  136. data/generated/google/apis/compute_alpha/classes.rb +4279 -1869
  137. data/generated/google/apis/compute_alpha/representations.rb +1366 -346
  138. data/generated/google/apis/compute_alpha/service.rb +4754 -4134
  139. data/generated/google/apis/compute_beta.rb +1 -1
  140. data/generated/google/apis/compute_beta/classes.rb +211 -55
  141. data/generated/google/apis/compute_beta/representations.rb +41 -0
  142. data/generated/google/apis/compute_beta/service.rb +1273 -2082
  143. data/generated/google/apis/compute_v1.rb +1 -1
  144. data/generated/google/apis/compute_v1/classes.rb +245 -44
  145. data/generated/google/apis/compute_v1/representations.rb +81 -0
  146. data/generated/google/apis/compute_v1/service.rb +1567 -1668
  147. data/generated/google/apis/container_v1.rb +2 -2
  148. data/generated/google/apis/container_v1/classes.rb +20 -15
  149. data/generated/google/apis/container_v1/representations.rb +1 -0
  150. data/generated/google/apis/container_v1/service.rb +51 -49
  151. data/generated/google/apis/container_v1beta1.rb +2 -2
  152. data/generated/google/apis/container_v1beta1/classes.rb +193 -14
  153. data/generated/google/apis/container_v1beta1/representations.rb +78 -0
  154. data/generated/google/apis/container_v1beta1/service.rb +129 -49
  155. data/generated/google/apis/content_v2.rb +1 -1
  156. data/generated/google/apis/content_v2/classes.rb +173 -8
  157. data/generated/google/apis/content_v2/representations.rb +71 -0
  158. data/generated/google/apis/content_v2/service.rb +246 -410
  159. data/generated/google/apis/content_v2sandbox.rb +1 -1
  160. data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
  161. data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
  162. data/generated/google/apis/content_v2sandbox/service.rb +63 -105
  163. data/generated/google/apis/customsearch_v1.rb +1 -1
  164. data/generated/google/apis/customsearch_v1/service.rb +9 -15
  165. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  166. data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
  167. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  168. data/generated/google/apis/dataproc_v1.rb +2 -2
  169. data/generated/google/apis/dataproc_v1/classes.rb +6 -6
  170. data/generated/google/apis/dataproc_v1/service.rb +1 -1
  171. data/generated/google/apis/dataproc_v1beta2.rb +2 -2
  172. data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
  173. data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
  174. data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
  175. data/generated/google/apis/datastore_v1.rb +2 -2
  176. data/generated/google/apis/datastore_v1/service.rb +1 -1
  177. data/generated/google/apis/datastore_v1beta1.rb +2 -2
  178. data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
  179. data/generated/google/apis/datastore_v1beta3.rb +2 -2
  180. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  181. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  182. data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
  183. data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
  184. data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
  185. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  186. data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
  187. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
  188. data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
  189. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  190. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
  191. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
  192. data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
  193. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  194. data/generated/google/apis/dfareporting_v2_8/classes.rb +5 -5
  195. data/generated/google/apis/dfareporting_v2_8/service.rb +622 -1031
  196. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  197. data/generated/google/apis/dfareporting_v3_0/classes.rb +5 -5
  198. data/generated/google/apis/dfareporting_v3_0/service.rb +619 -1026
  199. data/generated/google/apis/dfareporting_v3_1.rb +40 -0
  200. data/generated/google/apis/dfareporting_v3_1/classes.rb +12256 -0
  201. data/generated/google/apis/dfareporting_v3_1/representations.rb +4389 -0
  202. data/generated/google/apis/dfareporting_v3_1/service.rb +8790 -0
  203. data/generated/google/apis/dialogflow_v2.rb +1 -1
  204. data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
  205. data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
  206. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  207. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
  208. data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
  209. data/generated/google/apis/discovery_v1/service.rb +9 -15
  210. data/generated/google/apis/dlp_v2.rb +1 -1
  211. data/generated/google/apis/dlp_v2/classes.rb +136 -1572
  212. data/generated/google/apis/dlp_v2/representations.rb +676 -1405
  213. data/generated/google/apis/dlp_v2/service.rb +24 -24
  214. data/generated/google/apis/dns_v1.rb +1 -1
  215. data/generated/google/apis/dns_v1/classes.rb +7 -0
  216. data/generated/google/apis/dns_v1/representations.rb +1 -0
  217. data/generated/google/apis/dns_v1/service.rb +49 -81
  218. data/generated/google/apis/dns_v1beta2.rb +1 -1
  219. data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
  220. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  221. data/generated/google/apis/dns_v1beta2/service.rb +49 -81
  222. data/generated/google/apis/dns_v2beta1.rb +1 -1
  223. data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
  224. data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
  225. data/generated/google/apis/dns_v2beta1/service.rb +49 -81
  226. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
  227. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  228. data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
  229. data/generated/google/apis/drive_v2.rb +1 -1
  230. data/generated/google/apis/drive_v2/service.rb +205 -341
  231. data/generated/google/apis/drive_v3.rb +1 -1
  232. data/generated/google/apis/drive_v3/service.rb +120 -200
  233. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  234. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  235. data/generated/google/apis/firestore_v1beta1.rb +2 -2
  236. data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
  237. data/generated/google/apis/fitness_v1/service.rb +45 -75
  238. data/generated/google/apis/fusiontables_v1.rb +1 -1
  239. data/generated/google/apis/fusiontables_v1/service.rb +99 -165
  240. data/generated/google/apis/fusiontables_v2/service.rb +105 -175
  241. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  242. data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
  243. data/generated/google/apis/games_management_v1management.rb +1 -1
  244. data/generated/google/apis/games_management_v1management/service.rb +84 -140
  245. data/generated/google/apis/games_v1.rb +1 -1
  246. data/generated/google/apis/games_v1/service.rb +162 -270
  247. data/generated/google/apis/genomics_v1.rb +1 -1
  248. data/generated/google/apis/genomics_v1/classes.rb +41 -7
  249. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  250. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  251. data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
  252. data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
  253. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  254. data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
  255. data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
  256. data/generated/google/apis/gmail_v1/service.rb +189 -315
  257. data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
  258. data/generated/google/apis/groupssettings_v1/service.rb +12 -20
  259. data/generated/google/apis/iam_v1.rb +2 -2
  260. data/generated/google/apis/iam_v1/classes.rb +29 -7
  261. data/generated/google/apis/iam_v1/service.rb +1 -1
  262. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  263. data/generated/google/apis/identitytoolkit_v3/classes.rb +56 -0
  264. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  265. data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
  266. data/generated/google/apis/jobs_v2.rb +38 -0
  267. data/generated/google/apis/jobs_v2/classes.rb +3374 -0
  268. data/generated/google/apis/jobs_v2/representations.rb +1067 -0
  269. data/generated/google/apis/jobs_v2/service.rb +753 -0
  270. data/generated/google/apis/language_v1.rb +1 -1
  271. data/generated/google/apis/language_v1/classes.rb +1 -0
  272. data/generated/google/apis/language_v1beta1.rb +1 -1
  273. data/generated/google/apis/language_v1beta1/classes.rb +1 -0
  274. data/generated/google/apis/language_v1beta2.rb +1 -1
  275. data/generated/google/apis/language_v1beta2/classes.rb +1 -0
  276. data/generated/google/apis/licensing_v1/service.rb +24 -40
  277. data/generated/google/apis/logging_v2.rb +1 -1
  278. data/generated/google/apis/logging_v2/classes.rb +55 -5
  279. data/generated/google/apis/logging_v2/representations.rb +16 -0
  280. data/generated/google/apis/logging_v2/service.rb +6 -4
  281. data/generated/google/apis/logging_v2beta1.rb +1 -1
  282. data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
  283. data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
  284. data/generated/google/apis/logging_v2beta1/service.rb +6 -4
  285. data/generated/google/apis/mirror_v1.rb +1 -1
  286. data/generated/google/apis/mirror_v1/service.rb +75 -125
  287. data/generated/google/apis/ml_v1.rb +1 -1
  288. data/generated/google/apis/ml_v1/classes.rb +65 -28
  289. data/generated/google/apis/ml_v1/representations.rb +1 -0
  290. data/generated/google/apis/ml_v1/service.rb +2 -2
  291. data/generated/google/apis/monitoring_v3.rb +1 -1
  292. data/generated/google/apis/monitoring_v3/classes.rb +7 -7
  293. data/generated/google/apis/oauth2_v1.rb +1 -1
  294. data/generated/google/apis/oauth2_v1/service.rb +27 -45
  295. data/generated/google/apis/oauth2_v2.rb +1 -1
  296. data/generated/google/apis/oauth2_v2/service.rb +15 -25
  297. data/generated/google/apis/oslogin_v1.rb +1 -1
  298. data/generated/google/apis/oslogin_v1/classes.rb +6 -0
  299. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  300. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  301. data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
  302. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  303. data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
  304. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  305. data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
  306. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  307. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  308. data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
  309. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  310. data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
  311. data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
  312. data/generated/google/apis/partners_v2.rb +1 -1
  313. data/generated/google/apis/partners_v2/classes.rb +7 -0
  314. data/generated/google/apis/partners_v2/representations.rb +1 -0
  315. data/generated/google/apis/people_v1.rb +1 -1
  316. data/generated/google/apis/people_v1/service.rb +4 -0
  317. data/generated/google/apis/photoslibrary_v1.rb +49 -0
  318. data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
  319. data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
  320. data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
  321. data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
  322. data/generated/google/apis/plus_domains_v1.rb +1 -1
  323. data/generated/google/apis/plus_domains_v1/service.rb +63 -105
  324. data/generated/google/apis/plus_v1.rb +1 -1
  325. data/generated/google/apis/plus_v1/service.rb +30 -50
  326. data/generated/google/apis/pubsub_v1.rb +2 -2
  327. data/generated/google/apis/pubsub_v1/classes.rb +29 -7
  328. data/generated/google/apis/pubsub_v1/service.rb +1 -1
  329. data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
  330. data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
  331. data/generated/google/apis/pubsub_v1beta2.rb +2 -2
  332. data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
  333. data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
  334. data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
  335. data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
  336. data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
  337. data/generated/google/apis/redis_v1beta1/service.rb +426 -0
  338. data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
  339. data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
  340. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
  341. data/generated/google/apis/reseller_v1/service.rb +54 -90
  342. data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
  343. data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
  344. data/generated/google/apis/runtimeconfig_v1.rb +2 -2
  345. data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
  346. data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
  347. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +29 -7
  348. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  349. data/generated/google/apis/script_v1.rb +8 -2
  350. data/generated/google/apis/script_v1/classes.rb +3 -3
  351. data/generated/google/apis/script_v1/service.rb +8 -2
  352. data/generated/google/apis/servicebroker_v1.rb +36 -0
  353. data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
  354. data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
  355. data/generated/google/apis/servicebroker_v1/service.rb +168 -0
  356. data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
  357. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
  358. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
  359. data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
  360. data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
  361. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
  362. data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
  363. data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
  364. data/generated/google/apis/servicecontrol_v1.rb +2 -2
  365. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  366. data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
  367. data/generated/google/apis/servicemanagement_v1.rb +2 -2
  368. data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
  369. data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
  370. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  371. data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
  372. data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
  373. data/generated/google/apis/sheets_v4.rb +1 -1
  374. data/generated/google/apis/sheets_v4/classes.rb +421 -0
  375. data/generated/google/apis/sheets_v4/representations.rb +120 -0
  376. data/generated/google/apis/site_verification_v1/service.rb +24 -40
  377. data/generated/google/apis/slides_v1.rb +1 -1
  378. data/generated/google/apis/slides_v1/classes.rb +6 -2
  379. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  380. data/generated/google/apis/sourcerepo_v1/classes.rb +160 -8
  381. data/generated/google/apis/sourcerepo_v1/representations.rb +63 -0
  382. data/generated/google/apis/sourcerepo_v1/service.rb +99 -0
  383. data/generated/google/apis/spanner_v1.rb +1 -1
  384. data/generated/google/apis/spanner_v1/classes.rb +40 -13
  385. data/generated/google/apis/spanner_v1/service.rb +2 -2
  386. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  387. data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
  388. data/generated/google/apis/speech_v1.rb +1 -1
  389. data/generated/google/apis/speech_v1/classes.rb +12 -0
  390. data/generated/google/apis/speech_v1/representations.rb +1 -0
  391. data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
  392. data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
  393. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  394. data/generated/google/apis/sqladmin_v1beta4/classes.rb +76 -0
  395. data/generated/google/apis/sqladmin_v1beta4/representations.rb +44 -0
  396. data/generated/google/apis/sqladmin_v1beta4/service.rb +246 -210
  397. data/generated/google/apis/storage_v1.rb +1 -1
  398. data/generated/google/apis/storage_v1/classes.rb +3 -6
  399. data/generated/google/apis/storage_v1/service.rb +144 -240
  400. data/generated/google/apis/storage_v1beta1.rb +1 -1
  401. data/generated/google/apis/storage_v1beta1/service.rb +75 -125
  402. data/generated/google/apis/storage_v1beta2.rb +1 -1
  403. data/generated/google/apis/storage_v1beta2/service.rb +105 -175
  404. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  405. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
  406. data/generated/google/apis/surveys_v2.rb +1 -1
  407. data/generated/google/apis/surveys_v2/classes.rb +19 -122
  408. data/generated/google/apis/surveys_v2/representations.rb +0 -38
  409. data/generated/google/apis/surveys_v2/service.rb +27 -157
  410. data/generated/google/apis/tagmanager_v1/service.rb +153 -255
  411. data/generated/google/apis/tagmanager_v2/service.rb +222 -370
  412. data/generated/google/apis/tasks_v1/service.rb +45 -75
  413. data/generated/google/apis/testing_v1.rb +1 -1
  414. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  415. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  416. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  417. data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
  418. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  419. data/generated/google/apis/urlshortener_v1/service.rb +12 -20
  420. data/generated/google/apis/vault_v1.rb +2 -2
  421. data/generated/google/apis/vault_v1/service.rb +1 -1
  422. data/generated/google/apis/videointelligence_v1.rb +34 -0
  423. data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
  424. data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
  425. data/generated/google/apis/videointelligence_v1/service.rb +246 -0
  426. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  427. data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
  428. data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
  429. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
  430. data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
  431. data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
  432. data/generated/google/apis/vision_v1.rb +1 -1
  433. data/generated/google/apis/vision_v1/classes.rb +2001 -105
  434. data/generated/google/apis/vision_v1/representations.rb +1024 -170
  435. data/generated/google/apis/vision_v1/service.rb +35 -0
  436. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  437. data/generated/google/apis/vision_v1p1beta1/classes.rb +4147 -772
  438. data/generated/google/apis/vision_v1p1beta1/representations.rb +1659 -209
  439. data/generated/google/apis/vision_v1p1beta1/service.rb +35 -0
  440. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  441. data/generated/google/apis/vision_v1p2beta1/classes.rb +2603 -844
  442. data/generated/google/apis/vision_v1p2beta1/representations.rb +784 -8
  443. data/generated/google/apis/vision_v1p2beta1/service.rb +3 -3
  444. data/generated/google/apis/webfonts_v1/service.rb +6 -10
  445. data/generated/google/apis/webmasters_v3/service.rb +42 -70
  446. data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
  447. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
  448. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
  449. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
  450. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  451. data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
  452. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  453. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
  454. data/generated/google/apis/youtube_analytics_v2.rb +46 -0
  455. data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
  456. data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
  457. data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
  458. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  459. data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
  460. data/generated/google/apis/youtube_v3.rb +1 -1
  461. data/generated/google/apis/youtube_v3/classes.rb +0 -168
  462. data/generated/google/apis/youtube_v3/representations.rb +0 -62
  463. data/generated/google/apis/youtube_v3/service.rb +216 -415
  464. data/lib/google/apis/generator/helpers.rb +3 -1
  465. data/lib/google/apis/version.rb +1 -1
  466. metadata +55 -39
  467. data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
  468. data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
  469. data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
  470. data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
  471. data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
  472. data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
  473. data/generated/google/apis/prediction_v1_2.rb +0 -44
  474. data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
  475. data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
  476. data/generated/google/apis/prediction_v1_2/service.rb +0 -287
  477. data/generated/google/apis/prediction_v1_3.rb +0 -44
  478. data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
  479. data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
  480. data/generated/google/apis/prediction_v1_3/service.rb +0 -284
  481. data/generated/google/apis/prediction_v1_4.rb +0 -44
  482. data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
  483. data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
  484. data/generated/google/apis/prediction_v1_4/service.rb +0 -284
  485. data/generated/google/apis/prediction_v1_5.rb +0 -44
  486. data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
  487. data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
  488. data/generated/google/apis/prediction_v1_5/service.rb +0 -357
  489. data/generated/google/apis/prediction_v1_6.rb +0 -47
  490. data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
  491. data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
  492. data/generated/google/apis/prediction_v1_6/service.rb +0 -381
  493. data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
  494. data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
  495. data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
  496. data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
  497. data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
  498. data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
  499. data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -0,0 +1,2208 @@
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 AndroidpublisherV3
23
+ # Google Play Developer API
24
+ #
25
+ # Lets Android application developers access their Google Play accounts.
26
+ #
27
+ # @example
28
+ # require 'google/apis/androidpublisher_v3'
29
+ #
30
+ # Androidpublisher = Google::Apis::AndroidpublisherV3 # 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
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
42
+ # characters.
43
+ attr_accessor :quota_user
44
+
45
+ # @return [String]
46
+ # Deprecated. Please use quotaUser instead.
47
+ attr_accessor :user_ip
48
+
49
+ def initialize
50
+ super('https://www.googleapis.com/', 'androidpublisher/v3/applications/')
51
+ @batch_path = 'batch/androidpublisher/v3'
52
+ end
53
+
54
+ # Commits/applies the changes made in this edit back to the app.
55
+ # @param [String] package_name
56
+ # Unique identifier for the Android app that is being updated; for example, "com.
57
+ # spiffygame".
58
+ # @param [String] edit_id
59
+ # Unique identifier for this edit.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
64
+ # characters.
65
+ # @param [String] user_ip
66
+ # Deprecated. Please use quotaUser instead.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
+ command = make_simple_command(:post, '{packageName}/edits/{editId}:commit', options)
81
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
82
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
83
+ command.params['packageName'] = package_name unless package_name.nil?
84
+ command.params['editId'] = edit_id unless edit_id.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ command.query['userIp'] = user_ip unless user_ip.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Deletes an edit for an app. Creating a new edit will automatically delete any
92
+ # of your previous edits so this method need only be called if you want to
93
+ # preemptively abandon an edit.
94
+ # @param [String] package_name
95
+ # Unique identifier for the Android app that is being updated; for example, "com.
96
+ # spiffygame".
97
+ # @param [String] edit_id
98
+ # Unique identifier for this edit.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
103
+ # characters.
104
+ # @param [String] user_ip
105
+ # Deprecated. Please use quotaUser instead.
106
+ # @param [Google::Apis::RequestOptions] options
107
+ # Request-specific options
108
+ #
109
+ # @yield [result, err] Result & error if block supplied
110
+ # @yieldparam result [NilClass] No result returned for this method
111
+ # @yieldparam err [StandardError] error object if request failed
112
+ #
113
+ # @return [void]
114
+ #
115
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
118
+ def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
119
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}', options)
120
+ command.params['packageName'] = package_name unless package_name.nil?
121
+ command.params['editId'] = edit_id unless edit_id.nil?
122
+ command.query['fields'] = fields unless fields.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ command.query['userIp'] = user_ip unless user_ip.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # Returns information about the edit specified. Calls will fail if the edit is
129
+ # no long active (e.g. has been deleted, superseded or expired).
130
+ # @param [String] package_name
131
+ # Unique identifier for the Android app that is being updated; for example, "com.
132
+ # spiffygame".
133
+ # @param [String] edit_id
134
+ # Unique identifier for this edit.
135
+ # @param [String] fields
136
+ # Selector specifying which fields to include in a partial response.
137
+ # @param [String] quota_user
138
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
139
+ # characters.
140
+ # @param [String] user_ip
141
+ # Deprecated. Please use quotaUser instead.
142
+ # @param [Google::Apis::RequestOptions] options
143
+ # Request-specific options
144
+ #
145
+ # @yield [result, err] Result & error if block supplied
146
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
147
+ # @yieldparam err [StandardError] error object if request failed
148
+ #
149
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
150
+ #
151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
154
+ def get_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
155
+ command = make_simple_command(:get, '{packageName}/edits/{editId}', options)
156
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
157
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
158
+ command.params['packageName'] = package_name unless package_name.nil?
159
+ command.params['editId'] = edit_id unless edit_id.nil?
160
+ command.query['fields'] = fields unless fields.nil?
161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
162
+ command.query['userIp'] = user_ip unless user_ip.nil?
163
+ execute_or_queue_command(command, &block)
164
+ end
165
+
166
+ # Creates a new edit for an app, populated with the app's current state.
167
+ # @param [String] package_name
168
+ # Unique identifier for the Android app that is being updated; for example, "com.
169
+ # spiffygame".
170
+ # @param [Google::Apis::AndroidpublisherV3::AppEdit] app_edit_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
175
+ # characters.
176
+ # @param [String] user_ip
177
+ # Deprecated. Please use quotaUser instead.
178
+ # @param [Google::Apis::RequestOptions] options
179
+ # Request-specific options
180
+ #
181
+ # @yield [result, err] Result & error if block supplied
182
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
186
+ #
187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
190
+ def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
191
+ command = make_simple_command(:post, '{packageName}/edits', options)
192
+ command.request_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
193
+ command.request_object = app_edit_object
194
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
195
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
196
+ command.params['packageName'] = package_name unless package_name.nil?
197
+ command.query['fields'] = fields unless fields.nil?
198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ command.query['userIp'] = user_ip unless user_ip.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
203
+ # Checks that the edit can be successfully committed. The edit's changes are not
204
+ # applied to the live app.
205
+ # @param [String] package_name
206
+ # Unique identifier for the Android app that is being updated; for example, "com.
207
+ # spiffygame".
208
+ # @param [String] edit_id
209
+ # Unique identifier for this edit.
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
214
+ # characters.
215
+ # @param [String] user_ip
216
+ # Deprecated. Please use quotaUser instead.
217
+ # @param [Google::Apis::RequestOptions] options
218
+ # Request-specific options
219
+ #
220
+ # @yield [result, err] Result & error if block supplied
221
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
222
+ # @yieldparam err [StandardError] error object if request failed
223
+ #
224
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
225
+ #
226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
229
+ def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
230
+ command = make_simple_command(:post, '{packageName}/edits/{editId}:validate', options)
231
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
232
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
233
+ command.params['packageName'] = package_name unless package_name.nil?
234
+ command.params['editId'] = edit_id unless edit_id.nil?
235
+ command.query['fields'] = fields unless fields.nil?
236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
237
+ command.query['userIp'] = user_ip unless user_ip.nil?
238
+ execute_or_queue_command(command, &block)
239
+ end
240
+
241
+ # Creates a new APK without uploading the APK itself to Google Play, instead
242
+ # hosting the APK at a specified URL. This function is only available to
243
+ # enterprises using Google Play for Work whose application is configured to
244
+ # restrict distribution to the enterprise domain.
245
+ # @param [String] package_name
246
+ # Unique identifier for the Android app that is being updated; for example, "com.
247
+ # spiffygame".
248
+ # @param [String] edit_id
249
+ # Unique identifier for this edit.
250
+ # @param [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest] apks_add_externally_hosted_request_object
251
+ # @param [String] fields
252
+ # Selector specifying which fields to include in a partial response.
253
+ # @param [String] quota_user
254
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
255
+ # characters.
256
+ # @param [String] user_ip
257
+ # Deprecated. Please use quotaUser instead.
258
+ # @param [Google::Apis::RequestOptions] options
259
+ # Request-specific options
260
+ #
261
+ # @yield [result, err] Result & error if block supplied
262
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse] parsed result object
263
+ # @yieldparam err [StandardError] error object if request failed
264
+ #
265
+ # @return [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse]
266
+ #
267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
270
+ def addexternallyhosted_edit_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
271
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options)
272
+ command.request_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest::Representation
273
+ command.request_object = apks_add_externally_hosted_request_object
274
+ command.response_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse::Representation
275
+ command.response_class = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse
276
+ command.params['packageName'] = package_name unless package_name.nil?
277
+ command.params['editId'] = edit_id unless edit_id.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ command.query['userIp'] = user_ip unless user_ip.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
284
+ #
285
+ # @param [String] package_name
286
+ # Unique identifier for the Android app that is being updated; for example, "com.
287
+ # spiffygame".
288
+ # @param [String] edit_id
289
+ # Unique identifier for this edit.
290
+ # @param [String] fields
291
+ # Selector specifying which fields to include in a partial response.
292
+ # @param [String] quota_user
293
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
294
+ # characters.
295
+ # @param [String] user_ip
296
+ # Deprecated. Please use quotaUser instead.
297
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ApksListResponse] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::AndroidpublisherV3::ApksListResponse]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
309
+ def list_edit_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
310
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options)
311
+ command.response_representation = Google::Apis::AndroidpublisherV3::ApksListResponse::Representation
312
+ command.response_class = Google::Apis::AndroidpublisherV3::ApksListResponse
313
+ command.params['packageName'] = package_name unless package_name.nil?
314
+ command.params['editId'] = edit_id unless edit_id.nil?
315
+ command.query['fields'] = fields unless fields.nil?
316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
317
+ command.query['userIp'] = user_ip unless user_ip.nil?
318
+ execute_or_queue_command(command, &block)
319
+ end
320
+
321
+ #
322
+ # @param [String] package_name
323
+ # Unique identifier for the Android app that is being updated; for example, "com.
324
+ # spiffygame".
325
+ # @param [String] edit_id
326
+ # Unique identifier for this edit.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
331
+ # characters.
332
+ # @param [String] user_ip
333
+ # Deprecated. Please use quotaUser instead.
334
+ # @param [IO, String] upload_source
335
+ # IO stream or filename containing content to upload
336
+ # @param [String] content_type
337
+ # Content type of the uploaded content.
338
+ # @param [Google::Apis::RequestOptions] options
339
+ # Request-specific options
340
+ #
341
+ # @yield [result, err] Result & error if block supplied
342
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Apk] parsed result object
343
+ # @yieldparam err [StandardError] error object if request failed
344
+ #
345
+ # @return [Google::Apis::AndroidpublisherV3::Apk]
346
+ #
347
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
350
+ def upload_edit_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
351
+ if upload_source.nil?
352
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options)
353
+ else
354
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks', options)
355
+ command.upload_source = upload_source
356
+ command.upload_content_type = content_type
357
+ end
358
+ command.response_representation = Google::Apis::AndroidpublisherV3::Apk::Representation
359
+ command.response_class = Google::Apis::AndroidpublisherV3::Apk
360
+ command.params['packageName'] = package_name unless package_name.nil?
361
+ command.params['editId'] = edit_id unless edit_id.nil?
362
+ command.query['fields'] = fields unless fields.nil?
363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
364
+ command.query['userIp'] = user_ip unless user_ip.nil?
365
+ execute_or_queue_command(command, &block)
366
+ end
367
+
368
+ #
369
+ # @param [String] package_name
370
+ # Unique identifier for the Android app that is being updated; for example, "com.
371
+ # spiffygame".
372
+ # @param [String] edit_id
373
+ # Unique identifier for this edit.
374
+ # @param [String] fields
375
+ # Selector specifying which fields to include in a partial response.
376
+ # @param [String] quota_user
377
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
378
+ # characters.
379
+ # @param [String] user_ip
380
+ # Deprecated. Please use quotaUser instead.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BundlesListResponse] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::AndroidpublisherV3::BundlesListResponse]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def list_edit_bundles(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
394
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/bundles', options)
395
+ command.response_representation = Google::Apis::AndroidpublisherV3::BundlesListResponse::Representation
396
+ command.response_class = Google::Apis::AndroidpublisherV3::BundlesListResponse
397
+ command.params['packageName'] = package_name unless package_name.nil?
398
+ command.params['editId'] = edit_id unless edit_id.nil?
399
+ command.query['fields'] = fields unless fields.nil?
400
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
401
+ command.query['userIp'] = user_ip unless user_ip.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
405
+ #
406
+ # @param [String] package_name
407
+ # Unique identifier for the Android app that is being updated; for example, "com.
408
+ # spiffygame".
409
+ # @param [String] edit_id
410
+ # Unique identifier for this edit.
411
+ # @param [String] fields
412
+ # Selector specifying which fields to include in a partial response.
413
+ # @param [String] quota_user
414
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
415
+ # characters.
416
+ # @param [String] user_ip
417
+ # Deprecated. Please use quotaUser instead.
418
+ # @param [IO, String] upload_source
419
+ # IO stream or filename containing content to upload
420
+ # @param [String] content_type
421
+ # Content type of the uploaded content.
422
+ # @param [Google::Apis::RequestOptions] options
423
+ # Request-specific options
424
+ #
425
+ # @yield [result, err] Result & error if block supplied
426
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Bundle] parsed result object
427
+ # @yieldparam err [StandardError] error object if request failed
428
+ #
429
+ # @return [Google::Apis::AndroidpublisherV3::Bundle]
430
+ #
431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
434
+ def upload_edit_bundle(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
435
+ if upload_source.nil?
436
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/bundles', options)
437
+ else
438
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/bundles', options)
439
+ command.upload_source = upload_source
440
+ command.upload_content_type = content_type
441
+ end
442
+ command.response_representation = Google::Apis::AndroidpublisherV3::Bundle::Representation
443
+ command.response_class = Google::Apis::AndroidpublisherV3::Bundle
444
+ command.params['packageName'] = package_name unless package_name.nil?
445
+ command.params['editId'] = edit_id unless edit_id.nil?
446
+ command.query['fields'] = fields unless fields.nil?
447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
448
+ command.query['userIp'] = user_ip unless user_ip.nil?
449
+ execute_or_queue_command(command, &block)
450
+ end
451
+
452
+ # Uploads the deobfuscation file of the specified APK. If a deobfuscation file
453
+ # already exists, it will be replaced.
454
+ # @param [String] package_name
455
+ # Unique identifier of the Android app for which the deobfuscatiuon files are
456
+ # being uploaded; for example, "com.spiffygame".
457
+ # @param [String] edit_id
458
+ # Unique identifier for this edit.
459
+ # @param [Fixnum] apk_version_code
460
+ # The version code of the APK whose deobfuscation file is being uploaded.
461
+ # @param [String] deobfuscation_file_type
462
+ # @param [String] fields
463
+ # Selector specifying which fields to include in a partial response.
464
+ # @param [String] quota_user
465
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
466
+ # characters.
467
+ # @param [String] user_ip
468
+ # Deprecated. Please use quotaUser instead.
469
+ # @param [IO, String] upload_source
470
+ # IO stream or filename containing content to upload
471
+ # @param [String] content_type
472
+ # Content type of the uploaded content.
473
+ # @param [Google::Apis::RequestOptions] options
474
+ # Request-specific options
475
+ #
476
+ # @yield [result, err] Result & error if block supplied
477
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse] parsed result object
478
+ # @yieldparam err [StandardError] error object if request failed
479
+ #
480
+ # @return [Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse]
481
+ #
482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
485
+ def upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
486
+ if upload_source.nil?
487
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
488
+ else
489
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
490
+ command.upload_source = upload_source
491
+ command.upload_content_type = content_type
492
+ end
493
+ command.response_representation = Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse::Representation
494
+ command.response_class = Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse
495
+ command.params['packageName'] = package_name unless package_name.nil?
496
+ command.params['editId'] = edit_id unless edit_id.nil?
497
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
498
+ command.params['deobfuscationFileType'] = deobfuscation_file_type unless deobfuscation_file_type.nil?
499
+ command.query['fields'] = fields unless fields.nil?
500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ command.query['userIp'] = user_ip unless user_ip.nil?
502
+ execute_or_queue_command(command, &block)
503
+ end
504
+
505
+ # Fetches app details for this edit. This includes the default language and
506
+ # developer support contact information.
507
+ # @param [String] package_name
508
+ # Unique identifier for the Android app that is being updated; for example, "com.
509
+ # spiffygame".
510
+ # @param [String] edit_id
511
+ # Unique identifier for this edit.
512
+ # @param [String] fields
513
+ # Selector specifying which fields to include in a partial response.
514
+ # @param [String] quota_user
515
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
516
+ # characters.
517
+ # @param [String] user_ip
518
+ # Deprecated. Please use quotaUser instead.
519
+ # @param [Google::Apis::RequestOptions] options
520
+ # Request-specific options
521
+ #
522
+ # @yield [result, err] Result & error if block supplied
523
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object
524
+ # @yieldparam err [StandardError] error object if request failed
525
+ #
526
+ # @return [Google::Apis::AndroidpublisherV3::AppDetails]
527
+ #
528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
531
+ def get_edit_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
532
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options)
533
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
534
+ command.response_class = Google::Apis::AndroidpublisherV3::AppDetails
535
+ command.params['packageName'] = package_name unless package_name.nil?
536
+ command.params['editId'] = edit_id unless edit_id.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ command.query['userIp'] = user_ip unless user_ip.nil?
540
+ execute_or_queue_command(command, &block)
541
+ end
542
+
543
+ # Updates app details for this edit. This method supports patch semantics.
544
+ # @param [String] package_name
545
+ # Unique identifier for the Android app that is being updated; for example, "com.
546
+ # spiffygame".
547
+ # @param [String] edit_id
548
+ # Unique identifier for this edit.
549
+ # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_object
550
+ # @param [String] fields
551
+ # Selector specifying which fields to include in a partial response.
552
+ # @param [String] quota_user
553
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
554
+ # characters.
555
+ # @param [String] user_ip
556
+ # Deprecated. Please use quotaUser instead.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::AndroidpublisherV3::AppDetails]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def patch_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
570
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options)
571
+ command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
572
+ command.request_object = app_details_object
573
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
574
+ command.response_class = Google::Apis::AndroidpublisherV3::AppDetails
575
+ command.params['packageName'] = package_name unless package_name.nil?
576
+ command.params['editId'] = edit_id unless edit_id.nil?
577
+ command.query['fields'] = fields unless fields.nil?
578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
579
+ command.query['userIp'] = user_ip unless user_ip.nil?
580
+ execute_or_queue_command(command, &block)
581
+ end
582
+
583
+ # Updates app details for this edit.
584
+ # @param [String] package_name
585
+ # Unique identifier for the Android app that is being updated; for example, "com.
586
+ # spiffygame".
587
+ # @param [String] edit_id
588
+ # Unique identifier for this edit.
589
+ # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_object
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
594
+ # characters.
595
+ # @param [String] user_ip
596
+ # Deprecated. Please use quotaUser instead.
597
+ # @param [Google::Apis::RequestOptions] options
598
+ # Request-specific options
599
+ #
600
+ # @yield [result, err] Result & error if block supplied
601
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object
602
+ # @yieldparam err [StandardError] error object if request failed
603
+ #
604
+ # @return [Google::Apis::AndroidpublisherV3::AppDetails]
605
+ #
606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
609
+ def update_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
610
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options)
611
+ command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
612
+ command.request_object = app_details_object
613
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
614
+ command.response_class = Google::Apis::AndroidpublisherV3::AppDetails
615
+ command.params['packageName'] = package_name unless package_name.nil?
616
+ command.params['editId'] = edit_id unless edit_id.nil?
617
+ command.query['fields'] = fields unless fields.nil?
618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
619
+ command.query['userIp'] = user_ip unless user_ip.nil?
620
+ execute_or_queue_command(command, &block)
621
+ end
622
+
623
+ # Fetches the Expansion File configuration for the APK specified.
624
+ # @param [String] package_name
625
+ # Unique identifier for the Android app that is being updated; for example, "com.
626
+ # spiffygame".
627
+ # @param [String] edit_id
628
+ # Unique identifier for this edit.
629
+ # @param [Fixnum] apk_version_code
630
+ # The version code of the APK whose Expansion File configuration is being read
631
+ # or modified.
632
+ # @param [String] expansion_file_type
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
637
+ # characters.
638
+ # @param [String] user_ip
639
+ # Deprecated. Please use quotaUser instead.
640
+ # @param [Google::Apis::RequestOptions] options
641
+ # Request-specific options
642
+ #
643
+ # @yield [result, err] Result & error if block supplied
644
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object
645
+ # @yieldparam err [StandardError] error object if request failed
646
+ #
647
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
648
+ #
649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
652
+ def get_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
653
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
654
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
655
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile
656
+ command.params['packageName'] = package_name unless package_name.nil?
657
+ command.params['editId'] = edit_id unless edit_id.nil?
658
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
659
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
660
+ command.query['fields'] = fields unless fields.nil?
661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
662
+ command.query['userIp'] = user_ip unless user_ip.nil?
663
+ execute_or_queue_command(command, &block)
664
+ end
665
+
666
+ # Updates the APK's Expansion File configuration to reference another APK's
667
+ # Expansion Files. To add a new Expansion File use the Upload method. This
668
+ # method supports patch semantics.
669
+ # @param [String] package_name
670
+ # Unique identifier for the Android app that is being updated; for example, "com.
671
+ # spiffygame".
672
+ # @param [String] edit_id
673
+ # Unique identifier for this edit.
674
+ # @param [Fixnum] apk_version_code
675
+ # The version code of the APK whose Expansion File configuration is being read
676
+ # or modified.
677
+ # @param [String] expansion_file_type
678
+ # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
683
+ # characters.
684
+ # @param [String] user_ip
685
+ # Deprecated. Please use quotaUser instead.
686
+ # @param [Google::Apis::RequestOptions] options
687
+ # Request-specific options
688
+ #
689
+ # @yield [result, err] Result & error if block supplied
690
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object
691
+ # @yieldparam err [StandardError] error object if request failed
692
+ #
693
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
694
+ #
695
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
696
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
697
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
698
+ def patch_edit_expansionfile(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)
699
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
700
+ command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
701
+ command.request_object = expansion_file_object
702
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
703
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile
704
+ command.params['packageName'] = package_name unless package_name.nil?
705
+ command.params['editId'] = edit_id unless edit_id.nil?
706
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
707
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
708
+ command.query['fields'] = fields unless fields.nil?
709
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
710
+ command.query['userIp'] = user_ip unless user_ip.nil?
711
+ execute_or_queue_command(command, &block)
712
+ end
713
+
714
+ # Updates the APK's Expansion File configuration to reference another APK's
715
+ # Expansion Files. To add a new Expansion File use the Upload method.
716
+ # @param [String] package_name
717
+ # Unique identifier for the Android app that is being updated; for example, "com.
718
+ # spiffygame".
719
+ # @param [String] edit_id
720
+ # Unique identifier for this edit.
721
+ # @param [Fixnum] apk_version_code
722
+ # The version code of the APK whose Expansion File configuration is being read
723
+ # or modified.
724
+ # @param [String] expansion_file_type
725
+ # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
730
+ # characters.
731
+ # @param [String] user_ip
732
+ # Deprecated. Please use quotaUser instead.
733
+ # @param [Google::Apis::RequestOptions] options
734
+ # Request-specific options
735
+ #
736
+ # @yield [result, err] Result & error if block supplied
737
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object
738
+ # @yieldparam err [StandardError] error object if request failed
739
+ #
740
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
741
+ #
742
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
743
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
744
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
745
+ def update_edit_expansionfile(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)
746
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
747
+ command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
748
+ command.request_object = expansion_file_object
749
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
750
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile
751
+ command.params['packageName'] = package_name unless package_name.nil?
752
+ command.params['editId'] = edit_id unless edit_id.nil?
753
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
754
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.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
+ # Uploads and attaches a new Expansion File to the APK specified.
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 [Fixnum] apk_version_code
768
+ # The version code of the APK whose Expansion File configuration is being read
769
+ # or modified.
770
+ # @param [String] expansion_file_type
771
+ # @param [String] fields
772
+ # Selector specifying which fields to include in a partial response.
773
+ # @param [String] quota_user
774
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
775
+ # characters.
776
+ # @param [String] user_ip
777
+ # Deprecated. Please use quotaUser instead.
778
+ # @param [IO, String] upload_source
779
+ # IO stream or filename containing content to upload
780
+ # @param [String] content_type
781
+ # Content type of the uploaded content.
782
+ # @param [Google::Apis::RequestOptions] options
783
+ # Request-specific options
784
+ #
785
+ # @yield [result, err] Result & error if block supplied
786
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse] parsed result object
787
+ # @yieldparam err [StandardError] error object if request failed
788
+ #
789
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse]
790
+ #
791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
794
+ def upload_edit_expansionfile(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)
795
+ if upload_source.nil?
796
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
797
+ else
798
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
799
+ command.upload_source = upload_source
800
+ command.upload_content_type = content_type
801
+ end
802
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse::Representation
803
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse
804
+ command.params['packageName'] = package_name unless package_name.nil?
805
+ command.params['editId'] = edit_id unless edit_id.nil?
806
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
807
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
808
+ command.query['fields'] = fields unless fields.nil?
809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
810
+ command.query['userIp'] = user_ip unless user_ip.nil?
811
+ execute_or_queue_command(command, &block)
812
+ end
813
+
814
+ # Deletes the image (specified by id) from the edit.
815
+ # @param [String] package_name
816
+ # Unique identifier for the Android app that is being updated; for example, "com.
817
+ # spiffygame".
818
+ # @param [String] edit_id
819
+ # Unique identifier for this edit.
820
+ # @param [String] language
821
+ # The language code (a BCP-47 language tag) of the localized listing whose
822
+ # images are to read or modified. For example, to select Austrian German, pass "
823
+ # de-AT".
824
+ # @param [String] image_type
825
+ # @param [String] image_id
826
+ # Unique identifier an image within the set of images attached to this edit.
827
+ # @param [String] fields
828
+ # Selector specifying which fields to include in a partial response.
829
+ # @param [String] quota_user
830
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
831
+ # characters.
832
+ # @param [String] user_ip
833
+ # Deprecated. Please use quotaUser instead.
834
+ # @param [Google::Apis::RequestOptions] options
835
+ # Request-specific options
836
+ #
837
+ # @yield [result, err] Result & error if block supplied
838
+ # @yieldparam result [NilClass] No result returned for this method
839
+ # @yieldparam err [StandardError] error object if request failed
840
+ #
841
+ # @return [void]
842
+ #
843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
846
+ def delete_edit_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
847
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
848
+ command.params['packageName'] = package_name unless package_name.nil?
849
+ command.params['editId'] = edit_id unless edit_id.nil?
850
+ command.params['language'] = language unless language.nil?
851
+ command.params['imageType'] = image_type unless image_type.nil?
852
+ command.params['imageId'] = image_id unless image_id.nil?
853
+ command.query['fields'] = fields unless fields.nil?
854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
855
+ command.query['userIp'] = user_ip unless user_ip.nil?
856
+ execute_or_queue_command(command, &block)
857
+ end
858
+
859
+ # Deletes all images for the specified language and image type.
860
+ # @param [String] package_name
861
+ # Unique identifier for the Android app that is being updated; for example, "com.
862
+ # spiffygame".
863
+ # @param [String] edit_id
864
+ # Unique identifier for this edit.
865
+ # @param [String] language
866
+ # The language code (a BCP-47 language tag) of the localized listing whose
867
+ # images are to read or modified. For example, to select Austrian German, pass "
868
+ # de-AT".
869
+ # @param [String] image_type
870
+ # @param [String] fields
871
+ # Selector specifying which fields to include in a partial response.
872
+ # @param [String] quota_user
873
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
874
+ # characters.
875
+ # @param [String] user_ip
876
+ # Deprecated. Please use quotaUser instead.
877
+ # @param [Google::Apis::RequestOptions] options
878
+ # Request-specific options
879
+ #
880
+ # @yield [result, err] Result & error if block supplied
881
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse] parsed result object
882
+ # @yieldparam err [StandardError] error object if request failed
883
+ #
884
+ # @return [Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse]
885
+ #
886
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
887
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
888
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
889
+ def deleteall_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
890
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
891
+ command.response_representation = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse::Representation
892
+ command.response_class = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse
893
+ command.params['packageName'] = package_name unless package_name.nil?
894
+ command.params['editId'] = edit_id unless edit_id.nil?
895
+ command.params['language'] = language unless language.nil?
896
+ command.params['imageType'] = image_type unless image_type.nil?
897
+ command.query['fields'] = fields unless fields.nil?
898
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
899
+ command.query['userIp'] = user_ip unless user_ip.nil?
900
+ execute_or_queue_command(command, &block)
901
+ end
902
+
903
+ # Lists all images for the specified language and image type.
904
+ # @param [String] package_name
905
+ # Unique identifier for the Android app that is being updated; for example, "com.
906
+ # spiffygame".
907
+ # @param [String] edit_id
908
+ # Unique identifier for this edit.
909
+ # @param [String] language
910
+ # The language code (a BCP-47 language tag) of the localized listing whose
911
+ # images are to read or modified. For example, to select Austrian German, pass "
912
+ # de-AT".
913
+ # @param [String] image_type
914
+ # @param [String] fields
915
+ # Selector specifying which fields to include in a partial response.
916
+ # @param [String] quota_user
917
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
918
+ # characters.
919
+ # @param [String] user_ip
920
+ # Deprecated. Please use quotaUser instead.
921
+ # @param [Google::Apis::RequestOptions] options
922
+ # Request-specific options
923
+ #
924
+ # @yield [result, err] Result & error if block supplied
925
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesListResponse] parsed result object
926
+ # @yieldparam err [StandardError] error object if request failed
927
+ #
928
+ # @return [Google::Apis::AndroidpublisherV3::ImagesListResponse]
929
+ #
930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
933
+ def list_edit_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
934
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
935
+ command.response_representation = Google::Apis::AndroidpublisherV3::ImagesListResponse::Representation
936
+ command.response_class = Google::Apis::AndroidpublisherV3::ImagesListResponse
937
+ command.params['packageName'] = package_name unless package_name.nil?
938
+ command.params['editId'] = edit_id unless edit_id.nil?
939
+ command.params['language'] = language unless language.nil?
940
+ command.params['imageType'] = image_type unless image_type.nil?
941
+ command.query['fields'] = fields unless fields.nil?
942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
943
+ command.query['userIp'] = user_ip unless user_ip.nil?
944
+ execute_or_queue_command(command, &block)
945
+ end
946
+
947
+ # Uploads a new image and adds it to the list of images for the specified
948
+ # language and image type.
949
+ # @param [String] package_name
950
+ # Unique identifier for the Android app that is being updated; for example, "com.
951
+ # spiffygame".
952
+ # @param [String] edit_id
953
+ # Unique identifier for this edit.
954
+ # @param [String] language
955
+ # The language code (a BCP-47 language tag) of the localized listing whose
956
+ # images are to read or modified. For example, to select Austrian German, pass "
957
+ # de-AT".
958
+ # @param [String] image_type
959
+ # @param [String] fields
960
+ # Selector specifying which fields to include in a partial response.
961
+ # @param [String] quota_user
962
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
963
+ # characters.
964
+ # @param [String] user_ip
965
+ # Deprecated. Please use quotaUser instead.
966
+ # @param [IO, String] upload_source
967
+ # IO stream or filename containing content to upload
968
+ # @param [String] content_type
969
+ # Content type of the uploaded content.
970
+ # @param [Google::Apis::RequestOptions] options
971
+ # Request-specific options
972
+ #
973
+ # @yield [result, err] Result & error if block supplied
974
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesUploadResponse] parsed result object
975
+ # @yieldparam err [StandardError] error object if request failed
976
+ #
977
+ # @return [Google::Apis::AndroidpublisherV3::ImagesUploadResponse]
978
+ #
979
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
980
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
981
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
982
+ def upload_edit_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)
983
+ if upload_source.nil?
984
+ command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
985
+ else
986
+ command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
987
+ command.upload_source = upload_source
988
+ command.upload_content_type = content_type
989
+ end
990
+ command.response_representation = Google::Apis::AndroidpublisherV3::ImagesUploadResponse::Representation
991
+ command.response_class = Google::Apis::AndroidpublisherV3::ImagesUploadResponse
992
+ command.params['packageName'] = package_name unless package_name.nil?
993
+ command.params['editId'] = edit_id unless edit_id.nil?
994
+ command.params['language'] = language unless language.nil?
995
+ command.params['imageType'] = image_type unless image_type.nil?
996
+ command.query['fields'] = fields unless fields.nil?
997
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
998
+ command.query['userIp'] = user_ip unless user_ip.nil?
999
+ execute_or_queue_command(command, &block)
1000
+ end
1001
+
1002
+ # Deletes the specified localized store listing from an edit.
1003
+ # @param [String] package_name
1004
+ # Unique identifier for the Android app that is being updated; for example, "com.
1005
+ # spiffygame".
1006
+ # @param [String] edit_id
1007
+ # Unique identifier for this edit.
1008
+ # @param [String] language
1009
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1010
+ # modify. For example, to select Austrian German, pass "de-AT".
1011
+ # @param [String] fields
1012
+ # Selector specifying which fields to include in a partial response.
1013
+ # @param [String] quota_user
1014
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1015
+ # characters.
1016
+ # @param [String] user_ip
1017
+ # Deprecated. Please use quotaUser instead.
1018
+ # @param [Google::Apis::RequestOptions] options
1019
+ # Request-specific options
1020
+ #
1021
+ # @yield [result, err] Result & error if block supplied
1022
+ # @yieldparam result [NilClass] No result returned for this method
1023
+ # @yieldparam err [StandardError] error object if request failed
1024
+ #
1025
+ # @return [void]
1026
+ #
1027
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1028
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1029
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1030
+ def delete_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1031
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options)
1032
+ command.params['packageName'] = package_name unless package_name.nil?
1033
+ command.params['editId'] = edit_id unless edit_id.nil?
1034
+ command.params['language'] = language unless language.nil?
1035
+ command.query['fields'] = fields unless fields.nil?
1036
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1037
+ command.query['userIp'] = user_ip unless user_ip.nil?
1038
+ execute_or_queue_command(command, &block)
1039
+ end
1040
+
1041
+ # Deletes all localized listings from an edit.
1042
+ # @param [String] package_name
1043
+ # Unique identifier for the Android app that is being updated; for example, "com.
1044
+ # spiffygame".
1045
+ # @param [String] edit_id
1046
+ # Unique identifier for this edit.
1047
+ # @param [String] fields
1048
+ # Selector specifying which fields to include in a partial response.
1049
+ # @param [String] quota_user
1050
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1051
+ # characters.
1052
+ # @param [String] user_ip
1053
+ # Deprecated. Please use quotaUser instead.
1054
+ # @param [Google::Apis::RequestOptions] options
1055
+ # Request-specific options
1056
+ #
1057
+ # @yield [result, err] Result & error if block supplied
1058
+ # @yieldparam result [NilClass] No result returned for this method
1059
+ # @yieldparam err [StandardError] error object if request failed
1060
+ #
1061
+ # @return [void]
1062
+ #
1063
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1064
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1065
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1066
+ def deleteall_edit_listing(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1067
+ command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options)
1068
+ command.params['packageName'] = package_name unless package_name.nil?
1069
+ command.params['editId'] = edit_id unless edit_id.nil?
1070
+ command.query['fields'] = fields unless fields.nil?
1071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1072
+ command.query['userIp'] = user_ip unless user_ip.nil?
1073
+ execute_or_queue_command(command, &block)
1074
+ end
1075
+
1076
+ # Fetches information about a localized store listing.
1077
+ # @param [String] package_name
1078
+ # Unique identifier for the Android app that is being updated; for example, "com.
1079
+ # spiffygame".
1080
+ # @param [String] edit_id
1081
+ # Unique identifier for this edit.
1082
+ # @param [String] language
1083
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1084
+ # modify. For example, to select Austrian German, pass "de-AT".
1085
+ # @param [String] fields
1086
+ # Selector specifying which fields to include in a partial response.
1087
+ # @param [String] quota_user
1088
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1089
+ # characters.
1090
+ # @param [String] user_ip
1091
+ # Deprecated. Please use quotaUser instead.
1092
+ # @param [Google::Apis::RequestOptions] options
1093
+ # Request-specific options
1094
+ #
1095
+ # @yield [result, err] Result & error if block supplied
1096
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object
1097
+ # @yieldparam err [StandardError] error object if request failed
1098
+ #
1099
+ # @return [Google::Apis::AndroidpublisherV3::Listing]
1100
+ #
1101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1104
+ def get_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1105
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options)
1106
+ command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1107
+ command.response_class = Google::Apis::AndroidpublisherV3::Listing
1108
+ command.params['packageName'] = package_name unless package_name.nil?
1109
+ command.params['editId'] = edit_id unless edit_id.nil?
1110
+ command.params['language'] = language unless language.nil?
1111
+ command.query['fields'] = fields unless fields.nil?
1112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1113
+ command.query['userIp'] = user_ip unless user_ip.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Returns all of the localized store listings attached to this edit.
1118
+ # @param [String] package_name
1119
+ # Unique identifier for the Android app that is being updated; for example, "com.
1120
+ # spiffygame".
1121
+ # @param [String] edit_id
1122
+ # Unique identifier for this edit.
1123
+ # @param [String] fields
1124
+ # Selector specifying which fields to include in a partial response.
1125
+ # @param [String] quota_user
1126
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1127
+ # characters.
1128
+ # @param [String] user_ip
1129
+ # Deprecated. Please use quotaUser instead.
1130
+ # @param [Google::Apis::RequestOptions] options
1131
+ # Request-specific options
1132
+ #
1133
+ # @yield [result, err] Result & error if block supplied
1134
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListingsListResponse] parsed result object
1135
+ # @yieldparam err [StandardError] error object if request failed
1136
+ #
1137
+ # @return [Google::Apis::AndroidpublisherV3::ListingsListResponse]
1138
+ #
1139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1142
+ def list_edit_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1143
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options)
1144
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListingsListResponse::Representation
1145
+ command.response_class = Google::Apis::AndroidpublisherV3::ListingsListResponse
1146
+ command.params['packageName'] = package_name unless package_name.nil?
1147
+ command.params['editId'] = edit_id unless edit_id.nil?
1148
+ command.query['fields'] = fields unless fields.nil?
1149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
+ command.query['userIp'] = user_ip unless user_ip.nil?
1151
+ execute_or_queue_command(command, &block)
1152
+ end
1153
+
1154
+ # Creates or updates a localized store listing. This method supports patch
1155
+ # semantics.
1156
+ # @param [String] package_name
1157
+ # Unique identifier for the Android app that is being updated; for example, "com.
1158
+ # spiffygame".
1159
+ # @param [String] edit_id
1160
+ # Unique identifier for this edit.
1161
+ # @param [String] language
1162
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1163
+ # modify. For example, to select Austrian German, pass "de-AT".
1164
+ # @param [Google::Apis::AndroidpublisherV3::Listing] listing_object
1165
+ # @param [String] fields
1166
+ # Selector specifying which fields to include in a partial response.
1167
+ # @param [String] quota_user
1168
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1169
+ # characters.
1170
+ # @param [String] user_ip
1171
+ # Deprecated. Please use quotaUser instead.
1172
+ # @param [Google::Apis::RequestOptions] options
1173
+ # Request-specific options
1174
+ #
1175
+ # @yield [result, err] Result & error if block supplied
1176
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object
1177
+ # @yieldparam err [StandardError] error object if request failed
1178
+ #
1179
+ # @return [Google::Apis::AndroidpublisherV3::Listing]
1180
+ #
1181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1184
+ def patch_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1185
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options)
1186
+ command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1187
+ command.request_object = listing_object
1188
+ command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1189
+ command.response_class = Google::Apis::AndroidpublisherV3::Listing
1190
+ command.params['packageName'] = package_name unless package_name.nil?
1191
+ command.params['editId'] = edit_id unless edit_id.nil?
1192
+ command.params['language'] = language unless language.nil?
1193
+ command.query['fields'] = fields unless fields.nil?
1194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1195
+ command.query['userIp'] = user_ip unless user_ip.nil?
1196
+ execute_or_queue_command(command, &block)
1197
+ end
1198
+
1199
+ # Creates or updates a localized store listing.
1200
+ # @param [String] package_name
1201
+ # Unique identifier for the Android app that is being updated; for example, "com.
1202
+ # spiffygame".
1203
+ # @param [String] edit_id
1204
+ # Unique identifier for this edit.
1205
+ # @param [String] language
1206
+ # The language code (a BCP-47 language tag) of the localized listing to read or
1207
+ # modify. For example, to select Austrian German, pass "de-AT".
1208
+ # @param [Google::Apis::AndroidpublisherV3::Listing] listing_object
1209
+ # @param [String] fields
1210
+ # Selector specifying which fields to include in a partial response.
1211
+ # @param [String] quota_user
1212
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1213
+ # characters.
1214
+ # @param [String] user_ip
1215
+ # Deprecated. Please use quotaUser instead.
1216
+ # @param [Google::Apis::RequestOptions] options
1217
+ # Request-specific options
1218
+ #
1219
+ # @yield [result, err] Result & error if block supplied
1220
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object
1221
+ # @yieldparam err [StandardError] error object if request failed
1222
+ #
1223
+ # @return [Google::Apis::AndroidpublisherV3::Listing]
1224
+ #
1225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1228
+ def update_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1229
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options)
1230
+ command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1231
+ command.request_object = listing_object
1232
+ command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1233
+ command.response_class = Google::Apis::AndroidpublisherV3::Listing
1234
+ command.params['packageName'] = package_name unless package_name.nil?
1235
+ command.params['editId'] = edit_id unless edit_id.nil?
1236
+ command.params['language'] = language unless language.nil?
1237
+ command.query['fields'] = fields unless fields.nil?
1238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1239
+ command.query['userIp'] = user_ip unless user_ip.nil?
1240
+ execute_or_queue_command(command, &block)
1241
+ end
1242
+
1243
+ #
1244
+ # @param [String] package_name
1245
+ # Unique identifier for the Android app that is being updated; for example, "com.
1246
+ # spiffygame".
1247
+ # @param [String] edit_id
1248
+ # Unique identifier for this edit.
1249
+ # @param [String] track
1250
+ # The track to read or modify. Acceptable values are: "alpha", "beta", "
1251
+ # production", "rollout" or "internal".
1252
+ # @param [String] fields
1253
+ # Selector specifying which fields to include in a partial response.
1254
+ # @param [String] quota_user
1255
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1256
+ # characters.
1257
+ # @param [String] user_ip
1258
+ # Deprecated. Please use quotaUser instead.
1259
+ # @param [Google::Apis::RequestOptions] options
1260
+ # Request-specific options
1261
+ #
1262
+ # @yield [result, err] Result & error if block supplied
1263
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object
1264
+ # @yieldparam err [StandardError] error object if request failed
1265
+ #
1266
+ # @return [Google::Apis::AndroidpublisherV3::Testers]
1267
+ #
1268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1271
+ def get_edit_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1272
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options)
1273
+ command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1274
+ command.response_class = Google::Apis::AndroidpublisherV3::Testers
1275
+ command.params['packageName'] = package_name unless package_name.nil?
1276
+ command.params['editId'] = edit_id unless edit_id.nil?
1277
+ command.params['track'] = track unless track.nil?
1278
+ command.query['fields'] = fields unless fields.nil?
1279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1280
+ command.query['userIp'] = user_ip unless user_ip.nil?
1281
+ execute_or_queue_command(command, &block)
1282
+ end
1283
+
1284
+ #
1285
+ # @param [String] package_name
1286
+ # Unique identifier for the Android app that is being updated; for example, "com.
1287
+ # spiffygame".
1288
+ # @param [String] edit_id
1289
+ # Unique identifier for this edit.
1290
+ # @param [String] track
1291
+ # The track to read or modify. Acceptable values are: "alpha", "beta", "
1292
+ # production", "rollout" or "internal".
1293
+ # @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
1294
+ # @param [String] fields
1295
+ # Selector specifying which fields to include in a partial response.
1296
+ # @param [String] quota_user
1297
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1298
+ # characters.
1299
+ # @param [String] user_ip
1300
+ # Deprecated. Please use quotaUser instead.
1301
+ # @param [Google::Apis::RequestOptions] options
1302
+ # Request-specific options
1303
+ #
1304
+ # @yield [result, err] Result & error if block supplied
1305
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object
1306
+ # @yieldparam err [StandardError] error object if request failed
1307
+ #
1308
+ # @return [Google::Apis::AndroidpublisherV3::Testers]
1309
+ #
1310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1313
+ def patch_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1314
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options)
1315
+ command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1316
+ command.request_object = testers_object
1317
+ command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1318
+ command.response_class = Google::Apis::AndroidpublisherV3::Testers
1319
+ command.params['packageName'] = package_name unless package_name.nil?
1320
+ command.params['editId'] = edit_id unless edit_id.nil?
1321
+ command.params['track'] = track unless track.nil?
1322
+ command.query['fields'] = fields unless fields.nil?
1323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1324
+ command.query['userIp'] = user_ip unless user_ip.nil?
1325
+ execute_or_queue_command(command, &block)
1326
+ end
1327
+
1328
+ #
1329
+ # @param [String] package_name
1330
+ # Unique identifier for the Android app that is being updated; for example, "com.
1331
+ # spiffygame".
1332
+ # @param [String] edit_id
1333
+ # Unique identifier for this edit.
1334
+ # @param [String] track
1335
+ # The track to read or modify. Acceptable values are: "alpha", "beta", "
1336
+ # production", "rollout" or "internal".
1337
+ # @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
1338
+ # @param [String] fields
1339
+ # Selector specifying which fields to include in a partial response.
1340
+ # @param [String] quota_user
1341
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1342
+ # characters.
1343
+ # @param [String] user_ip
1344
+ # Deprecated. Please use quotaUser instead.
1345
+ # @param [Google::Apis::RequestOptions] options
1346
+ # Request-specific options
1347
+ #
1348
+ # @yield [result, err] Result & error if block supplied
1349
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object
1350
+ # @yieldparam err [StandardError] error object if request failed
1351
+ #
1352
+ # @return [Google::Apis::AndroidpublisherV3::Testers]
1353
+ #
1354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1357
+ def update_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1358
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options)
1359
+ command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1360
+ command.request_object = testers_object
1361
+ command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1362
+ command.response_class = Google::Apis::AndroidpublisherV3::Testers
1363
+ command.params['packageName'] = package_name unless package_name.nil?
1364
+ command.params['editId'] = edit_id unless edit_id.nil?
1365
+ command.params['track'] = track unless track.nil?
1366
+ command.query['fields'] = fields unless fields.nil?
1367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1368
+ command.query['userIp'] = user_ip unless user_ip.nil?
1369
+ execute_or_queue_command(command, &block)
1370
+ end
1371
+
1372
+ # Fetches the track configuration for the specified track type. Includes the APK
1373
+ # version codes that are in this track.
1374
+ # @param [String] package_name
1375
+ # Unique identifier for the Android app that is being updated; for example, "com.
1376
+ # spiffygame".
1377
+ # @param [String] edit_id
1378
+ # Unique identifier for this edit.
1379
+ # @param [String] track
1380
+ # The track to read or modify.
1381
+ # @param [String] fields
1382
+ # Selector specifying which fields to include in a partial response.
1383
+ # @param [String] quota_user
1384
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1385
+ # characters.
1386
+ # @param [String] user_ip
1387
+ # Deprecated. Please use quotaUser instead.
1388
+ # @param [Google::Apis::RequestOptions] options
1389
+ # Request-specific options
1390
+ #
1391
+ # @yield [result, err] Result & error if block supplied
1392
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1393
+ # @yieldparam err [StandardError] error object if request failed
1394
+ #
1395
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1396
+ #
1397
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1398
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1399
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1400
+ def get_edit_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1401
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options)
1402
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1403
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1404
+ command.params['packageName'] = package_name unless package_name.nil?
1405
+ command.params['editId'] = edit_id unless edit_id.nil?
1406
+ command.params['track'] = track unless track.nil?
1407
+ command.query['fields'] = fields unless fields.nil?
1408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1409
+ command.query['userIp'] = user_ip unless user_ip.nil?
1410
+ execute_or_queue_command(command, &block)
1411
+ end
1412
+
1413
+ # Lists all the track configurations for this edit.
1414
+ # @param [String] package_name
1415
+ # Unique identifier for the Android app that is being updated; for example, "com.
1416
+ # spiffygame".
1417
+ # @param [String] edit_id
1418
+ # Unique identifier for this edit.
1419
+ # @param [String] fields
1420
+ # Selector specifying which fields to include in a partial response.
1421
+ # @param [String] quota_user
1422
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1423
+ # characters.
1424
+ # @param [String] user_ip
1425
+ # Deprecated. Please use quotaUser instead.
1426
+ # @param [Google::Apis::RequestOptions] options
1427
+ # Request-specific options
1428
+ #
1429
+ # @yield [result, err] Result & error if block supplied
1430
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::TracksListResponse] parsed result object
1431
+ # @yieldparam err [StandardError] error object if request failed
1432
+ #
1433
+ # @return [Google::Apis::AndroidpublisherV3::TracksListResponse]
1434
+ #
1435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
+ def list_edit_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1439
+ command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options)
1440
+ command.response_representation = Google::Apis::AndroidpublisherV3::TracksListResponse::Representation
1441
+ command.response_class = Google::Apis::AndroidpublisherV3::TracksListResponse
1442
+ command.params['packageName'] = package_name unless package_name.nil?
1443
+ command.params['editId'] = edit_id unless edit_id.nil?
1444
+ command.query['fields'] = fields unless fields.nil?
1445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1446
+ command.query['userIp'] = user_ip unless user_ip.nil?
1447
+ execute_or_queue_command(command, &block)
1448
+ end
1449
+
1450
+ # Updates the track configuration for the specified track type. When halted, the
1451
+ # rollout track cannot be updated without adding new APKs, and adding new APKs
1452
+ # will cause it to resume. This method supports patch semantics.
1453
+ # @param [String] package_name
1454
+ # Unique identifier for the Android app that is being updated; for example, "com.
1455
+ # spiffygame".
1456
+ # @param [String] edit_id
1457
+ # Unique identifier for this edit.
1458
+ # @param [String] track
1459
+ # The track to read or modify.
1460
+ # @param [Google::Apis::AndroidpublisherV3::Track] track_object
1461
+ # @param [String] fields
1462
+ # Selector specifying which fields to include in a partial response.
1463
+ # @param [String] quota_user
1464
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1465
+ # characters.
1466
+ # @param [String] user_ip
1467
+ # Deprecated. Please use quotaUser instead.
1468
+ # @param [Google::Apis::RequestOptions] options
1469
+ # Request-specific options
1470
+ #
1471
+ # @yield [result, err] Result & error if block supplied
1472
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1473
+ # @yieldparam err [StandardError] error object if request failed
1474
+ #
1475
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1476
+ #
1477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1480
+ def patch_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1481
+ command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options)
1482
+ command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1483
+ command.request_object = track_object
1484
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1485
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1486
+ command.params['packageName'] = package_name unless package_name.nil?
1487
+ command.params['editId'] = edit_id unless edit_id.nil?
1488
+ command.params['track'] = track unless track.nil?
1489
+ command.query['fields'] = fields unless fields.nil?
1490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1491
+ command.query['userIp'] = user_ip unless user_ip.nil?
1492
+ execute_or_queue_command(command, &block)
1493
+ end
1494
+
1495
+ # Updates the track configuration for the specified track type. When halted, the
1496
+ # rollout track cannot be updated without adding new APKs, and adding new APKs
1497
+ # will cause it to resume.
1498
+ # @param [String] package_name
1499
+ # Unique identifier for the Android app that is being updated; for example, "com.
1500
+ # spiffygame".
1501
+ # @param [String] edit_id
1502
+ # Unique identifier for this edit.
1503
+ # @param [String] track
1504
+ # The track to read or modify.
1505
+ # @param [Google::Apis::AndroidpublisherV3::Track] track_object
1506
+ # @param [String] fields
1507
+ # Selector specifying which fields to include in a partial response.
1508
+ # @param [String] quota_user
1509
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1510
+ # characters.
1511
+ # @param [String] user_ip
1512
+ # Deprecated. Please use quotaUser instead.
1513
+ # @param [Google::Apis::RequestOptions] options
1514
+ # Request-specific options
1515
+ #
1516
+ # @yield [result, err] Result & error if block supplied
1517
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1518
+ # @yieldparam err [StandardError] error object if request failed
1519
+ #
1520
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1521
+ #
1522
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1523
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1524
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1525
+ def update_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1526
+ command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options)
1527
+ command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1528
+ command.request_object = track_object
1529
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1530
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1531
+ command.params['packageName'] = package_name unless package_name.nil?
1532
+ command.params['editId'] = edit_id unless edit_id.nil?
1533
+ command.params['track'] = track unless track.nil?
1534
+ command.query['fields'] = fields unless fields.nil?
1535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1536
+ command.query['userIp'] = user_ip unless user_ip.nil?
1537
+ execute_or_queue_command(command, &block)
1538
+ end
1539
+
1540
+ # Delete an in-app product for an app.
1541
+ # @param [String] package_name
1542
+ # Unique identifier for the Android app with the in-app product; for example, "
1543
+ # com.spiffygame".
1544
+ # @param [String] sku
1545
+ # Unique identifier for the in-app product.
1546
+ # @param [String] fields
1547
+ # Selector specifying which fields to include in a partial response.
1548
+ # @param [String] quota_user
1549
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1550
+ # characters.
1551
+ # @param [String] user_ip
1552
+ # Deprecated. Please use quotaUser instead.
1553
+ # @param [Google::Apis::RequestOptions] options
1554
+ # Request-specific options
1555
+ #
1556
+ # @yield [result, err] Result & error if block supplied
1557
+ # @yieldparam result [NilClass] No result returned for this method
1558
+ # @yieldparam err [StandardError] error object if request failed
1559
+ #
1560
+ # @return [void]
1561
+ #
1562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1565
+ def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1566
+ command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options)
1567
+ command.params['packageName'] = package_name unless package_name.nil?
1568
+ command.params['sku'] = sku unless sku.nil?
1569
+ command.query['fields'] = fields unless fields.nil?
1570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1571
+ command.query['userIp'] = user_ip unless user_ip.nil?
1572
+ execute_or_queue_command(command, &block)
1573
+ end
1574
+
1575
+ # Returns information about the in-app product specified.
1576
+ # @param [String] package_name
1577
+ # @param [String] sku
1578
+ # Unique identifier for the in-app product.
1579
+ # @param [String] fields
1580
+ # Selector specifying which fields to include in a partial response.
1581
+ # @param [String] quota_user
1582
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1583
+ # characters.
1584
+ # @param [String] user_ip
1585
+ # Deprecated. Please use quotaUser instead.
1586
+ # @param [Google::Apis::RequestOptions] options
1587
+ # Request-specific options
1588
+ #
1589
+ # @yield [result, err] Result & error if block supplied
1590
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1591
+ # @yieldparam err [StandardError] error object if request failed
1592
+ #
1593
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1594
+ #
1595
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1596
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1597
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1598
+ def get_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1599
+ command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options)
1600
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1601
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1602
+ command.params['packageName'] = package_name unless package_name.nil?
1603
+ command.params['sku'] = sku unless sku.nil?
1604
+ command.query['fields'] = fields unless fields.nil?
1605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1606
+ command.query['userIp'] = user_ip unless user_ip.nil?
1607
+ execute_or_queue_command(command, &block)
1608
+ end
1609
+
1610
+ # Creates a new in-app product for an app.
1611
+ # @param [String] package_name
1612
+ # Unique identifier for the Android app; for example, "com.spiffygame".
1613
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1614
+ # @param [Boolean] auto_convert_missing_prices
1615
+ # If true the prices for all regions targeted by the parent app that don't have
1616
+ # a price specified for this in-app product will be auto converted to the target
1617
+ # currency based on the default price. Defaults to false.
1618
+ # @param [String] fields
1619
+ # Selector specifying which fields to include in a partial response.
1620
+ # @param [String] quota_user
1621
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1622
+ # characters.
1623
+ # @param [String] user_ip
1624
+ # Deprecated. Please use quotaUser instead.
1625
+ # @param [Google::Apis::RequestOptions] options
1626
+ # Request-specific options
1627
+ #
1628
+ # @yield [result, err] Result & error if block supplied
1629
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1630
+ # @yieldparam err [StandardError] error object if request failed
1631
+ #
1632
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1633
+ #
1634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1637
+ def insert_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1638
+ command = make_simple_command(:post, '{packageName}/inappproducts', options)
1639
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1640
+ command.request_object = in_app_product_object
1641
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1642
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1643
+ command.params['packageName'] = package_name unless package_name.nil?
1644
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1645
+ command.query['fields'] = fields unless fields.nil?
1646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1647
+ command.query['userIp'] = user_ip unless user_ip.nil?
1648
+ execute_or_queue_command(command, &block)
1649
+ end
1650
+
1651
+ # List all the in-app products for an Android app, both subscriptions and
1652
+ # managed in-app products..
1653
+ # @param [String] package_name
1654
+ # Unique identifier for the Android app with in-app products; for example, "com.
1655
+ # spiffygame".
1656
+ # @param [Fixnum] max_results
1657
+ # @param [Fixnum] start_index
1658
+ # @param [String] token
1659
+ # @param [String] fields
1660
+ # Selector specifying which fields to include in a partial response.
1661
+ # @param [String] quota_user
1662
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1663
+ # characters.
1664
+ # @param [String] user_ip
1665
+ # Deprecated. Please use quotaUser instead.
1666
+ # @param [Google::Apis::RequestOptions] options
1667
+ # Request-specific options
1668
+ #
1669
+ # @yield [result, err] Result & error if block supplied
1670
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsListResponse] parsed result object
1671
+ # @yieldparam err [StandardError] error object if request failed
1672
+ #
1673
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsListResponse]
1674
+ #
1675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1678
+ def list_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1679
+ command = make_simple_command(:get, '{packageName}/inappproducts', options)
1680
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsListResponse::Representation
1681
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsListResponse
1682
+ command.params['packageName'] = package_name unless package_name.nil?
1683
+ command.query['maxResults'] = max_results unless max_results.nil?
1684
+ command.query['startIndex'] = start_index unless start_index.nil?
1685
+ command.query['token'] = token unless token.nil?
1686
+ command.query['fields'] = fields unless fields.nil?
1687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1688
+ command.query['userIp'] = user_ip unless user_ip.nil?
1689
+ execute_or_queue_command(command, &block)
1690
+ end
1691
+
1692
+ # Updates the details of an in-app product. This method supports patch semantics.
1693
+ # @param [String] package_name
1694
+ # Unique identifier for the Android app with the in-app product; for example, "
1695
+ # com.spiffygame".
1696
+ # @param [String] sku
1697
+ # Unique identifier for the in-app product.
1698
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1699
+ # @param [Boolean] auto_convert_missing_prices
1700
+ # If true the prices for all regions targeted by the parent app that don't have
1701
+ # a price specified for this in-app product will be auto converted to the target
1702
+ # currency based on the default price. Defaults to false.
1703
+ # @param [String] fields
1704
+ # Selector specifying which fields to include in a partial response.
1705
+ # @param [String] quota_user
1706
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1707
+ # characters.
1708
+ # @param [String] user_ip
1709
+ # Deprecated. Please use quotaUser instead.
1710
+ # @param [Google::Apis::RequestOptions] options
1711
+ # Request-specific options
1712
+ #
1713
+ # @yield [result, err] Result & error if block supplied
1714
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1715
+ # @yieldparam err [StandardError] error object if request failed
1716
+ #
1717
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1718
+ #
1719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1722
+ def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1723
+ command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options)
1724
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1725
+ command.request_object = in_app_product_object
1726
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1727
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1728
+ command.params['packageName'] = package_name unless package_name.nil?
1729
+ command.params['sku'] = sku unless sku.nil?
1730
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1731
+ command.query['fields'] = fields unless fields.nil?
1732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1733
+ command.query['userIp'] = user_ip unless user_ip.nil?
1734
+ execute_or_queue_command(command, &block)
1735
+ end
1736
+
1737
+ # Updates the details of an in-app product.
1738
+ # @param [String] package_name
1739
+ # Unique identifier for the Android app with the in-app product; for example, "
1740
+ # com.spiffygame".
1741
+ # @param [String] sku
1742
+ # Unique identifier for the in-app product.
1743
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1744
+ # @param [Boolean] auto_convert_missing_prices
1745
+ # If true the prices for all regions targeted by the parent app that don't have
1746
+ # a price specified for this in-app product will be auto converted to the target
1747
+ # currency based on the default price. Defaults to false.
1748
+ # @param [String] fields
1749
+ # Selector specifying which fields to include in a partial response.
1750
+ # @param [String] quota_user
1751
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1752
+ # characters.
1753
+ # @param [String] user_ip
1754
+ # Deprecated. Please use quotaUser instead.
1755
+ # @param [Google::Apis::RequestOptions] options
1756
+ # Request-specific options
1757
+ #
1758
+ # @yield [result, err] Result & error if block supplied
1759
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1760
+ # @yieldparam err [StandardError] error object if request failed
1761
+ #
1762
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1763
+ #
1764
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
+ def update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1768
+ command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options)
1769
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1770
+ command.request_object = in_app_product_object
1771
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1772
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1773
+ command.params['packageName'] = package_name unless package_name.nil?
1774
+ command.params['sku'] = sku unless sku.nil?
1775
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1776
+ command.query['fields'] = fields unless fields.nil?
1777
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1778
+ command.query['userIp'] = user_ip unless user_ip.nil?
1779
+ execute_or_queue_command(command, &block)
1780
+ end
1781
+
1782
+ # Checks the purchase and consumption status of an inapp item.
1783
+ # @param [String] package_name
1784
+ # The package name of the application the inapp product was sold in (for example,
1785
+ # 'com.some.thing').
1786
+ # @param [String] product_id
1787
+ # The inapp product SKU (for example, 'com.some.thing.inapp1').
1788
+ # @param [String] token
1789
+ # The token provided to the user's device when the inapp product was purchased.
1790
+ # @param [String] fields
1791
+ # Selector specifying which fields to include in a partial response.
1792
+ # @param [String] quota_user
1793
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1794
+ # characters.
1795
+ # @param [String] user_ip
1796
+ # Deprecated. Please use quotaUser instead.
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::AndroidpublisherV3::ProductPurchase] parsed result object
1802
+ # @yieldparam err [StandardError] error object if request failed
1803
+ #
1804
+ # @return [Google::Apis::AndroidpublisherV3::ProductPurchase]
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 get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1810
+ command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options)
1811
+ command.response_representation = Google::Apis::AndroidpublisherV3::ProductPurchase::Representation
1812
+ command.response_class = Google::Apis::AndroidpublisherV3::ProductPurchase
1813
+ command.params['packageName'] = package_name unless package_name.nil?
1814
+ command.params['productId'] = product_id unless product_id.nil?
1815
+ command.params['token'] = token unless token.nil?
1816
+ command.query['fields'] = fields unless fields.nil?
1817
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1818
+ command.query['userIp'] = user_ip unless user_ip.nil?
1819
+ execute_or_queue_command(command, &block)
1820
+ end
1821
+
1822
+ # Cancels a user's subscription purchase. The subscription remains valid until
1823
+ # its expiration time.
1824
+ # @param [String] package_name
1825
+ # The package name of the application for which this subscription was purchased (
1826
+ # for example, 'com.some.thing').
1827
+ # @param [String] subscription_id
1828
+ # The purchased subscription ID (for example, 'monthly001').
1829
+ # @param [String] token
1830
+ # The token provided to the user's device when the subscription was purchased.
1831
+ # @param [String] fields
1832
+ # Selector specifying which fields to include in a partial response.
1833
+ # @param [String] quota_user
1834
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1835
+ # characters.
1836
+ # @param [String] user_ip
1837
+ # Deprecated. Please use quotaUser instead.
1838
+ # @param [Google::Apis::RequestOptions] options
1839
+ # Request-specific options
1840
+ #
1841
+ # @yield [result, err] Result & error if block supplied
1842
+ # @yieldparam result [NilClass] No result returned for this method
1843
+ # @yieldparam err [StandardError] error object if request failed
1844
+ #
1845
+ # @return [void]
1846
+ #
1847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1850
+ def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1851
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options)
1852
+ command.params['packageName'] = package_name unless package_name.nil?
1853
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1854
+ command.params['token'] = token unless token.nil?
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
+ # Defers a user's subscription purchase until a specified future expiration time.
1862
+ # @param [String] package_name
1863
+ # The package name of the application for which this subscription was purchased (
1864
+ # for example, 'com.some.thing').
1865
+ # @param [String] subscription_id
1866
+ # The purchased subscription ID (for example, 'monthly001').
1867
+ # @param [String] token
1868
+ # The token provided to the user's device when the subscription was purchased.
1869
+ # @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_object
1870
+ # @param [String] fields
1871
+ # Selector specifying which fields to include in a partial response.
1872
+ # @param [String] quota_user
1873
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1874
+ # characters.
1875
+ # @param [String] user_ip
1876
+ # Deprecated. Please use quotaUser instead.
1877
+ # @param [Google::Apis::RequestOptions] options
1878
+ # Request-specific options
1879
+ #
1880
+ # @yield [result, err] Result & error if block supplied
1881
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse] parsed result object
1882
+ # @yieldparam err [StandardError] error object if request failed
1883
+ #
1884
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse]
1885
+ #
1886
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1887
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1888
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1889
+ def defer_purchase_subscription(package_name, subscription_id, token, subscription_purchases_defer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1890
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
1891
+ command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest::Representation
1892
+ command.request_object = subscription_purchases_defer_request_object
1893
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse::Representation
1894
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse
1895
+ command.params['packageName'] = package_name unless package_name.nil?
1896
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1897
+ command.params['token'] = token unless token.nil?
1898
+ command.query['fields'] = fields unless fields.nil?
1899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1900
+ command.query['userIp'] = user_ip unless user_ip.nil?
1901
+ execute_or_queue_command(command, &block)
1902
+ end
1903
+
1904
+ # Checks whether a user's subscription purchase is valid and returns its expiry
1905
+ # time.
1906
+ # @param [String] package_name
1907
+ # The package name of the application for which this subscription was purchased (
1908
+ # for example, 'com.some.thing').
1909
+ # @param [String] subscription_id
1910
+ # The purchased subscription ID (for example, 'monthly001').
1911
+ # @param [String] token
1912
+ # The token provided to the user's device when the subscription was purchased.
1913
+ # @param [String] fields
1914
+ # Selector specifying which fields to include in a partial response.
1915
+ # @param [String] quota_user
1916
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1917
+ # characters.
1918
+ # @param [String] user_ip
1919
+ # Deprecated. Please use quotaUser instead.
1920
+ # @param [Google::Apis::RequestOptions] options
1921
+ # Request-specific options
1922
+ #
1923
+ # @yield [result, err] Result & error if block supplied
1924
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchase] parsed result object
1925
+ # @yieldparam err [StandardError] error object if request failed
1926
+ #
1927
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchase]
1928
+ #
1929
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1930
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1931
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1932
+ def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1933
+ command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options)
1934
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchase::Representation
1935
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchase
1936
+ command.params['packageName'] = package_name unless package_name.nil?
1937
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1938
+ command.params['token'] = token unless token.nil?
1939
+ command.query['fields'] = fields unless fields.nil?
1940
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1941
+ command.query['userIp'] = user_ip unless user_ip.nil?
1942
+ execute_or_queue_command(command, &block)
1943
+ end
1944
+
1945
+ # Refunds a user's subscription purchase, but the subscription remains valid
1946
+ # until its expiration time and it will continue to recur.
1947
+ # @param [String] package_name
1948
+ # The package name of the application for which this subscription was purchased (
1949
+ # for example, 'com.some.thing').
1950
+ # @param [String] subscription_id
1951
+ # The purchased subscription ID (for example, 'monthly001').
1952
+ # @param [String] token
1953
+ # The token provided to the user's device when the subscription was purchased.
1954
+ # @param [String] fields
1955
+ # Selector specifying which fields to include in a partial response.
1956
+ # @param [String] quota_user
1957
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1958
+ # characters.
1959
+ # @param [String] user_ip
1960
+ # Deprecated. Please use quotaUser instead.
1961
+ # @param [Google::Apis::RequestOptions] options
1962
+ # Request-specific options
1963
+ #
1964
+ # @yield [result, err] Result & error if block supplied
1965
+ # @yieldparam result [NilClass] No result returned for this method
1966
+ # @yieldparam err [StandardError] error object if request failed
1967
+ #
1968
+ # @return [void]
1969
+ #
1970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1973
+ def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1974
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options)
1975
+ command.params['packageName'] = package_name unless package_name.nil?
1976
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1977
+ command.params['token'] = token unless token.nil?
1978
+ command.query['fields'] = fields unless fields.nil?
1979
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1980
+ command.query['userIp'] = user_ip unless user_ip.nil?
1981
+ execute_or_queue_command(command, &block)
1982
+ end
1983
+
1984
+ # Refunds and immediately revokes a user's subscription purchase. Access to the
1985
+ # subscription will be terminated immediately and it will stop recurring.
1986
+ # @param [String] package_name
1987
+ # The package name of the application for which this subscription was purchased (
1988
+ # for example, 'com.some.thing').
1989
+ # @param [String] subscription_id
1990
+ # The purchased subscription ID (for example, 'monthly001').
1991
+ # @param [String] token
1992
+ # The token provided to the user's device when the subscription was purchased.
1993
+ # @param [String] fields
1994
+ # Selector specifying which fields to include in a partial response.
1995
+ # @param [String] quota_user
1996
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1997
+ # characters.
1998
+ # @param [String] user_ip
1999
+ # Deprecated. Please use quotaUser instead.
2000
+ # @param [Google::Apis::RequestOptions] options
2001
+ # Request-specific options
2002
+ #
2003
+ # @yield [result, err] Result & error if block supplied
2004
+ # @yieldparam result [NilClass] No result returned for this method
2005
+ # @yieldparam err [StandardError] error object if request failed
2006
+ #
2007
+ # @return [void]
2008
+ #
2009
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2010
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2011
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2012
+ def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2013
+ command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options)
2014
+ command.params['packageName'] = package_name unless package_name.nil?
2015
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2016
+ command.params['token'] = token unless token.nil?
2017
+ command.query['fields'] = fields unless fields.nil?
2018
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2019
+ command.query['userIp'] = user_ip unless user_ip.nil?
2020
+ execute_or_queue_command(command, &block)
2021
+ end
2022
+
2023
+ # Lists the purchases that were canceled, refunded or charged-back.
2024
+ # @param [String] package_name
2025
+ # The package name of the application for which voided purchases need to be
2026
+ # returned (for example, 'com.some.thing').
2027
+ # @param [Fixnum] end_time
2028
+ # The time, in milliseconds since the Epoch, of the newest voided in-app product
2029
+ # purchase that you want to see in the response. The value of this parameter
2030
+ # cannot be greater than the current time and is ignored if a pagination token
2031
+ # is set. Default value is current time. Note: This filter is applied on the
2032
+ # time at which the record is seen as voided by our systems and not the actual
2033
+ # voided time returned in the response.
2034
+ # @param [Fixnum] max_results
2035
+ # @param [Fixnum] start_index
2036
+ # @param [Fixnum] start_time
2037
+ # The time, in milliseconds since the Epoch, of the oldest voided in-app product
2038
+ # purchase that you want to see in the response. The value of this parameter
2039
+ # cannot be older than 30 days and is ignored if a pagination token is set.
2040
+ # Default value is current time minus 30 days. Note: This filter is applied on
2041
+ # the time at which the record is seen as voided by our systems and not the
2042
+ # actual voided time returned in the response.
2043
+ # @param [String] token
2044
+ # @param [String] fields
2045
+ # Selector specifying which fields to include in a partial response.
2046
+ # @param [String] quota_user
2047
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2048
+ # characters.
2049
+ # @param [String] user_ip
2050
+ # Deprecated. Please use quotaUser instead.
2051
+ # @param [Google::Apis::RequestOptions] options
2052
+ # Request-specific options
2053
+ #
2054
+ # @yield [result, err] Result & error if block supplied
2055
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse] parsed result object
2056
+ # @yieldparam err [StandardError] error object if request failed
2057
+ #
2058
+ # @return [Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse]
2059
+ #
2060
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2061
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2062
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2063
+ def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2064
+ command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options)
2065
+ command.response_representation = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse::Representation
2066
+ command.response_class = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse
2067
+ command.params['packageName'] = package_name unless package_name.nil?
2068
+ command.query['endTime'] = end_time unless end_time.nil?
2069
+ command.query['maxResults'] = max_results unless max_results.nil?
2070
+ command.query['startIndex'] = start_index unless start_index.nil?
2071
+ command.query['startTime'] = start_time unless start_time.nil?
2072
+ command.query['token'] = token unless token.nil?
2073
+ command.query['fields'] = fields unless fields.nil?
2074
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2075
+ command.query['userIp'] = user_ip unless user_ip.nil?
2076
+ execute_or_queue_command(command, &block)
2077
+ end
2078
+
2079
+ # Returns a single review.
2080
+ # @param [String] package_name
2081
+ # Unique identifier for the Android app for which we want reviews; for example, "
2082
+ # com.spiffygame".
2083
+ # @param [String] review_id
2084
+ # @param [String] translation_language
2085
+ # @param [String] fields
2086
+ # Selector specifying which fields to include in a partial response.
2087
+ # @param [String] quota_user
2088
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2089
+ # characters.
2090
+ # @param [String] user_ip
2091
+ # Deprecated. Please use quotaUser instead.
2092
+ # @param [Google::Apis::RequestOptions] options
2093
+ # Request-specific options
2094
+ #
2095
+ # @yield [result, err] Result & error if block supplied
2096
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Review] parsed result object
2097
+ # @yieldparam err [StandardError] error object if request failed
2098
+ #
2099
+ # @return [Google::Apis::AndroidpublisherV3::Review]
2100
+ #
2101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2104
+ def get_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2105
+ command = make_simple_command(:get, '{packageName}/reviews/{reviewId}', options)
2106
+ command.response_representation = Google::Apis::AndroidpublisherV3::Review::Representation
2107
+ command.response_class = Google::Apis::AndroidpublisherV3::Review
2108
+ command.params['packageName'] = package_name unless package_name.nil?
2109
+ command.params['reviewId'] = review_id unless review_id.nil?
2110
+ command.query['translationLanguage'] = translation_language unless translation_language.nil?
2111
+ command.query['fields'] = fields unless fields.nil?
2112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2113
+ command.query['userIp'] = user_ip unless user_ip.nil?
2114
+ execute_or_queue_command(command, &block)
2115
+ end
2116
+
2117
+ # Returns a list of reviews. Only reviews from last week will be returned.
2118
+ # @param [String] package_name
2119
+ # Unique identifier for the Android app for which we want reviews; for example, "
2120
+ # com.spiffygame".
2121
+ # @param [Fixnum] max_results
2122
+ # @param [Fixnum] start_index
2123
+ # @param [String] token
2124
+ # @param [String] translation_language
2125
+ # @param [String] fields
2126
+ # Selector specifying which fields to include in a partial response.
2127
+ # @param [String] quota_user
2128
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2129
+ # characters.
2130
+ # @param [String] user_ip
2131
+ # Deprecated. Please use quotaUser instead.
2132
+ # @param [Google::Apis::RequestOptions] options
2133
+ # Request-specific options
2134
+ #
2135
+ # @yield [result, err] Result & error if block supplied
2136
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ReviewsListResponse] parsed result object
2137
+ # @yieldparam err [StandardError] error object if request failed
2138
+ #
2139
+ # @return [Google::Apis::AndroidpublisherV3::ReviewsListResponse]
2140
+ #
2141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2144
+ def list_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2145
+ command = make_simple_command(:get, '{packageName}/reviews', options)
2146
+ command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsListResponse::Representation
2147
+ command.response_class = Google::Apis::AndroidpublisherV3::ReviewsListResponse
2148
+ command.params['packageName'] = package_name unless package_name.nil?
2149
+ command.query['maxResults'] = max_results unless max_results.nil?
2150
+ command.query['startIndex'] = start_index unless start_index.nil?
2151
+ command.query['token'] = token unless token.nil?
2152
+ command.query['translationLanguage'] = translation_language unless translation_language.nil?
2153
+ command.query['fields'] = fields unless fields.nil?
2154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2155
+ command.query['userIp'] = user_ip unless user_ip.nil?
2156
+ execute_or_queue_command(command, &block)
2157
+ end
2158
+
2159
+ # Reply to a single review, or update an existing reply.
2160
+ # @param [String] package_name
2161
+ # Unique identifier for the Android app for which we want reviews; for example, "
2162
+ # com.spiffygame".
2163
+ # @param [String] review_id
2164
+ # @param [Google::Apis::AndroidpublisherV3::ReviewsReplyRequest] reviews_reply_request_object
2165
+ # @param [String] fields
2166
+ # Selector specifying which fields to include in a partial response.
2167
+ # @param [String] quota_user
2168
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2169
+ # characters.
2170
+ # @param [String] user_ip
2171
+ # Deprecated. Please use quotaUser instead.
2172
+ # @param [Google::Apis::RequestOptions] options
2173
+ # Request-specific options
2174
+ #
2175
+ # @yield [result, err] Result & error if block supplied
2176
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ReviewsReplyResponse] parsed result object
2177
+ # @yieldparam err [StandardError] error object if request failed
2178
+ #
2179
+ # @return [Google::Apis::AndroidpublisherV3::ReviewsReplyResponse]
2180
+ #
2181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2184
+ def reply_review(package_name, review_id, reviews_reply_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2185
+ command = make_simple_command(:post, '{packageName}/reviews/{reviewId}:reply', options)
2186
+ command.request_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyRequest::Representation
2187
+ command.request_object = reviews_reply_request_object
2188
+ command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse::Representation
2189
+ command.response_class = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse
2190
+ command.params['packageName'] = package_name unless package_name.nil?
2191
+ command.params['reviewId'] = review_id unless review_id.nil?
2192
+ command.query['fields'] = fields unless fields.nil?
2193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2194
+ command.query['userIp'] = user_ip unless user_ip.nil?
2195
+ execute_or_queue_command(command, &block)
2196
+ end
2197
+
2198
+ protected
2199
+
2200
+ def apply_command_defaults(command)
2201
+ command.query['key'] = key unless key.nil?
2202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2203
+ command.query['userIp'] = user_ip unless user_ip.nil?
2204
+ end
2205
+ end
2206
+ end
2207
+ end
2208
+ end