lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,34 @@
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/androidpublisher_v2/service.rb'
16
+ require 'google/apis/androidpublisher_v2/classes.rb'
17
+ require 'google/apis/androidpublisher_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Play Developer API
22
+ #
23
+ # Lets Android application developers access their Google Play accounts.
24
+ #
25
+ # @see https://developers.google.com/android-publisher
26
+ module AndroidpublisherV2
27
+ VERSION = 'V2'
28
+ REVISION = '20170105'
29
+
30
+ # View and manage your Google Play Developer account
31
+ AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,1941 @@
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 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AndroidpublisherV2
24
+
25
+ #
26
+ class Apk
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents the binary payload of an APK.
30
+ # Corresponds to the JSON property `binary`
31
+ # @return [Google::Apis::AndroidpublisherV2::ApkBinary]
32
+ attr_accessor :binary
33
+
34
+ # The version code of the APK, as specified in the APK's manifest file.
35
+ # Corresponds to the JSON property `versionCode`
36
+ # @return [Fixnum]
37
+ attr_accessor :version_code
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @binary = args[:binary] if args.key?(:binary)
46
+ @version_code = args[:version_code] if args.key?(:version_code)
47
+ end
48
+ end
49
+
50
+ # Represents the binary payload of an APK.
51
+ class ApkBinary
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # A sha1 hash of the APK payload, encoded as a hex string and matching the
55
+ # output of the sha1sum command.
56
+ # Corresponds to the JSON property `sha1`
57
+ # @return [String]
58
+ attr_accessor :sha1
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @sha1 = args[:sha1] if args.key?(:sha1)
67
+ end
68
+ end
69
+
70
+ #
71
+ class ApkListing
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # The language code, in BCP 47 format (eg "en-US").
75
+ # Corresponds to the JSON property `language`
76
+ # @return [String]
77
+ attr_accessor :language
78
+
79
+ # Describe what's new in your APK.
80
+ # Corresponds to the JSON property `recentChanges`
81
+ # @return [String]
82
+ attr_accessor :recent_changes
83
+
84
+ def initialize(**args)
85
+ update!(**args)
86
+ end
87
+
88
+ # Update properties of this object
89
+ def update!(**args)
90
+ @language = args[:language] if args.key?(:language)
91
+ @recent_changes = args[:recent_changes] if args.key?(:recent_changes)
92
+ end
93
+ end
94
+
95
+ #
96
+ class ListApkListingsResponse
97
+ include Google::Apis::Core::Hashable
98
+
99
+ # Identifies what kind of resource this is. Value: the fixed string "
100
+ # androidpublisher#apkListingsListResponse".
101
+ # Corresponds to the JSON property `kind`
102
+ # @return [String]
103
+ attr_accessor :kind
104
+
105
+ #
106
+ # Corresponds to the JSON property `listings`
107
+ # @return [Array<Google::Apis::AndroidpublisherV2::ApkListing>]
108
+ attr_accessor :listings
109
+
110
+ def initialize(**args)
111
+ update!(**args)
112
+ end
113
+
114
+ # Update properties of this object
115
+ def update!(**args)
116
+ @kind = args[:kind] if args.key?(:kind)
117
+ @listings = args[:listings] if args.key?(:listings)
118
+ end
119
+ end
120
+
121
+ #
122
+ class ApksAddExternallyHostedRequest
123
+ include Google::Apis::Core::Hashable
124
+
125
+ # Defines an APK available for this application that is hosted externally and
126
+ # not uploaded to Google Play. This function is only available to enterprises
127
+ # who are using Google Play for Work, and whos application is restricted to the
128
+ # enterprise private channel
129
+ # Corresponds to the JSON property `externallyHostedApk`
130
+ # @return [Google::Apis::AndroidpublisherV2::ExternallyHostedApk]
131
+ attr_accessor :externally_hosted_apk
132
+
133
+ def initialize(**args)
134
+ update!(**args)
135
+ end
136
+
137
+ # Update properties of this object
138
+ def update!(**args)
139
+ @externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
140
+ end
141
+ end
142
+
143
+ #
144
+ class ApksAddExternallyHostedResponse
145
+ include Google::Apis::Core::Hashable
146
+
147
+ # Defines an APK available for this application that is hosted externally and
148
+ # not uploaded to Google Play. This function is only available to enterprises
149
+ # who are using Google Play for Work, and whos application is restricted to the
150
+ # enterprise private channel
151
+ # Corresponds to the JSON property `externallyHostedApk`
152
+ # @return [Google::Apis::AndroidpublisherV2::ExternallyHostedApk]
153
+ attr_accessor :externally_hosted_apk
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
162
+ end
163
+ end
164
+
165
+ #
166
+ class ListApksResponse
167
+ include Google::Apis::Core::Hashable
168
+
169
+ #
170
+ # Corresponds to the JSON property `apks`
171
+ # @return [Array<Google::Apis::AndroidpublisherV2::Apk>]
172
+ attr_accessor :apks
173
+
174
+ # Identifies what kind of resource this is. Value: the fixed string "
175
+ # androidpublisher#apksListResponse".
176
+ # Corresponds to the JSON property `kind`
177
+ # @return [String]
178
+ attr_accessor :kind
179
+
180
+ def initialize(**args)
181
+ update!(**args)
182
+ end
183
+
184
+ # Update properties of this object
185
+ def update!(**args)
186
+ @apks = args[:apks] if args.key?(:apks)
187
+ @kind = args[:kind] if args.key?(:kind)
188
+ end
189
+ end
190
+
191
+ #
192
+ class AppDetails
193
+ include Google::Apis::Core::Hashable
194
+
195
+ # The user-visible support email for this app.
196
+ # Corresponds to the JSON property `contactEmail`
197
+ # @return [String]
198
+ attr_accessor :contact_email
199
+
200
+ # The user-visible support telephone number for this app.
201
+ # Corresponds to the JSON property `contactPhone`
202
+ # @return [String]
203
+ attr_accessor :contact_phone
204
+
205
+ # The user-visible website for this app.
206
+ # Corresponds to the JSON property `contactWebsite`
207
+ # @return [String]
208
+ attr_accessor :contact_website
209
+
210
+ # Default language code, in BCP 47 format (eg "en-US").
211
+ # Corresponds to the JSON property `defaultLanguage`
212
+ # @return [String]
213
+ attr_accessor :default_language
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @contact_email = args[:contact_email] if args.key?(:contact_email)
222
+ @contact_phone = args[:contact_phone] if args.key?(:contact_phone)
223
+ @contact_website = args[:contact_website] if args.key?(:contact_website)
224
+ @default_language = args[:default_language] if args.key?(:default_language)
225
+ end
226
+ end
227
+
228
+ # Represents an edit of an app. An edit allows clients to make multiple changes
229
+ # before committing them in one operation.
230
+ class AppEdit
231
+ include Google::Apis::Core::Hashable
232
+
233
+ # The time at which the edit will expire and will be no longer valid for use in
234
+ # any subsequent API calls (encoded as seconds since the Epoch).
235
+ # Corresponds to the JSON property `expiryTimeSeconds`
236
+ # @return [String]
237
+ attr_accessor :expiry_time_seconds
238
+
239
+ # The ID of the edit that can be used in subsequent API calls.
240
+ # Corresponds to the JSON property `id`
241
+ # @return [String]
242
+ attr_accessor :id
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @expiry_time_seconds = args[:expiry_time_seconds] if args.key?(:expiry_time_seconds)
251
+ @id = args[:id] if args.key?(:id)
252
+ end
253
+ end
254
+
255
+ #
256
+ class Comment
257
+ include Google::Apis::Core::Hashable
258
+
259
+ # A comment from a developer.
260
+ # Corresponds to the JSON property `developerComment`
261
+ # @return [Google::Apis::AndroidpublisherV2::DeveloperComment]
262
+ attr_accessor :developer_comment
263
+
264
+ # A comment from a user.
265
+ # Corresponds to the JSON property `userComment`
266
+ # @return [Google::Apis::AndroidpublisherV2::UserComment]
267
+ attr_accessor :user_comment
268
+
269
+ def initialize(**args)
270
+ update!(**args)
271
+ end
272
+
273
+ # Update properties of this object
274
+ def update!(**args)
275
+ @developer_comment = args[:developer_comment] if args.key?(:developer_comment)
276
+ @user_comment = args[:user_comment] if args.key?(:user_comment)
277
+ end
278
+ end
279
+
280
+ # Represents a deobfuscation file.
281
+ class DeobfuscationFile
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # The type of the deobfuscation file.
285
+ # Corresponds to the JSON property `symbolType`
286
+ # @return [String]
287
+ attr_accessor :symbol_type
288
+
289
+ def initialize(**args)
290
+ update!(**args)
291
+ end
292
+
293
+ # Update properties of this object
294
+ def update!(**args)
295
+ @symbol_type = args[:symbol_type] if args.key?(:symbol_type)
296
+ end
297
+ end
298
+
299
+ #
300
+ class DeobfuscationFilesUploadResponse
301
+ include Google::Apis::Core::Hashable
302
+
303
+ # Represents a deobfuscation file.
304
+ # Corresponds to the JSON property `deobfuscationFile`
305
+ # @return [Google::Apis::AndroidpublisherV2::DeobfuscationFile]
306
+ attr_accessor :deobfuscation_file
307
+
308
+ def initialize(**args)
309
+ update!(**args)
310
+ end
311
+
312
+ # Update properties of this object
313
+ def update!(**args)
314
+ @deobfuscation_file = args[:deobfuscation_file] if args.key?(:deobfuscation_file)
315
+ end
316
+ end
317
+
318
+ #
319
+ class DeveloperComment
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # The last time at which this comment was updated.
323
+ # Corresponds to the JSON property `lastModified`
324
+ # @return [Google::Apis::AndroidpublisherV2::Timestamp]
325
+ attr_accessor :last_modified
326
+
327
+ # The content of the comment, i.e. reply body.
328
+ # Corresponds to the JSON property `text`
329
+ # @return [String]
330
+ attr_accessor :text
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @last_modified = args[:last_modified] if args.key?(:last_modified)
339
+ @text = args[:text] if args.key?(:text)
340
+ end
341
+ end
342
+
343
+ #
344
+ class DeviceMetadata
345
+ include Google::Apis::Core::Hashable
346
+
347
+ # Device CPU make e.g. "Qualcomm"
348
+ # Corresponds to the JSON property `cpuMake`
349
+ # @return [String]
350
+ attr_accessor :cpu_make
351
+
352
+ # Device CPU model e.g. "MSM8974"
353
+ # Corresponds to the JSON property `cpuModel`
354
+ # @return [String]
355
+ attr_accessor :cpu_model
356
+
357
+ # Device class (e.g. tablet)
358
+ # Corresponds to the JSON property `deviceClass`
359
+ # @return [String]
360
+ attr_accessor :device_class
361
+
362
+ # OpenGL version
363
+ # Corresponds to the JSON property `glEsVersion`
364
+ # @return [Fixnum]
365
+ attr_accessor :gl_es_version
366
+
367
+ # Device manufacturer (e.g. Motorola)
368
+ # Corresponds to the JSON property `manufacturer`
369
+ # @return [String]
370
+ attr_accessor :manufacturer
371
+
372
+ # Comma separated list of native platforms (e.g. "arm", "arm7")
373
+ # Corresponds to the JSON property `nativePlatform`
374
+ # @return [String]
375
+ attr_accessor :native_platform
376
+
377
+ # Device model name (e.g. Droid)
378
+ # Corresponds to the JSON property `productName`
379
+ # @return [String]
380
+ attr_accessor :product_name
381
+
382
+ # Device RAM in Megabytes e.g. "2048"
383
+ # Corresponds to the JSON property `ramMb`
384
+ # @return [Fixnum]
385
+ attr_accessor :ram_mb
386
+
387
+ # Screen density in DPI
388
+ # Corresponds to the JSON property `screenDensityDpi`
389
+ # @return [Fixnum]
390
+ attr_accessor :screen_density_dpi
391
+
392
+ # Screen height in pixels
393
+ # Corresponds to the JSON property `screenHeightPx`
394
+ # @return [Fixnum]
395
+ attr_accessor :screen_height_px
396
+
397
+ # Screen width in pixels
398
+ # Corresponds to the JSON property `screenWidthPx`
399
+ # @return [Fixnum]
400
+ attr_accessor :screen_width_px
401
+
402
+ def initialize(**args)
403
+ update!(**args)
404
+ end
405
+
406
+ # Update properties of this object
407
+ def update!(**args)
408
+ @cpu_make = args[:cpu_make] if args.key?(:cpu_make)
409
+ @cpu_model = args[:cpu_model] if args.key?(:cpu_model)
410
+ @device_class = args[:device_class] if args.key?(:device_class)
411
+ @gl_es_version = args[:gl_es_version] if args.key?(:gl_es_version)
412
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
413
+ @native_platform = args[:native_platform] if args.key?(:native_platform)
414
+ @product_name = args[:product_name] if args.key?(:product_name)
415
+ @ram_mb = args[:ram_mb] if args.key?(:ram_mb)
416
+ @screen_density_dpi = args[:screen_density_dpi] if args.key?(:screen_density_dpi)
417
+ @screen_height_px = args[:screen_height_px] if args.key?(:screen_height_px)
418
+ @screen_width_px = args[:screen_width_px] if args.key?(:screen_width_px)
419
+ end
420
+ end
421
+
422
+ # An Entitlement resource indicates a user's current entitlement to an inapp
423
+ # item or subscription.
424
+ class Entitlement
425
+ include Google::Apis::Core::Hashable
426
+
427
+ # This kind represents an entitlement object in the androidpublisher service.
428
+ # Corresponds to the JSON property `kind`
429
+ # @return [String]
430
+ attr_accessor :kind
431
+
432
+ # The SKU of the product.
433
+ # Corresponds to the JSON property `productId`
434
+ # @return [String]
435
+ attr_accessor :product_id
436
+
437
+ # The type of the inapp product. Possible values are:
438
+ # - In-app item: "inapp"
439
+ # - Subscription: "subs"
440
+ # Corresponds to the JSON property `productType`
441
+ # @return [String]
442
+ attr_accessor :product_type
443
+
444
+ # The token which can be verified using the subscriptions or products API.
445
+ # Corresponds to the JSON property `token`
446
+ # @return [String]
447
+ attr_accessor :token
448
+
449
+ def initialize(**args)
450
+ update!(**args)
451
+ end
452
+
453
+ # Update properties of this object
454
+ def update!(**args)
455
+ @kind = args[:kind] if args.key?(:kind)
456
+ @product_id = args[:product_id] if args.key?(:product_id)
457
+ @product_type = args[:product_type] if args.key?(:product_type)
458
+ @token = args[:token] if args.key?(:token)
459
+ end
460
+ end
461
+
462
+ #
463
+ class ListEntitlementsResponse
464
+ include Google::Apis::Core::Hashable
465
+
466
+ #
467
+ # Corresponds to the JSON property `pageInfo`
468
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
469
+ attr_accessor :page_info
470
+
471
+ #
472
+ # Corresponds to the JSON property `resources`
473
+ # @return [Array<Google::Apis::AndroidpublisherV2::Entitlement>]
474
+ attr_accessor :resources
475
+
476
+ #
477
+ # Corresponds to the JSON property `tokenPagination`
478
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
479
+ attr_accessor :token_pagination
480
+
481
+ def initialize(**args)
482
+ update!(**args)
483
+ end
484
+
485
+ # Update properties of this object
486
+ def update!(**args)
487
+ @page_info = args[:page_info] if args.key?(:page_info)
488
+ @resources = args[:resources] if args.key?(:resources)
489
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
490
+ end
491
+ end
492
+
493
+ #
494
+ class ExpansionFile
495
+ include Google::Apis::Core::Hashable
496
+
497
+ # If set this field indicates that this APK has an Expansion File uploaded to it:
498
+ # this APK does not reference another APK's Expansion File. The field's value
499
+ # is the size of the uploaded Expansion File in bytes.
500
+ # Corresponds to the JSON property `fileSize`
501
+ # @return [String]
502
+ attr_accessor :file_size
503
+
504
+ # If set this APK's Expansion File references another APK's Expansion File. The
505
+ # file_size field will not be set.
506
+ # Corresponds to the JSON property `referencesVersion`
507
+ # @return [Fixnum]
508
+ attr_accessor :references_version
509
+
510
+ def initialize(**args)
511
+ update!(**args)
512
+ end
513
+
514
+ # Update properties of this object
515
+ def update!(**args)
516
+ @file_size = args[:file_size] if args.key?(:file_size)
517
+ @references_version = args[:references_version] if args.key?(:references_version)
518
+ end
519
+ end
520
+
521
+ #
522
+ class UploadExpansionFilesResponse
523
+ include Google::Apis::Core::Hashable
524
+
525
+ #
526
+ # Corresponds to the JSON property `expansionFile`
527
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
528
+ attr_accessor :expansion_file
529
+
530
+ def initialize(**args)
531
+ update!(**args)
532
+ end
533
+
534
+ # Update properties of this object
535
+ def update!(**args)
536
+ @expansion_file = args[:expansion_file] if args.key?(:expansion_file)
537
+ end
538
+ end
539
+
540
+ # Defines an APK available for this application that is hosted externally and
541
+ # not uploaded to Google Play. This function is only available to enterprises
542
+ # who are using Google Play for Work, and whos application is restricted to the
543
+ # enterprise private channel
544
+ class ExternallyHostedApk
545
+ include Google::Apis::Core::Hashable
546
+
547
+ # The application label.
548
+ # Corresponds to the JSON property `applicationLabel`
549
+ # @return [String]
550
+ attr_accessor :application_label
551
+
552
+ # A certificate (or array of certificates if a certificate-chain is used) used
553
+ # to signed this APK, represented as a base64 encoded byte array.
554
+ # Corresponds to the JSON property `certificateBase64s`
555
+ # @return [Array<String>]
556
+ attr_accessor :certificate_base64s
557
+
558
+ # The URL at which the APK is hosted. This must be an https URL.
559
+ # Corresponds to the JSON property `externallyHostedUrl`
560
+ # @return [String]
561
+ attr_accessor :externally_hosted_url
562
+
563
+ # The SHA1 checksum of this APK, represented as a base64 encoded byte array.
564
+ # Corresponds to the JSON property `fileSha1Base64`
565
+ # @return [String]
566
+ attr_accessor :file_sha1_base64
567
+
568
+ # The SHA256 checksum of this APK, represented as a base64 encoded byte array.
569
+ # Corresponds to the JSON property `fileSha256Base64`
570
+ # @return [String]
571
+ attr_accessor :file_sha256_base64
572
+
573
+ # The file size in bytes of this APK.
574
+ # Corresponds to the JSON property `fileSize`
575
+ # @return [String]
576
+ attr_accessor :file_size
577
+
578
+ # The icon image from the APK, as a base64 encoded byte array.
579
+ # Corresponds to the JSON property `iconBase64`
580
+ # @return [String]
581
+ attr_accessor :icon_base64
582
+
583
+ # The maximum SDK supported by this APK (optional).
584
+ # Corresponds to the JSON property `maximumSdk`
585
+ # @return [Fixnum]
586
+ attr_accessor :maximum_sdk
587
+
588
+ # The minimum SDK targeted by this APK.
589
+ # Corresponds to the JSON property `minimumSdk`
590
+ # @return [Fixnum]
591
+ attr_accessor :minimum_sdk
592
+
593
+ # The native code environments supported by this APK (optional).
594
+ # Corresponds to the JSON property `nativeCodes`
595
+ # @return [Array<String>]
596
+ attr_accessor :native_codes
597
+
598
+ # The package name.
599
+ # Corresponds to the JSON property `packageName`
600
+ # @return [String]
601
+ attr_accessor :package_name
602
+
603
+ # The features required by this APK (optional).
604
+ # Corresponds to the JSON property `usesFeatures`
605
+ # @return [Array<String>]
606
+ attr_accessor :uses_features
607
+
608
+ # The permissions requested by this APK.
609
+ # Corresponds to the JSON property `usesPermissions`
610
+ # @return [Array<Google::Apis::AndroidpublisherV2::ExternallyHostedApkUsesPermission>]
611
+ attr_accessor :uses_permissions
612
+
613
+ # The version code of this APK.
614
+ # Corresponds to the JSON property `versionCode`
615
+ # @return [Fixnum]
616
+ attr_accessor :version_code
617
+
618
+ # The version name of this APK.
619
+ # Corresponds to the JSON property `versionName`
620
+ # @return [String]
621
+ attr_accessor :version_name
622
+
623
+ def initialize(**args)
624
+ update!(**args)
625
+ end
626
+
627
+ # Update properties of this object
628
+ def update!(**args)
629
+ @application_label = args[:application_label] if args.key?(:application_label)
630
+ @certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s)
631
+ @externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url)
632
+ @file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64)
633
+ @file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64)
634
+ @file_size = args[:file_size] if args.key?(:file_size)
635
+ @icon_base64 = args[:icon_base64] if args.key?(:icon_base64)
636
+ @maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk)
637
+ @minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk)
638
+ @native_codes = args[:native_codes] if args.key?(:native_codes)
639
+ @package_name = args[:package_name] if args.key?(:package_name)
640
+ @uses_features = args[:uses_features] if args.key?(:uses_features)
641
+ @uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions)
642
+ @version_code = args[:version_code] if args.key?(:version_code)
643
+ @version_name = args[:version_name] if args.key?(:version_name)
644
+ end
645
+ end
646
+
647
+ # A permission used by this APK.
648
+ class ExternallyHostedApkUsesPermission
649
+ include Google::Apis::Core::Hashable
650
+
651
+ # Optionally, the maximum SDK version for which the permission is required.
652
+ # Corresponds to the JSON property `maxSdkVersion`
653
+ # @return [Fixnum]
654
+ attr_accessor :max_sdk_version
655
+
656
+ # The name of the permission requested.
657
+ # Corresponds to the JSON property `name`
658
+ # @return [String]
659
+ attr_accessor :name
660
+
661
+ def initialize(**args)
662
+ update!(**args)
663
+ end
664
+
665
+ # Update properties of this object
666
+ def update!(**args)
667
+ @max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version)
668
+ @name = args[:name] if args.key?(:name)
669
+ end
670
+ end
671
+
672
+ #
673
+ class Image
674
+ include Google::Apis::Core::Hashable
675
+
676
+ # A unique id representing this image.
677
+ # Corresponds to the JSON property `id`
678
+ # @return [String]
679
+ attr_accessor :id
680
+
681
+ # A sha1 hash of the image that was uploaded.
682
+ # Corresponds to the JSON property `sha1`
683
+ # @return [String]
684
+ attr_accessor :sha1
685
+
686
+ # A URL that will serve a preview of the image.
687
+ # Corresponds to the JSON property `url`
688
+ # @return [String]
689
+ attr_accessor :url
690
+
691
+ def initialize(**args)
692
+ update!(**args)
693
+ end
694
+
695
+ # Update properties of this object
696
+ def update!(**args)
697
+ @id = args[:id] if args.key?(:id)
698
+ @sha1 = args[:sha1] if args.key?(:sha1)
699
+ @url = args[:url] if args.key?(:url)
700
+ end
701
+ end
702
+
703
+ #
704
+ class DeleteAllImagesResponse
705
+ include Google::Apis::Core::Hashable
706
+
707
+ #
708
+ # Corresponds to the JSON property `deleted`
709
+ # @return [Array<Google::Apis::AndroidpublisherV2::Image>]
710
+ attr_accessor :deleted
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @deleted = args[:deleted] if args.key?(:deleted)
719
+ end
720
+ end
721
+
722
+ #
723
+ class ListImagesResponse
724
+ include Google::Apis::Core::Hashable
725
+
726
+ #
727
+ # Corresponds to the JSON property `images`
728
+ # @return [Array<Google::Apis::AndroidpublisherV2::Image>]
729
+ attr_accessor :images
730
+
731
+ def initialize(**args)
732
+ update!(**args)
733
+ end
734
+
735
+ # Update properties of this object
736
+ def update!(**args)
737
+ @images = args[:images] if args.key?(:images)
738
+ end
739
+ end
740
+
741
+ #
742
+ class UploadImagesResponse
743
+ include Google::Apis::Core::Hashable
744
+
745
+ #
746
+ # Corresponds to the JSON property `image`
747
+ # @return [Google::Apis::AndroidpublisherV2::Image]
748
+ attr_accessor :image
749
+
750
+ def initialize(**args)
751
+ update!(**args)
752
+ end
753
+
754
+ # Update properties of this object
755
+ def update!(**args)
756
+ @image = args[:image] if args.key?(:image)
757
+ end
758
+ end
759
+
760
+ #
761
+ class InAppProduct
762
+ include Google::Apis::Core::Hashable
763
+
764
+ # The default language of the localized data, as defined by BCP 47. e.g. "en-US",
765
+ # "en-GB".
766
+ # Corresponds to the JSON property `defaultLanguage`
767
+ # @return [String]
768
+ attr_accessor :default_language
769
+
770
+ # Default price cannot be zero. In-app products can never be free. Default price
771
+ # is always in the developer's Checkout merchant currency.
772
+ # Corresponds to the JSON property `defaultPrice`
773
+ # @return [Google::Apis::AndroidpublisherV2::Price]
774
+ attr_accessor :default_price
775
+
776
+ # List of localized title and description data.
777
+ # Corresponds to the JSON property `listings`
778
+ # @return [Hash<String,Google::Apis::AndroidpublisherV2::InAppProductListing>]
779
+ attr_accessor :listings
780
+
781
+ # The package name of the parent app.
782
+ # Corresponds to the JSON property `packageName`
783
+ # @return [String]
784
+ attr_accessor :package_name
785
+
786
+ # Prices per buyer region. None of these prices should be zero. In-app products
787
+ # can never be free.
788
+ # Corresponds to the JSON property `prices`
789
+ # @return [Hash<String,Google::Apis::AndroidpublisherV2::Price>]
790
+ attr_accessor :prices
791
+
792
+ # Purchase type enum value. Unmodifiable after creation.
793
+ # Corresponds to the JSON property `purchaseType`
794
+ # @return [String]
795
+ attr_accessor :purchase_type
796
+
797
+ # Definition of a season for a seasonal subscription. Can be defined only for
798
+ # yearly subscriptions.
799
+ # Corresponds to the JSON property `season`
800
+ # @return [Google::Apis::AndroidpublisherV2::Season]
801
+ attr_accessor :season
802
+
803
+ # The stock-keeping-unit (SKU) of the product, unique within an app.
804
+ # Corresponds to the JSON property `sku`
805
+ # @return [String]
806
+ attr_accessor :sku
807
+
808
+ #
809
+ # Corresponds to the JSON property `status`
810
+ # @return [String]
811
+ attr_accessor :status
812
+
813
+ # Subscription period, specified in ISO 8601 format. Acceptable values are "P1W"
814
+ # (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "
815
+ # P1Y" (one year).
816
+ # Corresponds to the JSON property `subscriptionPeriod`
817
+ # @return [String]
818
+ attr_accessor :subscription_period
819
+
820
+ # Trial period, specified in ISO 8601 format. Acceptable values are anything
821
+ # between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions
822
+ # cannot have a trial period.
823
+ # Corresponds to the JSON property `trialPeriod`
824
+ # @return [String]
825
+ attr_accessor :trial_period
826
+
827
+ def initialize(**args)
828
+ update!(**args)
829
+ end
830
+
831
+ # Update properties of this object
832
+ def update!(**args)
833
+ @default_language = args[:default_language] if args.key?(:default_language)
834
+ @default_price = args[:default_price] if args.key?(:default_price)
835
+ @listings = args[:listings] if args.key?(:listings)
836
+ @package_name = args[:package_name] if args.key?(:package_name)
837
+ @prices = args[:prices] if args.key?(:prices)
838
+ @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
839
+ @season = args[:season] if args.key?(:season)
840
+ @sku = args[:sku] if args.key?(:sku)
841
+ @status = args[:status] if args.key?(:status)
842
+ @subscription_period = args[:subscription_period] if args.key?(:subscription_period)
843
+ @trial_period = args[:trial_period] if args.key?(:trial_period)
844
+ end
845
+ end
846
+
847
+ #
848
+ class InAppProductListing
849
+ include Google::Apis::Core::Hashable
850
+
851
+ #
852
+ # Corresponds to the JSON property `description`
853
+ # @return [String]
854
+ attr_accessor :description
855
+
856
+ #
857
+ # Corresponds to the JSON property `title`
858
+ # @return [String]
859
+ attr_accessor :title
860
+
861
+ def initialize(**args)
862
+ update!(**args)
863
+ end
864
+
865
+ # Update properties of this object
866
+ def update!(**args)
867
+ @description = args[:description] if args.key?(:description)
868
+ @title = args[:title] if args.key?(:title)
869
+ end
870
+ end
871
+
872
+ #
873
+ class InAppProductsBatchRequest
874
+ include Google::Apis::Core::Hashable
875
+
876
+ #
877
+ # Corresponds to the JSON property `entrys`
878
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry>]
879
+ attr_accessor :entrys
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ @entrys = args[:entrys] if args.key?(:entrys)
888
+ end
889
+ end
890
+
891
+ #
892
+ class InAppProductsBatchRequestEntry
893
+ include Google::Apis::Core::Hashable
894
+
895
+ #
896
+ # Corresponds to the JSON property `batchId`
897
+ # @return [Fixnum]
898
+ attr_accessor :batch_id
899
+
900
+ #
901
+ # Corresponds to the JSON property `inappproductsinsertrequest`
902
+ # @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest]
903
+ attr_accessor :inappproductsinsertrequest
904
+
905
+ #
906
+ # Corresponds to the JSON property `inappproductsupdaterequest`
907
+ # @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest]
908
+ attr_accessor :inappproductsupdaterequest
909
+
910
+ #
911
+ # Corresponds to the JSON property `methodName`
912
+ # @return [String]
913
+ attr_accessor :method_name
914
+
915
+ def initialize(**args)
916
+ update!(**args)
917
+ end
918
+
919
+ # Update properties of this object
920
+ def update!(**args)
921
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
922
+ @inappproductsinsertrequest = args[:inappproductsinsertrequest] if args.key?(:inappproductsinsertrequest)
923
+ @inappproductsupdaterequest = args[:inappproductsupdaterequest] if args.key?(:inappproductsupdaterequest)
924
+ @method_name = args[:method_name] if args.key?(:method_name)
925
+ end
926
+ end
927
+
928
+ #
929
+ class InAppProductsBatchResponse
930
+ include Google::Apis::Core::Hashable
931
+
932
+ #
933
+ # Corresponds to the JSON property `entrys`
934
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry>]
935
+ attr_accessor :entrys
936
+
937
+ # Identifies what kind of resource this is. Value: the fixed string "
938
+ # androidpublisher#inappproductsBatchResponse".
939
+ # Corresponds to the JSON property `kind`
940
+ # @return [String]
941
+ attr_accessor :kind
942
+
943
+ def initialize(**args)
944
+ update!(**args)
945
+ end
946
+
947
+ # Update properties of this object
948
+ def update!(**args)
949
+ @entrys = args[:entrys] if args.key?(:entrys)
950
+ @kind = args[:kind] if args.key?(:kind)
951
+ end
952
+ end
953
+
954
+ #
955
+ class InAppProductsBatchResponseEntry
956
+ include Google::Apis::Core::Hashable
957
+
958
+ #
959
+ # Corresponds to the JSON property `batchId`
960
+ # @return [Fixnum]
961
+ attr_accessor :batch_id
962
+
963
+ #
964
+ # Corresponds to the JSON property `inappproductsinsertresponse`
965
+ # @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse]
966
+ attr_accessor :inappproductsinsertresponse
967
+
968
+ #
969
+ # Corresponds to the JSON property `inappproductsupdateresponse`
970
+ # @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse]
971
+ attr_accessor :inappproductsupdateresponse
972
+
973
+ def initialize(**args)
974
+ update!(**args)
975
+ end
976
+
977
+ # Update properties of this object
978
+ def update!(**args)
979
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
980
+ @inappproductsinsertresponse = args[:inappproductsinsertresponse] if args.key?(:inappproductsinsertresponse)
981
+ @inappproductsupdateresponse = args[:inappproductsupdateresponse] if args.key?(:inappproductsupdateresponse)
982
+ end
983
+ end
984
+
985
+ #
986
+ class InsertInAppProductsRequest
987
+ include Google::Apis::Core::Hashable
988
+
989
+ #
990
+ # Corresponds to the JSON property `inappproduct`
991
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
992
+ attr_accessor :inappproduct
993
+
994
+ def initialize(**args)
995
+ update!(**args)
996
+ end
997
+
998
+ # Update properties of this object
999
+ def update!(**args)
1000
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
1001
+ end
1002
+ end
1003
+
1004
+ #
1005
+ class InsertInAppProductsResponse
1006
+ include Google::Apis::Core::Hashable
1007
+
1008
+ #
1009
+ # Corresponds to the JSON property `inappproduct`
1010
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1011
+ attr_accessor :inappproduct
1012
+
1013
+ def initialize(**args)
1014
+ update!(**args)
1015
+ end
1016
+
1017
+ # Update properties of this object
1018
+ def update!(**args)
1019
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
1020
+ end
1021
+ end
1022
+
1023
+ #
1024
+ class ListInAppProductsResponse
1025
+ include Google::Apis::Core::Hashable
1026
+
1027
+ #
1028
+ # Corresponds to the JSON property `inappproduct`
1029
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProduct>]
1030
+ attr_accessor :inappproduct
1031
+
1032
+ # Identifies what kind of resource this is. Value: the fixed string "
1033
+ # androidpublisher#inappproductsListResponse".
1034
+ # Corresponds to the JSON property `kind`
1035
+ # @return [String]
1036
+ attr_accessor :kind
1037
+
1038
+ #
1039
+ # Corresponds to the JSON property `pageInfo`
1040
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
1041
+ attr_accessor :page_info
1042
+
1043
+ #
1044
+ # Corresponds to the JSON property `tokenPagination`
1045
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
1046
+ attr_accessor :token_pagination
1047
+
1048
+ def initialize(**args)
1049
+ update!(**args)
1050
+ end
1051
+
1052
+ # Update properties of this object
1053
+ def update!(**args)
1054
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
1055
+ @kind = args[:kind] if args.key?(:kind)
1056
+ @page_info = args[:page_info] if args.key?(:page_info)
1057
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
1058
+ end
1059
+ end
1060
+
1061
+ #
1062
+ class UpdateInAppProductsRequest
1063
+ include Google::Apis::Core::Hashable
1064
+
1065
+ #
1066
+ # Corresponds to the JSON property `inappproduct`
1067
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1068
+ attr_accessor :inappproduct
1069
+
1070
+ def initialize(**args)
1071
+ update!(**args)
1072
+ end
1073
+
1074
+ # Update properties of this object
1075
+ def update!(**args)
1076
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
1077
+ end
1078
+ end
1079
+
1080
+ #
1081
+ class UpdateInAppProductsResponse
1082
+ include Google::Apis::Core::Hashable
1083
+
1084
+ #
1085
+ # Corresponds to the JSON property `inappproduct`
1086
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
1087
+ attr_accessor :inappproduct
1088
+
1089
+ def initialize(**args)
1090
+ update!(**args)
1091
+ end
1092
+
1093
+ # Update properties of this object
1094
+ def update!(**args)
1095
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
1096
+ end
1097
+ end
1098
+
1099
+ #
1100
+ class Listing
1101
+ include Google::Apis::Core::Hashable
1102
+
1103
+ # Full description of the app; this may be up to 4000 characters in length.
1104
+ # Corresponds to the JSON property `fullDescription`
1105
+ # @return [String]
1106
+ attr_accessor :full_description
1107
+
1108
+ # Language localization code (for example, "de-AT" for Austrian German).
1109
+ # Corresponds to the JSON property `language`
1110
+ # @return [String]
1111
+ attr_accessor :language
1112
+
1113
+ # Short description of the app (previously known as promo text); this may be up
1114
+ # to 80 characters in length.
1115
+ # Corresponds to the JSON property `shortDescription`
1116
+ # @return [String]
1117
+ attr_accessor :short_description
1118
+
1119
+ # App's localized title.
1120
+ # Corresponds to the JSON property `title`
1121
+ # @return [String]
1122
+ attr_accessor :title
1123
+
1124
+ # URL of a promotional YouTube video for the app.
1125
+ # Corresponds to the JSON property `video`
1126
+ # @return [String]
1127
+ attr_accessor :video
1128
+
1129
+ def initialize(**args)
1130
+ update!(**args)
1131
+ end
1132
+
1133
+ # Update properties of this object
1134
+ def update!(**args)
1135
+ @full_description = args[:full_description] if args.key?(:full_description)
1136
+ @language = args[:language] if args.key?(:language)
1137
+ @short_description = args[:short_description] if args.key?(:short_description)
1138
+ @title = args[:title] if args.key?(:title)
1139
+ @video = args[:video] if args.key?(:video)
1140
+ end
1141
+ end
1142
+
1143
+ #
1144
+ class ListListingsResponse
1145
+ include Google::Apis::Core::Hashable
1146
+
1147
+ # Identifies what kind of resource this is. Value: the fixed string "
1148
+ # androidpublisher#listingsListResponse".
1149
+ # Corresponds to the JSON property `kind`
1150
+ # @return [String]
1151
+ attr_accessor :kind
1152
+
1153
+ #
1154
+ # Corresponds to the JSON property `listings`
1155
+ # @return [Array<Google::Apis::AndroidpublisherV2::Listing>]
1156
+ attr_accessor :listings
1157
+
1158
+ def initialize(**args)
1159
+ update!(**args)
1160
+ end
1161
+
1162
+ # Update properties of this object
1163
+ def update!(**args)
1164
+ @kind = args[:kind] if args.key?(:kind)
1165
+ @listings = args[:listings] if args.key?(:listings)
1166
+ end
1167
+ end
1168
+
1169
+ #
1170
+ class MonthDay
1171
+ include Google::Apis::Core::Hashable
1172
+
1173
+ # Day of a month, value in [1, 31] range. Valid range depends on the specified
1174
+ # month.
1175
+ # Corresponds to the JSON property `day`
1176
+ # @return [Fixnum]
1177
+ attr_accessor :day
1178
+
1179
+ # Month of a year. e.g. 1 = JAN, 2 = FEB etc.
1180
+ # Corresponds to the JSON property `month`
1181
+ # @return [Fixnum]
1182
+ attr_accessor :month
1183
+
1184
+ def initialize(**args)
1185
+ update!(**args)
1186
+ end
1187
+
1188
+ # Update properties of this object
1189
+ def update!(**args)
1190
+ @day = args[:day] if args.key?(:day)
1191
+ @month = args[:month] if args.key?(:month)
1192
+ end
1193
+ end
1194
+
1195
+ #
1196
+ class PageInfo
1197
+ include Google::Apis::Core::Hashable
1198
+
1199
+ #
1200
+ # Corresponds to the JSON property `resultPerPage`
1201
+ # @return [Fixnum]
1202
+ attr_accessor :result_per_page
1203
+
1204
+ #
1205
+ # Corresponds to the JSON property `startIndex`
1206
+ # @return [Fixnum]
1207
+ attr_accessor :start_index
1208
+
1209
+ #
1210
+ # Corresponds to the JSON property `totalResults`
1211
+ # @return [Fixnum]
1212
+ attr_accessor :total_results
1213
+
1214
+ def initialize(**args)
1215
+ update!(**args)
1216
+ end
1217
+
1218
+ # Update properties of this object
1219
+ def update!(**args)
1220
+ @result_per_page = args[:result_per_page] if args.key?(:result_per_page)
1221
+ @start_index = args[:start_index] if args.key?(:start_index)
1222
+ @total_results = args[:total_results] if args.key?(:total_results)
1223
+ end
1224
+ end
1225
+
1226
+ #
1227
+ class Price
1228
+ include Google::Apis::Core::Hashable
1229
+
1230
+ # 3 letter Currency code, as defined by ISO 4217.
1231
+ # Corresponds to the JSON property `currency`
1232
+ # @return [String]
1233
+ attr_accessor :currency
1234
+
1235
+ # The price in millionths of the currency base unit represented as a string.
1236
+ # Corresponds to the JSON property `priceMicros`
1237
+ # @return [String]
1238
+ attr_accessor :price_micros
1239
+
1240
+ def initialize(**args)
1241
+ update!(**args)
1242
+ end
1243
+
1244
+ # Update properties of this object
1245
+ def update!(**args)
1246
+ @currency = args[:currency] if args.key?(:currency)
1247
+ @price_micros = args[:price_micros] if args.key?(:price_micros)
1248
+ end
1249
+ end
1250
+
1251
+ # A ProductPurchase resource indicates the status of a user's inapp product
1252
+ # purchase.
1253
+ class ProductPurchase
1254
+ include Google::Apis::Core::Hashable
1255
+
1256
+ # The consumption state of the inapp product. Possible values are:
1257
+ # - Yet to be consumed
1258
+ # - Consumed
1259
+ # Corresponds to the JSON property `consumptionState`
1260
+ # @return [Fixnum]
1261
+ attr_accessor :consumption_state
1262
+
1263
+ # A developer-specified string that contains supplemental information about an
1264
+ # order.
1265
+ # Corresponds to the JSON property `developerPayload`
1266
+ # @return [String]
1267
+ attr_accessor :developer_payload
1268
+
1269
+ # This kind represents an inappPurchase object in the androidpublisher service.
1270
+ # Corresponds to the JSON property `kind`
1271
+ # @return [String]
1272
+ attr_accessor :kind
1273
+
1274
+ # The purchase state of the order. Possible values are:
1275
+ # - Purchased
1276
+ # - Cancelled
1277
+ # Corresponds to the JSON property `purchaseState`
1278
+ # @return [Fixnum]
1279
+ attr_accessor :purchase_state
1280
+
1281
+ # The time the product was purchased, in milliseconds since the epoch (Jan 1,
1282
+ # 1970).
1283
+ # Corresponds to the JSON property `purchaseTimeMillis`
1284
+ # @return [String]
1285
+ attr_accessor :purchase_time_millis
1286
+
1287
+ def initialize(**args)
1288
+ update!(**args)
1289
+ end
1290
+
1291
+ # Update properties of this object
1292
+ def update!(**args)
1293
+ @consumption_state = args[:consumption_state] if args.key?(:consumption_state)
1294
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
1295
+ @kind = args[:kind] if args.key?(:kind)
1296
+ @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
1297
+ @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
1298
+ end
1299
+ end
1300
+
1301
+ #
1302
+ class Prorate
1303
+ include Google::Apis::Core::Hashable
1304
+
1305
+ # Default price cannot be zero and must be less than the full subscription price.
1306
+ # Default price is always in the developer's Checkout merchant currency.
1307
+ # Targeted countries have their prices set automatically based on the
1308
+ # default_price.
1309
+ # Corresponds to the JSON property `defaultPrice`
1310
+ # @return [Google::Apis::AndroidpublisherV2::Price]
1311
+ attr_accessor :default_price
1312
+
1313
+ # Defines the first day on which the price takes effect.
1314
+ # Corresponds to the JSON property `start`
1315
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1316
+ attr_accessor :start
1317
+
1318
+ def initialize(**args)
1319
+ update!(**args)
1320
+ end
1321
+
1322
+ # Update properties of this object
1323
+ def update!(**args)
1324
+ @default_price = args[:default_price] if args.key?(:default_price)
1325
+ @start = args[:start] if args.key?(:start)
1326
+ end
1327
+ end
1328
+
1329
+ #
1330
+ class Review
1331
+ include Google::Apis::Core::Hashable
1332
+
1333
+ # The name of the user who wrote the review.
1334
+ # Corresponds to the JSON property `authorName`
1335
+ # @return [String]
1336
+ attr_accessor :author_name
1337
+
1338
+ # A repeated field containing comments for the review.
1339
+ # Corresponds to the JSON property `comments`
1340
+ # @return [Array<Google::Apis::AndroidpublisherV2::Comment>]
1341
+ attr_accessor :comments
1342
+
1343
+ # Unique identifier for this review.
1344
+ # Corresponds to the JSON property `reviewId`
1345
+ # @return [String]
1346
+ attr_accessor :review_id
1347
+
1348
+ def initialize(**args)
1349
+ update!(**args)
1350
+ end
1351
+
1352
+ # Update properties of this object
1353
+ def update!(**args)
1354
+ @author_name = args[:author_name] if args.key?(:author_name)
1355
+ @comments = args[:comments] if args.key?(:comments)
1356
+ @review_id = args[:review_id] if args.key?(:review_id)
1357
+ end
1358
+ end
1359
+
1360
+ #
1361
+ class ReviewReplyResult
1362
+ include Google::Apis::Core::Hashable
1363
+
1364
+ # The time at which the reply took effect.
1365
+ # Corresponds to the JSON property `lastEdited`
1366
+ # @return [Google::Apis::AndroidpublisherV2::Timestamp]
1367
+ attr_accessor :last_edited
1368
+
1369
+ # The reply text that was applied.
1370
+ # Corresponds to the JSON property `replyText`
1371
+ # @return [String]
1372
+ attr_accessor :reply_text
1373
+
1374
+ def initialize(**args)
1375
+ update!(**args)
1376
+ end
1377
+
1378
+ # Update properties of this object
1379
+ def update!(**args)
1380
+ @last_edited = args[:last_edited] if args.key?(:last_edited)
1381
+ @reply_text = args[:reply_text] if args.key?(:reply_text)
1382
+ end
1383
+ end
1384
+
1385
+ #
1386
+ class ReviewsListResponse
1387
+ include Google::Apis::Core::Hashable
1388
+
1389
+ #
1390
+ # Corresponds to the JSON property `pageInfo`
1391
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
1392
+ attr_accessor :page_info
1393
+
1394
+ #
1395
+ # Corresponds to the JSON property `reviews`
1396
+ # @return [Array<Google::Apis::AndroidpublisherV2::Review>]
1397
+ attr_accessor :reviews
1398
+
1399
+ #
1400
+ # Corresponds to the JSON property `tokenPagination`
1401
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
1402
+ attr_accessor :token_pagination
1403
+
1404
+ def initialize(**args)
1405
+ update!(**args)
1406
+ end
1407
+
1408
+ # Update properties of this object
1409
+ def update!(**args)
1410
+ @page_info = args[:page_info] if args.key?(:page_info)
1411
+ @reviews = args[:reviews] if args.key?(:reviews)
1412
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
1413
+ end
1414
+ end
1415
+
1416
+ #
1417
+ class ReviewsReplyRequest
1418
+ include Google::Apis::Core::Hashable
1419
+
1420
+ # The text to set as the reply. Replies of more than approximately 350
1421
+ # characters will be rejected. HTML tags will be stripped.
1422
+ # Corresponds to the JSON property `replyText`
1423
+ # @return [String]
1424
+ attr_accessor :reply_text
1425
+
1426
+ def initialize(**args)
1427
+ update!(**args)
1428
+ end
1429
+
1430
+ # Update properties of this object
1431
+ def update!(**args)
1432
+ @reply_text = args[:reply_text] if args.key?(:reply_text)
1433
+ end
1434
+ end
1435
+
1436
+ #
1437
+ class ReviewsReplyResponse
1438
+ include Google::Apis::Core::Hashable
1439
+
1440
+ #
1441
+ # Corresponds to the JSON property `result`
1442
+ # @return [Google::Apis::AndroidpublisherV2::ReviewReplyResult]
1443
+ attr_accessor :result
1444
+
1445
+ def initialize(**args)
1446
+ update!(**args)
1447
+ end
1448
+
1449
+ # Update properties of this object
1450
+ def update!(**args)
1451
+ @result = args[:result] if args.key?(:result)
1452
+ end
1453
+ end
1454
+
1455
+ #
1456
+ class Season
1457
+ include Google::Apis::Core::Hashable
1458
+
1459
+ # Inclusive end date of the recurrence period.
1460
+ # Corresponds to the JSON property `end`
1461
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1462
+ attr_accessor :end
1463
+
1464
+ # Optionally present list of prorations for the season. Each proration is a one-
1465
+ # off discounted entry into a subscription. Each proration contains the first
1466
+ # date on which the discount is available and the new pricing information.
1467
+ # Corresponds to the JSON property `prorations`
1468
+ # @return [Array<Google::Apis::AndroidpublisherV2::Prorate>]
1469
+ attr_accessor :prorations
1470
+
1471
+ # Inclusive start date of the recurrence period.
1472
+ # Corresponds to the JSON property `start`
1473
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1474
+ attr_accessor :start
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @end = args[:end] if args.key?(:end)
1483
+ @prorations = args[:prorations] if args.key?(:prorations)
1484
+ @start = args[:start] if args.key?(:start)
1485
+ end
1486
+ end
1487
+
1488
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1489
+ # purchase to a future expiry time.
1490
+ class SubscriptionDeferralInfo
1491
+ include Google::Apis::Core::Hashable
1492
+
1493
+ # The desired next expiry time to assign to the subscription, in milliseconds
1494
+ # since the Epoch. The given time must be later/greater than the current expiry
1495
+ # time for the subscription.
1496
+ # Corresponds to the JSON property `desiredExpiryTimeMillis`
1497
+ # @return [String]
1498
+ attr_accessor :desired_expiry_time_millis
1499
+
1500
+ # The expected expiry time for the subscription. If the current expiry time for
1501
+ # the subscription is not the value specified here, the deferral will not occur.
1502
+ # Corresponds to the JSON property `expectedExpiryTimeMillis`
1503
+ # @return [String]
1504
+ attr_accessor :expected_expiry_time_millis
1505
+
1506
+ def initialize(**args)
1507
+ update!(**args)
1508
+ end
1509
+
1510
+ # Update properties of this object
1511
+ def update!(**args)
1512
+ @desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
1513
+ @expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
1514
+ end
1515
+ end
1516
+
1517
+ # A SubscriptionPurchase resource indicates the status of a user's subscription
1518
+ # purchase.
1519
+ class SubscriptionPurchase
1520
+ include Google::Apis::Core::Hashable
1521
+
1522
+ # Whether the subscription will automatically be renewed when it reaches its
1523
+ # current expiry time.
1524
+ # Corresponds to the JSON property `autoRenewing`
1525
+ # @return [Boolean]
1526
+ attr_accessor :auto_renewing
1527
+ alias_method :auto_renewing?, :auto_renewing
1528
+
1529
+ # The reason why a subscription was cancelled or is not auto-renewing. Possible
1530
+ # values are:
1531
+ # - User cancelled the subscription
1532
+ # - Subscription was cancelled by the system, for example because of a billing
1533
+ # problem
1534
+ # Corresponds to the JSON property `cancelReason`
1535
+ # @return [Fixnum]
1536
+ attr_accessor :cancel_reason
1537
+
1538
+ # ISO 3166-1 alpha-2 billing country/region code of the user at the time the
1539
+ # subscription was granted.
1540
+ # Corresponds to the JSON property `countryCode`
1541
+ # @return [String]
1542
+ attr_accessor :country_code
1543
+
1544
+ # A developer-specified string that contains supplemental information about an
1545
+ # order.
1546
+ # Corresponds to the JSON property `developerPayload`
1547
+ # @return [String]
1548
+ attr_accessor :developer_payload
1549
+
1550
+ # Time at which the subscription will expire, in milliseconds since the Epoch.
1551
+ # Corresponds to the JSON property `expiryTimeMillis`
1552
+ # @return [String]
1553
+ attr_accessor :expiry_time_millis
1554
+
1555
+ # This kind represents a subscriptionPurchase object in the androidpublisher
1556
+ # service.
1557
+ # Corresponds to the JSON property `kind`
1558
+ # @return [String]
1559
+ attr_accessor :kind
1560
+
1561
+ # The payment state of the subscription. Possible values are:
1562
+ # - Payment pending
1563
+ # - Payment received
1564
+ # Corresponds to the JSON property `paymentState`
1565
+ # @return [Fixnum]
1566
+ attr_accessor :payment_state
1567
+
1568
+ # Price of the subscription, not including tax. Price is expressed in micro-
1569
+ # units, where 1,000,000 micro-units represents one unit of the currency. For
1570
+ # example, if the subscription price is €1.99, price_amount_micros is 1990000.
1571
+ # Corresponds to the JSON property `priceAmountMicros`
1572
+ # @return [String]
1573
+ attr_accessor :price_amount_micros
1574
+
1575
+ # ISO 4217 currency code for the subscription price. For example, if the price
1576
+ # is specified in British pounds sterling, price_currency_code is "GBP".
1577
+ # Corresponds to the JSON property `priceCurrencyCode`
1578
+ # @return [String]
1579
+ attr_accessor :price_currency_code
1580
+
1581
+ # Time at which the subscription was granted, in milliseconds since the Epoch.
1582
+ # Corresponds to the JSON property `startTimeMillis`
1583
+ # @return [String]
1584
+ attr_accessor :start_time_millis
1585
+
1586
+ def initialize(**args)
1587
+ update!(**args)
1588
+ end
1589
+
1590
+ # Update properties of this object
1591
+ def update!(**args)
1592
+ @auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
1593
+ @cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
1594
+ @country_code = args[:country_code] if args.key?(:country_code)
1595
+ @developer_payload = args[:developer_payload] if args.key?(:developer_payload)
1596
+ @expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
1597
+ @kind = args[:kind] if args.key?(:kind)
1598
+ @payment_state = args[:payment_state] if args.key?(:payment_state)
1599
+ @price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
1600
+ @price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
1601
+ @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
1602
+ end
1603
+ end
1604
+
1605
+ #
1606
+ class DeferSubscriptionPurchasesRequest
1607
+ include Google::Apis::Core::Hashable
1608
+
1609
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1610
+ # purchase to a future expiry time.
1611
+ # Corresponds to the JSON property `deferralInfo`
1612
+ # @return [Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo]
1613
+ attr_accessor :deferral_info
1614
+
1615
+ def initialize(**args)
1616
+ update!(**args)
1617
+ end
1618
+
1619
+ # Update properties of this object
1620
+ def update!(**args)
1621
+ @deferral_info = args[:deferral_info] if args.key?(:deferral_info)
1622
+ end
1623
+ end
1624
+
1625
+ #
1626
+ class DeferSubscriptionPurchasesResponse
1627
+ include Google::Apis::Core::Hashable
1628
+
1629
+ # The new expiry time for the subscription in milliseconds since the Epoch.
1630
+ # Corresponds to the JSON property `newExpiryTimeMillis`
1631
+ # @return [String]
1632
+ attr_accessor :new_expiry_time_millis
1633
+
1634
+ def initialize(**args)
1635
+ update!(**args)
1636
+ end
1637
+
1638
+ # Update properties of this object
1639
+ def update!(**args)
1640
+ @new_expiry_time_millis = args[:new_expiry_time_millis] if args.key?(:new_expiry_time_millis)
1641
+ end
1642
+ end
1643
+
1644
+ #
1645
+ class Testers
1646
+ include Google::Apis::Core::Hashable
1647
+
1648
+ #
1649
+ # Corresponds to the JSON property `googleGroups`
1650
+ # @return [Array<String>]
1651
+ attr_accessor :google_groups
1652
+
1653
+ #
1654
+ # Corresponds to the JSON property `googlePlusCommunities`
1655
+ # @return [Array<String>]
1656
+ attr_accessor :google_plus_communities
1657
+
1658
+ def initialize(**args)
1659
+ update!(**args)
1660
+ end
1661
+
1662
+ # Update properties of this object
1663
+ def update!(**args)
1664
+ @google_groups = args[:google_groups] if args.key?(:google_groups)
1665
+ @google_plus_communities = args[:google_plus_communities] if args.key?(:google_plus_communities)
1666
+ end
1667
+ end
1668
+
1669
+ #
1670
+ class Timestamp
1671
+ include Google::Apis::Core::Hashable
1672
+
1673
+ #
1674
+ # Corresponds to the JSON property `nanos`
1675
+ # @return [Fixnum]
1676
+ attr_accessor :nanos
1677
+
1678
+ #
1679
+ # Corresponds to the JSON property `seconds`
1680
+ # @return [String]
1681
+ attr_accessor :seconds
1682
+
1683
+ def initialize(**args)
1684
+ update!(**args)
1685
+ end
1686
+
1687
+ # Update properties of this object
1688
+ def update!(**args)
1689
+ @nanos = args[:nanos] if args.key?(:nanos)
1690
+ @seconds = args[:seconds] if args.key?(:seconds)
1691
+ end
1692
+ end
1693
+
1694
+ #
1695
+ class TokenPagination
1696
+ include Google::Apis::Core::Hashable
1697
+
1698
+ #
1699
+ # Corresponds to the JSON property `nextPageToken`
1700
+ # @return [String]
1701
+ attr_accessor :next_page_token
1702
+
1703
+ #
1704
+ # Corresponds to the JSON property `previousPageToken`
1705
+ # @return [String]
1706
+ attr_accessor :previous_page_token
1707
+
1708
+ def initialize(**args)
1709
+ update!(**args)
1710
+ end
1711
+
1712
+ # Update properties of this object
1713
+ def update!(**args)
1714
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1715
+ @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
1716
+ end
1717
+ end
1718
+
1719
+ #
1720
+ class Track
1721
+ include Google::Apis::Core::Hashable
1722
+
1723
+ #
1724
+ # Corresponds to the JSON property `track`
1725
+ # @return [String]
1726
+ attr_accessor :track
1727
+
1728
+ #
1729
+ # Corresponds to the JSON property `userFraction`
1730
+ # @return [Float]
1731
+ attr_accessor :user_fraction
1732
+
1733
+ #
1734
+ # Corresponds to the JSON property `versionCodes`
1735
+ # @return [Array<Fixnum>]
1736
+ attr_accessor :version_codes
1737
+
1738
+ def initialize(**args)
1739
+ update!(**args)
1740
+ end
1741
+
1742
+ # Update properties of this object
1743
+ def update!(**args)
1744
+ @track = args[:track] if args.key?(:track)
1745
+ @user_fraction = args[:user_fraction] if args.key?(:user_fraction)
1746
+ @version_codes = args[:version_codes] if args.key?(:version_codes)
1747
+ end
1748
+ end
1749
+
1750
+ #
1751
+ class ListTracksResponse
1752
+ include Google::Apis::Core::Hashable
1753
+
1754
+ # Identifies what kind of resource this is. Value: the fixed string "
1755
+ # androidpublisher#tracksListResponse".
1756
+ # Corresponds to the JSON property `kind`
1757
+ # @return [String]
1758
+ attr_accessor :kind
1759
+
1760
+ #
1761
+ # Corresponds to the JSON property `tracks`
1762
+ # @return [Array<Google::Apis::AndroidpublisherV2::Track>]
1763
+ attr_accessor :tracks
1764
+
1765
+ def initialize(**args)
1766
+ update!(**args)
1767
+ end
1768
+
1769
+ # Update properties of this object
1770
+ def update!(**args)
1771
+ @kind = args[:kind] if args.key?(:kind)
1772
+ @tracks = args[:tracks] if args.key?(:tracks)
1773
+ end
1774
+ end
1775
+
1776
+ #
1777
+ class UserComment
1778
+ include Google::Apis::Core::Hashable
1779
+
1780
+ # Integer Android SDK version of the user's device at the time the review was
1781
+ # written, e.g. 23 is Marshmallow. May be absent.
1782
+ # Corresponds to the JSON property `androidOsVersion`
1783
+ # @return [Fixnum]
1784
+ attr_accessor :android_os_version
1785
+
1786
+ # Integer version code of the app as installed at the time the review was
1787
+ # written. May be absent.
1788
+ # Corresponds to the JSON property `appVersionCode`
1789
+ # @return [Fixnum]
1790
+ attr_accessor :app_version_code
1791
+
1792
+ # String version name of the app as installed at the time the review was written.
1793
+ # May be absent.
1794
+ # Corresponds to the JSON property `appVersionName`
1795
+ # @return [String]
1796
+ attr_accessor :app_version_name
1797
+
1798
+ # Codename for the reviewer's device, e.g. klte, flounder. May be absent.
1799
+ # Corresponds to the JSON property `device`
1800
+ # @return [String]
1801
+ attr_accessor :device
1802
+
1803
+ # Some information about the characteristics of the user's device
1804
+ # Corresponds to the JSON property `deviceMetadata`
1805
+ # @return [Google::Apis::AndroidpublisherV2::DeviceMetadata]
1806
+ attr_accessor :device_metadata
1807
+
1808
+ # The last time at which this comment was updated.
1809
+ # Corresponds to the JSON property `lastModified`
1810
+ # @return [Google::Apis::AndroidpublisherV2::Timestamp]
1811
+ attr_accessor :last_modified
1812
+
1813
+ # Untranslated text of the review, in the case where the review has been
1814
+ # translated. If the review has not been translated this is left blank.
1815
+ # Corresponds to the JSON property `originalText`
1816
+ # @return [String]
1817
+ attr_accessor :original_text
1818
+
1819
+ # Language code for the reviewer. This is taken from the device settings so is
1820
+ # not guaranteed to match the language the review is written in. May be absent.
1821
+ # Corresponds to the JSON property `reviewerLanguage`
1822
+ # @return [String]
1823
+ attr_accessor :reviewer_language
1824
+
1825
+ # The star rating associated with the review, from 1 to 5.
1826
+ # Corresponds to the JSON property `starRating`
1827
+ # @return [Fixnum]
1828
+ attr_accessor :star_rating
1829
+
1830
+ # The content of the comment, i.e. review body. In some cases users have been
1831
+ # able to write a review with separate title and body; in those cases the title
1832
+ # and body are concatenated and separated by a tab character.
1833
+ # Corresponds to the JSON property `text`
1834
+ # @return [String]
1835
+ attr_accessor :text
1836
+
1837
+ # Number of users who have given this review a thumbs down
1838
+ # Corresponds to the JSON property `thumbsDownCount`
1839
+ # @return [Fixnum]
1840
+ attr_accessor :thumbs_down_count
1841
+
1842
+ # Number of users who have given this review a thumbs up
1843
+ # Corresponds to the JSON property `thumbsUpCount`
1844
+ # @return [Fixnum]
1845
+ attr_accessor :thumbs_up_count
1846
+
1847
+ def initialize(**args)
1848
+ update!(**args)
1849
+ end
1850
+
1851
+ # Update properties of this object
1852
+ def update!(**args)
1853
+ @android_os_version = args[:android_os_version] if args.key?(:android_os_version)
1854
+ @app_version_code = args[:app_version_code] if args.key?(:app_version_code)
1855
+ @app_version_name = args[:app_version_name] if args.key?(:app_version_name)
1856
+ @device = args[:device] if args.key?(:device)
1857
+ @device_metadata = args[:device_metadata] if args.key?(:device_metadata)
1858
+ @last_modified = args[:last_modified] if args.key?(:last_modified)
1859
+ @original_text = args[:original_text] if args.key?(:original_text)
1860
+ @reviewer_language = args[:reviewer_language] if args.key?(:reviewer_language)
1861
+ @star_rating = args[:star_rating] if args.key?(:star_rating)
1862
+ @text = args[:text] if args.key?(:text)
1863
+ @thumbs_down_count = args[:thumbs_down_count] if args.key?(:thumbs_down_count)
1864
+ @thumbs_up_count = args[:thumbs_up_count] if args.key?(:thumbs_up_count)
1865
+ end
1866
+ end
1867
+
1868
+ # A VoidedPurchase resource indicates a purchase that was either cancelled/
1869
+ # refunded/charged-back.
1870
+ class VoidedPurchase
1871
+ include Google::Apis::Core::Hashable
1872
+
1873
+ # This kind represents a voided purchase object in the androidpublisher service.
1874
+ # Corresponds to the JSON property `kind`
1875
+ # @return [String]
1876
+ attr_accessor :kind
1877
+
1878
+ # The time at which the purchase was made, in milliseconds since the epoch (Jan
1879
+ # 1, 1970).
1880
+ # Corresponds to the JSON property `purchaseTimeMillis`
1881
+ # @return [String]
1882
+ attr_accessor :purchase_time_millis
1883
+
1884
+ # The token that was generated when a purchase was made. This uniquely
1885
+ # identifies a purchase.
1886
+ # Corresponds to the JSON property `purchaseToken`
1887
+ # @return [String]
1888
+ attr_accessor :purchase_token
1889
+
1890
+ # The time at which the purchase was cancelled/refunded/charged-back, in
1891
+ # milliseconds since the epoch (Jan 1, 1970).
1892
+ # Corresponds to the JSON property `voidedTimeMillis`
1893
+ # @return [String]
1894
+ attr_accessor :voided_time_millis
1895
+
1896
+ def initialize(**args)
1897
+ update!(**args)
1898
+ end
1899
+
1900
+ # Update properties of this object
1901
+ def update!(**args)
1902
+ @kind = args[:kind] if args.key?(:kind)
1903
+ @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
1904
+ @purchase_token = args[:purchase_token] if args.key?(:purchase_token)
1905
+ @voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
1906
+ end
1907
+ end
1908
+
1909
+ #
1910
+ class VoidedPurchasesListResponse
1911
+ include Google::Apis::Core::Hashable
1912
+
1913
+ #
1914
+ # Corresponds to the JSON property `pageInfo`
1915
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
1916
+ attr_accessor :page_info
1917
+
1918
+ #
1919
+ # Corresponds to the JSON property `tokenPagination`
1920
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
1921
+ attr_accessor :token_pagination
1922
+
1923
+ #
1924
+ # Corresponds to the JSON property `voidedPurchases`
1925
+ # @return [Array<Google::Apis::AndroidpublisherV2::VoidedPurchase>]
1926
+ attr_accessor :voided_purchases
1927
+
1928
+ def initialize(**args)
1929
+ update!(**args)
1930
+ end
1931
+
1932
+ # Update properties of this object
1933
+ def update!(**args)
1934
+ @page_info = args[:page_info] if args.key?(:page_info)
1935
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
1936
+ @voided_purchases = args[:voided_purchases] if args.key?(:voided_purchases)
1937
+ end
1938
+ end
1939
+ end
1940
+ end
1941
+ end