lemboy-google-api-client 0.9.26

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 (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,1906 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module StorageV1
23
+ # Cloud Storage JSON API
24
+ #
25
+ # Stores and retrieves potentially large, immutable data objects.
26
+ #
27
+ # @example
28
+ # require 'google/apis/storage_v1'
29
+ #
30
+ # Storage = Google::Apis::StorageV1 # Alias the module
31
+ # service = Storage::StorageService.new
32
+ #
33
+ # @see https://developers.google.com/storage/docs/json_api/
34
+ class StorageService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'storage/v1/')
53
+ end
54
+
55
+ # Permanently deletes the ACL entry for the specified entity on the specified
56
+ # bucket.
57
+ # @param [String] bucket
58
+ # Name of a bucket.
59
+ # @param [String] entity
60
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
61
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # Overrides userIp if both are provided.
68
+ # @param [String] user_ip
69
+ # IP address of the site where the request originates. Use this if you want to
70
+ # enforce per-user limits.
71
+ # @param [Google::Apis::RequestOptions] options
72
+ # Request-specific options
73
+ #
74
+ # @yield [result, err] Result & error if block supplied
75
+ # @yieldparam result [NilClass] No result returned for this method
76
+ # @yieldparam err [StandardError] error object if request failed
77
+ #
78
+ # @return [void]
79
+ #
80
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
83
+ def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
+ command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options)
85
+ command.params['bucket'] = bucket unless bucket.nil?
86
+ command.params['entity'] = entity unless entity.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ command.query['userIp'] = user_ip unless user_ip.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # Returns the ACL entry for the specified entity on the specified bucket.
94
+ # @param [String] bucket
95
+ # Name of a bucket.
96
+ # @param [String] entity
97
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
98
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # Overrides userIp if both are provided.
105
+ # @param [String] user_ip
106
+ # IP address of the site where the request originates. Use this if you want to
107
+ # enforce per-user limits.
108
+ # @param [Google::Apis::RequestOptions] options
109
+ # Request-specific options
110
+ #
111
+ # @yield [result, err] Result & error if block supplied
112
+ # @yieldparam result [Google::Apis::StorageV1::BucketAccessControl] parsed result object
113
+ # @yieldparam err [StandardError] error object if request failed
114
+ #
115
+ # @return [Google::Apis::StorageV1::BucketAccessControl]
116
+ #
117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
120
+ def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
121
+ command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options)
122
+ command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
123
+ command.response_class = Google::Apis::StorageV1::BucketAccessControl
124
+ command.params['bucket'] = bucket unless bucket.nil?
125
+ command.params['entity'] = entity unless entity.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
128
+ command.query['userIp'] = user_ip unless user_ip.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # Creates a new ACL entry on the specified bucket.
133
+ # @param [String] bucket
134
+ # Name of a bucket.
135
+ # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # Overrides userIp if both are provided.
142
+ # @param [String] user_ip
143
+ # IP address of the site where the request originates. Use this if you want to
144
+ # enforce per-user limits.
145
+ # @param [Google::Apis::RequestOptions] options
146
+ # Request-specific options
147
+ #
148
+ # @yield [result, err] Result & error if block supplied
149
+ # @yieldparam result [Google::Apis::StorageV1::BucketAccessControl] parsed result object
150
+ # @yieldparam err [StandardError] error object if request failed
151
+ #
152
+ # @return [Google::Apis::StorageV1::BucketAccessControl]
153
+ #
154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
157
+ def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
+ command = make_simple_command(:post, 'b/{bucket}/acl', options)
159
+ command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
160
+ command.request_object = bucket_access_control_object
161
+ command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
162
+ command.response_class = Google::Apis::StorageV1::BucketAccessControl
163
+ command.params['bucket'] = bucket unless bucket.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ command.query['userIp'] = user_ip unless user_ip.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
170
+ # Retrieves ACL entries on the specified bucket.
171
+ # @param [String] bucket
172
+ # Name of a bucket.
173
+ # @param [String] fields
174
+ # Selector specifying which fields to include in a partial response.
175
+ # @param [String] quota_user
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
178
+ # Overrides userIp if both are provided.
179
+ # @param [String] user_ip
180
+ # IP address of the site where the request originates. Use this if you want to
181
+ # enforce per-user limits.
182
+ # @param [Google::Apis::RequestOptions] options
183
+ # Request-specific options
184
+ #
185
+ # @yield [result, err] Result & error if block supplied
186
+ # @yieldparam result [Google::Apis::StorageV1::BucketAccessControls] parsed result object
187
+ # @yieldparam err [StandardError] error object if request failed
188
+ #
189
+ # @return [Google::Apis::StorageV1::BucketAccessControls]
190
+ #
191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
194
+ def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
195
+ command = make_simple_command(:get, 'b/{bucket}/acl', options)
196
+ command.response_representation = Google::Apis::StorageV1::BucketAccessControls::Representation
197
+ command.response_class = Google::Apis::StorageV1::BucketAccessControls
198
+ command.params['bucket'] = bucket unless bucket.nil?
199
+ command.query['fields'] = fields unless fields.nil?
200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
201
+ command.query['userIp'] = user_ip unless user_ip.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Updates an ACL entry on the specified bucket. This method supports patch
206
+ # semantics.
207
+ # @param [String] bucket
208
+ # Name of a bucket.
209
+ # @param [String] entity
210
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
211
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
212
+ # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
213
+ # @param [String] fields
214
+ # Selector specifying which fields to include in a partial response.
215
+ # @param [String] quota_user
216
+ # Available to use for quota purposes for server-side applications. Can be any
217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # Overrides userIp if both are provided.
219
+ # @param [String] user_ip
220
+ # IP address of the site where the request originates. Use this if you want to
221
+ # enforce per-user limits.
222
+ # @param [Google::Apis::RequestOptions] options
223
+ # Request-specific options
224
+ #
225
+ # @yield [result, err] Result & error if block supplied
226
+ # @yieldparam result [Google::Apis::StorageV1::BucketAccessControl] parsed result object
227
+ # @yieldparam err [StandardError] error object if request failed
228
+ #
229
+ # @return [Google::Apis::StorageV1::BucketAccessControl]
230
+ #
231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
234
+ def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
235
+ command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options)
236
+ command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
237
+ command.request_object = bucket_access_control_object
238
+ command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
239
+ command.response_class = Google::Apis::StorageV1::BucketAccessControl
240
+ command.params['bucket'] = bucket unless bucket.nil?
241
+ command.params['entity'] = entity unless entity.nil?
242
+ command.query['fields'] = fields unless fields.nil?
243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
244
+ command.query['userIp'] = user_ip unless user_ip.nil?
245
+ execute_or_queue_command(command, &block)
246
+ end
247
+
248
+ # Updates an ACL entry on the specified bucket.
249
+ # @param [String] bucket
250
+ # Name of a bucket.
251
+ # @param [String] entity
252
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
253
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
254
+ # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
255
+ # @param [String] fields
256
+ # Selector specifying which fields to include in a partial response.
257
+ # @param [String] quota_user
258
+ # Available to use for quota purposes for server-side applications. Can be any
259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
260
+ # Overrides userIp if both are provided.
261
+ # @param [String] user_ip
262
+ # IP address of the site where the request originates. Use this if you want to
263
+ # enforce per-user limits.
264
+ # @param [Google::Apis::RequestOptions] options
265
+ # Request-specific options
266
+ #
267
+ # @yield [result, err] Result & error if block supplied
268
+ # @yieldparam result [Google::Apis::StorageV1::BucketAccessControl] parsed result object
269
+ # @yieldparam err [StandardError] error object if request failed
270
+ #
271
+ # @return [Google::Apis::StorageV1::BucketAccessControl]
272
+ #
273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
276
+ def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
277
+ command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options)
278
+ command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
279
+ command.request_object = bucket_access_control_object
280
+ command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
281
+ command.response_class = Google::Apis::StorageV1::BucketAccessControl
282
+ command.params['bucket'] = bucket unless bucket.nil?
283
+ command.params['entity'] = entity unless entity.nil?
284
+ command.query['fields'] = fields unless fields.nil?
285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ command.query['userIp'] = user_ip unless user_ip.nil?
287
+ execute_or_queue_command(command, &block)
288
+ end
289
+
290
+ # Permanently deletes an empty bucket.
291
+ # @param [String] bucket
292
+ # Name of a bucket.
293
+ # @param [String] if_metageneration_match
294
+ # If set, only deletes the bucket if its metageneration matches this value.
295
+ # @param [String] if_metageneration_not_match
296
+ # If set, only deletes the bucket if its metageneration does not match this
297
+ # value.
298
+ # @param [String] fields
299
+ # Selector specifying which fields to include in a partial response.
300
+ # @param [String] quota_user
301
+ # Available to use for quota purposes for server-side applications. Can be any
302
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
303
+ # Overrides userIp if both are provided.
304
+ # @param [String] user_ip
305
+ # IP address of the site where the request originates. Use this if you want to
306
+ # enforce per-user limits.
307
+ # @param [Google::Apis::RequestOptions] options
308
+ # Request-specific options
309
+ #
310
+ # @yield [result, err] Result & error if block supplied
311
+ # @yieldparam result [NilClass] No result returned for this method
312
+ # @yieldparam err [StandardError] error object if request failed
313
+ #
314
+ # @return [void]
315
+ #
316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
319
+ def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
320
+ command = make_simple_command(:delete, 'b/{bucket}', options)
321
+ command.params['bucket'] = bucket unless bucket.nil?
322
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
323
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
324
+ command.query['fields'] = fields unless fields.nil?
325
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
326
+ command.query['userIp'] = user_ip unless user_ip.nil?
327
+ execute_or_queue_command(command, &block)
328
+ end
329
+
330
+ # Returns metadata for the specified bucket.
331
+ # @param [String] bucket
332
+ # Name of a bucket.
333
+ # @param [String] if_metageneration_match
334
+ # Makes the return of the bucket metadata conditional on whether the bucket's
335
+ # current metageneration matches the given value.
336
+ # @param [String] if_metageneration_not_match
337
+ # Makes the return of the bucket metadata conditional on whether the bucket's
338
+ # current metageneration does not match the given value.
339
+ # @param [String] projection
340
+ # Set of properties to return. Defaults to noAcl.
341
+ # @param [String] fields
342
+ # Selector specifying which fields to include in a partial response.
343
+ # @param [String] quota_user
344
+ # Available to use for quota purposes for server-side applications. Can be any
345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
346
+ # Overrides userIp if both are provided.
347
+ # @param [String] user_ip
348
+ # IP address of the site where the request originates. Use this if you want to
349
+ # enforce per-user limits.
350
+ # @param [Google::Apis::RequestOptions] options
351
+ # Request-specific options
352
+ #
353
+ # @yield [result, err] Result & error if block supplied
354
+ # @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
355
+ # @yieldparam err [StandardError] error object if request failed
356
+ #
357
+ # @return [Google::Apis::StorageV1::Bucket]
358
+ #
359
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
360
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
361
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
362
+ def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
363
+ command = make_simple_command(:get, 'b/{bucket}', options)
364
+ command.response_representation = Google::Apis::StorageV1::Bucket::Representation
365
+ command.response_class = Google::Apis::StorageV1::Bucket
366
+ command.params['bucket'] = bucket unless bucket.nil?
367
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
368
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
369
+ command.query['projection'] = projection unless projection.nil?
370
+ command.query['fields'] = fields unless fields.nil?
371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
372
+ command.query['userIp'] = user_ip unless user_ip.nil?
373
+ execute_or_queue_command(command, &block)
374
+ end
375
+
376
+ # Creates a new bucket.
377
+ # @param [String] project
378
+ # A valid API project identifier.
379
+ # @param [Google::Apis::StorageV1::Bucket] bucket_object
380
+ # @param [String] predefined_acl
381
+ # Apply a predefined set of access controls to this bucket.
382
+ # @param [String] predefined_default_object_acl
383
+ # Apply a predefined set of default object access controls to this bucket.
384
+ # @param [String] projection
385
+ # Set of properties to return. Defaults to noAcl, unless the bucket resource
386
+ # specifies acl or defaultObjectAcl properties, when it defaults to full.
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # Overrides userIp if both are provided.
393
+ # @param [String] user_ip
394
+ # IP address of the site where the request originates. Use this if you want to
395
+ # enforce per-user limits.
396
+ # @param [Google::Apis::RequestOptions] options
397
+ # Request-specific options
398
+ #
399
+ # @yield [result, err] Result & error if block supplied
400
+ # @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
401
+ # @yieldparam err [StandardError] error object if request failed
402
+ #
403
+ # @return [Google::Apis::StorageV1::Bucket]
404
+ #
405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
408
+ def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
409
+ command = make_simple_command(:post, 'b', options)
410
+ command.request_representation = Google::Apis::StorageV1::Bucket::Representation
411
+ command.request_object = bucket_object
412
+ command.response_representation = Google::Apis::StorageV1::Bucket::Representation
413
+ command.response_class = Google::Apis::StorageV1::Bucket
414
+ command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
415
+ command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
416
+ command.query['project'] = project unless project.nil?
417
+ command.query['projection'] = projection unless projection.nil?
418
+ command.query['fields'] = fields unless fields.nil?
419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
420
+ command.query['userIp'] = user_ip unless user_ip.nil?
421
+ execute_or_queue_command(command, &block)
422
+ end
423
+
424
+ # Retrieves a list of buckets for a given project.
425
+ # @param [String] project
426
+ # A valid API project identifier.
427
+ # @param [Fixnum] max_results
428
+ # Maximum number of buckets to return.
429
+ # @param [String] page_token
430
+ # A previously-returned page token representing part of the larger set of
431
+ # results to view.
432
+ # @param [String] prefix
433
+ # Filter results to buckets whose names begin with this prefix.
434
+ # @param [String] projection
435
+ # Set of properties to return. Defaults to noAcl.
436
+ # @param [String] fields
437
+ # Selector specifying which fields to include in a partial response.
438
+ # @param [String] quota_user
439
+ # Available to use for quota purposes for server-side applications. Can be any
440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
441
+ # Overrides userIp if both are provided.
442
+ # @param [String] user_ip
443
+ # IP address of the site where the request originates. Use this if you want to
444
+ # enforce per-user limits.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::StorageV1::Buckets] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::StorageV1::Buckets]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
458
+ command = make_simple_command(:get, 'b', options)
459
+ command.response_representation = Google::Apis::StorageV1::Buckets::Representation
460
+ command.response_class = Google::Apis::StorageV1::Buckets
461
+ command.query['maxResults'] = max_results unless max_results.nil?
462
+ command.query['pageToken'] = page_token unless page_token.nil?
463
+ command.query['prefix'] = prefix unless prefix.nil?
464
+ command.query['project'] = project unless project.nil?
465
+ command.query['projection'] = projection unless projection.nil?
466
+ command.query['fields'] = fields unless fields.nil?
467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
468
+ command.query['userIp'] = user_ip unless user_ip.nil?
469
+ execute_or_queue_command(command, &block)
470
+ end
471
+
472
+ # Updates a bucket. Changes to the bucket will be readable immediately after
473
+ # writing, but configuration changes may take time to propagate. This method
474
+ # supports patch semantics.
475
+ # @param [String] bucket
476
+ # Name of a bucket.
477
+ # @param [Google::Apis::StorageV1::Bucket] bucket_object
478
+ # @param [String] if_metageneration_match
479
+ # Makes the return of the bucket metadata conditional on whether the bucket's
480
+ # current metageneration matches the given value.
481
+ # @param [String] if_metageneration_not_match
482
+ # Makes the return of the bucket metadata conditional on whether the bucket's
483
+ # current metageneration does not match the given value.
484
+ # @param [String] predefined_acl
485
+ # Apply a predefined set of access controls to this bucket.
486
+ # @param [String] predefined_default_object_acl
487
+ # Apply a predefined set of default object access controls to this bucket.
488
+ # @param [String] projection
489
+ # Set of properties to return. Defaults to full.
490
+ # @param [String] fields
491
+ # Selector specifying which fields to include in a partial response.
492
+ # @param [String] quota_user
493
+ # Available to use for quota purposes for server-side applications. Can be any
494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
495
+ # Overrides userIp if both are provided.
496
+ # @param [String] user_ip
497
+ # IP address of the site where the request originates. Use this if you want to
498
+ # enforce per-user limits.
499
+ # @param [Google::Apis::RequestOptions] options
500
+ # Request-specific options
501
+ #
502
+ # @yield [result, err] Result & error if block supplied
503
+ # @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
504
+ # @yieldparam err [StandardError] error object if request failed
505
+ #
506
+ # @return [Google::Apis::StorageV1::Bucket]
507
+ #
508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
511
+ def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
512
+ command = make_simple_command(:patch, 'b/{bucket}', options)
513
+ command.request_representation = Google::Apis::StorageV1::Bucket::Representation
514
+ command.request_object = bucket_object
515
+ command.response_representation = Google::Apis::StorageV1::Bucket::Representation
516
+ command.response_class = Google::Apis::StorageV1::Bucket
517
+ command.params['bucket'] = bucket unless bucket.nil?
518
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
519
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
520
+ command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
521
+ command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
522
+ command.query['projection'] = projection unless projection.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ command.query['userIp'] = user_ip unless user_ip.nil?
526
+ execute_or_queue_command(command, &block)
527
+ end
528
+
529
+ # Updates a bucket. Changes to the bucket will be readable immediately after
530
+ # writing, but configuration changes may take time to propagate.
531
+ # @param [String] bucket
532
+ # Name of a bucket.
533
+ # @param [Google::Apis::StorageV1::Bucket] bucket_object
534
+ # @param [String] if_metageneration_match
535
+ # Makes the return of the bucket metadata conditional on whether the bucket's
536
+ # current metageneration matches the given value.
537
+ # @param [String] if_metageneration_not_match
538
+ # Makes the return of the bucket metadata conditional on whether the bucket's
539
+ # current metageneration does not match the given value.
540
+ # @param [String] predefined_acl
541
+ # Apply a predefined set of access controls to this bucket.
542
+ # @param [String] predefined_default_object_acl
543
+ # Apply a predefined set of default object access controls to this bucket.
544
+ # @param [String] projection
545
+ # Set of properties to return. Defaults to full.
546
+ # @param [String] fields
547
+ # Selector specifying which fields to include in a partial response.
548
+ # @param [String] quota_user
549
+ # Available to use for quota purposes for server-side applications. Can be any
550
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
551
+ # Overrides userIp if both are provided.
552
+ # @param [String] user_ip
553
+ # IP address of the site where the request originates. Use this if you want to
554
+ # enforce per-user limits.
555
+ # @param [Google::Apis::RequestOptions] options
556
+ # Request-specific options
557
+ #
558
+ # @yield [result, err] Result & error if block supplied
559
+ # @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
560
+ # @yieldparam err [StandardError] error object if request failed
561
+ #
562
+ # @return [Google::Apis::StorageV1::Bucket]
563
+ #
564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
567
+ def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
568
+ command = make_simple_command(:put, 'b/{bucket}', options)
569
+ command.request_representation = Google::Apis::StorageV1::Bucket::Representation
570
+ command.request_object = bucket_object
571
+ command.response_representation = Google::Apis::StorageV1::Bucket::Representation
572
+ command.response_class = Google::Apis::StorageV1::Bucket
573
+ command.params['bucket'] = bucket unless bucket.nil?
574
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
575
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
576
+ command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
577
+ command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
578
+ command.query['projection'] = projection unless projection.nil?
579
+ command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ command.query['userIp'] = user_ip unless user_ip.nil?
582
+ execute_or_queue_command(command, &block)
583
+ end
584
+
585
+ # Stop watching resources through this channel
586
+ # @param [Google::Apis::StorageV1::Channel] channel_object
587
+ # @param [String] fields
588
+ # Selector specifying which fields to include in a partial response.
589
+ # @param [String] quota_user
590
+ # Available to use for quota purposes for server-side applications. Can be any
591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
592
+ # Overrides userIp if both are provided.
593
+ # @param [String] user_ip
594
+ # IP address of the site where the request originates. Use this if you want to
595
+ # enforce per-user limits.
596
+ # @param [Google::Apis::RequestOptions] options
597
+ # Request-specific options
598
+ #
599
+ # @yield [result, err] Result & error if block supplied
600
+ # @yieldparam result [NilClass] No result returned for this method
601
+ # @yieldparam err [StandardError] error object if request failed
602
+ #
603
+ # @return [void]
604
+ #
605
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
606
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
607
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
608
+ def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
609
+ command = make_simple_command(:post, 'channels/stop', options)
610
+ command.request_representation = Google::Apis::StorageV1::Channel::Representation
611
+ command.request_object = channel_object
612
+ command.query['fields'] = fields unless fields.nil?
613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
614
+ command.query['userIp'] = user_ip unless user_ip.nil?
615
+ execute_or_queue_command(command, &block)
616
+ end
617
+
618
+ # Permanently deletes the default object ACL entry for the specified entity on
619
+ # the specified bucket.
620
+ # @param [String] bucket
621
+ # Name of a bucket.
622
+ # @param [String] entity
623
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
624
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # Overrides userIp if both are provided.
631
+ # @param [String] user_ip
632
+ # IP address of the site where the request originates. Use this if you want to
633
+ # enforce per-user limits.
634
+ # @param [Google::Apis::RequestOptions] options
635
+ # Request-specific options
636
+ #
637
+ # @yield [result, err] Result & error if block supplied
638
+ # @yieldparam result [NilClass] No result returned for this method
639
+ # @yieldparam err [StandardError] error object if request failed
640
+ #
641
+ # @return [void]
642
+ #
643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
646
+ def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
647
+ command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options)
648
+ command.params['bucket'] = bucket unless bucket.nil?
649
+ command.params['entity'] = entity unless entity.nil?
650
+ command.query['fields'] = fields unless fields.nil?
651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
652
+ command.query['userIp'] = user_ip unless user_ip.nil?
653
+ execute_or_queue_command(command, &block)
654
+ end
655
+
656
+ # Returns the default object ACL entry for the specified entity on the specified
657
+ # bucket.
658
+ # @param [String] bucket
659
+ # Name of a bucket.
660
+ # @param [String] entity
661
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
662
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
663
+ # @param [String] fields
664
+ # Selector specifying which fields to include in a partial response.
665
+ # @param [String] quota_user
666
+ # Available to use for quota purposes for server-side applications. Can be any
667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
668
+ # Overrides userIp if both are provided.
669
+ # @param [String] user_ip
670
+ # IP address of the site where the request originates. Use this if you want to
671
+ # enforce per-user limits.
672
+ # @param [Google::Apis::RequestOptions] options
673
+ # Request-specific options
674
+ #
675
+ # @yield [result, err] Result & error if block supplied
676
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
677
+ # @yieldparam err [StandardError] error object if request failed
678
+ #
679
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
680
+ #
681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
684
+ def get_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
685
+ command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options)
686
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
687
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
688
+ command.params['bucket'] = bucket unless bucket.nil?
689
+ command.params['entity'] = entity unless entity.nil?
690
+ command.query['fields'] = fields unless fields.nil?
691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
692
+ command.query['userIp'] = user_ip unless user_ip.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ # Creates a new default object ACL entry on the specified bucket.
697
+ # @param [String] bucket
698
+ # Name of a bucket.
699
+ # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
700
+ # @param [String] fields
701
+ # Selector specifying which fields to include in a partial response.
702
+ # @param [String] quota_user
703
+ # Available to use for quota purposes for server-side applications. Can be any
704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
705
+ # Overrides userIp if both are provided.
706
+ # @param [String] user_ip
707
+ # IP address of the site where the request originates. Use this if you want to
708
+ # enforce per-user limits.
709
+ # @param [Google::Apis::RequestOptions] options
710
+ # Request-specific options
711
+ #
712
+ # @yield [result, err] Result & error if block supplied
713
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
714
+ # @yieldparam err [StandardError] error object if request failed
715
+ #
716
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
717
+ #
718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
721
+ def insert_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
722
+ command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options)
723
+ command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
724
+ command.request_object = object_access_control_object
725
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
726
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
727
+ command.params['bucket'] = bucket unless bucket.nil?
728
+ command.query['fields'] = fields unless fields.nil?
729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
730
+ command.query['userIp'] = user_ip unless user_ip.nil?
731
+ execute_or_queue_command(command, &block)
732
+ end
733
+
734
+ # Retrieves default object ACL entries on the specified bucket.
735
+ # @param [String] bucket
736
+ # Name of a bucket.
737
+ # @param [String] if_metageneration_match
738
+ # If present, only return default ACL listing if the bucket's current
739
+ # metageneration matches this value.
740
+ # @param [String] if_metageneration_not_match
741
+ # If present, only return default ACL listing if the bucket's current
742
+ # metageneration does not match the given value.
743
+ # @param [String] fields
744
+ # Selector specifying which fields to include in a partial response.
745
+ # @param [String] quota_user
746
+ # Available to use for quota purposes for server-side applications. Can be any
747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
748
+ # Overrides userIp if both are provided.
749
+ # @param [String] user_ip
750
+ # IP address of the site where the request originates. Use this if you want to
751
+ # enforce per-user limits.
752
+ # @param [Google::Apis::RequestOptions] options
753
+ # Request-specific options
754
+ #
755
+ # @yield [result, err] Result & error if block supplied
756
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControls] parsed result object
757
+ # @yieldparam err [StandardError] error object if request failed
758
+ #
759
+ # @return [Google::Apis::StorageV1::ObjectAccessControls]
760
+ #
761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
764
+ def list_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
765
+ command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options)
766
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
767
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControls
768
+ command.params['bucket'] = bucket unless bucket.nil?
769
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
770
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
771
+ command.query['fields'] = fields unless fields.nil?
772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
773
+ command.query['userIp'] = user_ip unless user_ip.nil?
774
+ execute_or_queue_command(command, &block)
775
+ end
776
+
777
+ # Updates a default object ACL entry on the specified bucket. This method
778
+ # supports patch semantics.
779
+ # @param [String] bucket
780
+ # Name of a bucket.
781
+ # @param [String] entity
782
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
783
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
784
+ # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
785
+ # @param [String] fields
786
+ # Selector specifying which fields to include in a partial response.
787
+ # @param [String] quota_user
788
+ # Available to use for quota purposes for server-side applications. Can be any
789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
790
+ # Overrides userIp if both are provided.
791
+ # @param [String] user_ip
792
+ # IP address of the site where the request originates. Use this if you want to
793
+ # enforce per-user limits.
794
+ # @param [Google::Apis::RequestOptions] options
795
+ # Request-specific options
796
+ #
797
+ # @yield [result, err] Result & error if block supplied
798
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
799
+ # @yieldparam err [StandardError] error object if request failed
800
+ #
801
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
802
+ #
803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
806
+ def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
807
+ command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options)
808
+ command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
809
+ command.request_object = object_access_control_object
810
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
811
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
812
+ command.params['bucket'] = bucket unless bucket.nil?
813
+ command.params['entity'] = entity unless entity.nil?
814
+ command.query['fields'] = fields unless fields.nil?
815
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
816
+ command.query['userIp'] = user_ip unless user_ip.nil?
817
+ execute_or_queue_command(command, &block)
818
+ end
819
+
820
+ # Updates a default object ACL entry on the specified bucket.
821
+ # @param [String] bucket
822
+ # Name of a bucket.
823
+ # @param [String] entity
824
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
825
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
826
+ # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
827
+ # @param [String] fields
828
+ # Selector specifying which fields to include in a partial response.
829
+ # @param [String] quota_user
830
+ # Available to use for quota purposes for server-side applications. Can be any
831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
832
+ # Overrides userIp if both are provided.
833
+ # @param [String] user_ip
834
+ # IP address of the site where the request originates. Use this if you want to
835
+ # enforce per-user limits.
836
+ # @param [Google::Apis::RequestOptions] options
837
+ # Request-specific options
838
+ #
839
+ # @yield [result, err] Result & error if block supplied
840
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
841
+ # @yieldparam err [StandardError] error object if request failed
842
+ #
843
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
844
+ #
845
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
846
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
847
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
848
+ def update_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
849
+ command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options)
850
+ command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
851
+ command.request_object = object_access_control_object
852
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
853
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
854
+ command.params['bucket'] = bucket unless bucket.nil?
855
+ command.params['entity'] = entity unless entity.nil?
856
+ command.query['fields'] = fields unless fields.nil?
857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
858
+ command.query['userIp'] = user_ip unless user_ip.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
861
+
862
+ # Permanently deletes the ACL entry for the specified entity on the specified
863
+ # object.
864
+ # @param [String] bucket
865
+ # Name of a bucket.
866
+ # @param [String] object
867
+ # Name of the object. For information about how to URL encode object names to be
868
+ # path safe, see Encoding URI Path Parts.
869
+ # @param [String] entity
870
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
871
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
872
+ # @param [String] generation
873
+ # If present, selects a specific revision of this object (as opposed to the
874
+ # latest version, the default).
875
+ # @param [String] fields
876
+ # Selector specifying which fields to include in a partial response.
877
+ # @param [String] quota_user
878
+ # Available to use for quota purposes for server-side applications. Can be any
879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
880
+ # Overrides userIp if both are provided.
881
+ # @param [String] user_ip
882
+ # IP address of the site where the request originates. Use this if you want to
883
+ # enforce per-user limits.
884
+ # @param [Google::Apis::RequestOptions] options
885
+ # Request-specific options
886
+ #
887
+ # @yield [result, err] Result & error if block supplied
888
+ # @yieldparam result [NilClass] No result returned for this method
889
+ # @yieldparam err [StandardError] error object if request failed
890
+ #
891
+ # @return [void]
892
+ #
893
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
894
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
895
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
896
+ def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
897
+ command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options)
898
+ command.params['bucket'] = bucket unless bucket.nil?
899
+ command.params['object'] = object unless object.nil?
900
+ command.params['entity'] = entity unless entity.nil?
901
+ command.query['generation'] = generation unless generation.nil?
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ command.query['userIp'] = user_ip unless user_ip.nil?
905
+ execute_or_queue_command(command, &block)
906
+ end
907
+
908
+ # Returns the ACL entry for the specified entity on the specified object.
909
+ # @param [String] bucket
910
+ # Name of a bucket.
911
+ # @param [String] object
912
+ # Name of the object. For information about how to URL encode object names to be
913
+ # path safe, see Encoding URI Path Parts.
914
+ # @param [String] entity
915
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
916
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
917
+ # @param [String] generation
918
+ # If present, selects a specific revision of this object (as opposed to the
919
+ # latest version, the default).
920
+ # @param [String] fields
921
+ # Selector specifying which fields to include in a partial response.
922
+ # @param [String] quota_user
923
+ # Available to use for quota purposes for server-side applications. Can be any
924
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
925
+ # Overrides userIp if both are provided.
926
+ # @param [String] user_ip
927
+ # IP address of the site where the request originates. Use this if you want to
928
+ # enforce per-user limits.
929
+ # @param [Google::Apis::RequestOptions] options
930
+ # Request-specific options
931
+ #
932
+ # @yield [result, err] Result & error if block supplied
933
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
934
+ # @yieldparam err [StandardError] error object if request failed
935
+ #
936
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
937
+ #
938
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
939
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
940
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
941
+ def get_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
942
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options)
943
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
944
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
945
+ command.params['bucket'] = bucket unless bucket.nil?
946
+ command.params['object'] = object unless object.nil?
947
+ command.params['entity'] = entity unless entity.nil?
948
+ command.query['generation'] = generation unless generation.nil?
949
+ command.query['fields'] = fields unless fields.nil?
950
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
951
+ command.query['userIp'] = user_ip unless user_ip.nil?
952
+ execute_or_queue_command(command, &block)
953
+ end
954
+
955
+ # Creates a new ACL entry on the specified object.
956
+ # @param [String] bucket
957
+ # Name of a bucket.
958
+ # @param [String] object
959
+ # Name of the object. For information about how to URL encode object names to be
960
+ # path safe, see Encoding URI Path Parts.
961
+ # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
962
+ # @param [String] generation
963
+ # If present, selects a specific revision of this object (as opposed to the
964
+ # latest version, the default).
965
+ # @param [String] fields
966
+ # Selector specifying which fields to include in a partial response.
967
+ # @param [String] quota_user
968
+ # Available to use for quota purposes for server-side applications. Can be any
969
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
970
+ # Overrides userIp if both are provided.
971
+ # @param [String] user_ip
972
+ # IP address of the site where the request originates. Use this if you want to
973
+ # enforce per-user limits.
974
+ # @param [Google::Apis::RequestOptions] options
975
+ # Request-specific options
976
+ #
977
+ # @yield [result, err] Result & error if block supplied
978
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
979
+ # @yieldparam err [StandardError] error object if request failed
980
+ #
981
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
982
+ #
983
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
984
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
985
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
986
+ def insert_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
987
+ command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options)
988
+ command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
989
+ command.request_object = object_access_control_object
990
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
991
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
992
+ command.params['bucket'] = bucket unless bucket.nil?
993
+ command.params['object'] = object unless object.nil?
994
+ command.query['generation'] = generation unless generation.nil?
995
+ command.query['fields'] = fields unless fields.nil?
996
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
997
+ command.query['userIp'] = user_ip unless user_ip.nil?
998
+ execute_or_queue_command(command, &block)
999
+ end
1000
+
1001
+ # Retrieves ACL entries on the specified object.
1002
+ # @param [String] bucket
1003
+ # Name of a bucket.
1004
+ # @param [String] object
1005
+ # Name of the object. For information about how to URL encode object names to be
1006
+ # path safe, see Encoding URI Path Parts.
1007
+ # @param [String] generation
1008
+ # If present, selects a specific revision of this object (as opposed to the
1009
+ # latest version, the default).
1010
+ # @param [String] fields
1011
+ # Selector specifying which fields to include in a partial response.
1012
+ # @param [String] quota_user
1013
+ # Available to use for quota purposes for server-side applications. Can be any
1014
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1015
+ # Overrides userIp if both are provided.
1016
+ # @param [String] user_ip
1017
+ # IP address of the site where the request originates. Use this if you want to
1018
+ # enforce per-user limits.
1019
+ # @param [Google::Apis::RequestOptions] options
1020
+ # Request-specific options
1021
+ #
1022
+ # @yield [result, err] Result & error if block supplied
1023
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControls] parsed result object
1024
+ # @yieldparam err [StandardError] error object if request failed
1025
+ #
1026
+ # @return [Google::Apis::StorageV1::ObjectAccessControls]
1027
+ #
1028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1031
+ def list_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1032
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options)
1033
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
1034
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControls
1035
+ command.params['bucket'] = bucket unless bucket.nil?
1036
+ command.params['object'] = object unless object.nil?
1037
+ command.query['generation'] = generation unless generation.nil?
1038
+ command.query['fields'] = fields unless fields.nil?
1039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1040
+ command.query['userIp'] = user_ip unless user_ip.nil?
1041
+ execute_or_queue_command(command, &block)
1042
+ end
1043
+
1044
+ # Updates an ACL entry on the specified object. This method supports patch
1045
+ # semantics.
1046
+ # @param [String] bucket
1047
+ # Name of a bucket.
1048
+ # @param [String] object
1049
+ # Name of the object. For information about how to URL encode object names to be
1050
+ # path safe, see Encoding URI Path Parts.
1051
+ # @param [String] entity
1052
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
1053
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
1054
+ # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
1055
+ # @param [String] generation
1056
+ # If present, selects a specific revision of this object (as opposed to the
1057
+ # latest version, the default).
1058
+ # @param [String] fields
1059
+ # Selector specifying which fields to include in a partial response.
1060
+ # @param [String] quota_user
1061
+ # Available to use for quota purposes for server-side applications. Can be any
1062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1063
+ # Overrides userIp if both are provided.
1064
+ # @param [String] user_ip
1065
+ # IP address of the site where the request originates. Use this if you want to
1066
+ # enforce per-user limits.
1067
+ # @param [Google::Apis::RequestOptions] options
1068
+ # Request-specific options
1069
+ #
1070
+ # @yield [result, err] Result & error if block supplied
1071
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
1072
+ # @yieldparam err [StandardError] error object if request failed
1073
+ #
1074
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
1075
+ #
1076
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1077
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1078
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1079
+ def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1080
+ command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options)
1081
+ command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1082
+ command.request_object = object_access_control_object
1083
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1084
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
1085
+ command.params['bucket'] = bucket unless bucket.nil?
1086
+ command.params['object'] = object unless object.nil?
1087
+ command.params['entity'] = entity unless entity.nil?
1088
+ command.query['generation'] = generation unless generation.nil?
1089
+ command.query['fields'] = fields unless fields.nil?
1090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1091
+ command.query['userIp'] = user_ip unless user_ip.nil?
1092
+ execute_or_queue_command(command, &block)
1093
+ end
1094
+
1095
+ # Updates an ACL entry on the specified object.
1096
+ # @param [String] bucket
1097
+ # Name of a bucket.
1098
+ # @param [String] object
1099
+ # Name of the object. For information about how to URL encode object names to be
1100
+ # path safe, see Encoding URI Path Parts.
1101
+ # @param [String] entity
1102
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
1103
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
1104
+ # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
1105
+ # @param [String] generation
1106
+ # If present, selects a specific revision of this object (as opposed to the
1107
+ # latest version, the default).
1108
+ # @param [String] fields
1109
+ # Selector specifying which fields to include in a partial response.
1110
+ # @param [String] quota_user
1111
+ # Available to use for quota purposes for server-side applications. Can be any
1112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1113
+ # Overrides userIp if both are provided.
1114
+ # @param [String] user_ip
1115
+ # IP address of the site where the request originates. Use this if you want to
1116
+ # enforce per-user limits.
1117
+ # @param [Google::Apis::RequestOptions] options
1118
+ # Request-specific options
1119
+ #
1120
+ # @yield [result, err] Result & error if block supplied
1121
+ # @yieldparam result [Google::Apis::StorageV1::ObjectAccessControl] parsed result object
1122
+ # @yieldparam err [StandardError] error object if request failed
1123
+ #
1124
+ # @return [Google::Apis::StorageV1::ObjectAccessControl]
1125
+ #
1126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1129
+ def update_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1130
+ command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options)
1131
+ command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1132
+ command.request_object = object_access_control_object
1133
+ command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1134
+ command.response_class = Google::Apis::StorageV1::ObjectAccessControl
1135
+ command.params['bucket'] = bucket unless bucket.nil?
1136
+ command.params['object'] = object unless object.nil?
1137
+ command.params['entity'] = entity unless entity.nil?
1138
+ command.query['generation'] = generation unless generation.nil?
1139
+ command.query['fields'] = fields unless fields.nil?
1140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1141
+ command.query['userIp'] = user_ip unless user_ip.nil?
1142
+ execute_or_queue_command(command, &block)
1143
+ end
1144
+
1145
+ # Concatenates a list of existing objects into a new object in the same bucket.
1146
+ # @param [String] destination_bucket
1147
+ # Name of the bucket in which to store the new object.
1148
+ # @param [String] destination_object
1149
+ # Name of the new object. For information about how to URL encode object names
1150
+ # to be path safe, see Encoding URI Path Parts.
1151
+ # @param [Google::Apis::StorageV1::ComposeRequest] compose_request_object
1152
+ # @param [String] destination_predefined_acl
1153
+ # Apply a predefined set of access controls to the destination object.
1154
+ # @param [String] if_generation_match
1155
+ # Makes the operation conditional on whether the object's current generation
1156
+ # matches the given value.
1157
+ # @param [String] if_metageneration_match
1158
+ # Makes the operation conditional on whether the object's current metageneration
1159
+ # matches the given value.
1160
+ # @param [String] fields
1161
+ # Selector specifying which fields to include in a partial response.
1162
+ # @param [String] quota_user
1163
+ # Available to use for quota purposes for server-side applications. Can be any
1164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1165
+ # Overrides userIp if both are provided.
1166
+ # @param [String] user_ip
1167
+ # IP address of the site where the request originates. Use this if you want to
1168
+ # enforce per-user limits.
1169
+ # @param [IO, String] download_dest
1170
+ # IO stream or filename to receive content download
1171
+ # @param [Google::Apis::RequestOptions] options
1172
+ # Request-specific options
1173
+ #
1174
+ # @yield [result, err] Result & error if block supplied
1175
+ # @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
1176
+ # @yieldparam err [StandardError] error object if request failed
1177
+ #
1178
+ # @return [Google::Apis::StorageV1::Object]
1179
+ #
1180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1183
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1184
+ if download_dest.nil?
1185
+ command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1186
+ else
1187
+ command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1188
+ command.download_dest = download_dest
1189
+ end
1190
+ command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
1191
+ command.request_object = compose_request_object
1192
+ command.response_representation = Google::Apis::StorageV1::Object::Representation
1193
+ command.response_class = Google::Apis::StorageV1::Object
1194
+ command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
1195
+ command.params['destinationObject'] = destination_object unless destination_object.nil?
1196
+ command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
1197
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1198
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1199
+ command.query['fields'] = fields unless fields.nil?
1200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1201
+ command.query['userIp'] = user_ip unless user_ip.nil?
1202
+ execute_or_queue_command(command, &block)
1203
+ end
1204
+
1205
+ # Copies a source object to a destination object. Optionally overrides metadata.
1206
+ # @param [String] source_bucket
1207
+ # Name of the bucket in which to find the source object.
1208
+ # @param [String] source_object
1209
+ # Name of the source object. For information about how to URL encode object
1210
+ # names to be path safe, see Encoding URI Path Parts.
1211
+ # @param [String] destination_bucket
1212
+ # Name of the bucket in which to store the new object. Overrides the provided
1213
+ # object metadata's bucket value, if any.For information about how to URL encode
1214
+ # object names to be path safe, see Encoding URI Path Parts.
1215
+ # @param [String] destination_object
1216
+ # Name of the new object. Required when the object metadata is not otherwise
1217
+ # provided. Overrides the object metadata's name value, if any.
1218
+ # @param [Google::Apis::StorageV1::Object] object_object
1219
+ # @param [String] destination_predefined_acl
1220
+ # Apply a predefined set of access controls to the destination object.
1221
+ # @param [String] if_generation_match
1222
+ # Makes the operation conditional on whether the destination object's current
1223
+ # generation matches the given value.
1224
+ # @param [String] if_generation_not_match
1225
+ # Makes the operation conditional on whether the destination object's current
1226
+ # generation does not match the given value.
1227
+ # @param [String] if_metageneration_match
1228
+ # Makes the operation conditional on whether the destination object's current
1229
+ # metageneration matches the given value.
1230
+ # @param [String] if_metageneration_not_match
1231
+ # Makes the operation conditional on whether the destination object's current
1232
+ # metageneration does not match the given value.
1233
+ # @param [String] if_source_generation_match
1234
+ # Makes the operation conditional on whether the source object's generation
1235
+ # matches the given value.
1236
+ # @param [String] if_source_generation_not_match
1237
+ # Makes the operation conditional on whether the source object's generation does
1238
+ # not match the given value.
1239
+ # @param [String] if_source_metageneration_match
1240
+ # Makes the operation conditional on whether the source object's current
1241
+ # metageneration matches the given value.
1242
+ # @param [String] if_source_metageneration_not_match
1243
+ # Makes the operation conditional on whether the source object's current
1244
+ # metageneration does not match the given value.
1245
+ # @param [String] projection
1246
+ # Set of properties to return. Defaults to noAcl, unless the object resource
1247
+ # specifies the acl property, when it defaults to full.
1248
+ # @param [String] source_generation
1249
+ # If present, selects a specific revision of the source object (as opposed to
1250
+ # the latest version, the default).
1251
+ # @param [String] fields
1252
+ # Selector specifying which fields to include in a partial response.
1253
+ # @param [String] quota_user
1254
+ # Available to use for quota purposes for server-side applications. Can be any
1255
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1256
+ # Overrides userIp if both are provided.
1257
+ # @param [String] user_ip
1258
+ # IP address of the site where the request originates. Use this if you want to
1259
+ # enforce per-user limits.
1260
+ # @param [IO, String] download_dest
1261
+ # IO stream or filename to receive content download
1262
+ # @param [Google::Apis::RequestOptions] options
1263
+ # Request-specific options
1264
+ #
1265
+ # @yield [result, err] Result & error if block supplied
1266
+ # @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
1267
+ # @yieldparam err [StandardError] error object if request failed
1268
+ #
1269
+ # @return [Google::Apis::StorageV1::Object]
1270
+ #
1271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1274
+ def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1275
+ if download_dest.nil?
1276
+ command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1277
+ else
1278
+ command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1279
+ command.download_dest = download_dest
1280
+ end
1281
+ command.request_representation = Google::Apis::StorageV1::Object::Representation
1282
+ command.request_object = object_object
1283
+ command.response_representation = Google::Apis::StorageV1::Object::Representation
1284
+ command.response_class = Google::Apis::StorageV1::Object
1285
+ command.params['sourceBucket'] = source_bucket unless source_bucket.nil?
1286
+ command.params['sourceObject'] = source_object unless source_object.nil?
1287
+ command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
1288
+ command.params['destinationObject'] = destination_object unless destination_object.nil?
1289
+ command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
1290
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1291
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1292
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1293
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1294
+ command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil?
1295
+ command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
1296
+ command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
1297
+ command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
1298
+ command.query['projection'] = projection unless projection.nil?
1299
+ command.query['sourceGeneration'] = source_generation unless source_generation.nil?
1300
+ command.query['fields'] = fields unless fields.nil?
1301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1302
+ command.query['userIp'] = user_ip unless user_ip.nil?
1303
+ execute_or_queue_command(command, &block)
1304
+ end
1305
+
1306
+ # Deletes an object and its metadata. Deletions are permanent if versioning is
1307
+ # not enabled for the bucket, or if the generation parameter is used.
1308
+ # @param [String] bucket
1309
+ # Name of the bucket in which the object resides.
1310
+ # @param [String] object
1311
+ # Name of the object. For information about how to URL encode object names to be
1312
+ # path safe, see Encoding URI Path Parts.
1313
+ # @param [String] generation
1314
+ # If present, permanently deletes a specific revision of this object (as opposed
1315
+ # to the latest version, the default).
1316
+ # @param [String] if_generation_match
1317
+ # Makes the operation conditional on whether the object's current generation
1318
+ # matches the given value.
1319
+ # @param [String] if_generation_not_match
1320
+ # Makes the operation conditional on whether the object's current generation
1321
+ # does not match the given value.
1322
+ # @param [String] if_metageneration_match
1323
+ # Makes the operation conditional on whether the object's current metageneration
1324
+ # matches the given value.
1325
+ # @param [String] if_metageneration_not_match
1326
+ # Makes the operation conditional on whether the object's current metageneration
1327
+ # does not match the given value.
1328
+ # @param [String] fields
1329
+ # Selector specifying which fields to include in a partial response.
1330
+ # @param [String] quota_user
1331
+ # Available to use for quota purposes for server-side applications. Can be any
1332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1333
+ # Overrides userIp if both are provided.
1334
+ # @param [String] user_ip
1335
+ # IP address of the site where the request originates. Use this if you want to
1336
+ # enforce per-user limits.
1337
+ # @param [Google::Apis::RequestOptions] options
1338
+ # Request-specific options
1339
+ #
1340
+ # @yield [result, err] Result & error if block supplied
1341
+ # @yieldparam result [NilClass] No result returned for this method
1342
+ # @yieldparam err [StandardError] error object if request failed
1343
+ #
1344
+ # @return [void]
1345
+ #
1346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1349
+ def delete_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1350
+ command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options)
1351
+ command.params['bucket'] = bucket unless bucket.nil?
1352
+ command.params['object'] = object unless object.nil?
1353
+ command.query['generation'] = generation unless generation.nil?
1354
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1355
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1356
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1357
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1358
+ command.query['fields'] = fields unless fields.nil?
1359
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1360
+ command.query['userIp'] = user_ip unless user_ip.nil?
1361
+ execute_or_queue_command(command, &block)
1362
+ end
1363
+
1364
+ # Retrieves an object or its metadata.
1365
+ # @param [String] bucket
1366
+ # Name of the bucket in which the object resides.
1367
+ # @param [String] object
1368
+ # Name of the object. For information about how to URL encode object names to be
1369
+ # path safe, see Encoding URI Path Parts.
1370
+ # @param [String] generation
1371
+ # If present, selects a specific revision of this object (as opposed to the
1372
+ # latest version, the default).
1373
+ # @param [String] if_generation_match
1374
+ # Makes the operation conditional on whether the object's generation matches the
1375
+ # given value.
1376
+ # @param [String] if_generation_not_match
1377
+ # Makes the operation conditional on whether the object's generation does not
1378
+ # match the given value.
1379
+ # @param [String] if_metageneration_match
1380
+ # Makes the operation conditional on whether the object's current metageneration
1381
+ # matches the given value.
1382
+ # @param [String] if_metageneration_not_match
1383
+ # Makes the operation conditional on whether the object's current metageneration
1384
+ # does not match the given value.
1385
+ # @param [String] projection
1386
+ # Set of properties to return. Defaults to noAcl.
1387
+ # @param [String] fields
1388
+ # Selector specifying which fields to include in a partial response.
1389
+ # @param [String] quota_user
1390
+ # Available to use for quota purposes for server-side applications. Can be any
1391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1392
+ # Overrides userIp if both are provided.
1393
+ # @param [String] user_ip
1394
+ # IP address of the site where the request originates. Use this if you want to
1395
+ # enforce per-user limits.
1396
+ # @param [IO, String] download_dest
1397
+ # IO stream or filename to receive content download
1398
+ # @param [Google::Apis::RequestOptions] options
1399
+ # Request-specific options
1400
+ #
1401
+ # @yield [result, err] Result & error if block supplied
1402
+ # @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
1403
+ # @yieldparam err [StandardError] error object if request failed
1404
+ #
1405
+ # @return [Google::Apis::StorageV1::Object]
1406
+ #
1407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1410
+ def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1411
+ if download_dest.nil?
1412
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
1413
+ else
1414
+ command = make_download_command(:get, 'b/{bucket}/o/{object}', options)
1415
+ command.download_dest = download_dest
1416
+ end
1417
+ command.response_representation = Google::Apis::StorageV1::Object::Representation
1418
+ command.response_class = Google::Apis::StorageV1::Object
1419
+ command.params['bucket'] = bucket unless bucket.nil?
1420
+ command.params['object'] = object unless object.nil?
1421
+ command.query['generation'] = generation unless generation.nil?
1422
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1423
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1424
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1425
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1426
+ command.query['projection'] = projection unless projection.nil?
1427
+ command.query['fields'] = fields unless fields.nil?
1428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1429
+ command.query['userIp'] = user_ip unless user_ip.nil?
1430
+ execute_or_queue_command(command, &block)
1431
+ end
1432
+
1433
+ # Stores a new object and metadata.
1434
+ # @param [String] bucket
1435
+ # Name of the bucket in which to store the new object. Overrides the provided
1436
+ # object metadata's bucket value, if any.
1437
+ # @param [Google::Apis::StorageV1::Object] object_object
1438
+ # @param [String] content_encoding
1439
+ # If set, sets the contentEncoding property of the final object to this value.
1440
+ # Setting this parameter is equivalent to setting the contentEncoding metadata
1441
+ # property. This can be useful when uploading an object with uploadType=media to
1442
+ # indicate the encoding of the content being uploaded.
1443
+ # @param [String] if_generation_match
1444
+ # Makes the operation conditional on whether the object's current generation
1445
+ # matches the given value.
1446
+ # @param [String] if_generation_not_match
1447
+ # Makes the operation conditional on whether the object's current generation
1448
+ # does not match the given value.
1449
+ # @param [String] if_metageneration_match
1450
+ # Makes the operation conditional on whether the object's current metageneration
1451
+ # matches the given value.
1452
+ # @param [String] if_metageneration_not_match
1453
+ # Makes the operation conditional on whether the object's current metageneration
1454
+ # does not match the given value.
1455
+ # @param [String] name
1456
+ # Name of the object. Required when the object metadata is not otherwise
1457
+ # provided. Overrides the object metadata's name value, if any. For information
1458
+ # about how to URL encode object names to be path safe, see Encoding URI Path
1459
+ # Parts.
1460
+ # @param [String] predefined_acl
1461
+ # Apply a predefined set of access controls to this object.
1462
+ # @param [String] projection
1463
+ # Set of properties to return. Defaults to noAcl, unless the object resource
1464
+ # specifies the acl property, when it defaults to full.
1465
+ # @param [String] fields
1466
+ # Selector specifying which fields to include in a partial response.
1467
+ # @param [String] quota_user
1468
+ # Available to use for quota purposes for server-side applications. Can be any
1469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1470
+ # Overrides userIp if both are provided.
1471
+ # @param [String] user_ip
1472
+ # IP address of the site where the request originates. Use this if you want to
1473
+ # enforce per-user limits.
1474
+ # @param [IO, String] upload_source
1475
+ # IO stream or filename containing content to upload
1476
+ # @param [String] content_type
1477
+ # Content type of the uploaded content.
1478
+ # @param [Google::Apis::RequestOptions] options
1479
+ # Request-specific options
1480
+ #
1481
+ # @yield [result, err] Result & error if block supplied
1482
+ # @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
1483
+ # @yieldparam err [StandardError] error object if request failed
1484
+ #
1485
+ # @return [Google::Apis::StorageV1::Object]
1486
+ #
1487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1490
+ def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1491
+ if upload_source.nil?
1492
+ command = make_simple_command(:post, 'b/{bucket}/o', options)
1493
+ else
1494
+ command = make_upload_command(:post, 'b/{bucket}/o', options)
1495
+ command.upload_source = upload_source
1496
+ command.upload_content_type = content_type
1497
+ end
1498
+ command.request_representation = Google::Apis::StorageV1::Object::Representation
1499
+ command.request_object = object_object
1500
+ command.response_representation = Google::Apis::StorageV1::Object::Representation
1501
+ command.response_class = Google::Apis::StorageV1::Object
1502
+ command.params['bucket'] = bucket unless bucket.nil?
1503
+ command.query['contentEncoding'] = content_encoding unless content_encoding.nil?
1504
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1505
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1506
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1507
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1508
+ command.query['name'] = name unless name.nil?
1509
+ command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1510
+ command.query['projection'] = projection unless projection.nil?
1511
+ command.query['fields'] = fields unless fields.nil?
1512
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1513
+ command.query['userIp'] = user_ip unless user_ip.nil?
1514
+ execute_or_queue_command(command, &block)
1515
+ end
1516
+
1517
+ # Retrieves a list of objects matching the criteria.
1518
+ # @param [String] bucket
1519
+ # Name of the bucket in which to look for objects.
1520
+ # @param [String] delimiter
1521
+ # Returns results in a directory-like mode. items will contain only objects
1522
+ # whose names, aside from the prefix, do not contain delimiter. Objects whose
1523
+ # names, aside from the prefix, contain delimiter will have their name,
1524
+ # truncated after the delimiter, returned in prefixes. Duplicate prefixes are
1525
+ # omitted.
1526
+ # @param [Fixnum] max_results
1527
+ # Maximum number of items plus prefixes to return. As duplicate prefixes are
1528
+ # omitted, fewer total results may be returned than requested. The default value
1529
+ # of this parameter is 1,000 items.
1530
+ # @param [String] page_token
1531
+ # A previously-returned page token representing part of the larger set of
1532
+ # results to view.
1533
+ # @param [String] prefix
1534
+ # Filter results to objects whose names begin with this prefix.
1535
+ # @param [String] projection
1536
+ # Set of properties to return. Defaults to noAcl.
1537
+ # @param [Boolean] versions
1538
+ # If true, lists all versions of an object as distinct results. The default is
1539
+ # false. For more information, see Object Versioning.
1540
+ # @param [String] fields
1541
+ # Selector specifying which fields to include in a partial response.
1542
+ # @param [String] quota_user
1543
+ # Available to use for quota purposes for server-side applications. Can be any
1544
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1545
+ # Overrides userIp if both are provided.
1546
+ # @param [String] user_ip
1547
+ # IP address of the site where the request originates. Use this if you want to
1548
+ # enforce per-user limits.
1549
+ # @param [Google::Apis::RequestOptions] options
1550
+ # Request-specific options
1551
+ #
1552
+ # @yield [result, err] Result & error if block supplied
1553
+ # @yieldparam result [Google::Apis::StorageV1::Objects] parsed result object
1554
+ # @yieldparam err [StandardError] error object if request failed
1555
+ #
1556
+ # @return [Google::Apis::StorageV1::Objects]
1557
+ #
1558
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1559
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1560
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1561
+ def list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1562
+ command = make_simple_command(:get, 'b/{bucket}/o', options)
1563
+ command.response_representation = Google::Apis::StorageV1::Objects::Representation
1564
+ command.response_class = Google::Apis::StorageV1::Objects
1565
+ command.params['bucket'] = bucket unless bucket.nil?
1566
+ command.query['delimiter'] = delimiter unless delimiter.nil?
1567
+ command.query['maxResults'] = max_results unless max_results.nil?
1568
+ command.query['pageToken'] = page_token unless page_token.nil?
1569
+ command.query['prefix'] = prefix unless prefix.nil?
1570
+ command.query['projection'] = projection unless projection.nil?
1571
+ command.query['versions'] = versions unless versions.nil?
1572
+ command.query['fields'] = fields unless fields.nil?
1573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1574
+ command.query['userIp'] = user_ip unless user_ip.nil?
1575
+ execute_or_queue_command(command, &block)
1576
+ end
1577
+
1578
+ # Updates an object's metadata. This method supports patch semantics.
1579
+ # @param [String] bucket
1580
+ # Name of the bucket in which the object resides.
1581
+ # @param [String] object
1582
+ # Name of the object. For information about how to URL encode object names to be
1583
+ # path safe, see Encoding URI Path Parts.
1584
+ # @param [Google::Apis::StorageV1::Object] object_object
1585
+ # @param [String] generation
1586
+ # If present, selects a specific revision of this object (as opposed to the
1587
+ # latest version, the default).
1588
+ # @param [String] if_generation_match
1589
+ # Makes the operation conditional on whether the object's current generation
1590
+ # matches the given value.
1591
+ # @param [String] if_generation_not_match
1592
+ # Makes the operation conditional on whether the object's current generation
1593
+ # does not match the given value.
1594
+ # @param [String] if_metageneration_match
1595
+ # Makes the operation conditional on whether the object's current metageneration
1596
+ # matches the given value.
1597
+ # @param [String] if_metageneration_not_match
1598
+ # Makes the operation conditional on whether the object's current metageneration
1599
+ # does not match the given value.
1600
+ # @param [String] predefined_acl
1601
+ # Apply a predefined set of access controls to this object.
1602
+ # @param [String] projection
1603
+ # Set of properties to return. Defaults to full.
1604
+ # @param [String] fields
1605
+ # Selector specifying which fields to include in a partial response.
1606
+ # @param [String] quota_user
1607
+ # Available to use for quota purposes for server-side applications. Can be any
1608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1609
+ # Overrides userIp if both are provided.
1610
+ # @param [String] user_ip
1611
+ # IP address of the site where the request originates. Use this if you want to
1612
+ # enforce per-user limits.
1613
+ # @param [Google::Apis::RequestOptions] options
1614
+ # Request-specific options
1615
+ #
1616
+ # @yield [result, err] Result & error if block supplied
1617
+ # @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
1618
+ # @yieldparam err [StandardError] error object if request failed
1619
+ #
1620
+ # @return [Google::Apis::StorageV1::Object]
1621
+ #
1622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1625
+ def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1626
+ command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
1627
+ command.request_representation = Google::Apis::StorageV1::Object::Representation
1628
+ command.request_object = object_object
1629
+ command.response_representation = Google::Apis::StorageV1::Object::Representation
1630
+ command.response_class = Google::Apis::StorageV1::Object
1631
+ command.params['bucket'] = bucket unless bucket.nil?
1632
+ command.params['object'] = object unless object.nil?
1633
+ command.query['generation'] = generation unless generation.nil?
1634
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1635
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1636
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1637
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1638
+ command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1639
+ command.query['projection'] = projection unless projection.nil?
1640
+ command.query['fields'] = fields unless fields.nil?
1641
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1642
+ command.query['userIp'] = user_ip unless user_ip.nil?
1643
+ execute_or_queue_command(command, &block)
1644
+ end
1645
+
1646
+ # Rewrites a source object to a destination object. Optionally overrides
1647
+ # metadata.
1648
+ # @param [String] source_bucket
1649
+ # Name of the bucket in which to find the source object.
1650
+ # @param [String] source_object
1651
+ # Name of the source object. For information about how to URL encode object
1652
+ # names to be path safe, see Encoding URI Path Parts.
1653
+ # @param [String] destination_bucket
1654
+ # Name of the bucket in which to store the new object. Overrides the provided
1655
+ # object metadata's bucket value, if any.
1656
+ # @param [String] destination_object
1657
+ # Name of the new object. Required when the object metadata is not otherwise
1658
+ # provided. Overrides the object metadata's name value, if any. For information
1659
+ # about how to URL encode object names to be path safe, see Encoding URI Path
1660
+ # Parts.
1661
+ # @param [Google::Apis::StorageV1::Object] object_object
1662
+ # @param [String] destination_predefined_acl
1663
+ # Apply a predefined set of access controls to the destination object.
1664
+ # @param [String] if_generation_match
1665
+ # Makes the operation conditional on whether the destination object's current
1666
+ # generation matches the given value.
1667
+ # @param [String] if_generation_not_match
1668
+ # Makes the operation conditional on whether the destination object's current
1669
+ # generation does not match the given value.
1670
+ # @param [String] if_metageneration_match
1671
+ # Makes the operation conditional on whether the destination object's current
1672
+ # metageneration matches the given value.
1673
+ # @param [String] if_metageneration_not_match
1674
+ # Makes the operation conditional on whether the destination object's current
1675
+ # metageneration does not match the given value.
1676
+ # @param [String] if_source_generation_match
1677
+ # Makes the operation conditional on whether the source object's generation
1678
+ # matches the given value.
1679
+ # @param [String] if_source_generation_not_match
1680
+ # Makes the operation conditional on whether the source object's generation does
1681
+ # not match the given value.
1682
+ # @param [String] if_source_metageneration_match
1683
+ # Makes the operation conditional on whether the source object's current
1684
+ # metageneration matches the given value.
1685
+ # @param [String] if_source_metageneration_not_match
1686
+ # Makes the operation conditional on whether the source object's current
1687
+ # metageneration does not match the given value.
1688
+ # @param [String] max_bytes_rewritten_per_call
1689
+ # The maximum number of bytes that will be rewritten per rewrite request. Most
1690
+ # callers shouldn't need to specify this parameter - it is primarily in place to
1691
+ # support testing. If specified the value must be an integral multiple of 1 MiB (
1692
+ # 1048576). Also, this only applies to requests where the source and destination
1693
+ # span locations and/or storage classes. Finally, this value must not change
1694
+ # across rewrite calls else you'll get an error that the rewriteToken is invalid.
1695
+ # @param [String] projection
1696
+ # Set of properties to return. Defaults to noAcl, unless the object resource
1697
+ # specifies the acl property, when it defaults to full.
1698
+ # @param [String] rewrite_token
1699
+ # Include this field (from the previous rewrite response) on each rewrite
1700
+ # request after the first one, until the rewrite response 'done' flag is true.
1701
+ # Calls that provide a rewriteToken can omit all other request fields, but if
1702
+ # included those fields must match the values provided in the first rewrite
1703
+ # request.
1704
+ # @param [String] source_generation
1705
+ # If present, selects a specific revision of the source object (as opposed to
1706
+ # the latest version, the default).
1707
+ # @param [String] fields
1708
+ # Selector specifying which fields to include in a partial response.
1709
+ # @param [String] quota_user
1710
+ # Available to use for quota purposes for server-side applications. Can be any
1711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1712
+ # Overrides userIp if both are provided.
1713
+ # @param [String] user_ip
1714
+ # IP address of the site where the request originates. Use this if you want to
1715
+ # enforce per-user limits.
1716
+ # @param [Google::Apis::RequestOptions] options
1717
+ # Request-specific options
1718
+ #
1719
+ # @yield [result, err] Result & error if block supplied
1720
+ # @yieldparam result [Google::Apis::StorageV1::RewriteResponse] parsed result object
1721
+ # @yieldparam err [StandardError] error object if request failed
1722
+ #
1723
+ # @return [Google::Apis::StorageV1::RewriteResponse]
1724
+ #
1725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1728
+ def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1729
+ command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
1730
+ command.request_representation = Google::Apis::StorageV1::Object::Representation
1731
+ command.request_object = object_object
1732
+ command.response_representation = Google::Apis::StorageV1::RewriteResponse::Representation
1733
+ command.response_class = Google::Apis::StorageV1::RewriteResponse
1734
+ command.params['sourceBucket'] = source_bucket unless source_bucket.nil?
1735
+ command.params['sourceObject'] = source_object unless source_object.nil?
1736
+ command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
1737
+ command.params['destinationObject'] = destination_object unless destination_object.nil?
1738
+ command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
1739
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1740
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1741
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1742
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1743
+ command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil?
1744
+ command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
1745
+ command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
1746
+ command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
1747
+ command.query['maxBytesRewrittenPerCall'] = max_bytes_rewritten_per_call unless max_bytes_rewritten_per_call.nil?
1748
+ command.query['projection'] = projection unless projection.nil?
1749
+ command.query['rewriteToken'] = rewrite_token unless rewrite_token.nil?
1750
+ command.query['sourceGeneration'] = source_generation unless source_generation.nil?
1751
+ command.query['fields'] = fields unless fields.nil?
1752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1753
+ command.query['userIp'] = user_ip unless user_ip.nil?
1754
+ execute_or_queue_command(command, &block)
1755
+ end
1756
+
1757
+ # Updates an object's metadata.
1758
+ # @param [String] bucket
1759
+ # Name of the bucket in which the object resides.
1760
+ # @param [String] object
1761
+ # Name of the object. For information about how to URL encode object names to be
1762
+ # path safe, see Encoding URI Path Parts.
1763
+ # @param [Google::Apis::StorageV1::Object] object_object
1764
+ # @param [String] generation
1765
+ # If present, selects a specific revision of this object (as opposed to the
1766
+ # latest version, the default).
1767
+ # @param [String] if_generation_match
1768
+ # Makes the operation conditional on whether the object's current generation
1769
+ # matches the given value.
1770
+ # @param [String] if_generation_not_match
1771
+ # Makes the operation conditional on whether the object's current generation
1772
+ # does not match the given value.
1773
+ # @param [String] if_metageneration_match
1774
+ # Makes the operation conditional on whether the object's current metageneration
1775
+ # matches the given value.
1776
+ # @param [String] if_metageneration_not_match
1777
+ # Makes the operation conditional on whether the object's current metageneration
1778
+ # does not match the given value.
1779
+ # @param [String] predefined_acl
1780
+ # Apply a predefined set of access controls to this object.
1781
+ # @param [String] projection
1782
+ # Set of properties to return. Defaults to full.
1783
+ # @param [String] fields
1784
+ # Selector specifying which fields to include in a partial response.
1785
+ # @param [String] quota_user
1786
+ # Available to use for quota purposes for server-side applications. Can be any
1787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1788
+ # Overrides userIp if both are provided.
1789
+ # @param [String] user_ip
1790
+ # IP address of the site where the request originates. Use this if you want to
1791
+ # enforce per-user limits.
1792
+ # @param [IO, String] download_dest
1793
+ # IO stream or filename to receive content download
1794
+ # @param [Google::Apis::RequestOptions] options
1795
+ # Request-specific options
1796
+ #
1797
+ # @yield [result, err] Result & error if block supplied
1798
+ # @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
1799
+ # @yieldparam err [StandardError] error object if request failed
1800
+ #
1801
+ # @return [Google::Apis::StorageV1::Object]
1802
+ #
1803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1806
+ def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1807
+ if download_dest.nil?
1808
+ command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
1809
+ else
1810
+ command = make_download_command(:put, 'b/{bucket}/o/{object}', options)
1811
+ command.download_dest = download_dest
1812
+ end
1813
+ command.request_representation = Google::Apis::StorageV1::Object::Representation
1814
+ command.request_object = object_object
1815
+ command.response_representation = Google::Apis::StorageV1::Object::Representation
1816
+ command.response_class = Google::Apis::StorageV1::Object
1817
+ command.params['bucket'] = bucket unless bucket.nil?
1818
+ command.params['object'] = object unless object.nil?
1819
+ command.query['generation'] = generation unless generation.nil?
1820
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1821
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1822
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1823
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1824
+ command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1825
+ command.query['projection'] = projection unless projection.nil?
1826
+ command.query['fields'] = fields unless fields.nil?
1827
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1828
+ command.query['userIp'] = user_ip unless user_ip.nil?
1829
+ execute_or_queue_command(command, &block)
1830
+ end
1831
+
1832
+ # Watch for changes on all objects in a bucket.
1833
+ # @param [String] bucket
1834
+ # Name of the bucket in which to look for objects.
1835
+ # @param [Google::Apis::StorageV1::Channel] channel_object
1836
+ # @param [String] delimiter
1837
+ # Returns results in a directory-like mode. items will contain only objects
1838
+ # whose names, aside from the prefix, do not contain delimiter. Objects whose
1839
+ # names, aside from the prefix, contain delimiter will have their name,
1840
+ # truncated after the delimiter, returned in prefixes. Duplicate prefixes are
1841
+ # omitted.
1842
+ # @param [Fixnum] max_results
1843
+ # Maximum number of items plus prefixes to return. As duplicate prefixes are
1844
+ # omitted, fewer total results may be returned than requested. The default value
1845
+ # of this parameter is 1,000 items.
1846
+ # @param [String] page_token
1847
+ # A previously-returned page token representing part of the larger set of
1848
+ # results to view.
1849
+ # @param [String] prefix
1850
+ # Filter results to objects whose names begin with this prefix.
1851
+ # @param [String] projection
1852
+ # Set of properties to return. Defaults to noAcl.
1853
+ # @param [Boolean] versions
1854
+ # If true, lists all versions of an object as distinct results. The default is
1855
+ # false. For more information, see Object Versioning.
1856
+ # @param [String] fields
1857
+ # Selector specifying which fields to include in a partial response.
1858
+ # @param [String] quota_user
1859
+ # Available to use for quota purposes for server-side applications. Can be any
1860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1861
+ # Overrides userIp if both are provided.
1862
+ # @param [String] user_ip
1863
+ # IP address of the site where the request originates. Use this if you want to
1864
+ # enforce per-user limits.
1865
+ # @param [Google::Apis::RequestOptions] options
1866
+ # Request-specific options
1867
+ #
1868
+ # @yield [result, err] Result & error if block supplied
1869
+ # @yieldparam result [Google::Apis::StorageV1::Channel] parsed result object
1870
+ # @yieldparam err [StandardError] error object if request failed
1871
+ #
1872
+ # @return [Google::Apis::StorageV1::Channel]
1873
+ #
1874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1877
+ def watch_all_objects(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1878
+ command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
1879
+ command.request_representation = Google::Apis::StorageV1::Channel::Representation
1880
+ command.request_object = channel_object
1881
+ command.response_representation = Google::Apis::StorageV1::Channel::Representation
1882
+ command.response_class = Google::Apis::StorageV1::Channel
1883
+ command.params['bucket'] = bucket unless bucket.nil?
1884
+ command.query['delimiter'] = delimiter unless delimiter.nil?
1885
+ command.query['maxResults'] = max_results unless max_results.nil?
1886
+ command.query['pageToken'] = page_token unless page_token.nil?
1887
+ command.query['prefix'] = prefix unless prefix.nil?
1888
+ command.query['projection'] = projection unless projection.nil?
1889
+ command.query['versions'] = versions unless versions.nil?
1890
+ command.query['fields'] = fields unless fields.nil?
1891
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1892
+ command.query['userIp'] = user_ip unless user_ip.nil?
1893
+ execute_or_queue_command(command, &block)
1894
+ end
1895
+
1896
+ protected
1897
+
1898
+ def apply_command_defaults(command)
1899
+ command.query['key'] = key unless key.nil?
1900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1901
+ command.query['userIp'] = user_ip unless user_ip.nil?
1902
+ end
1903
+ end
1904
+ end
1905
+ end
1906
+ end