google-api-client 0.8.7 → 0.9.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1361 @@
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 BooksV1
24
+
25
+ class Annotation
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ class ClientVersionRanges
29
+ class Representation < Google::Apis::Core::JsonRepresentation; end
30
+ end
31
+
32
+ class CurrentVersionRanges
33
+ class Representation < Google::Apis::Core::JsonRepresentation; end
34
+ end
35
+
36
+ class LayerSummary
37
+ class Representation < Google::Apis::Core::JsonRepresentation; end
38
+ end
39
+ end
40
+
41
+ class AnnotationData
42
+ class Representation < Google::Apis::Core::JsonRepresentation; end
43
+ end
44
+
45
+ class Annotations
46
+ class Representation < Google::Apis::Core::JsonRepresentation; end
47
+ end
48
+
49
+ class AnnotationsSummary
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ class Layer
53
+ class Representation < Google::Apis::Core::JsonRepresentation; end
54
+ end
55
+ end
56
+
57
+ class AnnotationsData
58
+ class Representation < Google::Apis::Core::JsonRepresentation; end
59
+ end
60
+
61
+ class AnnotatinsRange
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+ end
64
+
65
+ class LoadingResource
66
+ class Representation < Google::Apis::Core::JsonRepresentation; end
67
+ end
68
+
69
+ class RateRecommendedVolumeResponse
70
+ class Representation < Google::Apis::Core::JsonRepresentation; end
71
+ end
72
+
73
+ class Bookshelf
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+ end
76
+
77
+ class Bookshelves
78
+ class Representation < Google::Apis::Core::JsonRepresentation; end
79
+ end
80
+
81
+ class Category
82
+ class Representation < Google::Apis::Core::JsonRepresentation; end
83
+
84
+ class Item
85
+ class Representation < Google::Apis::Core::JsonRepresentation; end
86
+ end
87
+ end
88
+
89
+ class ConcurrentAccessRestriction
90
+ class Representation < Google::Apis::Core::JsonRepresentation; end
91
+ end
92
+
93
+ class DictLayerData
94
+ class Representation < Google::Apis::Core::JsonRepresentation; end
95
+
96
+ class Common
97
+ class Representation < Google::Apis::Core::JsonRepresentation; end
98
+ end
99
+
100
+ class Dict
101
+ class Representation < Google::Apis::Core::JsonRepresentation; end
102
+
103
+ class Source
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+ end
106
+
107
+ class Word
108
+ class Representation < Google::Apis::Core::JsonRepresentation; end
109
+
110
+ class Derivative
111
+ class Representation < Google::Apis::Core::JsonRepresentation; end
112
+
113
+ class Source
114
+ class Representation < Google::Apis::Core::JsonRepresentation; end
115
+ end
116
+ end
117
+
118
+ class Example
119
+ class Representation < Google::Apis::Core::JsonRepresentation; end
120
+
121
+ class Source
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+ end
124
+ end
125
+
126
+ class Sense
127
+ class Representation < Google::Apis::Core::JsonRepresentation; end
128
+
129
+ class Conjugation
130
+ class Representation < Google::Apis::Core::JsonRepresentation; end
131
+ end
132
+
133
+ class Definition
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ class Example
137
+ class Representation < Google::Apis::Core::JsonRepresentation; end
138
+
139
+ class Source
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+ end
142
+ end
143
+ end
144
+
145
+ class Source
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+ end
148
+
149
+ class Synonym
150
+ class Representation < Google::Apis::Core::JsonRepresentation; end
151
+
152
+ class Source
153
+ class Representation < Google::Apis::Core::JsonRepresentation; end
154
+ end
155
+ end
156
+ end
157
+
158
+ class Source
159
+ class Representation < Google::Apis::Core::JsonRepresentation; end
160
+ end
161
+ end
162
+ end
163
+ end
164
+
165
+ class DownloadAccessRestriction
166
+ class Representation < Google::Apis::Core::JsonRepresentation; end
167
+ end
168
+
169
+ class DownloadAccesses
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+ end
172
+
173
+ class GeoLayerData
174
+ class Representation < Google::Apis::Core::JsonRepresentation; end
175
+
176
+ class Common
177
+ class Representation < Google::Apis::Core::JsonRepresentation; end
178
+ end
179
+
180
+ class Geo
181
+ class Representation < Google::Apis::Core::JsonRepresentation; end
182
+
183
+ class Boundary
184
+ class Representation < Google::Apis::Core::JsonRepresentation; end
185
+ end
186
+
187
+ class Viewport
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ class Hi
191
+ class Representation < Google::Apis::Core::JsonRepresentation; end
192
+ end
193
+
194
+ class Lo
195
+ class Representation < Google::Apis::Core::JsonRepresentation; end
196
+ end
197
+ end
198
+ end
199
+ end
200
+
201
+ class LayerSummaries
202
+ class Representation < Google::Apis::Core::JsonRepresentation; end
203
+ end
204
+
205
+ class LayerSummary
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+ end
208
+
209
+ class Metadata
210
+ class Representation < Google::Apis::Core::JsonRepresentation; end
211
+
212
+ class Item
213
+ class Representation < Google::Apis::Core::JsonRepresentation; end
214
+ end
215
+ end
216
+
217
+ class Offers
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ class Item
221
+ class Representation < Google::Apis::Core::JsonRepresentation; end
222
+
223
+ class Item
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+ end
226
+ end
227
+ end
228
+
229
+ class ReadingPosition
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+ end
232
+
233
+ class RequestAccess
234
+ class Representation < Google::Apis::Core::JsonRepresentation; end
235
+ end
236
+
237
+ class Review
238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
239
+
240
+ class Author
241
+ class Representation < Google::Apis::Core::JsonRepresentation; end
242
+ end
243
+
244
+ class Source
245
+ class Representation < Google::Apis::Core::JsonRepresentation; end
246
+ end
247
+ end
248
+
249
+ class UserSettings
250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
251
+
252
+ class NotesExport
253
+ class Representation < Google::Apis::Core::JsonRepresentation; end
254
+ end
255
+ end
256
+
257
+ class Volume
258
+ class Representation < Google::Apis::Core::JsonRepresentation; end
259
+
260
+ class AccessInfo
261
+ class Representation < Google::Apis::Core::JsonRepresentation; end
262
+
263
+ class Epub
264
+ class Representation < Google::Apis::Core::JsonRepresentation; end
265
+ end
266
+
267
+ class Pdf
268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
269
+ end
270
+ end
271
+
272
+ class LayerInfo
273
+ class Representation < Google::Apis::Core::JsonRepresentation; end
274
+
275
+ class Layer
276
+ class Representation < Google::Apis::Core::JsonRepresentation; end
277
+ end
278
+ end
279
+
280
+ class RecommendedInfo
281
+ class Representation < Google::Apis::Core::JsonRepresentation; end
282
+ end
283
+
284
+ class SaleInfo
285
+ class Representation < Google::Apis::Core::JsonRepresentation; end
286
+
287
+ class ListPrice
288
+ class Representation < Google::Apis::Core::JsonRepresentation; end
289
+ end
290
+
291
+ class Offer
292
+ class Representation < Google::Apis::Core::JsonRepresentation; end
293
+
294
+ class ListPrice
295
+ class Representation < Google::Apis::Core::JsonRepresentation; end
296
+ end
297
+
298
+ class RentalDuration
299
+ class Representation < Google::Apis::Core::JsonRepresentation; end
300
+ end
301
+
302
+ class RetailPrice
303
+ class Representation < Google::Apis::Core::JsonRepresentation; end
304
+ end
305
+ end
306
+
307
+ class RetailPrice
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+ end
310
+ end
311
+
312
+ class SearchInfo
313
+ class Representation < Google::Apis::Core::JsonRepresentation; end
314
+ end
315
+
316
+ class UserInfo
317
+ class Representation < Google::Apis::Core::JsonRepresentation; end
318
+
319
+ class Copy
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+ end
322
+
323
+ class RentalPeriod
324
+ class Representation < Google::Apis::Core::JsonRepresentation; end
325
+ end
326
+
327
+ class UserUploadedVolumeInfo
328
+ class Representation < Google::Apis::Core::JsonRepresentation; end
329
+ end
330
+ end
331
+
332
+ class VolumeInfo
333
+ class Representation < Google::Apis::Core::JsonRepresentation; end
334
+
335
+ class Dimensions
336
+ class Representation < Google::Apis::Core::JsonRepresentation; end
337
+ end
338
+
339
+ class ImageLinks
340
+ class Representation < Google::Apis::Core::JsonRepresentation; end
341
+ end
342
+
343
+ class IndustryIdentifier
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+ end
346
+ end
347
+ end
348
+
349
+ class Volume2
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+ end
352
+
353
+ class VolumeAnnotation
354
+ class Representation < Google::Apis::Core::JsonRepresentation; end
355
+
356
+ class ContentRanges
357
+ class Representation < Google::Apis::Core::JsonRepresentation; end
358
+ end
359
+ end
360
+
361
+ class Volumeannotations
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+ end
364
+
365
+ class Volumes
366
+ class Representation < Google::Apis::Core::JsonRepresentation; end
367
+ end
368
+
369
+ class Annotation
370
+ # @private
371
+ class Representation < Google::Apis::Core::JsonRepresentation
372
+ property :after_selected_text, as: 'afterSelectedText'
373
+ property :before_selected_text, as: 'beforeSelectedText'
374
+ property :client_version_ranges, as: 'clientVersionRanges', class: Google::Apis::BooksV1::Annotation::ClientVersionRanges, decorator: Google::Apis::BooksV1::Annotation::ClientVersionRanges::Representation
375
+
376
+ property :created, as: 'created', type: DateTime
377
+
378
+ property :current_version_ranges, as: 'currentVersionRanges', class: Google::Apis::BooksV1::Annotation::CurrentVersionRanges, decorator: Google::Apis::BooksV1::Annotation::CurrentVersionRanges::Representation
379
+
380
+ property :data, as: 'data'
381
+ property :deleted, as: 'deleted'
382
+ property :highlight_style, as: 'highlightStyle'
383
+ property :id, as: 'id'
384
+ property :kind, as: 'kind'
385
+ property :layer_id, as: 'layerId'
386
+ property :layer_summary, as: 'layerSummary', class: Google::Apis::BooksV1::Annotation::LayerSummary, decorator: Google::Apis::BooksV1::Annotation::LayerSummary::Representation
387
+
388
+ collection :page_ids, as: 'pageIds'
389
+ property :selected_text, as: 'selectedText'
390
+ property :self_link, as: 'selfLink'
391
+ property :updated, as: 'updated', type: DateTime
392
+
393
+ property :volume_id, as: 'volumeId'
394
+ end
395
+
396
+ class ClientVersionRanges
397
+ # @private
398
+ class Representation < Google::Apis::Core::JsonRepresentation
399
+ property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
400
+
401
+ property :content_version, as: 'contentVersion'
402
+ property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
403
+
404
+ property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
405
+
406
+ property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
407
+
408
+ end
409
+ end
410
+
411
+ class CurrentVersionRanges
412
+ # @private
413
+ class Representation < Google::Apis::Core::JsonRepresentation
414
+ property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
415
+
416
+ property :content_version, as: 'contentVersion'
417
+ property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
418
+
419
+ property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
420
+
421
+ property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
422
+
423
+ end
424
+ end
425
+
426
+ class LayerSummary
427
+ # @private
428
+ class Representation < Google::Apis::Core::JsonRepresentation
429
+ property :allowed_character_count, as: 'allowedCharacterCount'
430
+ property :limit_type, as: 'limitType'
431
+ property :remaining_character_count, as: 'remainingCharacterCount'
432
+ end
433
+ end
434
+ end
435
+
436
+ class AnnotationData
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :annotation_type, as: 'annotationType'
440
+ property :data, as: 'data'
441
+ property :encoded_data, :base64 => true, as: 'encoded_data'
442
+ property :id, as: 'id'
443
+ property :kind, as: 'kind'
444
+ property :layer_id, as: 'layerId'
445
+ property :self_link, as: 'selfLink'
446
+ property :updated, as: 'updated', type: DateTime
447
+
448
+ property :volume_id, as: 'volumeId'
449
+ end
450
+ end
451
+
452
+ class Annotations
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Annotation, decorator: Google::Apis::BooksV1::Annotation::Representation
456
+
457
+ property :kind, as: 'kind'
458
+ property :next_page_token, as: 'nextPageToken'
459
+ property :total_items, as: 'totalItems'
460
+ end
461
+ end
462
+
463
+ class AnnotationsSummary
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :kind, as: 'kind'
467
+ collection :layers, as: 'layers', class: Google::Apis::BooksV1::AnnotationsSummary::Layer, decorator: Google::Apis::BooksV1::AnnotationsSummary::Layer::Representation
468
+
469
+ end
470
+
471
+ class Layer
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ property :allowed_character_count, as: 'allowedCharacterCount'
475
+ property :layer_id, as: 'layerId'
476
+ property :limit_type, as: 'limitType'
477
+ property :remaining_character_count, as: 'remainingCharacterCount'
478
+ property :updated, as: 'updated', type: DateTime
479
+
480
+ end
481
+ end
482
+ end
483
+
484
+ class AnnotationsData
485
+ # @private
486
+ class Representation < Google::Apis::Core::JsonRepresentation
487
+ collection :items, as: 'items', class: Google::Apis::BooksV1::AnnotationData, decorator: Google::Apis::BooksV1::AnnotationData::Representation
488
+
489
+ property :kind, as: 'kind'
490
+ property :next_page_token, as: 'nextPageToken'
491
+ property :total_items, as: 'totalItems'
492
+ end
493
+ end
494
+
495
+ class AnnotatinsRange
496
+ # @private
497
+ class Representation < Google::Apis::Core::JsonRepresentation
498
+ property :end_offset, as: 'endOffset'
499
+ property :end_position, as: 'endPosition'
500
+ property :start_offset, as: 'startOffset'
501
+ property :start_position, as: 'startPosition'
502
+ end
503
+ end
504
+
505
+ class LoadingResource
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ property :author, as: 'author'
509
+ property :processing_state, as: 'processingState'
510
+ property :title, as: 'title'
511
+ property :volume_id, as: 'volumeId'
512
+ end
513
+ end
514
+
515
+ class RateRecommendedVolumeResponse
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ property :consistency_token, as: 'consistency_token'
519
+ end
520
+ end
521
+
522
+ class Bookshelf
523
+ # @private
524
+ class Representation < Google::Apis::Core::JsonRepresentation
525
+ property :access, as: 'access'
526
+ property :created, as: 'created', type: DateTime
527
+
528
+ property :description, as: 'description'
529
+ property :id, as: 'id'
530
+ property :kind, as: 'kind'
531
+ property :self_link, as: 'selfLink'
532
+ property :title, as: 'title'
533
+ property :updated, as: 'updated', type: DateTime
534
+
535
+ property :volume_count, as: 'volumeCount'
536
+ property :volumes_last_updated, as: 'volumesLastUpdated', type: DateTime
537
+
538
+ end
539
+ end
540
+
541
+ class Bookshelves
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Bookshelf, decorator: Google::Apis::BooksV1::Bookshelf::Representation
545
+
546
+ property :kind, as: 'kind'
547
+ end
548
+ end
549
+
550
+ class Category
551
+ # @private
552
+ class Representation < Google::Apis::Core::JsonRepresentation
553
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Category::Item, decorator: Google::Apis::BooksV1::Category::Item::Representation
554
+
555
+ property :kind, as: 'kind'
556
+ end
557
+
558
+ class Item
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :badge_url, as: 'badgeUrl'
562
+ property :category_id, as: 'categoryId'
563
+ property :name, as: 'name'
564
+ end
565
+ end
566
+ end
567
+
568
+ class ConcurrentAccessRestriction
569
+ # @private
570
+ class Representation < Google::Apis::Core::JsonRepresentation
571
+ property :device_allowed, as: 'deviceAllowed'
572
+ property :kind, as: 'kind'
573
+ property :max_concurrent_devices, as: 'maxConcurrentDevices'
574
+ property :message, as: 'message'
575
+ property :nonce, as: 'nonce'
576
+ property :reason_code, as: 'reasonCode'
577
+ property :restricted, as: 'restricted'
578
+ property :signature, as: 'signature'
579
+ property :source, as: 'source'
580
+ property :time_window_seconds, as: 'timeWindowSeconds'
581
+ property :volume_id, as: 'volumeId'
582
+ end
583
+ end
584
+
585
+ class DictLayerData
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ property :common, as: 'common', class: Google::Apis::BooksV1::DictLayerData::Common, decorator: Google::Apis::BooksV1::DictLayerData::Common::Representation
589
+
590
+ property :dict, as: 'dict', class: Google::Apis::BooksV1::DictLayerData::Dict, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Representation
591
+
592
+ property :kind, as: 'kind'
593
+ end
594
+
595
+ class Common
596
+ # @private
597
+ class Representation < Google::Apis::Core::JsonRepresentation
598
+ property :title, as: 'title'
599
+ end
600
+ end
601
+
602
+ class Dict
603
+ # @private
604
+ class Representation < Google::Apis::Core::JsonRepresentation
605
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Source::Representation
606
+
607
+ collection :words, as: 'words', class: Google::Apis::BooksV1::DictLayerData::Dict::Word, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Representation
608
+
609
+ end
610
+
611
+ class Source
612
+ # @private
613
+ class Representation < Google::Apis::Core::JsonRepresentation
614
+ property :attribution, as: 'attribution'
615
+ property :url, as: 'url'
616
+ end
617
+ end
618
+
619
+ class Word
620
+ # @private
621
+ class Representation < Google::Apis::Core::JsonRepresentation
622
+ collection :derivatives, as: 'derivatives', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Representation
623
+
624
+ collection :examples, as: 'examples', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Representation
625
+
626
+ collection :senses, as: 'senses', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Representation
627
+
628
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Source::Representation
629
+
630
+ end
631
+
632
+ class Derivative
633
+ # @private
634
+ class Representation < Google::Apis::Core::JsonRepresentation
635
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Source::Representation
636
+
637
+ property :text, as: 'text'
638
+ end
639
+
640
+ class Source
641
+ # @private
642
+ class Representation < Google::Apis::Core::JsonRepresentation
643
+ property :attribution, as: 'attribution'
644
+ property :url, as: 'url'
645
+ end
646
+ end
647
+ end
648
+
649
+ class Example
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Source::Representation
653
+
654
+ property :text, as: 'text'
655
+ end
656
+
657
+ class Source
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :attribution, as: 'attribution'
661
+ property :url, as: 'url'
662
+ end
663
+ end
664
+ end
665
+
666
+ class Sense
667
+ # @private
668
+ class Representation < Google::Apis::Core::JsonRepresentation
669
+ collection :conjugations, as: 'conjugations', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Conjugation, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Conjugation::Representation
670
+
671
+ collection :definitions, as: 'definitions', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Representation
672
+
673
+ property :part_of_speech, as: 'partOfSpeech'
674
+ property :pronunciation, as: 'pronunciation'
675
+ property :pronunciation_url, as: 'pronunciationUrl'
676
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Source::Representation
677
+
678
+ property :syllabification, as: 'syllabification'
679
+ collection :synonyms, as: 'synonyms', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Representation
680
+
681
+ end
682
+
683
+ class Conjugation
684
+ # @private
685
+ class Representation < Google::Apis::Core::JsonRepresentation
686
+ property :type, as: 'type'
687
+ property :value, as: 'value'
688
+ end
689
+ end
690
+
691
+ class Definition
692
+ # @private
693
+ class Representation < Google::Apis::Core::JsonRepresentation
694
+ property :definition, as: 'definition'
695
+ collection :examples, as: 'examples', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Representation
696
+
697
+ end
698
+
699
+ class Example
700
+ # @private
701
+ class Representation < Google::Apis::Core::JsonRepresentation
702
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Source::Representation
703
+
704
+ property :text, as: 'text'
705
+ end
706
+
707
+ class Source
708
+ # @private
709
+ class Representation < Google::Apis::Core::JsonRepresentation
710
+ property :attribution, as: 'attribution'
711
+ property :url, as: 'url'
712
+ end
713
+ end
714
+ end
715
+ end
716
+
717
+ class Source
718
+ # @private
719
+ class Representation < Google::Apis::Core::JsonRepresentation
720
+ property :attribution, as: 'attribution'
721
+ property :url, as: 'url'
722
+ end
723
+ end
724
+
725
+ class Synonym
726
+ # @private
727
+ class Representation < Google::Apis::Core::JsonRepresentation
728
+ property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Source::Representation
729
+
730
+ property :text, as: 'text'
731
+ end
732
+
733
+ class Source
734
+ # @private
735
+ class Representation < Google::Apis::Core::JsonRepresentation
736
+ property :attribution, as: 'attribution'
737
+ property :url, as: 'url'
738
+ end
739
+ end
740
+ end
741
+ end
742
+
743
+ class Source
744
+ # @private
745
+ class Representation < Google::Apis::Core::JsonRepresentation
746
+ property :attribution, as: 'attribution'
747
+ property :url, as: 'url'
748
+ end
749
+ end
750
+ end
751
+ end
752
+ end
753
+
754
+ class DownloadAccessRestriction
755
+ # @private
756
+ class Representation < Google::Apis::Core::JsonRepresentation
757
+ property :device_allowed, as: 'deviceAllowed'
758
+ property :downloads_acquired, as: 'downloadsAcquired'
759
+ property :just_acquired, as: 'justAcquired'
760
+ property :kind, as: 'kind'
761
+ property :max_download_devices, as: 'maxDownloadDevices'
762
+ property :message, as: 'message'
763
+ property :nonce, as: 'nonce'
764
+ property :reason_code, as: 'reasonCode'
765
+ property :restricted, as: 'restricted'
766
+ property :signature, as: 'signature'
767
+ property :source, as: 'source'
768
+ property :volume_id, as: 'volumeId'
769
+ end
770
+ end
771
+
772
+ class DownloadAccesses
773
+ # @private
774
+ class Representation < Google::Apis::Core::JsonRepresentation
775
+ collection :download_access_list, as: 'downloadAccessList', class: Google::Apis::BooksV1::DownloadAccessRestriction, decorator: Google::Apis::BooksV1::DownloadAccessRestriction::Representation
776
+
777
+ property :kind, as: 'kind'
778
+ end
779
+ end
780
+
781
+ class GeoLayerData
782
+ # @private
783
+ class Representation < Google::Apis::Core::JsonRepresentation
784
+ property :common, as: 'common', class: Google::Apis::BooksV1::GeoLayerData::Common, decorator: Google::Apis::BooksV1::GeoLayerData::Common::Representation
785
+
786
+ property :geo, as: 'geo', class: Google::Apis::BooksV1::GeoLayerData::Geo, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Representation
787
+
788
+ property :kind, as: 'kind'
789
+ end
790
+
791
+ class Common
792
+ # @private
793
+ class Representation < Google::Apis::Core::JsonRepresentation
794
+ property :lang, as: 'lang'
795
+ property :preview_image_url, as: 'previewImageUrl'
796
+ property :snippet, as: 'snippet'
797
+ property :snippet_url, as: 'snippetUrl'
798
+ property :title, as: 'title'
799
+ end
800
+ end
801
+
802
+ class Geo
803
+ # @private
804
+ class Representation < Google::Apis::Core::JsonRepresentation
805
+ collection :boundary, as: 'boundary', :class => Array do
806
+ include Representable::JSON::Collection
807
+ items class: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary::Representation
808
+
809
+ end
810
+
811
+ property :cache_policy, as: 'cachePolicy'
812
+ property :country_code, as: 'countryCode'
813
+ property :latitude, as: 'latitude'
814
+ property :longitude, as: 'longitude'
815
+ property :map_type, as: 'mapType'
816
+ property :viewport, as: 'viewport', class: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Representation
817
+
818
+ property :zoom, as: 'zoom'
819
+ end
820
+
821
+ class Boundary
822
+ # @private
823
+ class Representation < Google::Apis::Core::JsonRepresentation
824
+ property :latitude, as: 'latitude'
825
+ property :longitude, as: 'longitude'
826
+ end
827
+ end
828
+
829
+ class Viewport
830
+ # @private
831
+ class Representation < Google::Apis::Core::JsonRepresentation
832
+ property :hi, as: 'hi', class: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Hi, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Hi::Representation
833
+
834
+ property :lo, as: 'lo', class: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Lo, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Lo::Representation
835
+
836
+ end
837
+
838
+ class Hi
839
+ # @private
840
+ class Representation < Google::Apis::Core::JsonRepresentation
841
+ property :latitude, as: 'latitude'
842
+ property :longitude, as: 'longitude'
843
+ end
844
+ end
845
+
846
+ class Lo
847
+ # @private
848
+ class Representation < Google::Apis::Core::JsonRepresentation
849
+ property :latitude, as: 'latitude'
850
+ property :longitude, as: 'longitude'
851
+ end
852
+ end
853
+ end
854
+ end
855
+ end
856
+
857
+ class LayerSummaries
858
+ # @private
859
+ class Representation < Google::Apis::Core::JsonRepresentation
860
+ collection :items, as: 'items', class: Google::Apis::BooksV1::LayerSummary, decorator: Google::Apis::BooksV1::LayerSummary::Representation
861
+
862
+ property :kind, as: 'kind'
863
+ property :total_items, as: 'totalItems'
864
+ end
865
+ end
866
+
867
+ class LayerSummary
868
+ # @private
869
+ class Representation < Google::Apis::Core::JsonRepresentation
870
+ property :annotation_count, as: 'annotationCount'
871
+ collection :annotation_types, as: 'annotationTypes'
872
+ property :annotations_data_link, as: 'annotationsDataLink'
873
+ property :annotations_link, as: 'annotationsLink'
874
+ property :content_version, as: 'contentVersion'
875
+ property :data_count, as: 'dataCount'
876
+ property :id, as: 'id'
877
+ property :kind, as: 'kind'
878
+ property :layer_id, as: 'layerId'
879
+ property :self_link, as: 'selfLink'
880
+ property :updated, as: 'updated', type: DateTime
881
+
882
+ property :volume_annotations_version, as: 'volumeAnnotationsVersion'
883
+ property :volume_id, as: 'volumeId'
884
+ end
885
+ end
886
+
887
+ class Metadata
888
+ # @private
889
+ class Representation < Google::Apis::Core::JsonRepresentation
890
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Metadata::Item, decorator: Google::Apis::BooksV1::Metadata::Item::Representation
891
+
892
+ property :kind, as: 'kind'
893
+ end
894
+
895
+ class Item
896
+ # @private
897
+ class Representation < Google::Apis::Core::JsonRepresentation
898
+ property :download_url, as: 'download_url'
899
+ property :encrypted_key, as: 'encrypted_key'
900
+ property :language, as: 'language'
901
+ property :size, as: 'size'
902
+ property :version, as: 'version'
903
+ end
904
+ end
905
+ end
906
+
907
+ class Offers
908
+ # @private
909
+ class Representation < Google::Apis::Core::JsonRepresentation
910
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Offers::Item, decorator: Google::Apis::BooksV1::Offers::Item::Representation
911
+
912
+ property :kind, as: 'kind'
913
+ end
914
+
915
+ class Item
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :art_url, as: 'artUrl'
919
+ property :gservices_key, as: 'gservicesKey'
920
+ property :id, as: 'id'
921
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Offers::Item::Item, decorator: Google::Apis::BooksV1::Offers::Item::Item::Representation
922
+
923
+ end
924
+
925
+ class Item
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ property :author, as: 'author'
929
+ property :canonical_volume_link, as: 'canonicalVolumeLink'
930
+ property :cover_url, as: 'coverUrl'
931
+ property :description, as: 'description'
932
+ property :title, as: 'title'
933
+ property :volume_id, as: 'volumeId'
934
+ end
935
+ end
936
+ end
937
+ end
938
+
939
+ class ReadingPosition
940
+ # @private
941
+ class Representation < Google::Apis::Core::JsonRepresentation
942
+ property :epub_cfi_position, as: 'epubCfiPosition'
943
+ property :gb_image_position, as: 'gbImagePosition'
944
+ property :gb_text_position, as: 'gbTextPosition'
945
+ property :kind, as: 'kind'
946
+ property :pdf_position, as: 'pdfPosition'
947
+ property :updated, as: 'updated', type: DateTime
948
+
949
+ property :volume_id, as: 'volumeId'
950
+ end
951
+ end
952
+
953
+ class RequestAccess
954
+ # @private
955
+ class Representation < Google::Apis::Core::JsonRepresentation
956
+ property :concurrent_access, as: 'concurrentAccess', class: Google::Apis::BooksV1::ConcurrentAccessRestriction, decorator: Google::Apis::BooksV1::ConcurrentAccessRestriction::Representation
957
+
958
+ property :download_access, as: 'downloadAccess', class: Google::Apis::BooksV1::DownloadAccessRestriction, decorator: Google::Apis::BooksV1::DownloadAccessRestriction::Representation
959
+
960
+ property :kind, as: 'kind'
961
+ end
962
+ end
963
+
964
+ class Review
965
+ # @private
966
+ class Representation < Google::Apis::Core::JsonRepresentation
967
+ property :author, as: 'author', class: Google::Apis::BooksV1::Review::Author, decorator: Google::Apis::BooksV1::Review::Author::Representation
968
+
969
+ property :content, as: 'content'
970
+ property :date, as: 'date'
971
+ property :full_text_url, as: 'fullTextUrl'
972
+ property :kind, as: 'kind'
973
+ property :rating, as: 'rating'
974
+ property :source, as: 'source', class: Google::Apis::BooksV1::Review::Source, decorator: Google::Apis::BooksV1::Review::Source::Representation
975
+
976
+ property :title, as: 'title'
977
+ property :type, as: 'type'
978
+ property :volume_id, as: 'volumeId'
979
+ end
980
+
981
+ class Author
982
+ # @private
983
+ class Representation < Google::Apis::Core::JsonRepresentation
984
+ property :display_name, as: 'displayName'
985
+ end
986
+ end
987
+
988
+ class Source
989
+ # @private
990
+ class Representation < Google::Apis::Core::JsonRepresentation
991
+ property :description, as: 'description'
992
+ property :extra_description, as: 'extraDescription'
993
+ property :url, as: 'url'
994
+ end
995
+ end
996
+ end
997
+
998
+ class UserSettings
999
+ # @private
1000
+ class Representation < Google::Apis::Core::JsonRepresentation
1001
+ property :kind, as: 'kind'
1002
+ property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::UserSettings::NotesExport, decorator: Google::Apis::BooksV1::UserSettings::NotesExport::Representation
1003
+
1004
+ end
1005
+
1006
+ class NotesExport
1007
+ # @private
1008
+ class Representation < Google::Apis::Core::JsonRepresentation
1009
+ property :folder_name, as: 'folderName'
1010
+ property :is_enabled, as: 'isEnabled'
1011
+ end
1012
+ end
1013
+ end
1014
+
1015
+ class Volume
1016
+ # @private
1017
+ class Representation < Google::Apis::Core::JsonRepresentation
1018
+ property :access_info, as: 'accessInfo', class: Google::Apis::BooksV1::Volume::AccessInfo, decorator: Google::Apis::BooksV1::Volume::AccessInfo::Representation
1019
+
1020
+ property :etag, as: 'etag'
1021
+ property :id, as: 'id'
1022
+ property :kind, as: 'kind'
1023
+ property :layer_info, as: 'layerInfo', class: Google::Apis::BooksV1::Volume::LayerInfo, decorator: Google::Apis::BooksV1::Volume::LayerInfo::Representation
1024
+
1025
+ property :recommended_info, as: 'recommendedInfo', class: Google::Apis::BooksV1::Volume::RecommendedInfo, decorator: Google::Apis::BooksV1::Volume::RecommendedInfo::Representation
1026
+
1027
+ property :sale_info, as: 'saleInfo', class: Google::Apis::BooksV1::Volume::SaleInfo, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Representation
1028
+
1029
+ property :search_info, as: 'searchInfo', class: Google::Apis::BooksV1::Volume::SearchInfo, decorator: Google::Apis::BooksV1::Volume::SearchInfo::Representation
1030
+
1031
+ property :self_link, as: 'selfLink'
1032
+ property :user_info, as: 'userInfo', class: Google::Apis::BooksV1::Volume::UserInfo, decorator: Google::Apis::BooksV1::Volume::UserInfo::Representation
1033
+
1034
+ property :volume_info, as: 'volumeInfo', class: Google::Apis::BooksV1::Volume::VolumeInfo, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::Representation
1035
+
1036
+ end
1037
+
1038
+ class AccessInfo
1039
+ # @private
1040
+ class Representation < Google::Apis::Core::JsonRepresentation
1041
+ property :access_view_status, as: 'accessViewStatus'
1042
+ property :country, as: 'country'
1043
+ property :download_access, as: 'downloadAccess', class: Google::Apis::BooksV1::DownloadAccessRestriction, decorator: Google::Apis::BooksV1::DownloadAccessRestriction::Representation
1044
+
1045
+ property :drive_imported_content_link, as: 'driveImportedContentLink'
1046
+ property :embeddable, as: 'embeddable'
1047
+ property :epub, as: 'epub', class: Google::Apis::BooksV1::Volume::AccessInfo::Epub, decorator: Google::Apis::BooksV1::Volume::AccessInfo::Epub::Representation
1048
+
1049
+ property :explicit_offline_license_management, as: 'explicitOfflineLicenseManagement'
1050
+ property :pdf, as: 'pdf', class: Google::Apis::BooksV1::Volume::AccessInfo::Pdf, decorator: Google::Apis::BooksV1::Volume::AccessInfo::Pdf::Representation
1051
+
1052
+ property :public_domain, as: 'publicDomain'
1053
+ property :quote_sharing_allowed, as: 'quoteSharingAllowed'
1054
+ property :text_to_speech_permission, as: 'textToSpeechPermission'
1055
+ property :view_order_url, as: 'viewOrderUrl'
1056
+ property :viewability, as: 'viewability'
1057
+ property :web_reader_link, as: 'webReaderLink'
1058
+ end
1059
+
1060
+ class Epub
1061
+ # @private
1062
+ class Representation < Google::Apis::Core::JsonRepresentation
1063
+ property :acs_token_link, as: 'acsTokenLink'
1064
+ property :download_link, as: 'downloadLink'
1065
+ property :is_available, as: 'isAvailable'
1066
+ end
1067
+ end
1068
+
1069
+ class Pdf
1070
+ # @private
1071
+ class Representation < Google::Apis::Core::JsonRepresentation
1072
+ property :acs_token_link, as: 'acsTokenLink'
1073
+ property :download_link, as: 'downloadLink'
1074
+ property :is_available, as: 'isAvailable'
1075
+ end
1076
+ end
1077
+ end
1078
+
1079
+ class LayerInfo
1080
+ # @private
1081
+ class Representation < Google::Apis::Core::JsonRepresentation
1082
+ collection :layers, as: 'layers', class: Google::Apis::BooksV1::Volume::LayerInfo::Layer, decorator: Google::Apis::BooksV1::Volume::LayerInfo::Layer::Representation
1083
+
1084
+ end
1085
+
1086
+ class Layer
1087
+ # @private
1088
+ class Representation < Google::Apis::Core::JsonRepresentation
1089
+ property :layer_id, as: 'layerId'
1090
+ property :volume_annotations_version, as: 'volumeAnnotationsVersion'
1091
+ end
1092
+ end
1093
+ end
1094
+
1095
+ class RecommendedInfo
1096
+ # @private
1097
+ class Representation < Google::Apis::Core::JsonRepresentation
1098
+ property :explanation, as: 'explanation'
1099
+ end
1100
+ end
1101
+
1102
+ class SaleInfo
1103
+ # @private
1104
+ class Representation < Google::Apis::Core::JsonRepresentation
1105
+ property :buy_link, as: 'buyLink'
1106
+ property :country, as: 'country'
1107
+ property :is_ebook, as: 'isEbook'
1108
+ property :list_price, as: 'listPrice', class: Google::Apis::BooksV1::Volume::SaleInfo::ListPrice, decorator: Google::Apis::BooksV1::Volume::SaleInfo::ListPrice::Representation
1109
+
1110
+ collection :offers, as: 'offers', class: Google::Apis::BooksV1::Volume::SaleInfo::Offer, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Offer::Representation
1111
+
1112
+ property :on_sale_date, as: 'onSaleDate', type: DateTime
1113
+
1114
+ property :retail_price, as: 'retailPrice', class: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice, decorator: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice::Representation
1115
+
1116
+ property :saleability, as: 'saleability'
1117
+ end
1118
+
1119
+ class ListPrice
1120
+ # @private
1121
+ class Representation < Google::Apis::Core::JsonRepresentation
1122
+ property :amount, as: 'amount'
1123
+ property :currency_code, as: 'currencyCode'
1124
+ end
1125
+ end
1126
+
1127
+ class Offer
1128
+ # @private
1129
+ class Representation < Google::Apis::Core::JsonRepresentation
1130
+ property :finsky_offer_type, as: 'finskyOfferType'
1131
+ property :list_price, as: 'listPrice', class: Google::Apis::BooksV1::Volume::SaleInfo::Offer::ListPrice, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Offer::ListPrice::Representation
1132
+
1133
+ property :rental_duration, as: 'rentalDuration', class: Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration::Representation
1134
+
1135
+ property :retail_price, as: 'retailPrice', class: Google::Apis::BooksV1::Volume::SaleInfo::Offer::RetailPrice, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Offer::RetailPrice::Representation
1136
+
1137
+ end
1138
+
1139
+ class ListPrice
1140
+ # @private
1141
+ class Representation < Google::Apis::Core::JsonRepresentation
1142
+ property :amount_in_micros, as: 'amountInMicros'
1143
+ property :currency_code, as: 'currencyCode'
1144
+ end
1145
+ end
1146
+
1147
+ class RentalDuration
1148
+ # @private
1149
+ class Representation < Google::Apis::Core::JsonRepresentation
1150
+ property :count, as: 'count'
1151
+ property :unit, as: 'unit'
1152
+ end
1153
+ end
1154
+
1155
+ class RetailPrice
1156
+ # @private
1157
+ class Representation < Google::Apis::Core::JsonRepresentation
1158
+ property :amount_in_micros, as: 'amountInMicros'
1159
+ property :currency_code, as: 'currencyCode'
1160
+ end
1161
+ end
1162
+ end
1163
+
1164
+ class RetailPrice
1165
+ # @private
1166
+ class Representation < Google::Apis::Core::JsonRepresentation
1167
+ property :amount, as: 'amount'
1168
+ property :currency_code, as: 'currencyCode'
1169
+ end
1170
+ end
1171
+ end
1172
+
1173
+ class SearchInfo
1174
+ # @private
1175
+ class Representation < Google::Apis::Core::JsonRepresentation
1176
+ property :text_snippet, as: 'textSnippet'
1177
+ end
1178
+ end
1179
+
1180
+ class UserInfo
1181
+ # @private
1182
+ class Representation < Google::Apis::Core::JsonRepresentation
1183
+ property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
1184
+
1185
+ property :is_in_my_books, as: 'isInMyBooks'
1186
+ property :is_preordered, as: 'isPreordered'
1187
+ property :is_purchased, as: 'isPurchased'
1188
+ property :is_uploaded, as: 'isUploaded'
1189
+ property :reading_position, as: 'readingPosition', class: Google::Apis::BooksV1::ReadingPosition, decorator: Google::Apis::BooksV1::ReadingPosition::Representation
1190
+
1191
+ property :rental_period, as: 'rentalPeriod', class: Google::Apis::BooksV1::Volume::UserInfo::RentalPeriod, decorator: Google::Apis::BooksV1::Volume::UserInfo::RentalPeriod::Representation
1192
+
1193
+ property :rental_state, as: 'rentalState'
1194
+ property :review, as: 'review', class: Google::Apis::BooksV1::Review, decorator: Google::Apis::BooksV1::Review::Representation
1195
+
1196
+ property :updated, as: 'updated', type: DateTime
1197
+
1198
+ property :user_uploaded_volume_info, as: 'userUploadedVolumeInfo', class: Google::Apis::BooksV1::Volume::UserInfo::UserUploadedVolumeInfo, decorator: Google::Apis::BooksV1::Volume::UserInfo::UserUploadedVolumeInfo::Representation
1199
+
1200
+ end
1201
+
1202
+ class Copy
1203
+ # @private
1204
+ class Representation < Google::Apis::Core::JsonRepresentation
1205
+ property :allowed_character_count, as: 'allowedCharacterCount'
1206
+ property :limit_type, as: 'limitType'
1207
+ property :remaining_character_count, as: 'remainingCharacterCount'
1208
+ property :updated, as: 'updated', type: DateTime
1209
+
1210
+ end
1211
+ end
1212
+
1213
+ class RentalPeriod
1214
+ # @private
1215
+ class Representation < Google::Apis::Core::JsonRepresentation
1216
+ property :end_utc_sec, as: 'endUtcSec'
1217
+ property :start_utc_sec, as: 'startUtcSec'
1218
+ end
1219
+ end
1220
+
1221
+ class UserUploadedVolumeInfo
1222
+ # @private
1223
+ class Representation < Google::Apis::Core::JsonRepresentation
1224
+ property :processing_state, as: 'processingState'
1225
+ end
1226
+ end
1227
+ end
1228
+
1229
+ class VolumeInfo
1230
+ # @private
1231
+ class Representation < Google::Apis::Core::JsonRepresentation
1232
+ property :allow_anon_logging, as: 'allowAnonLogging'
1233
+ collection :authors, as: 'authors'
1234
+ property :average_rating, as: 'averageRating'
1235
+ property :canonical_volume_link, as: 'canonicalVolumeLink'
1236
+ collection :categories, as: 'categories'
1237
+ property :content_version, as: 'contentVersion'
1238
+ property :description, as: 'description'
1239
+ property :dimensions, as: 'dimensions', class: Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::Dimensions::Representation
1240
+
1241
+ property :image_links, as: 'imageLinks', class: Google::Apis::BooksV1::Volume::VolumeInfo::ImageLinks, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::ImageLinks::Representation
1242
+
1243
+ collection :industry_identifiers, as: 'industryIdentifiers', class: Google::Apis::BooksV1::Volume::VolumeInfo::IndustryIdentifier, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::IndustryIdentifier::Representation
1244
+
1245
+ property :info_link, as: 'infoLink'
1246
+ property :language, as: 'language'
1247
+ property :main_category, as: 'mainCategory'
1248
+ property :maturity_rating, as: 'maturityRating'
1249
+ property :page_count, as: 'pageCount'
1250
+ property :preview_link, as: 'previewLink'
1251
+ property :print_type, as: 'printType'
1252
+ property :printed_page_count, as: 'printedPageCount'
1253
+ property :published_date, as: 'publishedDate'
1254
+ property :publisher, as: 'publisher'
1255
+ property :ratings_count, as: 'ratingsCount'
1256
+ property :reading_modes, as: 'readingModes'
1257
+ property :sample_page_count, as: 'samplePageCount'
1258
+ property :subtitle, as: 'subtitle'
1259
+ property :title, as: 'title'
1260
+ end
1261
+
1262
+ class Dimensions
1263
+ # @private
1264
+ class Representation < Google::Apis::Core::JsonRepresentation
1265
+ property :height, as: 'height'
1266
+ property :thickness, as: 'thickness'
1267
+ property :width, as: 'width'
1268
+ end
1269
+ end
1270
+
1271
+ class ImageLinks
1272
+ # @private
1273
+ class Representation < Google::Apis::Core::JsonRepresentation
1274
+ property :extra_large, as: 'extraLarge'
1275
+ property :large, as: 'large'
1276
+ property :medium, as: 'medium'
1277
+ property :small, as: 'small'
1278
+ property :small_thumbnail, as: 'smallThumbnail'
1279
+ property :thumbnail, as: 'thumbnail'
1280
+ end
1281
+ end
1282
+
1283
+ class IndustryIdentifier
1284
+ # @private
1285
+ class Representation < Google::Apis::Core::JsonRepresentation
1286
+ property :identifier, as: 'identifier'
1287
+ property :type, as: 'type'
1288
+ end
1289
+ end
1290
+ end
1291
+ end
1292
+
1293
+ class Volume2
1294
+ # @private
1295
+ class Representation < Google::Apis::Core::JsonRepresentation
1296
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation
1297
+
1298
+ property :kind, as: 'kind'
1299
+ property :next_page_token, as: 'nextPageToken'
1300
+ end
1301
+ end
1302
+
1303
+ class VolumeAnnotation
1304
+ # @private
1305
+ class Representation < Google::Apis::Core::JsonRepresentation
1306
+ property :annotation_data_id, as: 'annotationDataId'
1307
+ property :annotation_data_link, as: 'annotationDataLink'
1308
+ property :annotation_type, as: 'annotationType'
1309
+ property :content_ranges, as: 'contentRanges', class: Google::Apis::BooksV1::VolumeAnnotation::ContentRanges, decorator: Google::Apis::BooksV1::VolumeAnnotation::ContentRanges::Representation
1310
+
1311
+ property :data, as: 'data'
1312
+ property :deleted, as: 'deleted'
1313
+ property :id, as: 'id'
1314
+ property :kind, as: 'kind'
1315
+ property :layer_id, as: 'layerId'
1316
+ collection :page_ids, as: 'pageIds'
1317
+ property :selected_text, as: 'selectedText'
1318
+ property :self_link, as: 'selfLink'
1319
+ property :updated, as: 'updated', type: DateTime
1320
+
1321
+ property :volume_id, as: 'volumeId'
1322
+ end
1323
+
1324
+ class ContentRanges
1325
+ # @private
1326
+ class Representation < Google::Apis::Core::JsonRepresentation
1327
+ property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
1328
+
1329
+ property :content_version, as: 'contentVersion'
1330
+ property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
1331
+
1332
+ property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
1333
+
1334
+ end
1335
+ end
1336
+ end
1337
+
1338
+ class Volumeannotations
1339
+ # @private
1340
+ class Representation < Google::Apis::Core::JsonRepresentation
1341
+ collection :items, as: 'items', class: Google::Apis::BooksV1::VolumeAnnotation, decorator: Google::Apis::BooksV1::VolumeAnnotation::Representation
1342
+
1343
+ property :kind, as: 'kind'
1344
+ property :next_page_token, as: 'nextPageToken'
1345
+ property :total_items, as: 'totalItems'
1346
+ property :version, as: 'version'
1347
+ end
1348
+ end
1349
+
1350
+ class Volumes
1351
+ # @private
1352
+ class Representation < Google::Apis::Core::JsonRepresentation
1353
+ collection :items, as: 'items', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation
1354
+
1355
+ property :kind, as: 'kind'
1356
+ property :total_items, as: 'totalItems'
1357
+ end
1358
+ end
1359
+ end
1360
+ end
1361
+ end