google-api-client 0.8.6 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,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 = '20160111'
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,1411 @@
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] unless args[:binary].nil?
46
+ @version_code = args[:version_code] unless args[:version_code].nil?
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] unless args[:sha1].nil?
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] unless args[:language].nil?
91
+ @recent_changes = args[:recent_changes] unless args[:recent_changes].nil?
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] unless args[:kind].nil?
117
+ @listings = args[:listings] unless args[:listings].nil?
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] unless args[:externally_hosted_apk].nil?
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] unless args[:externally_hosted_apk].nil?
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] unless args[:apks].nil?
187
+ @kind = args[:kind] unless args[:kind].nil?
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] unless args[:contact_email].nil?
222
+ @contact_phone = args[:contact_phone] unless args[:contact_phone].nil?
223
+ @contact_website = args[:contact_website] unless args[:contact_website].nil?
224
+ @default_language = args[:default_language] unless args[:default_language].nil?
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] unless args[:expiry_time_seconds].nil?
251
+ @id = args[:id] unless args[:id].nil?
252
+ end
253
+ end
254
+
255
+ # An Entitlement resource indicates a user's current entitlement to an inapp
256
+ # item or subscription.
257
+ class Entitlement
258
+ include Google::Apis::Core::Hashable
259
+
260
+ # This kind represents an entitlement object in the androidpublisher service.
261
+ # Corresponds to the JSON property `kind`
262
+ # @return [String]
263
+ attr_accessor :kind
264
+
265
+ # The SKU of the product.
266
+ # Corresponds to the JSON property `productId`
267
+ # @return [String]
268
+ attr_accessor :product_id
269
+
270
+ # The type of the inapp product. Possible values are:
271
+ # - In-app item: "inapp"
272
+ # - Subscription: "subs"
273
+ # Corresponds to the JSON property `productType`
274
+ # @return [String]
275
+ attr_accessor :product_type
276
+
277
+ # The token which can be verified using the subscriptions or products API.
278
+ # Corresponds to the JSON property `token`
279
+ # @return [String]
280
+ attr_accessor :token
281
+
282
+ def initialize(**args)
283
+ update!(**args)
284
+ end
285
+
286
+ # Update properties of this object
287
+ def update!(**args)
288
+ @kind = args[:kind] unless args[:kind].nil?
289
+ @product_id = args[:product_id] unless args[:product_id].nil?
290
+ @product_type = args[:product_type] unless args[:product_type].nil?
291
+ @token = args[:token] unless args[:token].nil?
292
+ end
293
+ end
294
+
295
+ #
296
+ class ListEntitlementsResponse
297
+ include Google::Apis::Core::Hashable
298
+
299
+ #
300
+ # Corresponds to the JSON property `pageInfo`
301
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
302
+ attr_accessor :page_info
303
+
304
+ #
305
+ # Corresponds to the JSON property `resources`
306
+ # @return [Array<Google::Apis::AndroidpublisherV2::Entitlement>]
307
+ attr_accessor :resources
308
+
309
+ #
310
+ # Corresponds to the JSON property `tokenPagination`
311
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
312
+ attr_accessor :token_pagination
313
+
314
+ def initialize(**args)
315
+ update!(**args)
316
+ end
317
+
318
+ # Update properties of this object
319
+ def update!(**args)
320
+ @page_info = args[:page_info] unless args[:page_info].nil?
321
+ @resources = args[:resources] unless args[:resources].nil?
322
+ @token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
323
+ end
324
+ end
325
+
326
+ #
327
+ class ExpansionFile
328
+ include Google::Apis::Core::Hashable
329
+
330
+ # If set this field indicates that this APK has an Expansion File uploaded to it:
331
+ # this APK does not reference another APK's Expansion File. The field's value
332
+ # is the size of the uploaded Expansion File in bytes.
333
+ # Corresponds to the JSON property `fileSize`
334
+ # @return [String]
335
+ attr_accessor :file_size
336
+
337
+ # If set this APK's Expansion File references another APK's Expansion File. The
338
+ # file_size field will not be set.
339
+ # Corresponds to the JSON property `referencesVersion`
340
+ # @return [Fixnum]
341
+ attr_accessor :references_version
342
+
343
+ def initialize(**args)
344
+ update!(**args)
345
+ end
346
+
347
+ # Update properties of this object
348
+ def update!(**args)
349
+ @file_size = args[:file_size] unless args[:file_size].nil?
350
+ @references_version = args[:references_version] unless args[:references_version].nil?
351
+ end
352
+ end
353
+
354
+ #
355
+ class UploadExpansionFilesResponse
356
+ include Google::Apis::Core::Hashable
357
+
358
+ #
359
+ # Corresponds to the JSON property `expansionFile`
360
+ # @return [Google::Apis::AndroidpublisherV2::ExpansionFile]
361
+ attr_accessor :expansion_file
362
+
363
+ def initialize(**args)
364
+ update!(**args)
365
+ end
366
+
367
+ # Update properties of this object
368
+ def update!(**args)
369
+ @expansion_file = args[:expansion_file] unless args[:expansion_file].nil?
370
+ end
371
+ end
372
+
373
+ # Defines an APK available for this application that is hosted externally and
374
+ # not uploaded to Google Play. This function is only available to enterprises
375
+ # who are using Google Play for Work, and whos application is restricted to the
376
+ # enterprise private channel
377
+ class ExternallyHostedApk
378
+ include Google::Apis::Core::Hashable
379
+
380
+ # The application label.
381
+ # Corresponds to the JSON property `applicationLabel`
382
+ # @return [String]
383
+ attr_accessor :application_label
384
+
385
+ # A certificate (or array of certificates if a certificate-chain is used) used
386
+ # to signed this APK, represented as a base64 encoded byte array.
387
+ # Corresponds to the JSON property `certificateBase64s`
388
+ # @return [Array<String>]
389
+ attr_accessor :certificate_base64s
390
+
391
+ # The URL at which the APK is hosted. This must be an https URL.
392
+ # Corresponds to the JSON property `externallyHostedUrl`
393
+ # @return [String]
394
+ attr_accessor :externally_hosted_url
395
+
396
+ # The SHA1 checksum of this APK, represented as a base64 encoded byte array.
397
+ # Corresponds to the JSON property `fileSha1Base64`
398
+ # @return [String]
399
+ attr_accessor :file_sha1_base64
400
+
401
+ # The SHA256 checksum of this APK, represented as a base64 encoded byte array.
402
+ # Corresponds to the JSON property `fileSha256Base64`
403
+ # @return [String]
404
+ attr_accessor :file_sha256_base64
405
+
406
+ # The file size in bytes of this APK.
407
+ # Corresponds to the JSON property `fileSize`
408
+ # @return [String]
409
+ attr_accessor :file_size
410
+
411
+ # The icon image from the APK, as a base64 encoded byte array.
412
+ # Corresponds to the JSON property `iconBase64`
413
+ # @return [String]
414
+ attr_accessor :icon_base64
415
+
416
+ # The maximum SDK supported by this APK (optional).
417
+ # Corresponds to the JSON property `maximumSdk`
418
+ # @return [Fixnum]
419
+ attr_accessor :maximum_sdk
420
+
421
+ # The minimum SDK targeted by this APK.
422
+ # Corresponds to the JSON property `minimumSdk`
423
+ # @return [Fixnum]
424
+ attr_accessor :minimum_sdk
425
+
426
+ # The native code environments supported by this APK (optional).
427
+ # Corresponds to the JSON property `nativeCodes`
428
+ # @return [Array<String>]
429
+ attr_accessor :native_codes
430
+
431
+ # The package name.
432
+ # Corresponds to the JSON property `packageName`
433
+ # @return [String]
434
+ attr_accessor :package_name
435
+
436
+ # The features required by this APK (optional).
437
+ # Corresponds to the JSON property `usesFeatures`
438
+ # @return [Array<String>]
439
+ attr_accessor :uses_features
440
+
441
+ # The permissions requested by this APK.
442
+ # Corresponds to the JSON property `usesPermissions`
443
+ # @return [Array<Google::Apis::AndroidpublisherV2::ExternallyHostedApkUsesPermission>]
444
+ attr_accessor :uses_permissions
445
+
446
+ # The version code of this APK.
447
+ # Corresponds to the JSON property `versionCode`
448
+ # @return [Fixnum]
449
+ attr_accessor :version_code
450
+
451
+ # The version name of this APK.
452
+ # Corresponds to the JSON property `versionName`
453
+ # @return [String]
454
+ attr_accessor :version_name
455
+
456
+ def initialize(**args)
457
+ update!(**args)
458
+ end
459
+
460
+ # Update properties of this object
461
+ def update!(**args)
462
+ @application_label = args[:application_label] unless args[:application_label].nil?
463
+ @certificate_base64s = args[:certificate_base64s] unless args[:certificate_base64s].nil?
464
+ @externally_hosted_url = args[:externally_hosted_url] unless args[:externally_hosted_url].nil?
465
+ @file_sha1_base64 = args[:file_sha1_base64] unless args[:file_sha1_base64].nil?
466
+ @file_sha256_base64 = args[:file_sha256_base64] unless args[:file_sha256_base64].nil?
467
+ @file_size = args[:file_size] unless args[:file_size].nil?
468
+ @icon_base64 = args[:icon_base64] unless args[:icon_base64].nil?
469
+ @maximum_sdk = args[:maximum_sdk] unless args[:maximum_sdk].nil?
470
+ @minimum_sdk = args[:minimum_sdk] unless args[:minimum_sdk].nil?
471
+ @native_codes = args[:native_codes] unless args[:native_codes].nil?
472
+ @package_name = args[:package_name] unless args[:package_name].nil?
473
+ @uses_features = args[:uses_features] unless args[:uses_features].nil?
474
+ @uses_permissions = args[:uses_permissions] unless args[:uses_permissions].nil?
475
+ @version_code = args[:version_code] unless args[:version_code].nil?
476
+ @version_name = args[:version_name] unless args[:version_name].nil?
477
+ end
478
+ end
479
+
480
+ # A permission used by this APK.
481
+ class ExternallyHostedApkUsesPermission
482
+ include Google::Apis::Core::Hashable
483
+
484
+ # Optionally, the maximum SDK version for which the permission is required.
485
+ # Corresponds to the JSON property `maxSdkVersion`
486
+ # @return [Fixnum]
487
+ attr_accessor :max_sdk_version
488
+
489
+ # The name of the permission requested.
490
+ # Corresponds to the JSON property `name`
491
+ # @return [String]
492
+ attr_accessor :name
493
+
494
+ def initialize(**args)
495
+ update!(**args)
496
+ end
497
+
498
+ # Update properties of this object
499
+ def update!(**args)
500
+ @max_sdk_version = args[:max_sdk_version] unless args[:max_sdk_version].nil?
501
+ @name = args[:name] unless args[:name].nil?
502
+ end
503
+ end
504
+
505
+ #
506
+ class Image
507
+ include Google::Apis::Core::Hashable
508
+
509
+ # A unique id representing this image.
510
+ # Corresponds to the JSON property `id`
511
+ # @return [String]
512
+ attr_accessor :id
513
+
514
+ # A sha1 hash of the image that was uploaded.
515
+ # Corresponds to the JSON property `sha1`
516
+ # @return [String]
517
+ attr_accessor :sha1
518
+
519
+ # A URL that will serve a preview of the image.
520
+ # Corresponds to the JSON property `url`
521
+ # @return [String]
522
+ attr_accessor :url
523
+
524
+ def initialize(**args)
525
+ update!(**args)
526
+ end
527
+
528
+ # Update properties of this object
529
+ def update!(**args)
530
+ @id = args[:id] unless args[:id].nil?
531
+ @sha1 = args[:sha1] unless args[:sha1].nil?
532
+ @url = args[:url] unless args[:url].nil?
533
+ end
534
+ end
535
+
536
+ #
537
+ class ImagesDeleteAllResponse
538
+ include Google::Apis::Core::Hashable
539
+
540
+ #
541
+ # Corresponds to the JSON property `deleted`
542
+ # @return [Array<Google::Apis::AndroidpublisherV2::Image>]
543
+ attr_accessor :deleted
544
+
545
+ def initialize(**args)
546
+ update!(**args)
547
+ end
548
+
549
+ # Update properties of this object
550
+ def update!(**args)
551
+ @deleted = args[:deleted] unless args[:deleted].nil?
552
+ end
553
+ end
554
+
555
+ #
556
+ class ListImagesResponse
557
+ include Google::Apis::Core::Hashable
558
+
559
+ #
560
+ # Corresponds to the JSON property `images`
561
+ # @return [Array<Google::Apis::AndroidpublisherV2::Image>]
562
+ attr_accessor :images
563
+
564
+ def initialize(**args)
565
+ update!(**args)
566
+ end
567
+
568
+ # Update properties of this object
569
+ def update!(**args)
570
+ @images = args[:images] unless args[:images].nil?
571
+ end
572
+ end
573
+
574
+ #
575
+ class UploadImagesResponse
576
+ include Google::Apis::Core::Hashable
577
+
578
+ #
579
+ # Corresponds to the JSON property `image`
580
+ # @return [Google::Apis::AndroidpublisherV2::Image]
581
+ attr_accessor :image
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @image = args[:image] unless args[:image].nil?
590
+ end
591
+ end
592
+
593
+ #
594
+ class InAppProduct
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # The default language of the localized data, as defined by BCP 47. e.g. "en-US",
598
+ # "en-GB".
599
+ # Corresponds to the JSON property `defaultLanguage`
600
+ # @return [String]
601
+ attr_accessor :default_language
602
+
603
+ # Default price cannot be zero. In-app products can never be free. Default price
604
+ # is always in the developer's Checkout merchant currency.
605
+ # Corresponds to the JSON property `defaultPrice`
606
+ # @return [Google::Apis::AndroidpublisherV2::Price]
607
+ attr_accessor :default_price
608
+
609
+ # List of localized title and description data.
610
+ # Corresponds to the JSON property `listings`
611
+ # @return [Hash<String,Google::Apis::AndroidpublisherV2::InAppProductListing>]
612
+ attr_accessor :listings
613
+
614
+ # The package name of the parent app.
615
+ # Corresponds to the JSON property `packageName`
616
+ # @return [String]
617
+ attr_accessor :package_name
618
+
619
+ # Prices per buyer region. None of these prices should be zero. In-app products
620
+ # can never be free.
621
+ # Corresponds to the JSON property `prices`
622
+ # @return [Hash<String,Google::Apis::AndroidpublisherV2::Price>]
623
+ attr_accessor :prices
624
+
625
+ # Purchase type enum value. Unmodifiable after creation.
626
+ # Corresponds to the JSON property `purchaseType`
627
+ # @return [String]
628
+ attr_accessor :purchase_type
629
+
630
+ # Definition of a season for a seasonal subscription. Can be defined only for
631
+ # yearly subscriptions.
632
+ # Corresponds to the JSON property `season`
633
+ # @return [Google::Apis::AndroidpublisherV2::Season]
634
+ attr_accessor :season
635
+
636
+ # The stock-keeping-unit (SKU) of the product, unique within an app.
637
+ # Corresponds to the JSON property `sku`
638
+ # @return [String]
639
+ attr_accessor :sku
640
+
641
+ #
642
+ # Corresponds to the JSON property `status`
643
+ # @return [String]
644
+ attr_accessor :status
645
+
646
+ # Subscription period, specified in ISO 8601 format. Acceptable values are "P1W"
647
+ # (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "
648
+ # P1Y" (one year).
649
+ # Corresponds to the JSON property `subscriptionPeriod`
650
+ # @return [String]
651
+ attr_accessor :subscription_period
652
+
653
+ # Trial period, specified in ISO 8601 format. Acceptable values are anything
654
+ # between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions
655
+ # cannot have a trial period.
656
+ # Corresponds to the JSON property `trialPeriod`
657
+ # @return [String]
658
+ attr_accessor :trial_period
659
+
660
+ def initialize(**args)
661
+ update!(**args)
662
+ end
663
+
664
+ # Update properties of this object
665
+ def update!(**args)
666
+ @default_language = args[:default_language] unless args[:default_language].nil?
667
+ @default_price = args[:default_price] unless args[:default_price].nil?
668
+ @listings = args[:listings] unless args[:listings].nil?
669
+ @package_name = args[:package_name] unless args[:package_name].nil?
670
+ @prices = args[:prices] unless args[:prices].nil?
671
+ @purchase_type = args[:purchase_type] unless args[:purchase_type].nil?
672
+ @season = args[:season] unless args[:season].nil?
673
+ @sku = args[:sku] unless args[:sku].nil?
674
+ @status = args[:status] unless args[:status].nil?
675
+ @subscription_period = args[:subscription_period] unless args[:subscription_period].nil?
676
+ @trial_period = args[:trial_period] unless args[:trial_period].nil?
677
+ end
678
+ end
679
+
680
+ #
681
+ class InAppProductListing
682
+ include Google::Apis::Core::Hashable
683
+
684
+ #
685
+ # Corresponds to the JSON property `description`
686
+ # @return [String]
687
+ attr_accessor :description
688
+
689
+ #
690
+ # Corresponds to the JSON property `title`
691
+ # @return [String]
692
+ attr_accessor :title
693
+
694
+ def initialize(**args)
695
+ update!(**args)
696
+ end
697
+
698
+ # Update properties of this object
699
+ def update!(**args)
700
+ @description = args[:description] unless args[:description].nil?
701
+ @title = args[:title] unless args[:title].nil?
702
+ end
703
+ end
704
+
705
+ #
706
+ class InAppProductsBatchRequest
707
+ include Google::Apis::Core::Hashable
708
+
709
+ #
710
+ # Corresponds to the JSON property `entrys`
711
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry>]
712
+ attr_accessor :entrys
713
+
714
+ def initialize(**args)
715
+ update!(**args)
716
+ end
717
+
718
+ # Update properties of this object
719
+ def update!(**args)
720
+ @entrys = args[:entrys] unless args[:entrys].nil?
721
+ end
722
+ end
723
+
724
+ #
725
+ class InAppProductsBatchRequestEntry
726
+ include Google::Apis::Core::Hashable
727
+
728
+ #
729
+ # Corresponds to the JSON property `batchId`
730
+ # @return [Fixnum]
731
+ attr_accessor :batch_id
732
+
733
+ #
734
+ # Corresponds to the JSON property `inappproductsinsertrequest`
735
+ # @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest]
736
+ attr_accessor :inappproductsinsertrequest
737
+
738
+ #
739
+ # Corresponds to the JSON property `inappproductsupdaterequest`
740
+ # @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest]
741
+ attr_accessor :inappproductsupdaterequest
742
+
743
+ #
744
+ # Corresponds to the JSON property `methodName`
745
+ # @return [String]
746
+ attr_accessor :method_name
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @batch_id = args[:batch_id] unless args[:batch_id].nil?
755
+ @inappproductsinsertrequest = args[:inappproductsinsertrequest] unless args[:inappproductsinsertrequest].nil?
756
+ @inappproductsupdaterequest = args[:inappproductsupdaterequest] unless args[:inappproductsupdaterequest].nil?
757
+ @method_name = args[:method_name] unless args[:method_name].nil?
758
+ end
759
+ end
760
+
761
+ #
762
+ class InAppProductsBatchResponse
763
+ include Google::Apis::Core::Hashable
764
+
765
+ #
766
+ # Corresponds to the JSON property `entrys`
767
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry>]
768
+ attr_accessor :entrys
769
+
770
+ # Identifies what kind of resource this is. Value: the fixed string "
771
+ # androidpublisher#inappproductsBatchResponse".
772
+ # Corresponds to the JSON property `kind`
773
+ # @return [String]
774
+ attr_accessor :kind
775
+
776
+ def initialize(**args)
777
+ update!(**args)
778
+ end
779
+
780
+ # Update properties of this object
781
+ def update!(**args)
782
+ @entrys = args[:entrys] unless args[:entrys].nil?
783
+ @kind = args[:kind] unless args[:kind].nil?
784
+ end
785
+ end
786
+
787
+ #
788
+ class InAppProductsBatchResponseEntry
789
+ include Google::Apis::Core::Hashable
790
+
791
+ #
792
+ # Corresponds to the JSON property `batchId`
793
+ # @return [Fixnum]
794
+ attr_accessor :batch_id
795
+
796
+ #
797
+ # Corresponds to the JSON property `inappproductsinsertresponse`
798
+ # @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse]
799
+ attr_accessor :inappproductsinsertresponse
800
+
801
+ #
802
+ # Corresponds to the JSON property `inappproductsupdateresponse`
803
+ # @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse]
804
+ attr_accessor :inappproductsupdateresponse
805
+
806
+ def initialize(**args)
807
+ update!(**args)
808
+ end
809
+
810
+ # Update properties of this object
811
+ def update!(**args)
812
+ @batch_id = args[:batch_id] unless args[:batch_id].nil?
813
+ @inappproductsinsertresponse = args[:inappproductsinsertresponse] unless args[:inappproductsinsertresponse].nil?
814
+ @inappproductsupdateresponse = args[:inappproductsupdateresponse] unless args[:inappproductsupdateresponse].nil?
815
+ end
816
+ end
817
+
818
+ #
819
+ class InsertInAppProductsRequest
820
+ include Google::Apis::Core::Hashable
821
+
822
+ #
823
+ # Corresponds to the JSON property `inappproduct`
824
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
825
+ attr_accessor :inappproduct
826
+
827
+ def initialize(**args)
828
+ update!(**args)
829
+ end
830
+
831
+ # Update properties of this object
832
+ def update!(**args)
833
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
834
+ end
835
+ end
836
+
837
+ #
838
+ class InsertInAppProductsResponse
839
+ include Google::Apis::Core::Hashable
840
+
841
+ #
842
+ # Corresponds to the JSON property `inappproduct`
843
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
844
+ attr_accessor :inappproduct
845
+
846
+ def initialize(**args)
847
+ update!(**args)
848
+ end
849
+
850
+ # Update properties of this object
851
+ def update!(**args)
852
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
853
+ end
854
+ end
855
+
856
+ #
857
+ class ListInAppProductsResponse
858
+ include Google::Apis::Core::Hashable
859
+
860
+ #
861
+ # Corresponds to the JSON property `inappproduct`
862
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProduct>]
863
+ attr_accessor :inappproduct
864
+
865
+ # Identifies what kind of resource this is. Value: the fixed string "
866
+ # androidpublisher#inappproductsListResponse".
867
+ # Corresponds to the JSON property `kind`
868
+ # @return [String]
869
+ attr_accessor :kind
870
+
871
+ #
872
+ # Corresponds to the JSON property `pageInfo`
873
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
874
+ attr_accessor :page_info
875
+
876
+ #
877
+ # Corresponds to the JSON property `tokenPagination`
878
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
879
+ attr_accessor :token_pagination
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
888
+ @kind = args[:kind] unless args[:kind].nil?
889
+ @page_info = args[:page_info] unless args[:page_info].nil?
890
+ @token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
891
+ end
892
+ end
893
+
894
+ #
895
+ class UpdateInAppProductsRequest
896
+ include Google::Apis::Core::Hashable
897
+
898
+ #
899
+ # Corresponds to the JSON property `inappproduct`
900
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
901
+ attr_accessor :inappproduct
902
+
903
+ def initialize(**args)
904
+ update!(**args)
905
+ end
906
+
907
+ # Update properties of this object
908
+ def update!(**args)
909
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
910
+ end
911
+ end
912
+
913
+ #
914
+ class UpdateInAppProductsResponse
915
+ include Google::Apis::Core::Hashable
916
+
917
+ #
918
+ # Corresponds to the JSON property `inappproduct`
919
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
920
+ attr_accessor :inappproduct
921
+
922
+ def initialize(**args)
923
+ update!(**args)
924
+ end
925
+
926
+ # Update properties of this object
927
+ def update!(**args)
928
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
929
+ end
930
+ end
931
+
932
+ #
933
+ class Listing
934
+ include Google::Apis::Core::Hashable
935
+
936
+ # Full description of the app; this may be up to 4000 characters in length.
937
+ # Corresponds to the JSON property `fullDescription`
938
+ # @return [String]
939
+ attr_accessor :full_description
940
+
941
+ # Language localization code (for example, "de-AT" for Austrian German).
942
+ # Corresponds to the JSON property `language`
943
+ # @return [String]
944
+ attr_accessor :language
945
+
946
+ # Short description of the app (previously known as promo text); this may be up
947
+ # to 80 characters in length.
948
+ # Corresponds to the JSON property `shortDescription`
949
+ # @return [String]
950
+ attr_accessor :short_description
951
+
952
+ # App's localized title.
953
+ # Corresponds to the JSON property `title`
954
+ # @return [String]
955
+ attr_accessor :title
956
+
957
+ # URL of a promotional YouTube video for the app.
958
+ # Corresponds to the JSON property `video`
959
+ # @return [String]
960
+ attr_accessor :video
961
+
962
+ def initialize(**args)
963
+ update!(**args)
964
+ end
965
+
966
+ # Update properties of this object
967
+ def update!(**args)
968
+ @full_description = args[:full_description] unless args[:full_description].nil?
969
+ @language = args[:language] unless args[:language].nil?
970
+ @short_description = args[:short_description] unless args[:short_description].nil?
971
+ @title = args[:title] unless args[:title].nil?
972
+ @video = args[:video] unless args[:video].nil?
973
+ end
974
+ end
975
+
976
+ #
977
+ class ListListingsResponse
978
+ include Google::Apis::Core::Hashable
979
+
980
+ # Identifies what kind of resource this is. Value: the fixed string "
981
+ # androidpublisher#listingsListResponse".
982
+ # Corresponds to the JSON property `kind`
983
+ # @return [String]
984
+ attr_accessor :kind
985
+
986
+ #
987
+ # Corresponds to the JSON property `listings`
988
+ # @return [Array<Google::Apis::AndroidpublisherV2::Listing>]
989
+ attr_accessor :listings
990
+
991
+ def initialize(**args)
992
+ update!(**args)
993
+ end
994
+
995
+ # Update properties of this object
996
+ def update!(**args)
997
+ @kind = args[:kind] unless args[:kind].nil?
998
+ @listings = args[:listings] unless args[:listings].nil?
999
+ end
1000
+ end
1001
+
1002
+ #
1003
+ class MonthDay
1004
+ include Google::Apis::Core::Hashable
1005
+
1006
+ # Day of a month, value in [1, 31] range. Valid range depends on the specified
1007
+ # month.
1008
+ # Corresponds to the JSON property `day`
1009
+ # @return [Fixnum]
1010
+ attr_accessor :day
1011
+
1012
+ # Month of a year. e.g. 1 = JAN, 2 = FEB etc.
1013
+ # Corresponds to the JSON property `month`
1014
+ # @return [Fixnum]
1015
+ attr_accessor :month
1016
+
1017
+ def initialize(**args)
1018
+ update!(**args)
1019
+ end
1020
+
1021
+ # Update properties of this object
1022
+ def update!(**args)
1023
+ @day = args[:day] unless args[:day].nil?
1024
+ @month = args[:month] unless args[:month].nil?
1025
+ end
1026
+ end
1027
+
1028
+ #
1029
+ class PageInfo
1030
+ include Google::Apis::Core::Hashable
1031
+
1032
+ #
1033
+ # Corresponds to the JSON property `resultPerPage`
1034
+ # @return [Fixnum]
1035
+ attr_accessor :result_per_page
1036
+
1037
+ #
1038
+ # Corresponds to the JSON property `startIndex`
1039
+ # @return [Fixnum]
1040
+ attr_accessor :start_index
1041
+
1042
+ #
1043
+ # Corresponds to the JSON property `totalResults`
1044
+ # @return [Fixnum]
1045
+ attr_accessor :total_results
1046
+
1047
+ def initialize(**args)
1048
+ update!(**args)
1049
+ end
1050
+
1051
+ # Update properties of this object
1052
+ def update!(**args)
1053
+ @result_per_page = args[:result_per_page] unless args[:result_per_page].nil?
1054
+ @start_index = args[:start_index] unless args[:start_index].nil?
1055
+ @total_results = args[:total_results] unless args[:total_results].nil?
1056
+ end
1057
+ end
1058
+
1059
+ #
1060
+ class Price
1061
+ include Google::Apis::Core::Hashable
1062
+
1063
+ # 3 letter Currency code, as defined by ISO 4217.
1064
+ # Corresponds to the JSON property `currency`
1065
+ # @return [String]
1066
+ attr_accessor :currency
1067
+
1068
+ # The price in millionths of the currency base unit represented as a string.
1069
+ # Corresponds to the JSON property `priceMicros`
1070
+ # @return [String]
1071
+ attr_accessor :price_micros
1072
+
1073
+ def initialize(**args)
1074
+ update!(**args)
1075
+ end
1076
+
1077
+ # Update properties of this object
1078
+ def update!(**args)
1079
+ @currency = args[:currency] unless args[:currency].nil?
1080
+ @price_micros = args[:price_micros] unless args[:price_micros].nil?
1081
+ end
1082
+ end
1083
+
1084
+ # A ProductPurchase resource indicates the status of a user's inapp product
1085
+ # purchase.
1086
+ class ProductPurchase
1087
+ include Google::Apis::Core::Hashable
1088
+
1089
+ # The consumption state of the inapp product. Possible values are:
1090
+ # - Yet to be consumed
1091
+ # - Consumed
1092
+ # Corresponds to the JSON property `consumptionState`
1093
+ # @return [Fixnum]
1094
+ attr_accessor :consumption_state
1095
+
1096
+ # A developer-specified string that contains supplemental information about an
1097
+ # order.
1098
+ # Corresponds to the JSON property `developerPayload`
1099
+ # @return [String]
1100
+ attr_accessor :developer_payload
1101
+
1102
+ # This kind represents an inappPurchase object in the androidpublisher service.
1103
+ # Corresponds to the JSON property `kind`
1104
+ # @return [String]
1105
+ attr_accessor :kind
1106
+
1107
+ # The purchase state of the order. Possible values are:
1108
+ # - Purchased
1109
+ # - Cancelled
1110
+ # Corresponds to the JSON property `purchaseState`
1111
+ # @return [Fixnum]
1112
+ attr_accessor :purchase_state
1113
+
1114
+ # The time the product was purchased, in milliseconds since the epoch (Jan 1,
1115
+ # 1970).
1116
+ # Corresponds to the JSON property `purchaseTimeMillis`
1117
+ # @return [String]
1118
+ attr_accessor :purchase_time_millis
1119
+
1120
+ def initialize(**args)
1121
+ update!(**args)
1122
+ end
1123
+
1124
+ # Update properties of this object
1125
+ def update!(**args)
1126
+ @consumption_state = args[:consumption_state] unless args[:consumption_state].nil?
1127
+ @developer_payload = args[:developer_payload] unless args[:developer_payload].nil?
1128
+ @kind = args[:kind] unless args[:kind].nil?
1129
+ @purchase_state = args[:purchase_state] unless args[:purchase_state].nil?
1130
+ @purchase_time_millis = args[:purchase_time_millis] unless args[:purchase_time_millis].nil?
1131
+ end
1132
+ end
1133
+
1134
+ #
1135
+ class Prorate
1136
+ include Google::Apis::Core::Hashable
1137
+
1138
+ # Default price cannot be zero and must be less than the full subscription price.
1139
+ # Default price is always in the developer's Checkout merchant currency.
1140
+ # Targeted countries have their prices set automatically based on the
1141
+ # default_price.
1142
+ # Corresponds to the JSON property `defaultPrice`
1143
+ # @return [Google::Apis::AndroidpublisherV2::Price]
1144
+ attr_accessor :default_price
1145
+
1146
+ # Defines the first day on which the price takes effect.
1147
+ # Corresponds to the JSON property `start`
1148
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1149
+ attr_accessor :start
1150
+
1151
+ def initialize(**args)
1152
+ update!(**args)
1153
+ end
1154
+
1155
+ # Update properties of this object
1156
+ def update!(**args)
1157
+ @default_price = args[:default_price] unless args[:default_price].nil?
1158
+ @start = args[:start] unless args[:start].nil?
1159
+ end
1160
+ end
1161
+
1162
+ #
1163
+ class Season
1164
+ include Google::Apis::Core::Hashable
1165
+
1166
+ # Inclusive end date of the recurrence period.
1167
+ # Corresponds to the JSON property `end`
1168
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1169
+ attr_accessor :end
1170
+
1171
+ # Optionally present list of prorations for the season. Each proration is a one-
1172
+ # off discounted entry into a subscription. Each proration contains the first
1173
+ # date on which the discount is available and the new pricing information.
1174
+ # Corresponds to the JSON property `prorations`
1175
+ # @return [Array<Google::Apis::AndroidpublisherV2::Prorate>]
1176
+ attr_accessor :prorations
1177
+
1178
+ # Inclusive start date of the recurrence period.
1179
+ # Corresponds to the JSON property `start`
1180
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1181
+ attr_accessor :start
1182
+
1183
+ def initialize(**args)
1184
+ update!(**args)
1185
+ end
1186
+
1187
+ # Update properties of this object
1188
+ def update!(**args)
1189
+ @end = args[:end] unless args[:end].nil?
1190
+ @prorations = args[:prorations] unless args[:prorations].nil?
1191
+ @start = args[:start] unless args[:start].nil?
1192
+ end
1193
+ end
1194
+
1195
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1196
+ # purchase to a future expiry time.
1197
+ class SubscriptionDeferralInfo
1198
+ include Google::Apis::Core::Hashable
1199
+
1200
+ # The desired next expiry time for the subscription in milliseconds since Epoch.
1201
+ # The given time must be after the current expiry time for the subscription.
1202
+ # Corresponds to the JSON property `desiredExpiryTimeMillis`
1203
+ # @return [String]
1204
+ attr_accessor :desired_expiry_time_millis
1205
+
1206
+ # The expected expiry time for the subscription. If the current expiry time for
1207
+ # the subscription is not the value specified here, the deferral will not occur.
1208
+ # Corresponds to the JSON property `expectedExpiryTimeMillis`
1209
+ # @return [String]
1210
+ attr_accessor :expected_expiry_time_millis
1211
+
1212
+ def initialize(**args)
1213
+ update!(**args)
1214
+ end
1215
+
1216
+ # Update properties of this object
1217
+ def update!(**args)
1218
+ @desired_expiry_time_millis = args[:desired_expiry_time_millis] unless args[:desired_expiry_time_millis].nil?
1219
+ @expected_expiry_time_millis = args[:expected_expiry_time_millis] unless args[:expected_expiry_time_millis].nil?
1220
+ end
1221
+ end
1222
+
1223
+ # A SubscriptionPurchase resource indicates the status of a user's subscription
1224
+ # purchase.
1225
+ class SubscriptionPurchase
1226
+ include Google::Apis::Core::Hashable
1227
+
1228
+ # Whether the subscription will automatically be renewed when it reaches its
1229
+ # current expiry time.
1230
+ # Corresponds to the JSON property `autoRenewing`
1231
+ # @return [Boolean]
1232
+ attr_accessor :auto_renewing
1233
+ alias_method :auto_renewing?, :auto_renewing
1234
+
1235
+ # Time at which the subscription will expire, in milliseconds since Epoch.
1236
+ # Corresponds to the JSON property `expiryTimeMillis`
1237
+ # @return [String]
1238
+ attr_accessor :expiry_time_millis
1239
+
1240
+ # This kind represents a subscriptionPurchase object in the androidpublisher
1241
+ # service.
1242
+ # Corresponds to the JSON property `kind`
1243
+ # @return [String]
1244
+ attr_accessor :kind
1245
+
1246
+ # Time at which the subscription was granted, in milliseconds since Epoch.
1247
+ # Corresponds to the JSON property `startTimeMillis`
1248
+ # @return [String]
1249
+ attr_accessor :start_time_millis
1250
+
1251
+ def initialize(**args)
1252
+ update!(**args)
1253
+ end
1254
+
1255
+ # Update properties of this object
1256
+ def update!(**args)
1257
+ @auto_renewing = args[:auto_renewing] unless args[:auto_renewing].nil?
1258
+ @expiry_time_millis = args[:expiry_time_millis] unless args[:expiry_time_millis].nil?
1259
+ @kind = args[:kind] unless args[:kind].nil?
1260
+ @start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil?
1261
+ end
1262
+ end
1263
+
1264
+ #
1265
+ class DeferSubscriptionPurchasesRequest
1266
+ include Google::Apis::Core::Hashable
1267
+
1268
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1269
+ # purchase to a future expiry time.
1270
+ # Corresponds to the JSON property `deferralInfo`
1271
+ # @return [Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo]
1272
+ attr_accessor :deferral_info
1273
+
1274
+ def initialize(**args)
1275
+ update!(**args)
1276
+ end
1277
+
1278
+ # Update properties of this object
1279
+ def update!(**args)
1280
+ @deferral_info = args[:deferral_info] unless args[:deferral_info].nil?
1281
+ end
1282
+ end
1283
+
1284
+ #
1285
+ class DeferSubscriptionPurchasesResponse
1286
+ include Google::Apis::Core::Hashable
1287
+
1288
+ # The new expiry time for the subscription in milliseconds since the Epoch.
1289
+ # Corresponds to the JSON property `newExpiryTimeMillis`
1290
+ # @return [String]
1291
+ attr_accessor :new_expiry_time_millis
1292
+
1293
+ def initialize(**args)
1294
+ update!(**args)
1295
+ end
1296
+
1297
+ # Update properties of this object
1298
+ def update!(**args)
1299
+ @new_expiry_time_millis = args[:new_expiry_time_millis] unless args[:new_expiry_time_millis].nil?
1300
+ end
1301
+ end
1302
+
1303
+ #
1304
+ class Testers
1305
+ include Google::Apis::Core::Hashable
1306
+
1307
+ #
1308
+ # Corresponds to the JSON property `googleGroups`
1309
+ # @return [Array<String>]
1310
+ attr_accessor :google_groups
1311
+
1312
+ #
1313
+ # Corresponds to the JSON property `googlePlusCommunities`
1314
+ # @return [Array<String>]
1315
+ attr_accessor :google_plus_communities
1316
+
1317
+ def initialize(**args)
1318
+ update!(**args)
1319
+ end
1320
+
1321
+ # Update properties of this object
1322
+ def update!(**args)
1323
+ @google_groups = args[:google_groups] unless args[:google_groups].nil?
1324
+ @google_plus_communities = args[:google_plus_communities] unless args[:google_plus_communities].nil?
1325
+ end
1326
+ end
1327
+
1328
+ #
1329
+ class TokenPagination
1330
+ include Google::Apis::Core::Hashable
1331
+
1332
+ #
1333
+ # Corresponds to the JSON property `nextPageToken`
1334
+ # @return [String]
1335
+ attr_accessor :next_page_token
1336
+
1337
+ #
1338
+ # Corresponds to the JSON property `previousPageToken`
1339
+ # @return [String]
1340
+ attr_accessor :previous_page_token
1341
+
1342
+ def initialize(**args)
1343
+ update!(**args)
1344
+ end
1345
+
1346
+ # Update properties of this object
1347
+ def update!(**args)
1348
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1349
+ @previous_page_token = args[:previous_page_token] unless args[:previous_page_token].nil?
1350
+ end
1351
+ end
1352
+
1353
+ #
1354
+ class Track
1355
+ include Google::Apis::Core::Hashable
1356
+
1357
+ #
1358
+ # Corresponds to the JSON property `track`
1359
+ # @return [String]
1360
+ attr_accessor :track
1361
+
1362
+ #
1363
+ # Corresponds to the JSON property `userFraction`
1364
+ # @return [Float]
1365
+ attr_accessor :user_fraction
1366
+
1367
+ #
1368
+ # Corresponds to the JSON property `versionCodes`
1369
+ # @return [Array<Fixnum>]
1370
+ attr_accessor :version_codes
1371
+
1372
+ def initialize(**args)
1373
+ update!(**args)
1374
+ end
1375
+
1376
+ # Update properties of this object
1377
+ def update!(**args)
1378
+ @track = args[:track] unless args[:track].nil?
1379
+ @user_fraction = args[:user_fraction] unless args[:user_fraction].nil?
1380
+ @version_codes = args[:version_codes] unless args[:version_codes].nil?
1381
+ end
1382
+ end
1383
+
1384
+ #
1385
+ class ListTracksResponse
1386
+ include Google::Apis::Core::Hashable
1387
+
1388
+ # Identifies what kind of resource this is. Value: the fixed string "
1389
+ # androidpublisher#tracksListResponse".
1390
+ # Corresponds to the JSON property `kind`
1391
+ # @return [String]
1392
+ attr_accessor :kind
1393
+
1394
+ #
1395
+ # Corresponds to the JSON property `tracks`
1396
+ # @return [Array<Google::Apis::AndroidpublisherV2::Track>]
1397
+ attr_accessor :tracks
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ @kind = args[:kind] unless args[:kind].nil?
1406
+ @tracks = args[:tracks] unless args[:tracks].nil?
1407
+ end
1408
+ end
1409
+ end
1410
+ end
1411
+ end