google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -0,0 +1,425 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module StorageV1beta2
24
+
25
+ class Bucket
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ class Cor
29
+ class Representation < Google::Apis::Core::JsonRepresentation; end
30
+
31
+ include Google::Apis::Core::JsonObjectSupport
32
+ end
33
+
34
+ class Lifecycle
35
+ class Representation < Google::Apis::Core::JsonRepresentation; end
36
+
37
+ class Rule
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ class Action
41
+ class Representation < Google::Apis::Core::JsonRepresentation; end
42
+
43
+ include Google::Apis::Core::JsonObjectSupport
44
+ end
45
+
46
+ class Condition
47
+ class Representation < Google::Apis::Core::JsonRepresentation; end
48
+
49
+ include Google::Apis::Core::JsonObjectSupport
50
+ end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ include Google::Apis::Core::JsonObjectSupport
56
+ end
57
+
58
+ class Logging
59
+ class Representation < Google::Apis::Core::JsonRepresentation; end
60
+
61
+ include Google::Apis::Core::JsonObjectSupport
62
+ end
63
+
64
+ class Owner
65
+ class Representation < Google::Apis::Core::JsonRepresentation; end
66
+
67
+ include Google::Apis::Core::JsonObjectSupport
68
+ end
69
+
70
+ class Versioning
71
+ class Representation < Google::Apis::Core::JsonRepresentation; end
72
+
73
+ include Google::Apis::Core::JsonObjectSupport
74
+ end
75
+
76
+ class Website
77
+ class Representation < Google::Apis::Core::JsonRepresentation; end
78
+
79
+ include Google::Apis::Core::JsonObjectSupport
80
+ end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class BucketAccessControl
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class BucketAccessControls
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Buckets
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Channel
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ComposeRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ class SourceObject
113
+ class Representation < Google::Apis::Core::JsonRepresentation; end
114
+
115
+ class ObjectPreconditions
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ include Google::Apis::Core::JsonObjectSupport
122
+ end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Object
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ class Owner
131
+ class Representation < Google::Apis::Core::JsonRepresentation; end
132
+
133
+ include Google::Apis::Core::JsonObjectSupport
134
+ end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ObjectAccessControl
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ObjectAccessControls
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Objects
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Bucket
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ collection :acl, as: 'acl', class: Google::Apis::StorageV1beta2::BucketAccessControl, decorator: Google::Apis::StorageV1beta2::BucketAccessControl::Representation
161
+
162
+ collection :cors, as: 'cors', class: Google::Apis::StorageV1beta2::Bucket::Cor, decorator: Google::Apis::StorageV1beta2::Bucket::Cor::Representation
163
+
164
+ collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1beta2::ObjectAccessControl, decorator: Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
165
+
166
+ property :etag, as: 'etag'
167
+ property :id, as: 'id'
168
+ property :kind, as: 'kind'
169
+ property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Representation
170
+
171
+ property :location, as: 'location'
172
+ property :logging, as: 'logging', class: Google::Apis::StorageV1beta2::Bucket::Logging, decorator: Google::Apis::StorageV1beta2::Bucket::Logging::Representation
173
+
174
+ property :metageneration, :numeric_string => true, as: 'metageneration'
175
+ property :name, as: 'name'
176
+ property :owner, as: 'owner', class: Google::Apis::StorageV1beta2::Bucket::Owner, decorator: Google::Apis::StorageV1beta2::Bucket::Owner::Representation
177
+
178
+ property :self_link, as: 'selfLink'
179
+ property :storage_class, as: 'storageClass'
180
+ property :time_created, as: 'timeCreated', type: DateTime
181
+
182
+ property :versioning, as: 'versioning', class: Google::Apis::StorageV1beta2::Bucket::Versioning, decorator: Google::Apis::StorageV1beta2::Bucket::Versioning::Representation
183
+
184
+ property :website, as: 'website', class: Google::Apis::StorageV1beta2::Bucket::Website, decorator: Google::Apis::StorageV1beta2::Bucket::Website::Representation
185
+
186
+ end
187
+
188
+ class Cor
189
+ # @private
190
+ class Representation < Google::Apis::Core::JsonRepresentation
191
+ property :max_age_seconds, as: 'maxAgeSeconds'
192
+ collection :method_prop, as: 'method'
193
+ collection :origin, as: 'origin'
194
+ collection :response_header, as: 'responseHeader'
195
+ end
196
+ end
197
+
198
+ class Lifecycle
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ collection :rule, as: 'rule', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Representation
202
+
203
+ end
204
+
205
+ class Rule
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :action, as: 'action', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action::Representation
209
+
210
+ property :condition, as: 'condition', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition::Representation
211
+
212
+ end
213
+
214
+ class Action
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :type, as: 'type'
218
+ end
219
+ end
220
+
221
+ class Condition
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ property :age, as: 'age'
225
+ property :created_before, as: 'createdBefore', type: Date
226
+
227
+ property :is_live, as: 'isLive'
228
+ property :num_newer_versions, as: 'numNewerVersions'
229
+ end
230
+ end
231
+ end
232
+ end
233
+
234
+ class Logging
235
+ # @private
236
+ class Representation < Google::Apis::Core::JsonRepresentation
237
+ property :log_bucket, as: 'logBucket'
238
+ property :log_object_prefix, as: 'logObjectPrefix'
239
+ end
240
+ end
241
+
242
+ class Owner
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :entity, as: 'entity'
246
+ property :entity_id, as: 'entityId'
247
+ end
248
+ end
249
+
250
+ class Versioning
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :enabled, as: 'enabled'
254
+ end
255
+ end
256
+
257
+ class Website
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :main_page_suffix, as: 'mainPageSuffix'
261
+ property :not_found_page, as: 'notFoundPage'
262
+ end
263
+ end
264
+ end
265
+
266
+ class BucketAccessControl
267
+ # @private
268
+ class Representation < Google::Apis::Core::JsonRepresentation
269
+ property :bucket, as: 'bucket'
270
+ property :domain, as: 'domain'
271
+ property :email, as: 'email'
272
+ property :entity, as: 'entity'
273
+ property :entity_id, as: 'entityId'
274
+ property :etag, as: 'etag'
275
+ property :id, as: 'id'
276
+ property :kind, as: 'kind'
277
+ property :role, as: 'role'
278
+ property :self_link, as: 'selfLink'
279
+ end
280
+ end
281
+
282
+ class BucketAccessControls
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ collection :items, as: 'items', class: Google::Apis::StorageV1beta2::BucketAccessControl, decorator: Google::Apis::StorageV1beta2::BucketAccessControl::Representation
286
+
287
+ property :kind, as: 'kind'
288
+ end
289
+ end
290
+
291
+ class Buckets
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ collection :items, as: 'items', class: Google::Apis::StorageV1beta2::Bucket, decorator: Google::Apis::StorageV1beta2::Bucket::Representation
295
+
296
+ property :kind, as: 'kind'
297
+ property :next_page_token, as: 'nextPageToken'
298
+ end
299
+ end
300
+
301
+ class Channel
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :address, as: 'address'
305
+ property :expiration, :numeric_string => true, as: 'expiration'
306
+ property :id, as: 'id'
307
+ property :kind, as: 'kind'
308
+ hash :params, as: 'params'
309
+ property :payload, as: 'payload'
310
+ property :resource_id, as: 'resourceId'
311
+ property :resource_uri, as: 'resourceUri'
312
+ property :token, as: 'token'
313
+ property :type, as: 'type'
314
+ end
315
+ end
316
+
317
+ class ComposeRequest
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :destination, as: 'destination', class: Google::Apis::StorageV1beta2::Object, decorator: Google::Apis::StorageV1beta2::Object::Representation
321
+
322
+ property :kind, as: 'kind'
323
+ collection :source_objects, as: 'sourceObjects', class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject, decorator: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::Representation
324
+
325
+ end
326
+
327
+ class SourceObject
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ property :generation, :numeric_string => true, as: 'generation'
331
+ property :name, as: 'name'
332
+ property :object_preconditions, as: 'objectPreconditions', class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions, decorator: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions::Representation
333
+
334
+ end
335
+
336
+ class ObjectPreconditions
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :if_generation_match, :numeric_string => true, as: 'ifGenerationMatch'
340
+ end
341
+ end
342
+ end
343
+ end
344
+
345
+ class Object
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ collection :acl, as: 'acl', class: Google::Apis::StorageV1beta2::ObjectAccessControl, decorator: Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
349
+
350
+ property :bucket, as: 'bucket'
351
+ property :cache_control, as: 'cacheControl'
352
+ property :component_count, as: 'componentCount'
353
+ property :content_disposition, as: 'contentDisposition'
354
+ property :content_encoding, as: 'contentEncoding'
355
+ property :content_language, as: 'contentLanguage'
356
+ property :content_type, as: 'contentType'
357
+ property :crc32c, as: 'crc32c'
358
+ property :etag, as: 'etag'
359
+ property :generation, :numeric_string => true, as: 'generation'
360
+ property :id, as: 'id'
361
+ property :kind, as: 'kind'
362
+ property :md5_hash, as: 'md5Hash'
363
+ property :media_link, as: 'mediaLink'
364
+ hash :metadata, as: 'metadata'
365
+ property :metageneration, :numeric_string => true, as: 'metageneration'
366
+ property :name, as: 'name'
367
+ property :owner, as: 'owner', class: Google::Apis::StorageV1beta2::Object::Owner, decorator: Google::Apis::StorageV1beta2::Object::Owner::Representation
368
+
369
+ property :self_link, as: 'selfLink'
370
+ property :size, :numeric_string => true, as: 'size'
371
+ property :storage_class, as: 'storageClass'
372
+ property :time_deleted, as: 'timeDeleted', type: DateTime
373
+
374
+ property :updated, as: 'updated', type: DateTime
375
+
376
+ end
377
+
378
+ class Owner
379
+ # @private
380
+ class Representation < Google::Apis::Core::JsonRepresentation
381
+ property :entity, as: 'entity'
382
+ property :entity_id, as: 'entityId'
383
+ end
384
+ end
385
+ end
386
+
387
+ class ObjectAccessControl
388
+ # @private
389
+ class Representation < Google::Apis::Core::JsonRepresentation
390
+ property :bucket, as: 'bucket'
391
+ property :domain, as: 'domain'
392
+ property :email, as: 'email'
393
+ property :entity, as: 'entity'
394
+ property :entity_id, as: 'entityId'
395
+ property :etag, as: 'etag'
396
+ property :generation, :numeric_string => true, as: 'generation'
397
+ property :id, as: 'id'
398
+ property :kind, as: 'kind'
399
+ property :object, as: 'object'
400
+ property :role, as: 'role'
401
+ property :self_link, as: 'selfLink'
402
+ end
403
+ end
404
+
405
+ class ObjectAccessControls
406
+ # @private
407
+ class Representation < Google::Apis::Core::JsonRepresentation
408
+ collection :items, as: 'items'
409
+ property :kind, as: 'kind'
410
+ end
411
+ end
412
+
413
+ class Objects
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ collection :items, as: 'items', class: Google::Apis::StorageV1beta2::Object, decorator: Google::Apis::StorageV1beta2::Object::Representation
417
+
418
+ property :kind, as: 'kind'
419
+ property :next_page_token, as: 'nextPageToken'
420
+ collection :prefixes, as: 'prefixes'
421
+ end
422
+ end
423
+ end
424
+ end
425
+ end
@@ -0,0 +1,1736 @@
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 StorageV1beta2
23
+ # Cloud Storage JSON API
24
+ #
25
+ # Lets you store and retrieve potentially-large, immutable data objects.
26
+ #
27
+ # @example
28
+ # require 'google/apis/storage_v1beta2'
29
+ #
30
+ # Storage = Google::Apis::StorageV1beta2 # 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/v1beta2/')
53
+ @batch_path = 'batch'
54
+ end
55
+
56
+ # Permanently deletes the ACL entry for the specified entity on the specified
57
+ # bucket.
58
+ # @param [String] bucket
59
+ # Name of a bucket.
60
+ # @param [String] entity
61
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
62
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # Overrides userIp if both are provided.
69
+ # @param [String] user_ip
70
+ # IP address of the site where the request originates. Use this if you want to
71
+ # enforce per-user limits.
72
+ # @param [Google::Apis::RequestOptions] options
73
+ # Request-specific options
74
+ #
75
+ # @yield [result, err] Result & error if block supplied
76
+ # @yieldparam result [NilClass] No result returned for this method
77
+ # @yieldparam err [StandardError] error object if request failed
78
+ #
79
+ # @return [void]
80
+ #
81
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
84
+ def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
85
+ command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options)
86
+ command.params['bucket'] = bucket unless bucket.nil?
87
+ command.params['entity'] = entity unless entity.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ command.query['userIp'] = user_ip unless user_ip.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
94
+ # Returns the ACL entry for the specified entity on the specified bucket.
95
+ # @param [String] bucket
96
+ # Name of a bucket.
97
+ # @param [String] entity
98
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
99
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
100
+ # @param [String] fields
101
+ # Selector specifying which fields to include in a partial response.
102
+ # @param [String] quota_user
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # Overrides userIp if both are provided.
106
+ # @param [String] user_ip
107
+ # IP address of the site where the request originates. Use this if you want to
108
+ # enforce per-user limits.
109
+ # @param [Google::Apis::RequestOptions] options
110
+ # Request-specific options
111
+ #
112
+ # @yield [result, err] Result & error if block supplied
113
+ # @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
114
+ # @yieldparam err [StandardError] error object if request failed
115
+ #
116
+ # @return [Google::Apis::StorageV1beta2::BucketAccessControl]
117
+ #
118
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
121
+ def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
+ command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options)
123
+ command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
124
+ command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
125
+ command.params['bucket'] = bucket unless bucket.nil?
126
+ command.params['entity'] = entity unless entity.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ command.query['userIp'] = user_ip unless user_ip.nil?
130
+ execute_or_queue_command(command, &block)
131
+ end
132
+
133
+ # Creates a new ACL entry on the specified bucket.
134
+ # @param [String] bucket
135
+ # Name of a bucket.
136
+ # @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_object
137
+ # @param [String] fields
138
+ # Selector specifying which fields to include in a partial response.
139
+ # @param [String] quota_user
140
+ # Available to use for quota purposes for server-side applications. Can be any
141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
142
+ # Overrides userIp if both are provided.
143
+ # @param [String] user_ip
144
+ # IP address of the site where the request originates. Use this if you want to
145
+ # enforce per-user limits.
146
+ # @param [Google::Apis::RequestOptions] options
147
+ # Request-specific options
148
+ #
149
+ # @yield [result, err] Result & error if block supplied
150
+ # @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::StorageV1beta2::BucketAccessControl]
154
+ #
155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158
+ def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
159
+ command = make_simple_command(:post, 'b/{bucket}/acl', options)
160
+ command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
161
+ command.request_object = bucket_access_control_object
162
+ command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
163
+ command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
164
+ command.params['bucket'] = bucket unless bucket.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ command.query['userIp'] = user_ip unless user_ip.nil?
168
+ execute_or_queue_command(command, &block)
169
+ end
170
+
171
+ # Retrieves ACL entries on the specified bucket.
172
+ # @param [String] bucket
173
+ # Name of a bucket.
174
+ # @param [String] fields
175
+ # Selector specifying which fields to include in a partial response.
176
+ # @param [String] quota_user
177
+ # Available to use for quota purposes for server-side applications. Can be any
178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
179
+ # Overrides userIp if both are provided.
180
+ # @param [String] user_ip
181
+ # IP address of the site where the request originates. Use this if you want to
182
+ # enforce per-user limits.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControls] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::StorageV1beta2::BucketAccessControls]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
+ command = make_simple_command(:get, 'b/{bucket}/acl', options)
197
+ command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControls::Representation
198
+ command.response_class = Google::Apis::StorageV1beta2::BucketAccessControls
199
+ command.params['bucket'] = bucket unless bucket.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ command.query['userIp'] = user_ip unless user_ip.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
206
+ # Updates an ACL entry on the specified bucket. This method supports patch
207
+ # semantics.
208
+ # @param [String] bucket
209
+ # Name of a bucket.
210
+ # @param [String] entity
211
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
212
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
213
+ # @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_object
214
+ # @param [String] fields
215
+ # Selector specifying which fields to include in a partial response.
216
+ # @param [String] quota_user
217
+ # Available to use for quota purposes for server-side applications. Can be any
218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
219
+ # Overrides userIp if both are provided.
220
+ # @param [String] user_ip
221
+ # IP address of the site where the request originates. Use this if you want to
222
+ # enforce per-user limits.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::StorageV1beta2::BucketAccessControl]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
236
+ command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options)
237
+ command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
238
+ command.request_object = bucket_access_control_object
239
+ command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
240
+ command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
241
+ command.params['bucket'] = bucket unless bucket.nil?
242
+ command.params['entity'] = entity unless entity.nil?
243
+ command.query['fields'] = fields unless fields.nil?
244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
+ command.query['userIp'] = user_ip unless user_ip.nil?
246
+ execute_or_queue_command(command, &block)
247
+ end
248
+
249
+ # Updates an ACL entry on the specified bucket.
250
+ # @param [String] bucket
251
+ # Name of a bucket.
252
+ # @param [String] entity
253
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
254
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
255
+ # @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_object
256
+ # @param [String] fields
257
+ # Selector specifying which fields to include in a partial response.
258
+ # @param [String] quota_user
259
+ # Available to use for quota purposes for server-side applications. Can be any
260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
261
+ # Overrides userIp if both are provided.
262
+ # @param [String] user_ip
263
+ # IP address of the site where the request originates. Use this if you want to
264
+ # enforce per-user limits.
265
+ # @param [Google::Apis::RequestOptions] options
266
+ # Request-specific options
267
+ #
268
+ # @yield [result, err] Result & error if block supplied
269
+ # @yieldparam result [Google::Apis::StorageV1beta2::BucketAccessControl] parsed result object
270
+ # @yieldparam err [StandardError] error object if request failed
271
+ #
272
+ # @return [Google::Apis::StorageV1beta2::BucketAccessControl]
273
+ #
274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
277
+ def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
278
+ command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options)
279
+ command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
280
+ command.request_object = bucket_access_control_object
281
+ command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation
282
+ command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl
283
+ command.params['bucket'] = bucket unless bucket.nil?
284
+ command.params['entity'] = entity unless entity.nil?
285
+ command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
287
+ command.query['userIp'] = user_ip unless user_ip.nil?
288
+ execute_or_queue_command(command, &block)
289
+ end
290
+
291
+ # Permanently deletes an empty bucket.
292
+ # @param [String] bucket
293
+ # Name of a bucket.
294
+ # @param [Fixnum] if_metageneration_match
295
+ # Makes the return of the bucket metadata conditional on whether the bucket's
296
+ # current metageneration matches the given value.
297
+ # @param [Fixnum] if_metageneration_not_match
298
+ # Makes the return of the bucket metadata conditional on whether the bucket's
299
+ # current metageneration does not match the given value.
300
+ # @param [String] fields
301
+ # Selector specifying which fields to include in a partial response.
302
+ # @param [String] quota_user
303
+ # Available to use for quota purposes for server-side applications. Can be any
304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
305
+ # Overrides userIp if both are provided.
306
+ # @param [String] user_ip
307
+ # IP address of the site where the request originates. Use this if you want to
308
+ # enforce per-user limits.
309
+ # @param [Google::Apis::RequestOptions] options
310
+ # Request-specific options
311
+ #
312
+ # @yield [result, err] Result & error if block supplied
313
+ # @yieldparam result [NilClass] No result returned for this method
314
+ # @yieldparam err [StandardError] error object if request failed
315
+ #
316
+ # @return [void]
317
+ #
318
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
319
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
320
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
321
+ def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
322
+ command = make_simple_command(:delete, 'b/{bucket}', options)
323
+ command.params['bucket'] = bucket unless bucket.nil?
324
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
325
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
326
+ command.query['fields'] = fields unless fields.nil?
327
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
328
+ command.query['userIp'] = user_ip unless user_ip.nil?
329
+ execute_or_queue_command(command, &block)
330
+ end
331
+
332
+ # Returns metadata for the specified bucket.
333
+ # @param [String] bucket
334
+ # Name of a bucket.
335
+ # @param [Fixnum] if_metageneration_match
336
+ # Makes the return of the bucket metadata conditional on whether the bucket's
337
+ # current metageneration matches the given value.
338
+ # @param [Fixnum] if_metageneration_not_match
339
+ # Makes the return of the bucket metadata conditional on whether the bucket's
340
+ # current metageneration does not match the given value.
341
+ # @param [String] projection
342
+ # Set of properties to return. Defaults to noAcl.
343
+ # @param [String] fields
344
+ # Selector specifying which fields to include in a partial response.
345
+ # @param [String] quota_user
346
+ # Available to use for quota purposes for server-side applications. Can be any
347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
348
+ # Overrides userIp if both are provided.
349
+ # @param [String] user_ip
350
+ # IP address of the site where the request originates. Use this if you want to
351
+ # enforce per-user limits.
352
+ # @param [Google::Apis::RequestOptions] options
353
+ # Request-specific options
354
+ #
355
+ # @yield [result, err] Result & error if block supplied
356
+ # @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
357
+ # @yieldparam err [StandardError] error object if request failed
358
+ #
359
+ # @return [Google::Apis::StorageV1beta2::Bucket]
360
+ #
361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
364
+ 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)
365
+ command = make_simple_command(:get, 'b/{bucket}', options)
366
+ command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
367
+ command.response_class = Google::Apis::StorageV1beta2::Bucket
368
+ command.params['bucket'] = bucket unless bucket.nil?
369
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
370
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
371
+ command.query['projection'] = projection unless projection.nil?
372
+ command.query['fields'] = fields unless fields.nil?
373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
374
+ command.query['userIp'] = user_ip unless user_ip.nil?
375
+ execute_or_queue_command(command, &block)
376
+ end
377
+
378
+ # Creates a new bucket.
379
+ # @param [String] project
380
+ # A valid API project identifier.
381
+ # @param [Google::Apis::StorageV1beta2::Bucket] bucket_object
382
+ # @param [String] projection
383
+ # Set of properties to return. Defaults to noAcl, unless the bucket resource
384
+ # specifies acl or defaultObjectAcl properties, when it defaults to full.
385
+ # @param [String] fields
386
+ # Selector specifying which fields to include in a partial response.
387
+ # @param [String] quota_user
388
+ # Available to use for quota purposes for server-side applications. Can be any
389
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
390
+ # Overrides userIp if both are provided.
391
+ # @param [String] user_ip
392
+ # IP address of the site where the request originates. Use this if you want to
393
+ # enforce per-user limits.
394
+ # @param [Google::Apis::RequestOptions] options
395
+ # Request-specific options
396
+ #
397
+ # @yield [result, err] Result & error if block supplied
398
+ # @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
399
+ # @yieldparam err [StandardError] error object if request failed
400
+ #
401
+ # @return [Google::Apis::StorageV1beta2::Bucket]
402
+ #
403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
406
+ def insert_bucket(project, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
407
+ command = make_simple_command(:post, 'b', options)
408
+ command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation
409
+ command.request_object = bucket_object
410
+ command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
411
+ command.response_class = Google::Apis::StorageV1beta2::Bucket
412
+ command.query['project'] = project unless project.nil?
413
+ command.query['projection'] = projection unless projection.nil?
414
+ command.query['fields'] = fields unless fields.nil?
415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
416
+ command.query['userIp'] = user_ip unless user_ip.nil?
417
+ execute_or_queue_command(command, &block)
418
+ end
419
+
420
+ # Retrieves a list of buckets for a given project.
421
+ # @param [String] project
422
+ # A valid API project identifier.
423
+ # @param [Fixnum] max_results
424
+ # Maximum number of buckets to return.
425
+ # @param [String] page_token
426
+ # A previously-returned page token representing part of the larger set of
427
+ # results to view.
428
+ # @param [String] projection
429
+ # Set of properties to return. Defaults to noAcl.
430
+ # @param [String] fields
431
+ # Selector specifying which fields to include in a partial response.
432
+ # @param [String] quota_user
433
+ # Available to use for quota purposes for server-side applications. Can be any
434
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
435
+ # Overrides userIp if both are provided.
436
+ # @param [String] user_ip
437
+ # IP address of the site where the request originates. Use this if you want to
438
+ # enforce per-user limits.
439
+ # @param [Google::Apis::RequestOptions] options
440
+ # Request-specific options
441
+ #
442
+ # @yield [result, err] Result & error if block supplied
443
+ # @yieldparam result [Google::Apis::StorageV1beta2::Buckets] parsed result object
444
+ # @yieldparam err [StandardError] error object if request failed
445
+ #
446
+ # @return [Google::Apis::StorageV1beta2::Buckets]
447
+ #
448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
451
+ def list_buckets(project, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
452
+ command = make_simple_command(:get, 'b', options)
453
+ command.response_representation = Google::Apis::StorageV1beta2::Buckets::Representation
454
+ command.response_class = Google::Apis::StorageV1beta2::Buckets
455
+ command.query['maxResults'] = max_results unless max_results.nil?
456
+ command.query['pageToken'] = page_token unless page_token.nil?
457
+ command.query['project'] = project unless project.nil?
458
+ command.query['projection'] = projection unless projection.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ command.query['userIp'] = user_ip unless user_ip.nil?
462
+ execute_or_queue_command(command, &block)
463
+ end
464
+
465
+ # Updates a bucket. This method supports patch semantics.
466
+ # @param [String] bucket
467
+ # Name of a bucket.
468
+ # @param [Google::Apis::StorageV1beta2::Bucket] bucket_object
469
+ # @param [Fixnum] if_metageneration_match
470
+ # Makes the return of the bucket metadata conditional on whether the bucket's
471
+ # current metageneration matches the given value.
472
+ # @param [Fixnum] if_metageneration_not_match
473
+ # Makes the return of the bucket metadata conditional on whether the bucket's
474
+ # current metageneration does not match the given value.
475
+ # @param [String] projection
476
+ # Set of properties to return. Defaults to full.
477
+ # @param [String] fields
478
+ # Selector specifying which fields to include in a partial response.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # Overrides userIp if both are provided.
483
+ # @param [String] user_ip
484
+ # IP address of the site where the request originates. Use this if you want to
485
+ # enforce per-user limits.
486
+ # @param [Google::Apis::RequestOptions] options
487
+ # Request-specific options
488
+ #
489
+ # @yield [result, err] Result & error if block supplied
490
+ # @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::StorageV1beta2::Bucket]
494
+ #
495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
498
+ def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
499
+ command = make_simple_command(:patch, 'b/{bucket}', options)
500
+ command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation
501
+ command.request_object = bucket_object
502
+ command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
503
+ command.response_class = Google::Apis::StorageV1beta2::Bucket
504
+ command.params['bucket'] = bucket unless bucket.nil?
505
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
506
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
507
+ command.query['projection'] = projection unless projection.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ command.query['userIp'] = user_ip unless user_ip.nil?
511
+ execute_or_queue_command(command, &block)
512
+ end
513
+
514
+ # Updates a bucket.
515
+ # @param [String] bucket
516
+ # Name of a bucket.
517
+ # @param [Google::Apis::StorageV1beta2::Bucket] bucket_object
518
+ # @param [Fixnum] if_metageneration_match
519
+ # Makes the return of the bucket metadata conditional on whether the bucket's
520
+ # current metageneration matches the given value.
521
+ # @param [Fixnum] if_metageneration_not_match
522
+ # Makes the return of the bucket metadata conditional on whether the bucket's
523
+ # current metageneration does not match the given value.
524
+ # @param [String] projection
525
+ # Set of properties to return. Defaults to full.
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # Overrides userIp if both are provided.
532
+ # @param [String] user_ip
533
+ # IP address of the site where the request originates. Use this if you want to
534
+ # enforce per-user limits.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::StorageV1beta2::Bucket] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::StorageV1beta2::Bucket]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
+ command = make_simple_command(:put, 'b/{bucket}', options)
549
+ command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation
550
+ command.request_object = bucket_object
551
+ command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation
552
+ command.response_class = Google::Apis::StorageV1beta2::Bucket
553
+ command.params['bucket'] = bucket unless bucket.nil?
554
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
555
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
556
+ command.query['projection'] = projection unless projection.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ command.query['userIp'] = user_ip unless user_ip.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # Stop watching resources through this channel
564
+ # @param [Google::Apis::StorageV1beta2::Channel] channel_object
565
+ # @param [String] fields
566
+ # Selector specifying which fields to include in a partial response.
567
+ # @param [String] quota_user
568
+ # Available to use for quota purposes for server-side applications. Can be any
569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
570
+ # Overrides userIp if both are provided.
571
+ # @param [String] user_ip
572
+ # IP address of the site where the request originates. Use this if you want to
573
+ # enforce per-user limits.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [NilClass] No result returned for this method
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [void]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
587
+ command = make_simple_command(:post, 'channels/stop', options)
588
+ command.request_representation = Google::Apis::StorageV1beta2::Channel::Representation
589
+ command.request_object = channel_object
590
+ command.query['fields'] = fields unless fields.nil?
591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
592
+ command.query['userIp'] = user_ip unless user_ip.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
596
+ # Permanently deletes the default object ACL entry for the specified entity on
597
+ # the specified bucket.
598
+ # @param [String] bucket
599
+ # Name of a bucket.
600
+ # @param [String] entity
601
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
602
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
603
+ # @param [String] fields
604
+ # Selector specifying which fields to include in a partial response.
605
+ # @param [String] quota_user
606
+ # Available to use for quota purposes for server-side applications. Can be any
607
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
608
+ # Overrides userIp if both are provided.
609
+ # @param [String] user_ip
610
+ # IP address of the site where the request originates. Use this if you want to
611
+ # enforce per-user limits.
612
+ # @param [Google::Apis::RequestOptions] options
613
+ # Request-specific options
614
+ #
615
+ # @yield [result, err] Result & error if block supplied
616
+ # @yieldparam result [NilClass] No result returned for this method
617
+ # @yieldparam err [StandardError] error object if request failed
618
+ #
619
+ # @return [void]
620
+ #
621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
624
+ def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
625
+ command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options)
626
+ command.params['bucket'] = bucket unless bucket.nil?
627
+ command.params['entity'] = entity unless entity.nil?
628
+ command.query['fields'] = fields unless fields.nil?
629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
630
+ command.query['userIp'] = user_ip unless user_ip.nil?
631
+ execute_or_queue_command(command, &block)
632
+ end
633
+
634
+ # Returns the default object ACL entry for the specified entity on the specified
635
+ # bucket.
636
+ # @param [String] bucket
637
+ # Name of a bucket.
638
+ # @param [String] entity
639
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
640
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
641
+ # @param [String] fields
642
+ # Selector specifying which fields to include in a partial response.
643
+ # @param [String] quota_user
644
+ # Available to use for quota purposes for server-side applications. Can be any
645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
646
+ # Overrides userIp if both are provided.
647
+ # @param [String] user_ip
648
+ # IP address of the site where the request originates. Use this if you want to
649
+ # enforce per-user limits.
650
+ # @param [Google::Apis::RequestOptions] options
651
+ # Request-specific options
652
+ #
653
+ # @yield [result, err] Result & error if block supplied
654
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
655
+ # @yieldparam err [StandardError] error object if request failed
656
+ #
657
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
658
+ #
659
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
660
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
661
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
662
+ def get_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
663
+ command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options)
664
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
665
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
666
+ command.params['bucket'] = bucket unless bucket.nil?
667
+ command.params['entity'] = entity unless entity.nil?
668
+ command.query['fields'] = fields unless fields.nil?
669
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
670
+ command.query['userIp'] = user_ip unless user_ip.nil?
671
+ execute_or_queue_command(command, &block)
672
+ end
673
+
674
+ # Creates a new default object ACL entry on the specified bucket.
675
+ # @param [String] bucket
676
+ # Name of a bucket.
677
+ # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
678
+ # @param [String] fields
679
+ # Selector specifying which fields to include in a partial response.
680
+ # @param [String] quota_user
681
+ # Available to use for quota purposes for server-side applications. Can be any
682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
+ # Overrides userIp if both are provided.
684
+ # @param [String] user_ip
685
+ # IP address of the site where the request originates. Use this if you want to
686
+ # enforce per-user limits.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def insert_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
700
+ command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options)
701
+ command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
702
+ command.request_object = object_access_control_object
703
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
704
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
705
+ command.params['bucket'] = bucket unless bucket.nil?
706
+ command.query['fields'] = fields unless fields.nil?
707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
708
+ command.query['userIp'] = user_ip unless user_ip.nil?
709
+ execute_or_queue_command(command, &block)
710
+ end
711
+
712
+ # Retrieves default object ACL entries on the specified bucket.
713
+ # @param [String] bucket
714
+ # Name of a bucket.
715
+ # @param [Fixnum] if_metageneration_match
716
+ # If present, only return default ACL listing if the bucket's current
717
+ # metageneration matches this value.
718
+ # @param [Fixnum] if_metageneration_not_match
719
+ # If present, only return default ACL listing if the bucket's current
720
+ # metageneration does not match the given value.
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # Overrides userIp if both are provided.
727
+ # @param [String] user_ip
728
+ # IP address of the site where the request originates. Use this if you want to
729
+ # enforce per-user limits.
730
+ # @param [Google::Apis::RequestOptions] options
731
+ # Request-specific options
732
+ #
733
+ # @yield [result, err] Result & error if block supplied
734
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControls] parsed result object
735
+ # @yieldparam err [StandardError] error object if request failed
736
+ #
737
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControls]
738
+ #
739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
742
+ 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)
743
+ command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options)
744
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControls::Representation
745
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControls
746
+ command.params['bucket'] = bucket unless bucket.nil?
747
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
748
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
749
+ command.query['fields'] = fields unless fields.nil?
750
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
751
+ command.query['userIp'] = user_ip unless user_ip.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Updates a default object ACL entry on the specified bucket. This method
756
+ # supports patch semantics.
757
+ # @param [String] bucket
758
+ # Name of a bucket.
759
+ # @param [String] entity
760
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
761
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
762
+ # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
763
+ # @param [String] fields
764
+ # Selector specifying which fields to include in a partial response.
765
+ # @param [String] quota_user
766
+ # Available to use for quota purposes for server-side applications. Can be any
767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
+ # Overrides userIp if both are provided.
769
+ # @param [String] user_ip
770
+ # IP address of the site where the request originates. Use this if you want to
771
+ # enforce per-user limits.
772
+ # @param [Google::Apis::RequestOptions] options
773
+ # Request-specific options
774
+ #
775
+ # @yield [result, err] Result & error if block supplied
776
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
777
+ # @yieldparam err [StandardError] error object if request failed
778
+ #
779
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
780
+ #
781
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
782
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
783
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
784
+ def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
785
+ command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options)
786
+ command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
787
+ command.request_object = object_access_control_object
788
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
789
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
790
+ command.params['bucket'] = bucket unless bucket.nil?
791
+ command.params['entity'] = entity unless entity.nil?
792
+ command.query['fields'] = fields unless fields.nil?
793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
794
+ command.query['userIp'] = user_ip unless user_ip.nil?
795
+ execute_or_queue_command(command, &block)
796
+ end
797
+
798
+ # Updates a default object ACL entry on the specified bucket.
799
+ # @param [String] bucket
800
+ # Name of a bucket.
801
+ # @param [String] entity
802
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
803
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
804
+ # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
805
+ # @param [String] fields
806
+ # Selector specifying which fields to include in a partial response.
807
+ # @param [String] quota_user
808
+ # Available to use for quota purposes for server-side applications. Can be any
809
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
810
+ # Overrides userIp if both are provided.
811
+ # @param [String] user_ip
812
+ # IP address of the site where the request originates. Use this if you want to
813
+ # enforce per-user limits.
814
+ # @param [Google::Apis::RequestOptions] options
815
+ # Request-specific options
816
+ #
817
+ # @yield [result, err] Result & error if block supplied
818
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
819
+ # @yieldparam err [StandardError] error object if request failed
820
+ #
821
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
822
+ #
823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
826
+ def update_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
827
+ command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options)
828
+ command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
829
+ command.request_object = object_access_control_object
830
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
831
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
832
+ command.params['bucket'] = bucket unless bucket.nil?
833
+ command.params['entity'] = entity unless entity.nil?
834
+ command.query['fields'] = fields unless fields.nil?
835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
836
+ command.query['userIp'] = user_ip unless user_ip.nil?
837
+ execute_or_queue_command(command, &block)
838
+ end
839
+
840
+ # Permanently deletes the ACL entry for the specified entity on the specified
841
+ # object.
842
+ # @param [String] bucket
843
+ # Name of a bucket.
844
+ # @param [String] object
845
+ # Name of the object.
846
+ # @param [String] entity
847
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
848
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
849
+ # @param [Fixnum] generation
850
+ # If present, selects a specific revision of this object (as opposed to the
851
+ # latest version, the default).
852
+ # @param [String] fields
853
+ # Selector specifying which fields to include in a partial response.
854
+ # @param [String] quota_user
855
+ # Available to use for quota purposes for server-side applications. Can be any
856
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
857
+ # Overrides userIp if both are provided.
858
+ # @param [String] user_ip
859
+ # IP address of the site where the request originates. Use this if you want to
860
+ # enforce per-user limits.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [NilClass] No result returned for this method
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [void]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
874
+ command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options)
875
+ command.params['bucket'] = bucket unless bucket.nil?
876
+ command.params['object'] = object unless object.nil?
877
+ command.params['entity'] = entity unless entity.nil?
878
+ command.query['generation'] = generation unless generation.nil?
879
+ command.query['fields'] = fields unless fields.nil?
880
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
881
+ command.query['userIp'] = user_ip unless user_ip.nil?
882
+ execute_or_queue_command(command, &block)
883
+ end
884
+
885
+ # Returns the ACL entry for the specified entity on the specified object.
886
+ # @param [String] bucket
887
+ # Name of a bucket.
888
+ # @param [String] object
889
+ # Name of the object.
890
+ # @param [String] entity
891
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
892
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
893
+ # @param [Fixnum] generation
894
+ # If present, selects a specific revision of this object (as opposed to the
895
+ # latest version, the default).
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
898
+ # @param [String] quota_user
899
+ # Available to use for quota purposes for server-side applications. Can be any
900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
901
+ # Overrides userIp if both are provided.
902
+ # @param [String] user_ip
903
+ # IP address of the site where the request originates. Use this if you want to
904
+ # enforce per-user limits.
905
+ # @param [Google::Apis::RequestOptions] options
906
+ # Request-specific options
907
+ #
908
+ # @yield [result, err] Result & error if block supplied
909
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
910
+ # @yieldparam err [StandardError] error object if request failed
911
+ #
912
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
913
+ #
914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
916
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
917
+ def get_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
918
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options)
919
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
920
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
921
+ command.params['bucket'] = bucket unless bucket.nil?
922
+ command.params['object'] = object unless object.nil?
923
+ command.params['entity'] = entity unless entity.nil?
924
+ command.query['generation'] = generation unless generation.nil?
925
+ command.query['fields'] = fields unless fields.nil?
926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
927
+ command.query['userIp'] = user_ip unless user_ip.nil?
928
+ execute_or_queue_command(command, &block)
929
+ end
930
+
931
+ # Creates a new ACL entry on the specified object.
932
+ # @param [String] bucket
933
+ # Name of a bucket.
934
+ # @param [String] object
935
+ # Name of the object.
936
+ # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
937
+ # @param [Fixnum] generation
938
+ # If present, selects a specific revision of this object (as opposed to the
939
+ # latest version, the default).
940
+ # @param [String] fields
941
+ # Selector specifying which fields to include in a partial response.
942
+ # @param [String] quota_user
943
+ # Available to use for quota purposes for server-side applications. Can be any
944
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
945
+ # Overrides userIp if both are provided.
946
+ # @param [String] user_ip
947
+ # IP address of the site where the request originates. Use this if you want to
948
+ # enforce per-user limits.
949
+ # @param [Google::Apis::RequestOptions] options
950
+ # Request-specific options
951
+ #
952
+ # @yield [result, err] Result & error if block supplied
953
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
954
+ # @yieldparam err [StandardError] error object if request failed
955
+ #
956
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
957
+ #
958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
961
+ 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)
962
+ command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options)
963
+ command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
964
+ command.request_object = object_access_control_object
965
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
966
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
967
+ command.params['bucket'] = bucket unless bucket.nil?
968
+ command.params['object'] = object unless object.nil?
969
+ command.query['generation'] = generation unless generation.nil?
970
+ command.query['fields'] = fields unless fields.nil?
971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
972
+ command.query['userIp'] = user_ip unless user_ip.nil?
973
+ execute_or_queue_command(command, &block)
974
+ end
975
+
976
+ # Retrieves ACL entries on the specified object.
977
+ # @param [String] bucket
978
+ # Name of a bucket.
979
+ # @param [String] object
980
+ # Name of the object.
981
+ # @param [Fixnum] generation
982
+ # If present, selects a specific revision of this object (as opposed to the
983
+ # latest version, the default).
984
+ # @param [String] fields
985
+ # Selector specifying which fields to include in a partial response.
986
+ # @param [String] quota_user
987
+ # Available to use for quota purposes for server-side applications. Can be any
988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
989
+ # Overrides userIp if both are provided.
990
+ # @param [String] user_ip
991
+ # IP address of the site where the request originates. Use this if you want to
992
+ # enforce per-user limits.
993
+ # @param [Google::Apis::RequestOptions] options
994
+ # Request-specific options
995
+ #
996
+ # @yield [result, err] Result & error if block supplied
997
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControls] parsed result object
998
+ # @yieldparam err [StandardError] error object if request failed
999
+ #
1000
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControls]
1001
+ #
1002
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1003
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1004
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1005
+ def list_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1006
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options)
1007
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControls::Representation
1008
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControls
1009
+ command.params['bucket'] = bucket unless bucket.nil?
1010
+ command.params['object'] = object unless object.nil?
1011
+ command.query['generation'] = generation unless generation.nil?
1012
+ command.query['fields'] = fields unless fields.nil?
1013
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1014
+ command.query['userIp'] = user_ip unless user_ip.nil?
1015
+ execute_or_queue_command(command, &block)
1016
+ end
1017
+
1018
+ # Updates an ACL entry on the specified object. This method supports patch
1019
+ # semantics.
1020
+ # @param [String] bucket
1021
+ # Name of a bucket.
1022
+ # @param [String] object
1023
+ # Name of the object.
1024
+ # @param [String] entity
1025
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
1026
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
1027
+ # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
1028
+ # @param [Fixnum] generation
1029
+ # If present, selects a specific revision of this object (as opposed to the
1030
+ # latest version, the default).
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # Overrides userIp if both are provided.
1037
+ # @param [String] user_ip
1038
+ # IP address of the site where the request originates. Use this if you want to
1039
+ # enforce per-user limits.
1040
+ # @param [Google::Apis::RequestOptions] options
1041
+ # Request-specific options
1042
+ #
1043
+ # @yield [result, err] Result & error if block supplied
1044
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
1045
+ # @yieldparam err [StandardError] error object if request failed
1046
+ #
1047
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
1048
+ #
1049
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1050
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1051
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1052
+ 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)
1053
+ command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options)
1054
+ command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
1055
+ command.request_object = object_access_control_object
1056
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
1057
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
1058
+ command.params['bucket'] = bucket unless bucket.nil?
1059
+ command.params['object'] = object unless object.nil?
1060
+ command.params['entity'] = entity unless entity.nil?
1061
+ command.query['generation'] = generation unless generation.nil?
1062
+ command.query['fields'] = fields unless fields.nil?
1063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1064
+ command.query['userIp'] = user_ip unless user_ip.nil?
1065
+ execute_or_queue_command(command, &block)
1066
+ end
1067
+
1068
+ # Updates an ACL entry on the specified object.
1069
+ # @param [String] bucket
1070
+ # Name of a bucket.
1071
+ # @param [String] object
1072
+ # Name of the object.
1073
+ # @param [String] entity
1074
+ # The entity holding the permission. Can be user-userId, user-emailAddress,
1075
+ # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
1076
+ # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object
1077
+ # @param [Fixnum] generation
1078
+ # If present, selects a specific revision of this object (as opposed to the
1079
+ # latest version, the default).
1080
+ # @param [String] fields
1081
+ # Selector specifying which fields to include in a partial response.
1082
+ # @param [String] quota_user
1083
+ # Available to use for quota purposes for server-side applications. Can be any
1084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1085
+ # Overrides userIp if both are provided.
1086
+ # @param [String] user_ip
1087
+ # IP address of the site where the request originates. Use this if you want to
1088
+ # enforce per-user limits.
1089
+ # @param [Google::Apis::RequestOptions] options
1090
+ # Request-specific options
1091
+ #
1092
+ # @yield [result, err] Result & error if block supplied
1093
+ # @yieldparam result [Google::Apis::StorageV1beta2::ObjectAccessControl] parsed result object
1094
+ # @yieldparam err [StandardError] error object if request failed
1095
+ #
1096
+ # @return [Google::Apis::StorageV1beta2::ObjectAccessControl]
1097
+ #
1098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1101
+ 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)
1102
+ command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options)
1103
+ command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
1104
+ command.request_object = object_access_control_object
1105
+ command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation
1106
+ command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl
1107
+ command.params['bucket'] = bucket unless bucket.nil?
1108
+ command.params['object'] = object unless object.nil?
1109
+ command.params['entity'] = entity unless entity.nil?
1110
+ command.query['generation'] = generation unless generation.nil?
1111
+ command.query['fields'] = fields unless fields.nil?
1112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1113
+ command.query['userIp'] = user_ip unless user_ip.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Concatenates a list of existing objects into a new object in the same bucket.
1118
+ # @param [String] destination_bucket
1119
+ # Name of the bucket in which to store the new object.
1120
+ # @param [String] destination_object
1121
+ # Name of the new object.
1122
+ # @param [Google::Apis::StorageV1beta2::ComposeRequest] compose_request_object
1123
+ # @param [Fixnum] if_generation_match
1124
+ # Makes the operation conditional on whether the object's current generation
1125
+ # matches the given value.
1126
+ # @param [Fixnum] if_metageneration_match
1127
+ # Makes the operation conditional on whether the object's current metageneration
1128
+ # matches the given value.
1129
+ # @param [String] fields
1130
+ # Selector specifying which fields to include in a partial response.
1131
+ # @param [String] quota_user
1132
+ # Available to use for quota purposes for server-side applications. Can be any
1133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1134
+ # Overrides userIp if both are provided.
1135
+ # @param [String] user_ip
1136
+ # IP address of the site where the request originates. Use this if you want to
1137
+ # enforce per-user limits.
1138
+ # @param [IO, String] download_dest
1139
+ # IO stream or filename to receive content download
1140
+ # @param [Google::Apis::RequestOptions] options
1141
+ # Request-specific options
1142
+ #
1143
+ # @yield [result, err] Result & error if block supplied
1144
+ # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
1145
+ # @yieldparam err [StandardError] error object if request failed
1146
+ #
1147
+ # @return [Google::Apis::StorageV1beta2::Object]
1148
+ #
1149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1152
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1153
+ if download_dest.nil?
1154
+ command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1155
+ else
1156
+ command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1157
+ command.download_dest = download_dest
1158
+ end
1159
+ command.request_representation = Google::Apis::StorageV1beta2::ComposeRequest::Representation
1160
+ command.request_object = compose_request_object
1161
+ command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
1162
+ command.response_class = Google::Apis::StorageV1beta2::Object
1163
+ command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
1164
+ command.params['destinationObject'] = destination_object unless destination_object.nil?
1165
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1166
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1167
+ command.query['fields'] = fields unless fields.nil?
1168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1169
+ command.query['userIp'] = user_ip unless user_ip.nil?
1170
+ execute_or_queue_command(command, &block)
1171
+ end
1172
+
1173
+ # Copies an object to a destination in the same location. Optionally overrides
1174
+ # metadata.
1175
+ # @param [String] source_bucket
1176
+ # Name of the bucket in which to find the source object.
1177
+ # @param [String] source_object
1178
+ # Name of the source object.
1179
+ # @param [String] destination_bucket
1180
+ # Name of the bucket in which to store the new object. Overrides the provided
1181
+ # object metadata's bucket value, if any.
1182
+ # @param [String] destination_object
1183
+ # Name of the new object. Required when the object metadata is not otherwise
1184
+ # provided. Overrides the object metadata's name value, if any.
1185
+ # @param [Google::Apis::StorageV1beta2::Object] object_object
1186
+ # @param [Fixnum] if_generation_match
1187
+ # Makes the operation conditional on whether the destination object's current
1188
+ # generation matches the given value.
1189
+ # @param [Fixnum] if_generation_not_match
1190
+ # Makes the operation conditional on whether the destination object's current
1191
+ # generation does not match the given value.
1192
+ # @param [Fixnum] if_metageneration_match
1193
+ # Makes the operation conditional on whether the destination object's current
1194
+ # metageneration matches the given value.
1195
+ # @param [Fixnum] if_metageneration_not_match
1196
+ # Makes the operation conditional on whether the destination object's current
1197
+ # metageneration does not match the given value.
1198
+ # @param [Fixnum] if_source_generation_match
1199
+ # Makes the operation conditional on whether the source object's generation
1200
+ # matches the given value.
1201
+ # @param [Fixnum] if_source_generation_not_match
1202
+ # Makes the operation conditional on whether the source object's generation does
1203
+ # not match the given value.
1204
+ # @param [Fixnum] if_source_metageneration_match
1205
+ # Makes the operation conditional on whether the source object's current
1206
+ # metageneration matches the given value.
1207
+ # @param [Fixnum] if_source_metageneration_not_match
1208
+ # Makes the operation conditional on whether the source object's current
1209
+ # metageneration does not match the given value.
1210
+ # @param [String] projection
1211
+ # Set of properties to return. Defaults to noAcl, unless the object resource
1212
+ # specifies the acl property, when it defaults to full.
1213
+ # @param [Fixnum] source_generation
1214
+ # If present, selects a specific revision of the source object (as opposed to
1215
+ # the latest version, the default).
1216
+ # @param [String] fields
1217
+ # Selector specifying which fields to include in a partial response.
1218
+ # @param [String] quota_user
1219
+ # Available to use for quota purposes for server-side applications. Can be any
1220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1221
+ # Overrides userIp if both are provided.
1222
+ # @param [String] user_ip
1223
+ # IP address of the site where the request originates. Use this if you want to
1224
+ # enforce per-user limits.
1225
+ # @param [IO, String] download_dest
1226
+ # IO stream or filename to receive content download
1227
+ # @param [Google::Apis::RequestOptions] options
1228
+ # Request-specific options
1229
+ #
1230
+ # @yield [result, err] Result & error if block supplied
1231
+ # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
1232
+ # @yieldparam err [StandardError] error object if request failed
1233
+ #
1234
+ # @return [Google::Apis::StorageV1beta2::Object]
1235
+ #
1236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1239
+ def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = 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)
1240
+ if download_dest.nil?
1241
+ command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1242
+ else
1243
+ command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1244
+ command.download_dest = download_dest
1245
+ end
1246
+ command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
1247
+ command.request_object = object_object
1248
+ command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
1249
+ command.response_class = Google::Apis::StorageV1beta2::Object
1250
+ command.params['sourceBucket'] = source_bucket unless source_bucket.nil?
1251
+ command.params['sourceObject'] = source_object unless source_object.nil?
1252
+ command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
1253
+ command.params['destinationObject'] = destination_object unless destination_object.nil?
1254
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1255
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1256
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1257
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1258
+ command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil?
1259
+ command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
1260
+ command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
1261
+ command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
1262
+ command.query['projection'] = projection unless projection.nil?
1263
+ command.query['sourceGeneration'] = source_generation unless source_generation.nil?
1264
+ command.query['fields'] = fields unless fields.nil?
1265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1266
+ command.query['userIp'] = user_ip unless user_ip.nil?
1267
+ execute_or_queue_command(command, &block)
1268
+ end
1269
+
1270
+ # Deletes data blobs and associated metadata. Deletions are permanent if
1271
+ # versioning is not enabled for the bucket, or if the generation parameter is
1272
+ # used.
1273
+ # @param [String] bucket
1274
+ # Name of the bucket in which the object resides.
1275
+ # @param [String] object
1276
+ # Name of the object.
1277
+ # @param [Fixnum] generation
1278
+ # If present, permanently deletes a specific revision of this object (as opposed
1279
+ # to the latest version, the default).
1280
+ # @param [Fixnum] if_generation_match
1281
+ # Makes the operation conditional on whether the object's current generation
1282
+ # matches the given value.
1283
+ # @param [Fixnum] if_generation_not_match
1284
+ # Makes the operation conditional on whether the object's current generation
1285
+ # does not match the given value.
1286
+ # @param [Fixnum] if_metageneration_match
1287
+ # Makes the operation conditional on whether the object's current metageneration
1288
+ # matches the given value.
1289
+ # @param [Fixnum] if_metageneration_not_match
1290
+ # Makes the operation conditional on whether the object's current metageneration
1291
+ # does not match the given value.
1292
+ # @param [String] fields
1293
+ # Selector specifying which fields to include in a partial response.
1294
+ # @param [String] quota_user
1295
+ # Available to use for quota purposes for server-side applications. Can be any
1296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1297
+ # Overrides userIp if both are provided.
1298
+ # @param [String] user_ip
1299
+ # IP address of the site where the request originates. Use this if you want to
1300
+ # enforce per-user limits.
1301
+ # @param [Google::Apis::RequestOptions] options
1302
+ # Request-specific options
1303
+ #
1304
+ # @yield [result, err] Result & error if block supplied
1305
+ # @yieldparam result [NilClass] No result returned for this method
1306
+ # @yieldparam err [StandardError] error object if request failed
1307
+ #
1308
+ # @return [void]
1309
+ #
1310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1313
+ 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)
1314
+ command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options)
1315
+ command.params['bucket'] = bucket unless bucket.nil?
1316
+ command.params['object'] = object unless object.nil?
1317
+ command.query['generation'] = generation unless generation.nil?
1318
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1319
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1320
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1321
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1322
+ command.query['fields'] = fields unless fields.nil?
1323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1324
+ command.query['userIp'] = user_ip unless user_ip.nil?
1325
+ execute_or_queue_command(command, &block)
1326
+ end
1327
+
1328
+ # Retrieves objects or their associated metadata.
1329
+ # @param [String] bucket
1330
+ # Name of the bucket in which the object resides.
1331
+ # @param [String] object
1332
+ # Name of the object.
1333
+ # @param [Fixnum] generation
1334
+ # If present, selects a specific revision of this object (as opposed to the
1335
+ # latest version, the default).
1336
+ # @param [Fixnum] if_generation_match
1337
+ # Makes the operation conditional on whether the object's generation matches the
1338
+ # given value.
1339
+ # @param [Fixnum] if_generation_not_match
1340
+ # Makes the operation conditional on whether the object's generation does not
1341
+ # match the given value.
1342
+ # @param [Fixnum] if_metageneration_match
1343
+ # Makes the operation conditional on whether the object's current metageneration
1344
+ # matches the given value.
1345
+ # @param [Fixnum] if_metageneration_not_match
1346
+ # Makes the operation conditional on whether the object's current metageneration
1347
+ # does not match the given value.
1348
+ # @param [String] projection
1349
+ # Set of properties to return. Defaults to noAcl.
1350
+ # @param [String] fields
1351
+ # Selector specifying which fields to include in a partial response.
1352
+ # @param [String] quota_user
1353
+ # Available to use for quota purposes for server-side applications. Can be any
1354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1355
+ # Overrides userIp if both are provided.
1356
+ # @param [String] user_ip
1357
+ # IP address of the site where the request originates. Use this if you want to
1358
+ # enforce per-user limits.
1359
+ # @param [IO, String] download_dest
1360
+ # IO stream or filename to receive content download
1361
+ # @param [Google::Apis::RequestOptions] options
1362
+ # Request-specific options
1363
+ #
1364
+ # @yield [result, err] Result & error if block supplied
1365
+ # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
1366
+ # @yieldparam err [StandardError] error object if request failed
1367
+ #
1368
+ # @return [Google::Apis::StorageV1beta2::Object]
1369
+ #
1370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1373
+ 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)
1374
+ if download_dest.nil?
1375
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
1376
+ else
1377
+ command = make_download_command(:get, 'b/{bucket}/o/{object}', options)
1378
+ command.download_dest = download_dest
1379
+ end
1380
+ command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
1381
+ command.response_class = Google::Apis::StorageV1beta2::Object
1382
+ command.params['bucket'] = bucket unless bucket.nil?
1383
+ command.params['object'] = object unless object.nil?
1384
+ command.query['generation'] = generation unless generation.nil?
1385
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1386
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1387
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1388
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1389
+ command.query['projection'] = projection unless projection.nil?
1390
+ command.query['fields'] = fields unless fields.nil?
1391
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1392
+ command.query['userIp'] = user_ip unless user_ip.nil?
1393
+ execute_or_queue_command(command, &block)
1394
+ end
1395
+
1396
+ # Stores new data blobs and associated metadata.
1397
+ # @param [String] bucket
1398
+ # Name of the bucket in which to store the new object. Overrides the provided
1399
+ # object metadata's bucket value, if any.
1400
+ # @param [Google::Apis::StorageV1beta2::Object] object_object
1401
+ # @param [Fixnum] if_generation_match
1402
+ # Makes the operation conditional on whether the object's current generation
1403
+ # matches the given value.
1404
+ # @param [Fixnum] if_generation_not_match
1405
+ # Makes the operation conditional on whether the object's current generation
1406
+ # does not match the given value.
1407
+ # @param [Fixnum] if_metageneration_match
1408
+ # Makes the operation conditional on whether the object's current metageneration
1409
+ # matches the given value.
1410
+ # @param [Fixnum] if_metageneration_not_match
1411
+ # Makes the operation conditional on whether the object's current metageneration
1412
+ # does not match the given value.
1413
+ # @param [String] name
1414
+ # Name of the object. Required when the object metadata is not otherwise
1415
+ # provided. Overrides the object metadata's name value, if any.
1416
+ # @param [String] projection
1417
+ # Set of properties to return. Defaults to noAcl, unless the object resource
1418
+ # specifies the acl property, when it defaults to full.
1419
+ # @param [String] fields
1420
+ # Selector specifying which fields to include in a partial response.
1421
+ # @param [String] quota_user
1422
+ # Available to use for quota purposes for server-side applications. Can be any
1423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1424
+ # Overrides userIp if both are provided.
1425
+ # @param [String] user_ip
1426
+ # IP address of the site where the request originates. Use this if you want to
1427
+ # enforce per-user limits.
1428
+ # @param [IO, String] upload_source
1429
+ # IO stream or filename containing content to upload
1430
+ # @param [String] content_type
1431
+ # Content type of the uploaded content.
1432
+ # @param [Google::Apis::RequestOptions] options
1433
+ # Request-specific options
1434
+ #
1435
+ # @yield [result, err] Result & error if block supplied
1436
+ # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
1437
+ # @yieldparam err [StandardError] error object if request failed
1438
+ #
1439
+ # @return [Google::Apis::StorageV1beta2::Object]
1440
+ #
1441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1444
+ def insert_object(bucket, object_object = nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1445
+ if upload_source.nil?
1446
+ command = make_simple_command(:post, 'b/{bucket}/o', options)
1447
+ else
1448
+ command = make_upload_command(:post, 'b/{bucket}/o', options)
1449
+ command.upload_source = upload_source
1450
+ command.upload_content_type = content_type
1451
+ end
1452
+ command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
1453
+ command.request_object = object_object
1454
+ command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
1455
+ command.response_class = Google::Apis::StorageV1beta2::Object
1456
+ command.params['bucket'] = bucket unless bucket.nil?
1457
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1458
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1459
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1460
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1461
+ command.query['name'] = name unless name.nil?
1462
+ command.query['projection'] = projection unless projection.nil?
1463
+ command.query['fields'] = fields unless fields.nil?
1464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1465
+ command.query['userIp'] = user_ip unless user_ip.nil?
1466
+ execute_or_queue_command(command, &block)
1467
+ end
1468
+
1469
+ # Retrieves a list of objects matching the criteria.
1470
+ # @param [String] bucket
1471
+ # Name of the bucket in which to look for objects.
1472
+ # @param [String] delimiter
1473
+ # Returns results in a directory-like mode. items will contain only objects
1474
+ # whose names, aside from the prefix, do not contain delimiter. Objects whose
1475
+ # names, aside from the prefix, contain delimiter will have their name,
1476
+ # truncated after the delimiter, returned in prefixes. Duplicate prefixes are
1477
+ # omitted.
1478
+ # @param [Fixnum] max_results
1479
+ # Maximum number of items plus prefixes to return. As duplicate prefixes are
1480
+ # omitted, fewer total results may be returned than requested.
1481
+ # @param [String] page_token
1482
+ # A previously-returned page token representing part of the larger set of
1483
+ # results to view.
1484
+ # @param [String] prefix
1485
+ # Filter results to objects whose names begin with this prefix.
1486
+ # @param [String] projection
1487
+ # Set of properties to return. Defaults to noAcl.
1488
+ # @param [Boolean] versions
1489
+ # If true, lists all versions of a file as distinct results.
1490
+ # @param [String] fields
1491
+ # Selector specifying which fields to include in a partial response.
1492
+ # @param [String] quota_user
1493
+ # Available to use for quota purposes for server-side applications. Can be any
1494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1495
+ # Overrides userIp if both are provided.
1496
+ # @param [String] user_ip
1497
+ # IP address of the site where the request originates. Use this if you want to
1498
+ # enforce per-user limits.
1499
+ # @param [Google::Apis::RequestOptions] options
1500
+ # Request-specific options
1501
+ #
1502
+ # @yield [result, err] Result & error if block supplied
1503
+ # @yieldparam result [Google::Apis::StorageV1beta2::Objects] parsed result object
1504
+ # @yieldparam err [StandardError] error object if request failed
1505
+ #
1506
+ # @return [Google::Apis::StorageV1beta2::Objects]
1507
+ #
1508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1511
+ 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)
1512
+ command = make_simple_command(:get, 'b/{bucket}/o', options)
1513
+ command.response_representation = Google::Apis::StorageV1beta2::Objects::Representation
1514
+ command.response_class = Google::Apis::StorageV1beta2::Objects
1515
+ command.params['bucket'] = bucket unless bucket.nil?
1516
+ command.query['delimiter'] = delimiter unless delimiter.nil?
1517
+ command.query['maxResults'] = max_results unless max_results.nil?
1518
+ command.query['pageToken'] = page_token unless page_token.nil?
1519
+ command.query['prefix'] = prefix unless prefix.nil?
1520
+ command.query['projection'] = projection unless projection.nil?
1521
+ command.query['versions'] = versions unless versions.nil?
1522
+ command.query['fields'] = fields unless fields.nil?
1523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1524
+ command.query['userIp'] = user_ip unless user_ip.nil?
1525
+ execute_or_queue_command(command, &block)
1526
+ end
1527
+
1528
+ # Updates a data blob's associated metadata. This method supports patch
1529
+ # semantics.
1530
+ # @param [String] bucket
1531
+ # Name of the bucket in which the object resides.
1532
+ # @param [String] object
1533
+ # Name of the object.
1534
+ # @param [Google::Apis::StorageV1beta2::Object] object_object
1535
+ # @param [Fixnum] generation
1536
+ # If present, selects a specific revision of this object (as opposed to the
1537
+ # latest version, the default).
1538
+ # @param [Fixnum] if_generation_match
1539
+ # Makes the operation conditional on whether the object's current generation
1540
+ # matches the given value.
1541
+ # @param [Fixnum] if_generation_not_match
1542
+ # Makes the operation conditional on whether the object's current generation
1543
+ # does not match the given value.
1544
+ # @param [Fixnum] if_metageneration_match
1545
+ # Makes the operation conditional on whether the object's current metageneration
1546
+ # matches the given value.
1547
+ # @param [Fixnum] if_metageneration_not_match
1548
+ # Makes the operation conditional on whether the object's current metageneration
1549
+ # does not match the given value.
1550
+ # @param [String] projection
1551
+ # Set of properties to return. Defaults to full.
1552
+ # @param [String] fields
1553
+ # Selector specifying which fields to include in a partial response.
1554
+ # @param [String] quota_user
1555
+ # Available to use for quota purposes for server-side applications. Can be any
1556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1557
+ # Overrides userIp if both are provided.
1558
+ # @param [String] user_ip
1559
+ # IP address of the site where the request originates. Use this if you want to
1560
+ # enforce per-user limits.
1561
+ # @param [Google::Apis::RequestOptions] options
1562
+ # Request-specific options
1563
+ #
1564
+ # @yield [result, err] Result & error if block supplied
1565
+ # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
1566
+ # @yieldparam err [StandardError] error object if request failed
1567
+ #
1568
+ # @return [Google::Apis::StorageV1beta2::Object]
1569
+ #
1570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1573
+ 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, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1574
+ command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
1575
+ command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
1576
+ command.request_object = object_object
1577
+ command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
1578
+ command.response_class = Google::Apis::StorageV1beta2::Object
1579
+ command.params['bucket'] = bucket unless bucket.nil?
1580
+ command.params['object'] = object unless object.nil?
1581
+ command.query['generation'] = generation unless generation.nil?
1582
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1583
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1584
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1585
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1586
+ command.query['projection'] = projection unless projection.nil?
1587
+ command.query['fields'] = fields unless fields.nil?
1588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1589
+ command.query['userIp'] = user_ip unless user_ip.nil?
1590
+ execute_or_queue_command(command, &block)
1591
+ end
1592
+
1593
+ # Updates a data blob's associated metadata.
1594
+ # @param [String] bucket
1595
+ # Name of the bucket in which the object resides.
1596
+ # @param [String] object
1597
+ # Name of the object.
1598
+ # @param [Google::Apis::StorageV1beta2::Object] object_object
1599
+ # @param [Fixnum] generation
1600
+ # If present, selects a specific revision of this object (as opposed to the
1601
+ # latest version, the default).
1602
+ # @param [Fixnum] if_generation_match
1603
+ # Makes the operation conditional on whether the object's current generation
1604
+ # matches the given value.
1605
+ # @param [Fixnum] if_generation_not_match
1606
+ # Makes the operation conditional on whether the object's current generation
1607
+ # does not match the given value.
1608
+ # @param [Fixnum] if_metageneration_match
1609
+ # Makes the operation conditional on whether the object's current metageneration
1610
+ # matches the given value.
1611
+ # @param [Fixnum] if_metageneration_not_match
1612
+ # Makes the operation conditional on whether the object's current metageneration
1613
+ # does not match the given value.
1614
+ # @param [String] projection
1615
+ # Set of properties to return. Defaults to full.
1616
+ # @param [String] fields
1617
+ # Selector specifying which fields to include in a partial response.
1618
+ # @param [String] quota_user
1619
+ # Available to use for quota purposes for server-side applications. Can be any
1620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1621
+ # Overrides userIp if both are provided.
1622
+ # @param [String] user_ip
1623
+ # IP address of the site where the request originates. Use this if you want to
1624
+ # enforce per-user limits.
1625
+ # @param [IO, String] download_dest
1626
+ # IO stream or filename to receive content download
1627
+ # @param [Google::Apis::RequestOptions] options
1628
+ # Request-specific options
1629
+ #
1630
+ # @yield [result, err] Result & error if block supplied
1631
+ # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object
1632
+ # @yieldparam err [StandardError] error object if request failed
1633
+ #
1634
+ # @return [Google::Apis::StorageV1beta2::Object]
1635
+ #
1636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1639
+ 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, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1640
+ if download_dest.nil?
1641
+ command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
1642
+ else
1643
+ command = make_download_command(:put, 'b/{bucket}/o/{object}', options)
1644
+ command.download_dest = download_dest
1645
+ end
1646
+ command.request_representation = Google::Apis::StorageV1beta2::Object::Representation
1647
+ command.request_object = object_object
1648
+ command.response_representation = Google::Apis::StorageV1beta2::Object::Representation
1649
+ command.response_class = Google::Apis::StorageV1beta2::Object
1650
+ command.params['bucket'] = bucket unless bucket.nil?
1651
+ command.params['object'] = object unless object.nil?
1652
+ command.query['generation'] = generation unless generation.nil?
1653
+ command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1654
+ command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1655
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1656
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1657
+ command.query['projection'] = projection unless projection.nil?
1658
+ command.query['fields'] = fields unless fields.nil?
1659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1660
+ command.query['userIp'] = user_ip unless user_ip.nil?
1661
+ execute_or_queue_command(command, &block)
1662
+ end
1663
+
1664
+ # Watch for changes on all objects in a bucket.
1665
+ # @param [String] bucket
1666
+ # Name of the bucket in which to look for objects.
1667
+ # @param [Google::Apis::StorageV1beta2::Channel] channel_object
1668
+ # @param [String] delimiter
1669
+ # Returns results in a directory-like mode. items will contain only objects
1670
+ # whose names, aside from the prefix, do not contain delimiter. Objects whose
1671
+ # names, aside from the prefix, contain delimiter will have their name,
1672
+ # truncated after the delimiter, returned in prefixes. Duplicate prefixes are
1673
+ # omitted.
1674
+ # @param [Fixnum] max_results
1675
+ # Maximum number of items plus prefixes to return. As duplicate prefixes are
1676
+ # omitted, fewer total results may be returned than requested.
1677
+ # @param [String] page_token
1678
+ # A previously-returned page token representing part of the larger set of
1679
+ # results to view.
1680
+ # @param [String] prefix
1681
+ # Filter results to objects whose names begin with this prefix.
1682
+ # @param [String] projection
1683
+ # Set of properties to return. Defaults to noAcl.
1684
+ # @param [Boolean] versions
1685
+ # If true, lists all versions of a file as distinct results.
1686
+ # @param [String] fields
1687
+ # Selector specifying which fields to include in a partial response.
1688
+ # @param [String] quota_user
1689
+ # Available to use for quota purposes for server-side applications. Can be any
1690
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1691
+ # Overrides userIp if both are provided.
1692
+ # @param [String] user_ip
1693
+ # IP address of the site where the request originates. Use this if you want to
1694
+ # enforce per-user limits.
1695
+ # @param [Google::Apis::RequestOptions] options
1696
+ # Request-specific options
1697
+ #
1698
+ # @yield [result, err] Result & error if block supplied
1699
+ # @yieldparam result [Google::Apis::StorageV1beta2::Channel] parsed result object
1700
+ # @yieldparam err [StandardError] error object if request failed
1701
+ #
1702
+ # @return [Google::Apis::StorageV1beta2::Channel]
1703
+ #
1704
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1705
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1706
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1707
+ def watch_object_all(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)
1708
+ command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
1709
+ command.request_representation = Google::Apis::StorageV1beta2::Channel::Representation
1710
+ command.request_object = channel_object
1711
+ command.response_representation = Google::Apis::StorageV1beta2::Channel::Representation
1712
+ command.response_class = Google::Apis::StorageV1beta2::Channel
1713
+ command.params['bucket'] = bucket unless bucket.nil?
1714
+ command.query['delimiter'] = delimiter unless delimiter.nil?
1715
+ command.query['maxResults'] = max_results unless max_results.nil?
1716
+ command.query['pageToken'] = page_token unless page_token.nil?
1717
+ command.query['prefix'] = prefix unless prefix.nil?
1718
+ command.query['projection'] = projection unless projection.nil?
1719
+ command.query['versions'] = versions unless versions.nil?
1720
+ command.query['fields'] = fields unless fields.nil?
1721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1722
+ command.query['userIp'] = user_ip unless user_ip.nil?
1723
+ execute_or_queue_command(command, &block)
1724
+ end
1725
+
1726
+ protected
1727
+
1728
+ def apply_command_defaults(command)
1729
+ command.query['key'] = key unless key.nil?
1730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1731
+ command.query['userIp'] = user_ip unless user_ip.nil?
1732
+ end
1733
+ end
1734
+ end
1735
+ end
1736
+ end