google-api-client 0.9.pre3 → 0.9.pre4

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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -162,6 +162,18 @@ module Google
162
162
  end
163
163
  end
164
164
 
165
+ class Discoveryclusters
166
+ class Representation < Google::Apis::Core::JsonRepresentation; end
167
+
168
+ class Cluster
169
+ class Representation < Google::Apis::Core::JsonRepresentation; end
170
+
171
+ class BannerWithContentContainer
172
+ class Representation < Google::Apis::Core::JsonRepresentation; end
173
+ end
174
+ end
175
+ end
176
+
165
177
  class DownloadAccessRestriction
166
178
  class Representation < Google::Apis::Core::JsonRepresentation; end
167
179
  end
@@ -214,6 +226,10 @@ module Google
214
226
  end
215
227
  end
216
228
 
229
+ class Notification
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+ end
232
+
217
233
  class Offers
218
234
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
235
 
@@ -246,12 +262,32 @@ module Google
246
262
  end
247
263
  end
248
264
 
265
+ class Series
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ class Series
269
+ class Representation < Google::Apis::Core::JsonRepresentation; end
270
+ end
271
+ end
272
+
273
+ class SeriesMembership
274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
275
+ end
276
+
249
277
  class UserSettings
250
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
251
279
 
252
280
  class NotesExport
253
281
  class Representation < Google::Apis::Core::JsonRepresentation; end
254
282
  end
283
+
284
+ class Notification
285
+ class Representation < Google::Apis::Core::JsonRepresentation; end
286
+
287
+ class MoreFromAuthors
288
+ class Representation < Google::Apis::Core::JsonRepresentation; end
289
+ end
290
+ end
255
291
  end
256
292
 
257
293
  class Volume
@@ -366,6 +402,18 @@ module Google
366
402
  class Representation < Google::Apis::Core::JsonRepresentation; end
367
403
  end
368
404
 
405
+ class Volumeseriesinfo
406
+ class Representation < Google::Apis::Core::JsonRepresentation; end
407
+
408
+ class VolumeSeries
409
+ class Representation < Google::Apis::Core::JsonRepresentation; end
410
+
411
+ class Issue
412
+ class Representation < Google::Apis::Core::JsonRepresentation; end
413
+ end
414
+ end
415
+ end
416
+
369
417
  class Annotation
370
418
  # @private
371
419
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -751,6 +799,42 @@ module Google
751
799
  end
752
800
  end
753
801
 
802
+ class Discoveryclusters
803
+ # @private
804
+ class Representation < Google::Apis::Core::JsonRepresentation
805
+ collection :clusters, as: 'clusters', class: Google::Apis::BooksV1::Discoveryclusters::Cluster, decorator: Google::Apis::BooksV1::Discoveryclusters::Cluster::Representation
806
+
807
+ property :kind, as: 'kind'
808
+ property :total_clusters, as: 'totalClusters'
809
+ end
810
+
811
+ class Cluster
812
+ # @private
813
+ class Representation < Google::Apis::Core::JsonRepresentation
814
+ property :banner_with_content_container, as: 'banner_with_content_container', class: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer, decorator: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer::Representation
815
+
816
+ property :sub_title, as: 'subTitle'
817
+ property :title, as: 'title'
818
+ property :total_volumes, as: 'totalVolumes'
819
+ property :uid, as: 'uid'
820
+ collection :volumes, as: 'volumes', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation
821
+
822
+ end
823
+
824
+ class BannerWithContentContainer
825
+ # @private
826
+ class Representation < Google::Apis::Core::JsonRepresentation
827
+ property :fill_color_argb, as: 'fillColorArgb'
828
+ property :image_url, as: 'imageUrl'
829
+ property :mask_color_argb, as: 'maskColorArgb'
830
+ property :more_button_text, as: 'moreButtonText'
831
+ property :more_button_url, as: 'moreButtonUrl'
832
+ property :text_color_argb, as: 'textColorArgb'
833
+ end
834
+ end
835
+ end
836
+ end
837
+
754
838
  class DownloadAccessRestriction
755
839
  # @private
756
840
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -904,6 +988,19 @@ module Google
904
988
  end
905
989
  end
906
990
 
991
+ class Notification
992
+ # @private
993
+ class Representation < Google::Apis::Core::JsonRepresentation
994
+ property :body, as: 'body'
995
+ property :icon_url, as: 'iconUrl'
996
+ property :kind, as: 'kind'
997
+ property :notification_type, as: 'notification_type'
998
+ property :show_notification_settings_action, as: 'show_notification_settings_action'
999
+ property :target_url, as: 'targetUrl'
1000
+ property :title, as: 'title'
1001
+ end
1002
+ end
1003
+
907
1004
  class Offers
908
1005
  # @private
909
1006
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -995,12 +1092,43 @@ module Google
995
1092
  end
996
1093
  end
997
1094
 
1095
+ class Series
1096
+ # @private
1097
+ class Representation < Google::Apis::Core::JsonRepresentation
1098
+ property :kind, as: 'kind'
1099
+ collection :series, as: 'series', class: Google::Apis::BooksV1::Series::Series, decorator: Google::Apis::BooksV1::Series::Series::Representation
1100
+
1101
+ end
1102
+
1103
+ class Series
1104
+ # @private
1105
+ class Representation < Google::Apis::Core::JsonRepresentation
1106
+ property :banner_image_url, as: 'bannerImageUrl'
1107
+ property :image_url, as: 'imageUrl'
1108
+ property :series_id, as: 'seriesId'
1109
+ property :title, as: 'title'
1110
+ end
1111
+ end
1112
+ end
1113
+
1114
+ class SeriesMembership
1115
+ # @private
1116
+ class Representation < Google::Apis::Core::JsonRepresentation
1117
+ property :kind, as: 'kind'
1118
+ collection :member, as: 'member', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation
1119
+
1120
+ property :next_page_token, as: 'nextPageToken'
1121
+ end
1122
+ end
1123
+
998
1124
  class UserSettings
999
1125
  # @private
1000
1126
  class Representation < Google::Apis::Core::JsonRepresentation
1001
1127
  property :kind, as: 'kind'
1002
1128
  property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::UserSettings::NotesExport, decorator: Google::Apis::BooksV1::UserSettings::NotesExport::Representation
1003
1129
 
1130
+ property :notification, as: 'notification', class: Google::Apis::BooksV1::UserSettings::Notification, decorator: Google::Apis::BooksV1::UserSettings::Notification::Representation
1131
+
1004
1132
  end
1005
1133
 
1006
1134
  class NotesExport
@@ -1010,6 +1138,21 @@ module Google
1010
1138
  property :is_enabled, as: 'isEnabled'
1011
1139
  end
1012
1140
  end
1141
+
1142
+ class Notification
1143
+ # @private
1144
+ class Representation < Google::Apis::Core::JsonRepresentation
1145
+ property :more_from_authors, as: 'moreFromAuthors', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors::Representation
1146
+
1147
+ end
1148
+
1149
+ class MoreFromAuthors
1150
+ # @private
1151
+ class Representation < Google::Apis::Core::JsonRepresentation
1152
+ property :opted_state, as: 'opted_state'
1153
+ end
1154
+ end
1155
+ end
1013
1156
  end
1014
1157
 
1015
1158
  class Volume
@@ -1180,8 +1323,10 @@ module Google
1180
1323
  class UserInfo
1181
1324
  # @private
1182
1325
  class Representation < Google::Apis::Core::JsonRepresentation
1326
+ property :acquisition_type, as: 'acquisitionType'
1183
1327
  property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
1184
1328
 
1329
+ property :entitlement_type, as: 'entitlementType'
1185
1330
  property :is_in_my_books, as: 'isInMyBooks'
1186
1331
  property :is_preordered, as: 'isPreordered'
1187
1332
  property :is_purchased, as: 'isPurchased'
@@ -1255,6 +1400,8 @@ module Google
1255
1400
  property :ratings_count, as: 'ratingsCount'
1256
1401
  property :reading_modes, as: 'readingModes'
1257
1402
  property :sample_page_count, as: 'samplePageCount'
1403
+ property :series_info, as: 'seriesInfo', class: Google::Apis::BooksV1::Volumeseriesinfo, decorator: Google::Apis::BooksV1::Volumeseriesinfo::Representation
1404
+
1258
1405
  property :subtitle, as: 'subtitle'
1259
1406
  property :title, as: 'title'
1260
1407
  end
@@ -1356,6 +1503,36 @@ module Google
1356
1503
  property :total_items, as: 'totalItems'
1357
1504
  end
1358
1505
  end
1506
+
1507
+ class Volumeseriesinfo
1508
+ # @private
1509
+ class Representation < Google::Apis::Core::JsonRepresentation
1510
+ property :book_display_number, as: 'bookDisplayNumber'
1511
+ property :kind, as: 'kind'
1512
+ property :short_series_book_title, as: 'shortSeriesBookTitle'
1513
+ collection :volume_series, as: 'volumeSeries', class: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries, decorator: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Representation
1514
+
1515
+ end
1516
+
1517
+ class VolumeSeries
1518
+ # @private
1519
+ class Representation < Google::Apis::Core::JsonRepresentation
1520
+ collection :issue, as: 'issue', class: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue, decorator: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue::Representation
1521
+
1522
+ property :order_number, as: 'orderNumber'
1523
+ property :series_book_type, as: 'seriesBookType'
1524
+ property :series_id, as: 'seriesId'
1525
+ end
1526
+
1527
+ class Issue
1528
+ # @private
1529
+ class Representation < Google::Apis::Core::JsonRepresentation
1530
+ property :issue_display_number, as: 'issueDisplayNumber'
1531
+ property :issue_order_number, as: 'issueOrderNumber'
1532
+ end
1533
+ end
1534
+ end
1535
+ end
1359
1536
  end
1360
1537
  end
1361
1538
  end
@@ -81,8 +81,7 @@ module Google
81
81
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
82
  # @raise [Google::Apis::AuthorizationError] Authorization is required
83
83
  def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
- path = 'users/{userId}/bookshelves/{shelf}'
85
- command = make_simple_command(:get, path, options)
84
+ command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}', options)
86
85
  command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
87
86
  command.response_class = Google::Apis::BooksV1::Bookshelf
88
87
  command.params['userId'] = user_id unless user_id.nil?
@@ -121,8 +120,7 @@ module Google
121
120
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
121
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
122
  def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
124
- path = 'users/{userId}/bookshelves'
125
- command = make_simple_command(:get, path, options)
123
+ command = make_simple_command(:get, 'users/{userId}/bookshelves', options)
126
124
  command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
127
125
  command.response_class = Google::Apis::BooksV1::Bookshelves
128
126
  command.params['userId'] = user_id unless user_id.nil?
@@ -168,8 +166,7 @@ module Google
168
166
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
167
  # @raise [Google::Apis::AuthorizationError] Authorization is required
170
168
  def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
171
- path = 'users/{userId}/bookshelves/{shelf}/volumes'
172
- command = make_simple_command(:get, path, options)
169
+ command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}/volumes', options)
173
170
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
174
171
  command.response_class = Google::Apis::BooksV1::Volumes
175
172
  command.params['userId'] = user_id unless user_id.nil?
@@ -214,8 +211,7 @@ module Google
214
211
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
212
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
213
  def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
217
- path = 'cloudloading/addBook'
218
- command = make_simple_command(:post, path, options)
214
+ command = make_simple_command(:post, 'cloudloading/addBook', options)
219
215
  command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
220
216
  command.response_class = Google::Apis::BooksV1::LoadingResource
221
217
  command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil?
@@ -253,8 +249,7 @@ module Google
253
249
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
250
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
251
  def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
256
- path = 'cloudloading/deleteBook'
257
- command = make_simple_command(:post, path, options)
252
+ command = make_simple_command(:post, 'cloudloading/deleteBook', options)
258
253
  command.query['volumeId'] = volume_id unless volume_id.nil?
259
254
  command.query['fields'] = fields unless fields.nil?
260
255
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -286,8 +281,7 @@ module Google
286
281
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
282
  # @raise [Google::Apis::AuthorizationError] Authorization is required
288
283
  def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
289
- path = 'cloudloading/updateBook'
290
- command = make_simple_command(:post, path, options)
284
+ command = make_simple_command(:post, 'cloudloading/updateBook', options)
291
285
  command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation
292
286
  command.request_object = loading_resource_object
293
287
  command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
@@ -298,7 +292,7 @@ module Google
298
292
  execute_or_queue_command(command, &block)
299
293
  end
300
294
 
301
- # Returns a list of offline dictionary meatadata available
295
+ # Returns a list of offline dictionary metadata available
302
296
  # @param [String] cpksver
303
297
  # The device/version ID from which to request the data.
304
298
  # @param [String] fields
@@ -323,8 +317,7 @@ module Google
323
317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
319
  def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
326
- path = 'dictionary/listOfflineMetadata'
327
- command = make_simple_command(:get, path, options)
320
+ command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options)
328
321
  command.response_representation = Google::Apis::BooksV1::Metadata::Representation
329
322
  command.response_class = Google::Apis::BooksV1::Metadata
330
323
  command.query['cpksver'] = cpksver unless cpksver.nil?
@@ -365,8 +358,7 @@ module Google
365
358
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
359
  # @raise [Google::Apis::AuthorizationError] Authorization is required
367
360
  def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
368
- path = 'volumes/{volumeId}/layersummary/{summaryId}'
369
- command = make_simple_command(:get, path, options)
361
+ command = make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options)
370
362
  command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation
371
363
  command.response_class = Google::Apis::BooksV1::LayerSummary
372
364
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -412,8 +404,7 @@ module Google
412
404
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
413
405
  # @raise [Google::Apis::AuthorizationError] Authorization is required
414
406
  def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
415
- path = 'volumes/{volumeId}/layersummary'
416
- command = make_simple_command(:get, path, options)
407
+ command = make_simple_command(:get, 'volumes/{volumeId}/layersummary', options)
417
408
  command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation
418
409
  command.response_class = Google::Apis::BooksV1::LayerSummaries
419
410
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -473,8 +464,7 @@ module Google
473
464
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
465
  # @raise [Google::Apis::AuthorizationError] Authorization is required
475
466
  def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
476
- path = 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}'
477
- command = make_simple_command(:get, path, options)
467
+ command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
478
468
  command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation
479
469
  command.response_class = Google::Apis::BooksV1::AnnotationData
480
470
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -548,8 +538,7 @@ module Google
548
538
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
539
  # @raise [Google::Apis::AuthorizationError] Authorization is required
550
540
  def list_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
551
- path = 'volumes/{volumeId}/layers/{layerId}/data'
552
- command = make_simple_command(:get, path, options)
541
+ command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options)
553
542
  command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
554
543
  command.response_class = Google::Apis::BooksV1::AnnotationsData
555
544
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -605,8 +594,7 @@ module Google
605
594
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
595
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
596
  def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
608
- path = 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}'
609
- command = make_simple_command(:get, path, options)
597
+ command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
610
598
  command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation
611
599
  command.response_class = Google::Apis::BooksV1::VolumeAnnotation
612
600
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -677,8 +665,7 @@ module Google
677
665
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
666
  # @raise [Google::Apis::AuthorizationError] Authorization is required
679
667
  def list_layer_volume_annotations(volume_id, layer_id, content_version, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
680
- path = 'volumes/{volumeId}/layers/{layerId}'
681
- command = make_simple_command(:get, path, options)
668
+ command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}', options)
682
669
  command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation
683
670
  command.response_class = Google::Apis::BooksV1::Volumeannotations
684
671
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -725,8 +712,7 @@ module Google
725
712
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
713
  # @raise [Google::Apis::AuthorizationError] Authorization is required
727
714
  def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
728
- path = 'myconfig/getUserSettings'
729
- command = make_simple_command(:get, path, options)
715
+ command = make_simple_command(:get, 'myconfig/getUserSettings', options)
730
716
  command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
731
717
  command.response_class = Google::Apis::BooksV1::UserSettings
732
718
  command.query['fields'] = fields unless fields.nil?
@@ -766,8 +752,7 @@ module Google
766
752
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
767
753
  # @raise [Google::Apis::AuthorizationError] Authorization is required
768
754
  def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
769
- path = 'myconfig/releaseDownloadAccess'
770
- command = make_simple_command(:post, path, options)
755
+ command = make_simple_command(:post, 'myconfig/releaseDownloadAccess', options)
771
756
  command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
772
757
  command.response_class = Google::Apis::BooksV1::DownloadAccesses
773
758
  command.query['cpksver'] = cpksver unless cpksver.nil?
@@ -815,8 +800,7 @@ module Google
815
800
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
801
  # @raise [Google::Apis::AuthorizationError] Authorization is required
817
802
  def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
818
- path = 'myconfig/requestAccess'
819
- command = make_simple_command(:post, path, options)
803
+ command = make_simple_command(:post, 'myconfig/requestAccess', options)
820
804
  command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
821
805
  command.response_class = Google::Apis::BooksV1::RequestAccess
822
806
  command.query['cpksver'] = cpksver unless cpksver.nil?
@@ -868,8 +852,7 @@ module Google
868
852
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
869
853
  # @raise [Google::Apis::AuthorizationError] Authorization is required
870
854
  def sync_volume_licenses(source, nonce, cpksver, features: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
871
- path = 'myconfig/syncVolumeLicenses'
872
- command = make_simple_command(:post, path, options)
855
+ command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
873
856
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
874
857
  command.response_class = Google::Apis::BooksV1::Volumes
875
858
  command.query['cpksver'] = cpksver unless cpksver.nil?
@@ -911,8 +894,7 @@ module Google
911
894
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
895
  # @raise [Google::Apis::AuthorizationError] Authorization is required
913
896
  def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
914
- path = 'myconfig/updateUserSettings'
915
- command = make_simple_command(:post, path, options)
897
+ command = make_simple_command(:post, 'myconfig/updateUserSettings', options)
916
898
  command.request_representation = Google::Apis::BooksV1::UserSettings::Representation
917
899
  command.request_object = user_settings_object
918
900
  command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
@@ -950,8 +932,7 @@ module Google
950
932
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
951
933
  # @raise [Google::Apis::AuthorizationError] Authorization is required
952
934
  def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
953
- path = 'mylibrary/annotations/{annotationId}'
954
- command = make_simple_command(:delete, path, options)
935
+ command = make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options)
955
936
  command.params['annotationId'] = annotation_id unless annotation_id.nil?
956
937
  command.query['source'] = source unless source.nil?
957
938
  command.query['fields'] = fields unless fields.nil?
@@ -991,8 +972,7 @@ module Google
991
972
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
992
973
  # @raise [Google::Apis::AuthorizationError] Authorization is required
993
974
  def insert_my_library_annotation(annotation_object = nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
994
- path = 'mylibrary/annotations'
995
- command = make_simple_command(:post, path, options)
975
+ command = make_simple_command(:post, 'mylibrary/annotations', options)
996
976
  command.request_representation = Google::Apis::BooksV1::Annotation::Representation
997
977
  command.request_object = annotation_object
998
978
  command.response_representation = Google::Apis::BooksV1::Annotation::Representation
@@ -1052,8 +1032,7 @@ module Google
1052
1032
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1053
1033
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1054
1034
  def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1055
- path = 'mylibrary/annotations'
1056
- command = make_simple_command(:get, path, options)
1035
+ command = make_simple_command(:get, 'mylibrary/annotations', options)
1057
1036
  command.response_representation = Google::Apis::BooksV1::Annotations::Representation
1058
1037
  command.response_class = Google::Apis::BooksV1::Annotations
1059
1038
  command.query['contentVersion'] = content_version unless content_version.nil?
@@ -1099,8 +1078,7 @@ module Google
1099
1078
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1100
1079
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1101
1080
  def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1102
- path = 'mylibrary/annotations/summary'
1103
- command = make_simple_command(:post, path, options)
1081
+ command = make_simple_command(:post, 'mylibrary/annotations/summary', options)
1104
1082
  command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
1105
1083
  command.response_class = Google::Apis::BooksV1::AnnotationsSummary
1106
1084
  command.query['layerIds'] = layer_ids unless layer_ids.nil?
@@ -1139,8 +1117,7 @@ module Google
1139
1117
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
1118
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
1119
  def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1142
- path = 'mylibrary/annotations/{annotationId}'
1143
- command = make_simple_command(:put, path, options)
1120
+ command = make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options)
1144
1121
  command.request_representation = Google::Apis::BooksV1::Annotation::Representation
1145
1122
  command.request_object = annotation_object
1146
1123
  command.response_representation = Google::Apis::BooksV1::Annotation::Representation
@@ -1184,8 +1161,7 @@ module Google
1184
1161
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1185
1162
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1186
1163
  def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1187
- path = 'mylibrary/bookshelves/{shelf}/addVolume'
1188
- command = make_simple_command(:post, path, options)
1164
+ command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options)
1189
1165
  command.params['shelf'] = shelf unless shelf.nil?
1190
1166
  command.query['reason'] = reason unless reason.nil?
1191
1167
  command.query['source'] = source unless source.nil?
@@ -1223,8 +1199,7 @@ module Google
1223
1199
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1224
1200
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1225
1201
  def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1226
- path = 'mylibrary/bookshelves/{shelf}/clearVolumes'
1227
- command = make_simple_command(:post, path, options)
1202
+ command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options)
1228
1203
  command.params['shelf'] = shelf unless shelf.nil?
1229
1204
  command.query['source'] = source unless source.nil?
1230
1205
  command.query['fields'] = fields unless fields.nil?
@@ -1261,8 +1236,7 @@ module Google
1261
1236
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1262
1237
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1263
1238
  def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1264
- path = 'mylibrary/bookshelves/{shelf}'
1265
- command = make_simple_command(:get, path, options)
1239
+ command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options)
1266
1240
  command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
1267
1241
  command.response_class = Google::Apis::BooksV1::Bookshelf
1268
1242
  command.params['shelf'] = shelf unless shelf.nil?
@@ -1298,8 +1272,7 @@ module Google
1298
1272
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1299
1273
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1300
1274
  def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1301
- path = 'mylibrary/bookshelves'
1302
- command = make_simple_command(:get, path, options)
1275
+ command = make_simple_command(:get, 'mylibrary/bookshelves', options)
1303
1276
  command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
1304
1277
  command.response_class = Google::Apis::BooksV1::Bookshelves
1305
1278
  command.query['source'] = source unless source.nil?
@@ -1341,8 +1314,7 @@ module Google
1341
1314
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1342
1315
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1343
1316
  def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1344
- path = 'mylibrary/bookshelves/{shelf}/moveVolume'
1345
- command = make_simple_command(:post, path, options)
1317
+ command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options)
1346
1318
  command.params['shelf'] = shelf unless shelf.nil?
1347
1319
  command.query['source'] = source unless source.nil?
1348
1320
  command.query['volumeId'] = volume_id unless volume_id.nil?
@@ -1384,8 +1356,7 @@ module Google
1384
1356
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1385
1357
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1386
1358
  def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1387
- path = 'mylibrary/bookshelves/{shelf}/removeVolume'
1388
- command = make_simple_command(:post, path, options)
1359
+ command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options)
1389
1360
  command.params['shelf'] = shelf unless shelf.nil?
1390
1361
  command.query['reason'] = reason unless reason.nil?
1391
1362
  command.query['source'] = source unless source.nil?
@@ -1435,8 +1406,7 @@ module Google
1435
1406
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1436
1407
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1437
1408
  def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1438
- path = 'mylibrary/bookshelves/{shelf}/volumes'
1439
- command = make_simple_command(:get, path, options)
1409
+ command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options)
1440
1410
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
1441
1411
  command.response_class = Google::Apis::BooksV1::Volumes
1442
1412
  command.params['shelf'] = shelf unless shelf.nil?
@@ -1482,8 +1452,7 @@ module Google
1482
1452
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1483
1453
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1484
1454
  def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1485
- path = 'mylibrary/readingpositions/{volumeId}'
1486
- command = make_simple_command(:get, path, options)
1455
+ command = make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options)
1487
1456
  command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
1488
1457
  command.response_class = Google::Apis::BooksV1::ReadingPosition
1489
1458
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -1532,8 +1501,7 @@ module Google
1532
1501
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1533
1502
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1534
1503
  def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1535
- path = 'mylibrary/readingpositions/{volumeId}/setPosition'
1536
- command = make_simple_command(:post, path, options)
1504
+ command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options)
1537
1505
  command.params['volumeId'] = volume_id unless volume_id.nil?
1538
1506
  command.query['action'] = action unless action.nil?
1539
1507
  command.query['contentVersion'] = content_version unless content_version.nil?
@@ -1547,6 +1515,48 @@ module Google
1547
1515
  execute_or_queue_command(command, &block)
1548
1516
  end
1549
1517
 
1518
+ # Returns notification details for a given notification id.
1519
+ # @param [String] notification_id
1520
+ # String to identify the notification.
1521
+ # @param [String] locale
1522
+ # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
1523
+ # generating notification title and body.
1524
+ # @param [String] source
1525
+ # String to identify the originator of this request.
1526
+ # @param [String] fields
1527
+ # Selector specifying which fields to include in a partial response.
1528
+ # @param [String] quota_user
1529
+ # Available to use for quota purposes for server-side applications. Can be any
1530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1531
+ # Overrides userIp if both are provided.
1532
+ # @param [String] user_ip
1533
+ # IP address of the site where the request originates. Use this if you want to
1534
+ # enforce per-user limits.
1535
+ # @param [Google::Apis::RequestOptions] options
1536
+ # Request-specific options
1537
+ #
1538
+ # @yield [result, err] Result & error if block supplied
1539
+ # @yieldparam result [Google::Apis::BooksV1::Notification] parsed result object
1540
+ # @yieldparam err [StandardError] error object if request failed
1541
+ #
1542
+ # @return [Google::Apis::BooksV1::Notification]
1543
+ #
1544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1547
+ def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1548
+ command = make_simple_command(:get, 'notification/get', options)
1549
+ command.response_representation = Google::Apis::BooksV1::Notification::Representation
1550
+ command.response_class = Google::Apis::BooksV1::Notification
1551
+ command.query['locale'] = locale unless locale.nil?
1552
+ command.query['notification_id'] = notification_id unless notification_id.nil?
1553
+ command.query['source'] = source unless source.nil?
1554
+ command.query['fields'] = fields unless fields.nil?
1555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1556
+ command.query['userIp'] = user_ip unless user_ip.nil?
1557
+ execute_or_queue_command(command, &block)
1558
+ end
1559
+
1550
1560
  # List categories for onboarding experience.
1551
1561
  # @param [String] locale
1552
1562
  # ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.
@@ -1572,8 +1582,7 @@ module Google
1572
1582
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1573
1583
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1574
1584
  def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1575
- path = 'onboarding/listCategories'
1576
- command = make_simple_command(:get, path, options)
1585
+ command = make_simple_command(:get, 'onboarding/listCategories', options)
1577
1586
  command.response_representation = Google::Apis::BooksV1::Category::Representation
1578
1587
  command.response_class = Google::Apis::BooksV1::Category
1579
1588
  command.query['locale'] = locale unless locale.nil?
@@ -1617,8 +1626,7 @@ module Google
1617
1626
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1618
1627
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1619
1628
  def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1620
- path = 'onboarding/listCategoryVolumes'
1621
- command = make_simple_command(:get, path, options)
1629
+ command = make_simple_command(:get, 'onboarding/listCategoryVolumes', options)
1622
1630
  command.response_representation = Google::Apis::BooksV1::Volume2::Representation
1623
1631
  command.response_class = Google::Apis::BooksV1::Volume2
1624
1632
  command.query['categoryId'] = category_id unless category_id.nil?
@@ -1632,6 +1640,49 @@ module Google
1632
1640
  execute_or_queue_command(command, &block)
1633
1641
  end
1634
1642
 
1643
+ # Returns a stream of personalized book clusters
1644
+ # @param [String] locale
1645
+ # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
1646
+ # generating recommendations.
1647
+ # @param [String] max_allowed_maturity_rating
1648
+ # The maximum allowed maturity rating of returned recommendations. Books with a
1649
+ # higher maturity rating are filtered out.
1650
+ # @param [String] source
1651
+ # String to identify the originator of this request.
1652
+ # @param [String] fields
1653
+ # Selector specifying which fields to include in a partial response.
1654
+ # @param [String] quota_user
1655
+ # Available to use for quota purposes for server-side applications. Can be any
1656
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1657
+ # Overrides userIp if both are provided.
1658
+ # @param [String] user_ip
1659
+ # IP address of the site where the request originates. Use this if you want to
1660
+ # enforce per-user limits.
1661
+ # @param [Google::Apis::RequestOptions] options
1662
+ # Request-specific options
1663
+ #
1664
+ # @yield [result, err] Result & error if block supplied
1665
+ # @yieldparam result [Google::Apis::BooksV1::Discoveryclusters] parsed result object
1666
+ # @yieldparam err [StandardError] error object if request failed
1667
+ #
1668
+ # @return [Google::Apis::BooksV1::Discoveryclusters]
1669
+ #
1670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1673
+ def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1674
+ command = make_simple_command(:get, 'personalizedstream/get', options)
1675
+ command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation
1676
+ command.response_class = Google::Apis::BooksV1::Discoveryclusters
1677
+ command.query['locale'] = locale unless locale.nil?
1678
+ command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
1679
+ command.query['source'] = source unless source.nil?
1680
+ command.query['fields'] = fields unless fields.nil?
1681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1682
+ command.query['userIp'] = user_ip unless user_ip.nil?
1683
+ execute_or_queue_command(command, &block)
1684
+ end
1685
+
1635
1686
  #
1636
1687
  # @param [String] android_id
1637
1688
  # device android_id
@@ -1670,8 +1721,7 @@ module Google
1670
1721
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
1722
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
1723
  def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1673
- path = 'promooffer/accept'
1674
- command = make_simple_command(:post, path, options)
1724
+ command = make_simple_command(:post, 'promooffer/accept', options)
1675
1725
  command.query['androidId'] = android_id unless android_id.nil?
1676
1726
  command.query['device'] = device unless device.nil?
1677
1727
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
@@ -1723,8 +1773,7 @@ module Google
1723
1773
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1724
1774
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1725
1775
  def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1726
- path = 'promooffer/dismiss'
1727
- command = make_simple_command(:post, path, options)
1776
+ command = make_simple_command(:post, 'promooffer/dismiss', options)
1728
1777
  command.query['androidId'] = android_id unless android_id.nil?
1729
1778
  command.query['device'] = device unless device.nil?
1730
1779
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
@@ -1773,8 +1822,7 @@ module Google
1773
1822
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1774
1823
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1775
1824
  def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1776
- path = 'promooffer/get'
1777
- command = make_simple_command(:get, path, options)
1825
+ command = make_simple_command(:get, 'promooffer/get', options)
1778
1826
  command.response_representation = Google::Apis::BooksV1::Offers::Representation
1779
1827
  command.response_class = Google::Apis::BooksV1::Offers
1780
1828
  command.query['androidId'] = android_id unless android_id.nil?
@@ -1789,6 +1837,82 @@ module Google
1789
1837
  execute_or_queue_command(command, &block)
1790
1838
  end
1791
1839
 
1840
+ # Returns Series metadata for the given series ids.
1841
+ # @param [Array<String>, String] series_id
1842
+ # String that identifies the series
1843
+ # @param [String] fields
1844
+ # Selector specifying which fields to include in a partial response.
1845
+ # @param [String] quota_user
1846
+ # Available to use for quota purposes for server-side applications. Can be any
1847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1848
+ # Overrides userIp if both are provided.
1849
+ # @param [String] user_ip
1850
+ # IP address of the site where the request originates. Use this if you want to
1851
+ # enforce per-user limits.
1852
+ # @param [Google::Apis::RequestOptions] options
1853
+ # Request-specific options
1854
+ #
1855
+ # @yield [result, err] Result & error if block supplied
1856
+ # @yieldparam result [Google::Apis::BooksV1::Series] parsed result object
1857
+ # @yieldparam err [StandardError] error object if request failed
1858
+ #
1859
+ # @return [Google::Apis::BooksV1::Series]
1860
+ #
1861
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1862
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1863
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1864
+ def get_series(series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1865
+ command = make_simple_command(:get, 'series/get', options)
1866
+ command.response_representation = Google::Apis::BooksV1::Series::Representation
1867
+ command.response_class = Google::Apis::BooksV1::Series
1868
+ command.query['series_id'] = series_id unless series_id.nil?
1869
+ command.query['fields'] = fields unless fields.nil?
1870
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1871
+ command.query['userIp'] = user_ip unless user_ip.nil?
1872
+ execute_or_queue_command(command, &block)
1873
+ end
1874
+
1875
+ # Returns Series membership data given the series id.
1876
+ # @param [String] series_id
1877
+ # String that identifies the series
1878
+ # @param [Fixnum] page_size
1879
+ # Number of maximum results per page to be included in the response.
1880
+ # @param [String] page_token
1881
+ # The value of the nextToken from the previous page.
1882
+ # @param [String] fields
1883
+ # Selector specifying which fields to include in a partial response.
1884
+ # @param [String] quota_user
1885
+ # Available to use for quota purposes for server-side applications. Can be any
1886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1887
+ # Overrides userIp if both are provided.
1888
+ # @param [String] user_ip
1889
+ # IP address of the site where the request originates. Use this if you want to
1890
+ # enforce per-user limits.
1891
+ # @param [Google::Apis::RequestOptions] options
1892
+ # Request-specific options
1893
+ #
1894
+ # @yield [result, err] Result & error if block supplied
1895
+ # @yieldparam result [Google::Apis::BooksV1::SeriesMembership] parsed result object
1896
+ # @yieldparam err [StandardError] error object if request failed
1897
+ #
1898
+ # @return [Google::Apis::BooksV1::SeriesMembership]
1899
+ #
1900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1903
+ def get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1904
+ command = make_simple_command(:get, 'series/membership/get', options)
1905
+ command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation
1906
+ command.response_class = Google::Apis::BooksV1::SeriesMembership
1907
+ command.query['page_size'] = page_size unless page_size.nil?
1908
+ command.query['page_token'] = page_token unless page_token.nil?
1909
+ command.query['series_id'] = series_id unless series_id.nil?
1910
+ command.query['fields'] = fields unless fields.nil?
1911
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1912
+ command.query['userIp'] = user_ip unless user_ip.nil?
1913
+ execute_or_queue_command(command, &block)
1914
+ end
1915
+
1792
1916
  # Gets volume information for a single volume.
1793
1917
  # @param [String] volume_id
1794
1918
  # ID of volume to retrieve.
@@ -1823,8 +1947,7 @@ module Google
1823
1947
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1824
1948
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1825
1949
  def get_volume(volume_id, country: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1826
- path = 'volumes/{volumeId}'
1827
- command = make_simple_command(:get, path, options)
1950
+ command = make_simple_command(:get, 'volumes/{volumeId}', options)
1828
1951
  command.response_representation = Google::Apis::BooksV1::Volume::Representation
1829
1952
  command.response_class = Google::Apis::BooksV1::Volume
1830
1953
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -1888,8 +2011,7 @@ module Google
1888
2011
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1889
2012
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1890
2013
  def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1891
- path = 'volumes'
1892
- command = make_simple_command(:get, path, options)
2014
+ command = make_simple_command(:get, 'volumes', options)
1893
2015
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
1894
2016
  command.response_class = Google::Apis::BooksV1::Volumes
1895
2017
  command.query['download'] = download unless download.nil?
@@ -1946,8 +2068,7 @@ module Google
1946
2068
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1947
2069
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1948
2070
  def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1949
- path = 'volumes/{volumeId}/associated'
1950
- command = make_simple_command(:get, path, options)
2071
+ command = make_simple_command(:get, 'volumes/{volumeId}/associated', options)
1951
2072
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
1952
2073
  command.response_class = Google::Apis::BooksV1::Volumes
1953
2074
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -1998,8 +2119,7 @@ module Google
1998
2119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1999
2120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2000
2121
  def list_my_books(acquire_method: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2001
- path = 'volumes/mybooks'
2002
- command = make_simple_command(:get, path, options)
2122
+ command = make_simple_command(:get, 'volumes/mybooks', options)
2003
2123
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2004
2124
  command.response_class = Google::Apis::BooksV1::Volumes
2005
2125
  command.query['acquireMethod'] = acquire_method unless acquire_method.nil?
@@ -2023,6 +2143,8 @@ module Google
2023
2143
  # higher maturity rating are filtered out.
2024
2144
  # @param [String] source
2025
2145
  # String to identify the originator of this request.
2146
+ # @param [Array<String>, String] target_ids
2147
+ # List of target ids used for experiments or user segments
2026
2148
  # @param [String] fields
2027
2149
  # Selector specifying which fields to include in a partial response.
2028
2150
  # @param [String] quota_user
@@ -2044,14 +2166,14 @@ module Google
2044
2166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2045
2167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2046
2168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2047
- def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2048
- path = 'volumes/recommended'
2049
- command = make_simple_command(:get, path, options)
2169
+ def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2170
+ command = make_simple_command(:get, 'volumes/recommended', options)
2050
2171
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2051
2172
  command.response_class = Google::Apis::BooksV1::Volumes
2052
2173
  command.query['locale'] = locale unless locale.nil?
2053
2174
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
2054
2175
  command.query['source'] = source unless source.nil?
2176
+ command.query['targetIds'] = target_ids unless target_ids.nil?
2055
2177
  command.query['fields'] = fields unless fields.nil?
2056
2178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2057
2179
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2090,8 +2212,7 @@ module Google
2090
2212
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2091
2213
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2092
2214
  def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2093
- path = 'volumes/recommended/rate'
2094
- command = make_simple_command(:post, path, options)
2215
+ command = make_simple_command(:post, 'volumes/recommended/rate', options)
2095
2216
  command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
2096
2217
  command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse
2097
2218
  command.query['locale'] = locale unless locale.nil?
@@ -2141,8 +2262,7 @@ module Google
2141
2262
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2142
2263
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2143
2264
  def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2144
- path = 'volumes/useruploaded'
2145
- command = make_simple_command(:get, path, options)
2265
+ command = make_simple_command(:get, 'volumes/useruploaded', options)
2146
2266
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2147
2267
  command.response_class = Google::Apis::BooksV1::Volumes
2148
2268
  command.query['locale'] = locale unless locale.nil?