google-api-client 0.8.7 → 0.9.pre1

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 (397) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,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 = '20150316'
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,1374 @@
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
+ # The period of the subscription (if any), i.e. period at which payments must
647
+ # happen. Defined as ISO 8601 duration, i.e. "P1M" for 1 month period.
648
+ # Corresponds to the JSON property `subscriptionPeriod`
649
+ # @return [String]
650
+ attr_accessor :subscription_period
651
+
652
+ # Trial period, specified in ISO 8601 format. Acceptable values are anything
653
+ # between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions
654
+ # cannot have a trial period.
655
+ # Corresponds to the JSON property `trialPeriod`
656
+ # @return [String]
657
+ attr_accessor :trial_period
658
+
659
+ def initialize(**args)
660
+ update!(**args)
661
+ end
662
+
663
+ # Update properties of this object
664
+ def update!(**args)
665
+ @default_language = args[:default_language] unless args[:default_language].nil?
666
+ @default_price = args[:default_price] unless args[:default_price].nil?
667
+ @listings = args[:listings] unless args[:listings].nil?
668
+ @package_name = args[:package_name] unless args[:package_name].nil?
669
+ @prices = args[:prices] unless args[:prices].nil?
670
+ @purchase_type = args[:purchase_type] unless args[:purchase_type].nil?
671
+ @season = args[:season] unless args[:season].nil?
672
+ @sku = args[:sku] unless args[:sku].nil?
673
+ @status = args[:status] unless args[:status].nil?
674
+ @subscription_period = args[:subscription_period] unless args[:subscription_period].nil?
675
+ @trial_period = args[:trial_period] unless args[:trial_period].nil?
676
+ end
677
+ end
678
+
679
+ #
680
+ class InAppProductListing
681
+ include Google::Apis::Core::Hashable
682
+
683
+ #
684
+ # Corresponds to the JSON property `description`
685
+ # @return [String]
686
+ attr_accessor :description
687
+
688
+ #
689
+ # Corresponds to the JSON property `title`
690
+ # @return [String]
691
+ attr_accessor :title
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ @description = args[:description] unless args[:description].nil?
700
+ @title = args[:title] unless args[:title].nil?
701
+ end
702
+ end
703
+
704
+ #
705
+ class InAppProductsBatchRequest
706
+ include Google::Apis::Core::Hashable
707
+
708
+ #
709
+ # Corresponds to the JSON property `entrys`
710
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry>]
711
+ attr_accessor :entrys
712
+
713
+ def initialize(**args)
714
+ update!(**args)
715
+ end
716
+
717
+ # Update properties of this object
718
+ def update!(**args)
719
+ @entrys = args[:entrys] unless args[:entrys].nil?
720
+ end
721
+ end
722
+
723
+ #
724
+ class InAppProductsBatchRequestEntry
725
+ include Google::Apis::Core::Hashable
726
+
727
+ #
728
+ # Corresponds to the JSON property `batchId`
729
+ # @return [Fixnum]
730
+ attr_accessor :batch_id
731
+
732
+ #
733
+ # Corresponds to the JSON property `inappproductsinsertrequest`
734
+ # @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest]
735
+ attr_accessor :inappproductsinsertrequest
736
+
737
+ #
738
+ # Corresponds to the JSON property `inappproductsupdaterequest`
739
+ # @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest]
740
+ attr_accessor :inappproductsupdaterequest
741
+
742
+ #
743
+ # Corresponds to the JSON property `methodName`
744
+ # @return [String]
745
+ attr_accessor :method_name
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @batch_id = args[:batch_id] unless args[:batch_id].nil?
754
+ @inappproductsinsertrequest = args[:inappproductsinsertrequest] unless args[:inappproductsinsertrequest].nil?
755
+ @inappproductsupdaterequest = args[:inappproductsupdaterequest] unless args[:inappproductsupdaterequest].nil?
756
+ @method_name = args[:method_name] unless args[:method_name].nil?
757
+ end
758
+ end
759
+
760
+ #
761
+ class InAppProductsBatchResponse
762
+ include Google::Apis::Core::Hashable
763
+
764
+ #
765
+ # Corresponds to the JSON property `entrys`
766
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry>]
767
+ attr_accessor :entrys
768
+
769
+ # Identifies what kind of resource this is. Value: the fixed string "
770
+ # androidpublisher#inappproductsBatchResponse".
771
+ # Corresponds to the JSON property `kind`
772
+ # @return [String]
773
+ attr_accessor :kind
774
+
775
+ def initialize(**args)
776
+ update!(**args)
777
+ end
778
+
779
+ # Update properties of this object
780
+ def update!(**args)
781
+ @entrys = args[:entrys] unless args[:entrys].nil?
782
+ @kind = args[:kind] unless args[:kind].nil?
783
+ end
784
+ end
785
+
786
+ #
787
+ class InAppProductsBatchResponseEntry
788
+ include Google::Apis::Core::Hashable
789
+
790
+ #
791
+ # Corresponds to the JSON property `batchId`
792
+ # @return [Fixnum]
793
+ attr_accessor :batch_id
794
+
795
+ #
796
+ # Corresponds to the JSON property `inappproductsinsertresponse`
797
+ # @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse]
798
+ attr_accessor :inappproductsinsertresponse
799
+
800
+ #
801
+ # Corresponds to the JSON property `inappproductsupdateresponse`
802
+ # @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse]
803
+ attr_accessor :inappproductsupdateresponse
804
+
805
+ def initialize(**args)
806
+ update!(**args)
807
+ end
808
+
809
+ # Update properties of this object
810
+ def update!(**args)
811
+ @batch_id = args[:batch_id] unless args[:batch_id].nil?
812
+ @inappproductsinsertresponse = args[:inappproductsinsertresponse] unless args[:inappproductsinsertresponse].nil?
813
+ @inappproductsupdateresponse = args[:inappproductsupdateresponse] unless args[:inappproductsupdateresponse].nil?
814
+ end
815
+ end
816
+
817
+ #
818
+ class InsertInAppProductsRequest
819
+ include Google::Apis::Core::Hashable
820
+
821
+ #
822
+ # Corresponds to the JSON property `inappproduct`
823
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
824
+ attr_accessor :inappproduct
825
+
826
+ def initialize(**args)
827
+ update!(**args)
828
+ end
829
+
830
+ # Update properties of this object
831
+ def update!(**args)
832
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
833
+ end
834
+ end
835
+
836
+ #
837
+ class InsertInAppProductsResponse
838
+ include Google::Apis::Core::Hashable
839
+
840
+ #
841
+ # Corresponds to the JSON property `inappproduct`
842
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
843
+ attr_accessor :inappproduct
844
+
845
+ def initialize(**args)
846
+ update!(**args)
847
+ end
848
+
849
+ # Update properties of this object
850
+ def update!(**args)
851
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
852
+ end
853
+ end
854
+
855
+ #
856
+ class ListInAppProductsResponse
857
+ include Google::Apis::Core::Hashable
858
+
859
+ #
860
+ # Corresponds to the JSON property `inappproduct`
861
+ # @return [Array<Google::Apis::AndroidpublisherV2::InAppProduct>]
862
+ attr_accessor :inappproduct
863
+
864
+ # Identifies what kind of resource this is. Value: the fixed string "
865
+ # androidpublisher#inappproductsListResponse".
866
+ # Corresponds to the JSON property `kind`
867
+ # @return [String]
868
+ attr_accessor :kind
869
+
870
+ #
871
+ # Corresponds to the JSON property `pageInfo`
872
+ # @return [Google::Apis::AndroidpublisherV2::PageInfo]
873
+ attr_accessor :page_info
874
+
875
+ #
876
+ # Corresponds to the JSON property `tokenPagination`
877
+ # @return [Google::Apis::AndroidpublisherV2::TokenPagination]
878
+ attr_accessor :token_pagination
879
+
880
+ def initialize(**args)
881
+ update!(**args)
882
+ end
883
+
884
+ # Update properties of this object
885
+ def update!(**args)
886
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
887
+ @kind = args[:kind] unless args[:kind].nil?
888
+ @page_info = args[:page_info] unless args[:page_info].nil?
889
+ @token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
890
+ end
891
+ end
892
+
893
+ #
894
+ class UpdateInAppProductsRequest
895
+ include Google::Apis::Core::Hashable
896
+
897
+ #
898
+ # Corresponds to the JSON property `inappproduct`
899
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
900
+ attr_accessor :inappproduct
901
+
902
+ def initialize(**args)
903
+ update!(**args)
904
+ end
905
+
906
+ # Update properties of this object
907
+ def update!(**args)
908
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
909
+ end
910
+ end
911
+
912
+ #
913
+ class UpdateInAppProductsResponse
914
+ include Google::Apis::Core::Hashable
915
+
916
+ #
917
+ # Corresponds to the JSON property `inappproduct`
918
+ # @return [Google::Apis::AndroidpublisherV2::InAppProduct]
919
+ attr_accessor :inappproduct
920
+
921
+ def initialize(**args)
922
+ update!(**args)
923
+ end
924
+
925
+ # Update properties of this object
926
+ def update!(**args)
927
+ @inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
928
+ end
929
+ end
930
+
931
+ #
932
+ class Listing
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # Full description of the app; this may be up to 4000 characters in length.
936
+ # Corresponds to the JSON property `fullDescription`
937
+ # @return [String]
938
+ attr_accessor :full_description
939
+
940
+ # Language localization code (for example, "de-AT" for Austrian German).
941
+ # Corresponds to the JSON property `language`
942
+ # @return [String]
943
+ attr_accessor :language
944
+
945
+ # Short description of the app (previously known as promo text); this may be up
946
+ # to 80 characters in length.
947
+ # Corresponds to the JSON property `shortDescription`
948
+ # @return [String]
949
+ attr_accessor :short_description
950
+
951
+ # App's localized title.
952
+ # Corresponds to the JSON property `title`
953
+ # @return [String]
954
+ attr_accessor :title
955
+
956
+ # URL of a promotional YouTube video for the app.
957
+ # Corresponds to the JSON property `video`
958
+ # @return [String]
959
+ attr_accessor :video
960
+
961
+ def initialize(**args)
962
+ update!(**args)
963
+ end
964
+
965
+ # Update properties of this object
966
+ def update!(**args)
967
+ @full_description = args[:full_description] unless args[:full_description].nil?
968
+ @language = args[:language] unless args[:language].nil?
969
+ @short_description = args[:short_description] unless args[:short_description].nil?
970
+ @title = args[:title] unless args[:title].nil?
971
+ @video = args[:video] unless args[:video].nil?
972
+ end
973
+ end
974
+
975
+ #
976
+ class ListListingsResponse
977
+ include Google::Apis::Core::Hashable
978
+
979
+ # Identifies what kind of resource this is. Value: the fixed string "
980
+ # androidpublisher#listingsListResponse".
981
+ # Corresponds to the JSON property `kind`
982
+ # @return [String]
983
+ attr_accessor :kind
984
+
985
+ #
986
+ # Corresponds to the JSON property `listings`
987
+ # @return [Array<Google::Apis::AndroidpublisherV2::Listing>]
988
+ attr_accessor :listings
989
+
990
+ def initialize(**args)
991
+ update!(**args)
992
+ end
993
+
994
+ # Update properties of this object
995
+ def update!(**args)
996
+ @kind = args[:kind] unless args[:kind].nil?
997
+ @listings = args[:listings] unless args[:listings].nil?
998
+ end
999
+ end
1000
+
1001
+ #
1002
+ class MonthDay
1003
+ include Google::Apis::Core::Hashable
1004
+
1005
+ # Day of a month, value in [1, 31] range. Valid range depends on the specified
1006
+ # month.
1007
+ # Corresponds to the JSON property `day`
1008
+ # @return [Fixnum]
1009
+ attr_accessor :day
1010
+
1011
+ # Month of a year. e.g. 1 = JAN, 2 = FEB etc.
1012
+ # Corresponds to the JSON property `month`
1013
+ # @return [Fixnum]
1014
+ attr_accessor :month
1015
+
1016
+ def initialize(**args)
1017
+ update!(**args)
1018
+ end
1019
+
1020
+ # Update properties of this object
1021
+ def update!(**args)
1022
+ @day = args[:day] unless args[:day].nil?
1023
+ @month = args[:month] unless args[:month].nil?
1024
+ end
1025
+ end
1026
+
1027
+ #
1028
+ class PageInfo
1029
+ include Google::Apis::Core::Hashable
1030
+
1031
+ #
1032
+ # Corresponds to the JSON property `resultPerPage`
1033
+ # @return [Fixnum]
1034
+ attr_accessor :result_per_page
1035
+
1036
+ #
1037
+ # Corresponds to the JSON property `startIndex`
1038
+ # @return [Fixnum]
1039
+ attr_accessor :start_index
1040
+
1041
+ #
1042
+ # Corresponds to the JSON property `totalResults`
1043
+ # @return [Fixnum]
1044
+ attr_accessor :total_results
1045
+
1046
+ def initialize(**args)
1047
+ update!(**args)
1048
+ end
1049
+
1050
+ # Update properties of this object
1051
+ def update!(**args)
1052
+ @result_per_page = args[:result_per_page] unless args[:result_per_page].nil?
1053
+ @start_index = args[:start_index] unless args[:start_index].nil?
1054
+ @total_results = args[:total_results] unless args[:total_results].nil?
1055
+ end
1056
+ end
1057
+
1058
+ #
1059
+ class Price
1060
+ include Google::Apis::Core::Hashable
1061
+
1062
+ # 3 letter Currency code, as defined by ISO 4217.
1063
+ # Corresponds to the JSON property `currency`
1064
+ # @return [String]
1065
+ attr_accessor :currency
1066
+
1067
+ # The price in millionths of the currency base unit represented as a string.
1068
+ # Corresponds to the JSON property `priceMicros`
1069
+ # @return [String]
1070
+ attr_accessor :price_micros
1071
+
1072
+ def initialize(**args)
1073
+ update!(**args)
1074
+ end
1075
+
1076
+ # Update properties of this object
1077
+ def update!(**args)
1078
+ @currency = args[:currency] unless args[:currency].nil?
1079
+ @price_micros = args[:price_micros] unless args[:price_micros].nil?
1080
+ end
1081
+ end
1082
+
1083
+ # A ProductPurchase resource indicates the status of a user's inapp product
1084
+ # purchase.
1085
+ class ProductPurchase
1086
+ include Google::Apis::Core::Hashable
1087
+
1088
+ # The consumption state of the inapp product. Possible values are:
1089
+ # - Yet to be consumed
1090
+ # - Consumed
1091
+ # Corresponds to the JSON property `consumptionState`
1092
+ # @return [Fixnum]
1093
+ attr_accessor :consumption_state
1094
+
1095
+ # A developer-specified string that contains supplemental information about an
1096
+ # order.
1097
+ # Corresponds to the JSON property `developerPayload`
1098
+ # @return [String]
1099
+ attr_accessor :developer_payload
1100
+
1101
+ # This kind represents an inappPurchase object in the androidpublisher service.
1102
+ # Corresponds to the JSON property `kind`
1103
+ # @return [String]
1104
+ attr_accessor :kind
1105
+
1106
+ # The purchase state of the order. Possible values are:
1107
+ # - Purchased
1108
+ # - Cancelled
1109
+ # Corresponds to the JSON property `purchaseState`
1110
+ # @return [Fixnum]
1111
+ attr_accessor :purchase_state
1112
+
1113
+ # The time the product was purchased, in milliseconds since the epoch (Jan 1,
1114
+ # 1970).
1115
+ # Corresponds to the JSON property `purchaseTimeMillis`
1116
+ # @return [String]
1117
+ attr_accessor :purchase_time_millis
1118
+
1119
+ def initialize(**args)
1120
+ update!(**args)
1121
+ end
1122
+
1123
+ # Update properties of this object
1124
+ def update!(**args)
1125
+ @consumption_state = args[:consumption_state] unless args[:consumption_state].nil?
1126
+ @developer_payload = args[:developer_payload] unless args[:developer_payload].nil?
1127
+ @kind = args[:kind] unless args[:kind].nil?
1128
+ @purchase_state = args[:purchase_state] unless args[:purchase_state].nil?
1129
+ @purchase_time_millis = args[:purchase_time_millis] unless args[:purchase_time_millis].nil?
1130
+ end
1131
+ end
1132
+
1133
+ #
1134
+ class Season
1135
+ include Google::Apis::Core::Hashable
1136
+
1137
+ # Inclusive end date of the recurrence period.
1138
+ # Corresponds to the JSON property `end`
1139
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1140
+ attr_accessor :end
1141
+
1142
+ # Inclusive start date of the recurrence period.
1143
+ # Corresponds to the JSON property `start`
1144
+ # @return [Google::Apis::AndroidpublisherV2::MonthDay]
1145
+ attr_accessor :start
1146
+
1147
+ def initialize(**args)
1148
+ update!(**args)
1149
+ end
1150
+
1151
+ # Update properties of this object
1152
+ def update!(**args)
1153
+ @end = args[:end] unless args[:end].nil?
1154
+ @start = args[:start] unless args[:start].nil?
1155
+ end
1156
+ end
1157
+
1158
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1159
+ # purchase to a future expiry time.
1160
+ class SubscriptionDeferralInfo
1161
+ include Google::Apis::Core::Hashable
1162
+
1163
+ # The desired next expiry time for the subscription in milliseconds since Epoch.
1164
+ # The given time must be after the current expiry time for the subscription.
1165
+ # Corresponds to the JSON property `desiredExpiryTimeMillis`
1166
+ # @return [String]
1167
+ attr_accessor :desired_expiry_time_millis
1168
+
1169
+ # The expected expiry time for the subscription. If the current expiry time for
1170
+ # the subscription is not the value specified here, the deferral will not occur.
1171
+ # Corresponds to the JSON property `expectedExpiryTimeMillis`
1172
+ # @return [String]
1173
+ attr_accessor :expected_expiry_time_millis
1174
+
1175
+ def initialize(**args)
1176
+ update!(**args)
1177
+ end
1178
+
1179
+ # Update properties of this object
1180
+ def update!(**args)
1181
+ @desired_expiry_time_millis = args[:desired_expiry_time_millis] unless args[:desired_expiry_time_millis].nil?
1182
+ @expected_expiry_time_millis = args[:expected_expiry_time_millis] unless args[:expected_expiry_time_millis].nil?
1183
+ end
1184
+ end
1185
+
1186
+ # A SubscriptionPurchase resource indicates the status of a user's subscription
1187
+ # purchase.
1188
+ class SubscriptionPurchase
1189
+ include Google::Apis::Core::Hashable
1190
+
1191
+ # Whether the subscription will automatically be renewed when it reaches its
1192
+ # current expiry time.
1193
+ # Corresponds to the JSON property `autoRenewing`
1194
+ # @return [Boolean]
1195
+ attr_accessor :auto_renewing
1196
+ alias_method :auto_renewing?, :auto_renewing
1197
+
1198
+ # Time at which the subscription will expire, in milliseconds since Epoch.
1199
+ # Corresponds to the JSON property `expiryTimeMillis`
1200
+ # @return [String]
1201
+ attr_accessor :expiry_time_millis
1202
+
1203
+ # This kind represents a subscriptionPurchase object in the androidpublisher
1204
+ # service.
1205
+ # Corresponds to the JSON property `kind`
1206
+ # @return [String]
1207
+ attr_accessor :kind
1208
+
1209
+ # Time at which the subscription was granted, in milliseconds since Epoch.
1210
+ # Corresponds to the JSON property `startTimeMillis`
1211
+ # @return [String]
1212
+ attr_accessor :start_time_millis
1213
+
1214
+ def initialize(**args)
1215
+ update!(**args)
1216
+ end
1217
+
1218
+ # Update properties of this object
1219
+ def update!(**args)
1220
+ @auto_renewing = args[:auto_renewing] unless args[:auto_renewing].nil?
1221
+ @expiry_time_millis = args[:expiry_time_millis] unless args[:expiry_time_millis].nil?
1222
+ @kind = args[:kind] unless args[:kind].nil?
1223
+ @start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil?
1224
+ end
1225
+ end
1226
+
1227
+ #
1228
+ class DeferSubscriptionPurchasesRequest
1229
+ include Google::Apis::Core::Hashable
1230
+
1231
+ # A SubscriptionDeferralInfo contains the data needed to defer a subscription
1232
+ # purchase to a future expiry time.
1233
+ # Corresponds to the JSON property `deferralInfo`
1234
+ # @return [Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo]
1235
+ attr_accessor :deferral_info
1236
+
1237
+ def initialize(**args)
1238
+ update!(**args)
1239
+ end
1240
+
1241
+ # Update properties of this object
1242
+ def update!(**args)
1243
+ @deferral_info = args[:deferral_info] unless args[:deferral_info].nil?
1244
+ end
1245
+ end
1246
+
1247
+ #
1248
+ class DeferSubscriptionPurchasesResponse
1249
+ include Google::Apis::Core::Hashable
1250
+
1251
+ # The new expiry time for the subscription in milliseconds since the Epoch.
1252
+ # Corresponds to the JSON property `newExpiryTimeMillis`
1253
+ # @return [String]
1254
+ attr_accessor :new_expiry_time_millis
1255
+
1256
+ def initialize(**args)
1257
+ update!(**args)
1258
+ end
1259
+
1260
+ # Update properties of this object
1261
+ def update!(**args)
1262
+ @new_expiry_time_millis = args[:new_expiry_time_millis] unless args[:new_expiry_time_millis].nil?
1263
+ end
1264
+ end
1265
+
1266
+ #
1267
+ class Testers
1268
+ include Google::Apis::Core::Hashable
1269
+
1270
+ #
1271
+ # Corresponds to the JSON property `googleGroups`
1272
+ # @return [Array<String>]
1273
+ attr_accessor :google_groups
1274
+
1275
+ #
1276
+ # Corresponds to the JSON property `googlePlusCommunities`
1277
+ # @return [Array<String>]
1278
+ attr_accessor :google_plus_communities
1279
+
1280
+ def initialize(**args)
1281
+ update!(**args)
1282
+ end
1283
+
1284
+ # Update properties of this object
1285
+ def update!(**args)
1286
+ @google_groups = args[:google_groups] unless args[:google_groups].nil?
1287
+ @google_plus_communities = args[:google_plus_communities] unless args[:google_plus_communities].nil?
1288
+ end
1289
+ end
1290
+
1291
+ #
1292
+ class TokenPagination
1293
+ include Google::Apis::Core::Hashable
1294
+
1295
+ #
1296
+ # Corresponds to the JSON property `nextPageToken`
1297
+ # @return [String]
1298
+ attr_accessor :next_page_token
1299
+
1300
+ #
1301
+ # Corresponds to the JSON property `previousPageToken`
1302
+ # @return [String]
1303
+ attr_accessor :previous_page_token
1304
+
1305
+ def initialize(**args)
1306
+ update!(**args)
1307
+ end
1308
+
1309
+ # Update properties of this object
1310
+ def update!(**args)
1311
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1312
+ @previous_page_token = args[:previous_page_token] unless args[:previous_page_token].nil?
1313
+ end
1314
+ end
1315
+
1316
+ #
1317
+ class Track
1318
+ include Google::Apis::Core::Hashable
1319
+
1320
+ #
1321
+ # Corresponds to the JSON property `track`
1322
+ # @return [String]
1323
+ attr_accessor :track
1324
+
1325
+ #
1326
+ # Corresponds to the JSON property `userFraction`
1327
+ # @return [Float]
1328
+ attr_accessor :user_fraction
1329
+
1330
+ #
1331
+ # Corresponds to the JSON property `versionCodes`
1332
+ # @return [Array<Fixnum>]
1333
+ attr_accessor :version_codes
1334
+
1335
+ def initialize(**args)
1336
+ update!(**args)
1337
+ end
1338
+
1339
+ # Update properties of this object
1340
+ def update!(**args)
1341
+ @track = args[:track] unless args[:track].nil?
1342
+ @user_fraction = args[:user_fraction] unless args[:user_fraction].nil?
1343
+ @version_codes = args[:version_codes] unless args[:version_codes].nil?
1344
+ end
1345
+ end
1346
+
1347
+ #
1348
+ class ListTracksResponse
1349
+ include Google::Apis::Core::Hashable
1350
+
1351
+ # Identifies what kind of resource this is. Value: the fixed string "
1352
+ # androidpublisher#tracksListResponse".
1353
+ # Corresponds to the JSON property `kind`
1354
+ # @return [String]
1355
+ attr_accessor :kind
1356
+
1357
+ #
1358
+ # Corresponds to the JSON property `tracks`
1359
+ # @return [Array<Google::Apis::AndroidpublisherV2::Track>]
1360
+ attr_accessor :tracks
1361
+
1362
+ def initialize(**args)
1363
+ update!(**args)
1364
+ end
1365
+
1366
+ # Update properties of this object
1367
+ def update!(**args)
1368
+ @kind = args[:kind] unless args[:kind].nil?
1369
+ @tracks = args[:tracks] unless args[:tracks].nil?
1370
+ end
1371
+ end
1372
+ end
1373
+ end
1374
+ end