google-api-client 0.28.7 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -32
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/windows.cfg +17 -1
  6. data/.kokoro/osx.sh +2 -33
  7. data/.kokoro/presubmit/common.cfg +6 -1
  8. data/.kokoro/presubmit/windows.cfg +17 -1
  9. data/.kokoro/trampoline.bat +10 -0
  10. data/.kokoro/trampoline.sh +3 -23
  11. data/CHANGELOG.md +138 -0
  12. data/Rakefile +31 -0
  13. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  14. data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
  15. data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
  16. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  22. data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
  23. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
  27. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  28. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  29. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
  30. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
  31. data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
  32. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  34. data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
  35. data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/appengine_v1/service.rb +7 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
  44. data/generated/google/apis/appengine_v1beta/service.rb +7 -1
  45. data/generated/google/apis/appsactivity_v1.rb +1 -1
  46. data/generated/google/apis/appsactivity_v1/service.rb +4 -3
  47. data/generated/google/apis/bigquery_v2.rb +1 -1
  48. data/generated/google/apis/bigquery_v2/classes.rb +28 -4
  49. data/generated/google/apis/bigquery_v2/representations.rb +13 -0
  50. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  51. data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  53. data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
  54. data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +16 -16
  58. data/generated/google/apis/classroom_v1.rb +7 -1
  59. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  60. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  61. data/generated/google/apis/classroom_v1/service.rb +224 -0
  62. data/generated/google/apis/cloudasset_v1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
  64. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudasset_v1/service.rb +3 -2
  66. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
  68. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  69. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  70. data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  72. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
  73. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  74. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  75. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
  76. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  77. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
  78. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  79. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudkms_v1.rb +1 -1
  82. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  85. data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
  86. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
  88. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  92. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  93. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  94. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
  98. data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
  99. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
  103. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
  105. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  106. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  107. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  108. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  109. data/generated/google/apis/compute_alpha.rb +1 -1
  110. data/generated/google/apis/compute_alpha/classes.rb +328 -25
  111. data/generated/google/apis/compute_alpha/representations.rb +134 -0
  112. data/generated/google/apis/compute_alpha/service.rb +465 -0
  113. data/generated/google/apis/compute_beta.rb +1 -1
  114. data/generated/google/apis/compute_beta/classes.rb +86 -20
  115. data/generated/google/apis/compute_beta/representations.rb +7 -0
  116. data/generated/google/apis/compute_v1.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +994 -103
  118. data/generated/google/apis/compute_v1/representations.rb +346 -0
  119. data/generated/google/apis/compute_v1/service.rb +533 -0
  120. data/generated/google/apis/container_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +167 -21
  122. data/generated/google/apis/container_v1/representations.rb +66 -0
  123. data/generated/google/apis/container_v1/service.rb +85 -36
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +86 -21
  126. data/generated/google/apis/container_v1beta1/representations.rb +32 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +38 -38
  128. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  129. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  130. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
  131. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
  132. data/generated/google/apis/content_v2.rb +1 -1
  133. data/generated/google/apis/content_v2/classes.rb +5 -5
  134. data/generated/google/apis/content_v2/service.rb +6 -6
  135. data/generated/google/apis/content_v2_1.rb +1 -1
  136. data/generated/google/apis/content_v2_1/classes.rb +18 -4
  137. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  138. data/generated/google/apis/content_v2_1/service.rb +6 -6
  139. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  140. data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
  141. data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
  142. data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
  143. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  144. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  145. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  146. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  147. data/generated/google/apis/dataproc_v1.rb +1 -1
  148. data/generated/google/apis/dataproc_v1/classes.rb +5 -5
  149. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  150. data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
  151. data/generated/google/apis/datastore_v1.rb +1 -1
  152. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  153. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  154. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  155. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  156. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
  159. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +19 -2
  165. data/generated/google/apis/dns_v1.rb +1 -1
  166. data/generated/google/apis/dns_v1/classes.rb +202 -93
  167. data/generated/google/apis/dns_v1/service.rb +110 -15
  168. data/generated/google/apis/dns_v1beta2.rb +1 -1
  169. data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
  170. data/generated/google/apis/dns_v1beta2/service.rb +141 -21
  171. data/generated/google/apis/dns_v2beta1.rb +1 -1
  172. data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
  173. data/generated/google/apis/dns_v2beta1/service.rb +110 -15
  174. data/generated/google/apis/docs_v1.rb +1 -1
  175. data/generated/google/apis/docs_v1/classes.rb +10 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  178. data/generated/google/apis/drive_v2.rb +1 -1
  179. data/generated/google/apis/drive_v2/classes.rb +601 -69
  180. data/generated/google/apis/drive_v2/representations.rb +152 -0
  181. data/generated/google/apis/drive_v2/service.rb +452 -96
  182. data/generated/google/apis/drive_v3.rb +1 -1
  183. data/generated/google/apis/drive_v3/classes.rb +591 -64
  184. data/generated/google/apis/drive_v3/representations.rb +151 -0
  185. data/generated/google/apis/drive_v3/service.rb +407 -77
  186. data/generated/google/apis/driveactivity_v2.rb +1 -1
  187. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  188. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  189. data/generated/google/apis/file_v1.rb +1 -1
  190. data/generated/google/apis/file_v1/classes.rb +399 -8
  191. data/generated/google/apis/file_v1/representations.rb +121 -0
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +399 -8
  194. data/generated/google/apis/file_v1beta1/representations.rb +121 -0
  195. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  196. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
  197. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  198. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  199. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  200. data/generated/google/apis/firebaserules_v1.rb +1 -1
  201. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  202. data/generated/google/apis/firestore_v1.rb +1 -1
  203. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  204. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  205. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  206. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  207. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  208. data/generated/google/apis/fitness_v1.rb +1 -1
  209. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  210. data/generated/google/apis/games_v1.rb +2 -2
  211. data/generated/google/apis/gmail_v1.rb +1 -1
  212. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  213. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  214. data/generated/google/apis/gmail_v1/service.rb +76 -0
  215. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  216. data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
  217. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  218. data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
  219. data/generated/google/apis/iap_v1.rb +1 -1
  220. data/generated/google/apis/iap_v1beta1.rb +1 -1
  221. data/generated/google/apis/jobs_v2.rb +1 -1
  222. data/generated/google/apis/jobs_v2/classes.rb +9 -8
  223. data/generated/google/apis/jobs_v3.rb +1 -1
  224. data/generated/google/apis/jobs_v3/classes.rb +13 -7
  225. data/generated/google/apis/jobs_v3/service.rb +1 -2
  226. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  227. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
  228. data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
  229. data/generated/google/apis/language_v1.rb +1 -1
  230. data/generated/google/apis/language_v1/classes.rb +3 -2
  231. data/generated/google/apis/language_v1beta2.rb +1 -1
  232. data/generated/google/apis/language_v1beta2/classes.rb +3 -2
  233. data/generated/google/apis/ml_v1.rb +1 -1
  234. data/generated/google/apis/ml_v1/classes.rb +64 -16
  235. data/generated/google/apis/ml_v1/representations.rb +2 -0
  236. data/generated/google/apis/ml_v1/service.rb +5 -5
  237. data/generated/google/apis/monitoring_v3.rb +1 -1
  238. data/generated/google/apis/monitoring_v3/classes.rb +0 -10
  239. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  240. data/generated/google/apis/oauth2_v1.rb +1 -1
  241. data/generated/google/apis/oauth2_v2.rb +1 -1
  242. data/generated/google/apis/oslogin_v1.rb +3 -2
  243. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  244. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  245. data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
  246. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  247. data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
  248. data/generated/google/apis/people_v1.rb +1 -4
  249. data/generated/google/apis/people_v1/classes.rb +19 -11
  250. data/generated/google/apis/people_v1/representations.rb +1 -0
  251. data/generated/google/apis/people_v1/service.rb +1 -0
  252. data/generated/google/apis/plus_domains_v1.rb +2 -5
  253. data/generated/google/apis/plus_domains_v1/service.rb +8 -90
  254. data/generated/google/apis/plus_v1.rb +2 -2
  255. data/generated/google/apis/plus_v1/service.rb +7 -7
  256. data/generated/google/apis/poly_v1.rb +1 -1
  257. data/generated/google/apis/poly_v1/classes.rb +3 -2
  258. data/generated/google/apis/poly_v1/service.rb +11 -8
  259. data/generated/google/apis/pubsub_v1.rb +1 -1
  260. data/generated/google/apis/pubsub_v1/classes.rb +2 -1
  261. data/generated/google/apis/pubsub_v1/service.rb +8 -8
  262. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  263. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  264. data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
  265. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  266. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
  267. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  268. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
  269. data/generated/google/apis/run_v1alpha1.rb +1 -1
  270. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1.rb +35 -0
  272. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  273. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  274. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  275. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  276. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  277. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  278. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  279. data/generated/google/apis/servicebroker_v1.rb +1 -1
  280. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  281. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  282. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  283. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
  284. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
  285. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
  286. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  287. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  288. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  289. data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
  290. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  291. data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
  292. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  293. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
  294. data/generated/google/apis/serviceusage_v1.rb +1 -1
  295. data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
  296. data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
  297. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  298. data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
  299. data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
  300. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  301. data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
  302. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  303. data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
  304. data/generated/google/apis/spanner_v1.rb +1 -1
  305. data/generated/google/apis/spanner_v1/classes.rb +20 -19
  306. data/generated/google/apis/spanner_v1/service.rb +1 -1
  307. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  308. data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
  309. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  310. data/generated/google/apis/storage_v1.rb +1 -1
  311. data/generated/google/apis/storage_v1/classes.rb +144 -0
  312. data/generated/google/apis/storage_v1/representations.rb +56 -0
  313. data/generated/google/apis/storage_v1/service.rb +441 -46
  314. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  315. data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
  316. data/generated/google/apis/testing_v1.rb +1 -1
  317. data/generated/google/apis/testing_v1/classes.rb +6 -0
  318. data/generated/google/apis/testing_v1/representations.rb +1 -0
  319. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  320. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  321. data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
  322. data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
  323. data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
  324. data/generated/google/apis/tpu_v1.rb +1 -1
  325. data/generated/google/apis/tpu_v1/classes.rb +10 -4
  326. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  327. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  328. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
  329. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  330. data/generated/google/apis/vault_v1.rb +1 -1
  331. data/generated/google/apis/vault_v1/classes.rb +37 -18
  332. data/generated/google/apis/vault_v1/representations.rb +3 -0
  333. data/generated/google/apis/vision_v1.rb +1 -1
  334. data/generated/google/apis/vision_v1/classes.rb +84 -47
  335. data/generated/google/apis/vision_v1/service.rb +68 -4
  336. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  337. data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
  338. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  339. data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
  340. data/generated/google/apis/webmasters_v3.rb +1 -1
  341. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  342. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  343. data/generated/google/apis/webmasters_v3/service.rb +0 -171
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  346. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  347. data/generated/google/apis/youtube_v3.rb +1 -1
  348. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  349. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  350. data/google-api-client.gemspec +1 -1
  351. data/lib/google/apis/version.rb +1 -1
  352. metadata +31 -9
  353. data/.kokoro/common.cfg +0 -22
  354. data/.kokoro/windows.sh +0 -32
  355. data/generated/google/apis/logging_v2beta1.rb +0 -46
  356. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
  357. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  358. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -166,6 +166,24 @@ module Google
166
166
  include Google::Apis::Core::JsonObjectSupport
167
167
  end
168
168
 
169
+ class HmacKey
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class HmacKeyMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class HmacKeysMetadata
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
169
187
  class Notification
170
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
189
 
@@ -273,6 +291,7 @@ module Google
273
291
  property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1::Bucket::Lifecycle, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Representation
274
292
 
275
293
  property :location, as: 'location'
294
+ property :location_type, as: 'locationType'
276
295
  property :logging, as: 'logging', class: Google::Apis::StorageV1::Bucket::Logging, decorator: Google::Apis::StorageV1::Bucket::Logging::Representation
277
296
 
278
297
  property :metageneration, :numeric_string => true, as: 'metageneration'
@@ -516,6 +535,43 @@ module Google
516
535
  end
517
536
  end
518
537
 
538
+ class HmacKey
539
+ # @private
540
+ class Representation < Google::Apis::Core::JsonRepresentation
541
+ property :kind, as: 'kind'
542
+ property :metadata, as: 'metadata'
543
+ property :secret, as: 'secret'
544
+ end
545
+ end
546
+
547
+ class HmacKeyMetadata
548
+ # @private
549
+ class Representation < Google::Apis::Core::JsonRepresentation
550
+ property :access_id, as: 'accessId'
551
+ property :etag, as: 'etag'
552
+ property :id, as: 'id'
553
+ property :kind, as: 'kind'
554
+ property :project_id, as: 'projectId'
555
+ property :self_link, as: 'selfLink'
556
+ property :service_account_email, as: 'serviceAccountEmail'
557
+ property :state, as: 'state'
558
+ property :time_created, as: 'timeCreated', type: DateTime
559
+
560
+ property :updated, as: 'updated', type: DateTime
561
+
562
+ end
563
+ end
564
+
565
+ class HmacKeysMetadata
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ collection :items, as: 'items', class: Google::Apis::StorageV1::HmacKeyMetadata, decorator: Google::Apis::StorageV1::HmacKeyMetadata::Representation
569
+
570
+ property :kind, as: 'kind'
571
+ property :next_page_token, as: 'nextPageToken'
572
+ end
573
+ end
574
+
519
575
  class Notification
520
576
  # @private
521
577
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -58,6 +58,9 @@ module Google
58
58
  # @param [String] entity
59
59
  # The entity holding the permission. Can be user-userId, user-emailAddress,
60
60
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
61
+ # @param [String] provisional_user_project
62
+ # The project to be billed for this request if the target bucket is requester-
63
+ # pays bucket.
61
64
  # @param [String] user_project
62
65
  # The project to be billed for this request. Required for Requester Pays buckets.
63
66
  # @param [String] fields
@@ -79,10 +82,11 @@ module Google
79
82
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
83
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
84
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def delete_bucket_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
85
+ def delete_bucket_access_control(bucket, entity, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
86
  command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options)
84
87
  command.params['bucket'] = bucket unless bucket.nil?
85
88
  command.params['entity'] = entity unless entity.nil?
89
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
86
90
  command.query['userProject'] = user_project unless user_project.nil?
87
91
  command.query['fields'] = fields unless fields.nil?
88
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -96,6 +100,9 @@ module Google
96
100
  # @param [String] entity
97
101
  # The entity holding the permission. Can be user-userId, user-emailAddress,
98
102
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
103
+ # @param [String] provisional_user_project
104
+ # The project to be billed for this request if the target bucket is requester-
105
+ # pays bucket.
99
106
  # @param [String] user_project
100
107
  # The project to be billed for this request. Required for Requester Pays buckets.
101
108
  # @param [String] fields
@@ -117,12 +124,13 @@ module Google
117
124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def get_bucket_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
127
+ def get_bucket_access_control(bucket, entity, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
121
128
  command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options)
122
129
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
123
130
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
124
131
  command.params['bucket'] = bucket unless bucket.nil?
125
132
  command.params['entity'] = entity unless entity.nil?
133
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
126
134
  command.query['userProject'] = user_project unless user_project.nil?
127
135
  command.query['fields'] = fields unless fields.nil?
128
136
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -134,6 +142,9 @@ module Google
134
142
  # @param [String] bucket
135
143
  # Name of a bucket.
136
144
  # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
145
+ # @param [String] provisional_user_project
146
+ # The project to be billed for this request if the target bucket is requester-
147
+ # pays bucket.
137
148
  # @param [String] user_project
138
149
  # The project to be billed for this request. Required for Requester Pays buckets.
139
150
  # @param [String] fields
@@ -155,13 +166,14 @@ module Google
155
166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
158
- def insert_bucket_access_control(bucket, bucket_access_control_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
169
+ def insert_bucket_access_control(bucket, bucket_access_control_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
159
170
  command = make_simple_command(:post, 'b/{bucket}/acl', options)
160
171
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
161
172
  command.request_object = bucket_access_control_object
162
173
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
163
174
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
164
175
  command.params['bucket'] = bucket unless bucket.nil?
176
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
165
177
  command.query['userProject'] = user_project unless user_project.nil?
166
178
  command.query['fields'] = fields unless fields.nil?
167
179
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -172,6 +184,9 @@ module Google
172
184
  # Retrieves ACL entries on the specified bucket.
173
185
  # @param [String] bucket
174
186
  # Name of a bucket.
187
+ # @param [String] provisional_user_project
188
+ # The project to be billed for this request if the target bucket is requester-
189
+ # pays bucket.
175
190
  # @param [String] user_project
176
191
  # The project to be billed for this request. Required for Requester Pays buckets.
177
192
  # @param [String] fields
@@ -193,11 +208,12 @@ module Google
193
208
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
209
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
210
  # @raise [Google::Apis::AuthorizationError] Authorization is required
196
- def list_bucket_access_controls(bucket, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
211
+ def list_bucket_access_controls(bucket, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
197
212
  command = make_simple_command(:get, 'b/{bucket}/acl', options)
198
213
  command.response_representation = Google::Apis::StorageV1::BucketAccessControls::Representation
199
214
  command.response_class = Google::Apis::StorageV1::BucketAccessControls
200
215
  command.params['bucket'] = bucket unless bucket.nil?
216
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
201
217
  command.query['userProject'] = user_project unless user_project.nil?
202
218
  command.query['fields'] = fields unless fields.nil?
203
219
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -212,6 +228,9 @@ module Google
212
228
  # The entity holding the permission. Can be user-userId, user-emailAddress,
213
229
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
214
230
  # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
231
+ # @param [String] provisional_user_project
232
+ # The project to be billed for this request if the target bucket is requester-
233
+ # pays bucket.
215
234
  # @param [String] user_project
216
235
  # The project to be billed for this request. Required for Requester Pays buckets.
217
236
  # @param [String] fields
@@ -233,7 +252,7 @@ module Google
233
252
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
236
- def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
255
+ def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
237
256
  command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options)
238
257
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
239
258
  command.request_object = bucket_access_control_object
@@ -241,6 +260,7 @@ module Google
241
260
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
242
261
  command.params['bucket'] = bucket unless bucket.nil?
243
262
  command.params['entity'] = entity unless entity.nil?
263
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
244
264
  command.query['userProject'] = user_project unless user_project.nil?
245
265
  command.query['fields'] = fields unless fields.nil?
246
266
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -255,6 +275,9 @@ module Google
255
275
  # The entity holding the permission. Can be user-userId, user-emailAddress,
256
276
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
257
277
  # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
278
+ # @param [String] provisional_user_project
279
+ # The project to be billed for this request if the target bucket is requester-
280
+ # pays bucket.
258
281
  # @param [String] user_project
259
282
  # The project to be billed for this request. Required for Requester Pays buckets.
260
283
  # @param [String] fields
@@ -276,7 +299,7 @@ module Google
276
299
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
300
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
301
  # @raise [Google::Apis::AuthorizationError] Authorization is required
279
- def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
302
+ def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
280
303
  command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options)
281
304
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
282
305
  command.request_object = bucket_access_control_object
@@ -284,6 +307,7 @@ module Google
284
307
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
285
308
  command.params['bucket'] = bucket unless bucket.nil?
286
309
  command.params['entity'] = entity unless entity.nil?
310
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
287
311
  command.query['userProject'] = user_project unless user_project.nil?
288
312
  command.query['fields'] = fields unless fields.nil?
289
313
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -299,6 +323,9 @@ module Google
299
323
  # @param [Fixnum] if_metageneration_not_match
300
324
  # If set, only deletes the bucket if its metageneration does not match this
301
325
  # value.
326
+ # @param [String] provisional_user_project
327
+ # The project to be billed for this request if the target bucket is requester-
328
+ # pays bucket.
302
329
  # @param [String] user_project
303
330
  # The project to be billed for this request. Required for Requester Pays buckets.
304
331
  # @param [String] fields
@@ -320,11 +347,12 @@ module Google
320
347
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
348
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
349
  # @raise [Google::Apis::AuthorizationError] Authorization is required
323
- def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
350
+ def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
324
351
  command = make_simple_command(:delete, 'b/{bucket}', options)
325
352
  command.params['bucket'] = bucket unless bucket.nil?
326
353
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
327
354
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
355
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
328
356
  command.query['userProject'] = user_project unless user_project.nil?
329
357
  command.query['fields'] = fields unless fields.nil?
330
358
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -343,6 +371,9 @@ module Google
343
371
  # current metageneration does not match the given value.
344
372
  # @param [String] projection
345
373
  # Set of properties to return. Defaults to noAcl.
374
+ # @param [String] provisional_user_project
375
+ # The project to be billed for this request if the target bucket is requester-
376
+ # pays bucket.
346
377
  # @param [String] user_project
347
378
  # The project to be billed for this request. Required for Requester Pays buckets.
348
379
  # @param [String] fields
@@ -364,7 +395,7 @@ module Google
364
395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
365
396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
367
- def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
398
+ def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
368
399
  command = make_simple_command(:get, 'b/{bucket}', options)
369
400
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
370
401
  command.response_class = Google::Apis::StorageV1::Bucket
@@ -372,6 +403,7 @@ module Google
372
403
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
373
404
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
374
405
  command.query['projection'] = projection unless projection.nil?
406
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
375
407
  command.query['userProject'] = user_project unless user_project.nil?
376
408
  command.query['fields'] = fields unless fields.nil?
377
409
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -382,6 +414,9 @@ module Google
382
414
  # Returns an IAM policy for the specified bucket.
383
415
  # @param [String] bucket
384
416
  # Name of a bucket.
417
+ # @param [String] provisional_user_project
418
+ # The project to be billed for this request if the target bucket is requester-
419
+ # pays bucket.
385
420
  # @param [String] user_project
386
421
  # The project to be billed for this request. Required for Requester Pays buckets.
387
422
  # @param [String] fields
@@ -403,11 +438,12 @@ module Google
403
438
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
439
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
440
  # @raise [Google::Apis::AuthorizationError] Authorization is required
406
- def get_bucket_iam_policy(bucket, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
441
+ def get_bucket_iam_policy(bucket, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
407
442
  command = make_simple_command(:get, 'b/{bucket}/iam', options)
408
443
  command.response_representation = Google::Apis::StorageV1::Policy::Representation
409
444
  command.response_class = Google::Apis::StorageV1::Policy
410
445
  command.params['bucket'] = bucket unless bucket.nil?
446
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
411
447
  command.query['userProject'] = user_project unless user_project.nil?
412
448
  command.query['fields'] = fields unless fields.nil?
413
449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -426,6 +462,9 @@ module Google
426
462
  # @param [String] projection
427
463
  # Set of properties to return. Defaults to noAcl, unless the bucket resource
428
464
  # specifies acl or defaultObjectAcl properties, when it defaults to full.
465
+ # @param [String] provisional_user_project
466
+ # The project to be billed for this request if the target bucket is requester-
467
+ # pays bucket.
429
468
  # @param [String] user_project
430
469
  # The project to be billed for this request.
431
470
  # @param [String] fields
@@ -447,7 +486,7 @@ module Google
447
486
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
487
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
488
  # @raise [Google::Apis::AuthorizationError] Authorization is required
450
- def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
489
+ def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
451
490
  command = make_simple_command(:post, 'b', options)
452
491
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
453
492
  command.request_object = bucket_object
@@ -457,6 +496,7 @@ module Google
457
496
  command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
458
497
  command.query['project'] = project unless project.nil?
459
498
  command.query['projection'] = projection unless projection.nil?
499
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
460
500
  command.query['userProject'] = user_project unless user_project.nil?
461
501
  command.query['fields'] = fields unless fields.nil?
462
502
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -477,6 +517,9 @@ module Google
477
517
  # Filter results to buckets whose names begin with this prefix.
478
518
  # @param [String] projection
479
519
  # Set of properties to return. Defaults to noAcl.
520
+ # @param [String] provisional_user_project
521
+ # The project to be billed for this request if the target bucket is requester-
522
+ # pays bucket.
480
523
  # @param [String] user_project
481
524
  # The project to be billed for this request.
482
525
  # @param [String] fields
@@ -498,7 +541,7 @@ module Google
498
541
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
542
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
543
  # @raise [Google::Apis::AuthorizationError] Authorization is required
501
- def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
544
+ def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
502
545
  command = make_simple_command(:get, 'b', options)
503
546
  command.response_representation = Google::Apis::StorageV1::Buckets::Representation
504
547
  command.response_class = Google::Apis::StorageV1::Buckets
@@ -507,6 +550,7 @@ module Google
507
550
  command.query['prefix'] = prefix unless prefix.nil?
508
551
  command.query['project'] = project unless project.nil?
509
552
  command.query['projection'] = projection unless projection.nil?
553
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
510
554
  command.query['userProject'] = user_project unless user_project.nil?
511
555
  command.query['fields'] = fields unless fields.nil?
512
556
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -520,6 +564,9 @@ module Google
520
564
  # @param [Fixnum] if_metageneration_match
521
565
  # Makes the operation conditional on whether bucket's current metageneration
522
566
  # matches the given value.
567
+ # @param [String] provisional_user_project
568
+ # The project to be billed for this request if the target bucket is requester-
569
+ # pays bucket.
523
570
  # @param [String] user_project
524
571
  # The project to be billed for this request. Required for Requester Pays buckets.
525
572
  # @param [String] fields
@@ -541,12 +588,13 @@ module Google
541
588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
542
589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
543
590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
544
- def lock_bucket_retention_policy(bucket, if_metageneration_match, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
591
+ def lock_bucket_retention_policy(bucket, if_metageneration_match, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
545
592
  command = make_simple_command(:post, 'b/{bucket}/lockRetentionPolicy', options)
546
593
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
547
594
  command.response_class = Google::Apis::StorageV1::Bucket
548
595
  command.params['bucket'] = bucket unless bucket.nil?
549
596
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
597
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
550
598
  command.query['userProject'] = user_project unless user_project.nil?
551
599
  command.query['fields'] = fields unless fields.nil?
552
600
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -571,6 +619,9 @@ module Google
571
619
  # Apply a predefined set of default object access controls to this bucket.
572
620
  # @param [String] projection
573
621
  # Set of properties to return. Defaults to full.
622
+ # @param [String] provisional_user_project
623
+ # The project to be billed for this request if the target bucket is requester-
624
+ # pays bucket.
574
625
  # @param [String] user_project
575
626
  # The project to be billed for this request. Required for Requester Pays buckets.
576
627
  # @param [String] fields
@@ -592,7 +643,7 @@ module Google
592
643
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
593
644
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
594
645
  # @raise [Google::Apis::AuthorizationError] Authorization is required
595
- def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
646
+ def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
596
647
  command = make_simple_command(:patch, 'b/{bucket}', options)
597
648
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
598
649
  command.request_object = bucket_object
@@ -604,6 +655,7 @@ module Google
604
655
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
605
656
  command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
606
657
  command.query['projection'] = projection unless projection.nil?
658
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
607
659
  command.query['userProject'] = user_project unless user_project.nil?
608
660
  command.query['fields'] = fields unless fields.nil?
609
661
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -615,6 +667,9 @@ module Google
615
667
  # @param [String] bucket
616
668
  # Name of a bucket.
617
669
  # @param [Google::Apis::StorageV1::Policy] policy_object
670
+ # @param [String] provisional_user_project
671
+ # The project to be billed for this request if the target bucket is requester-
672
+ # pays bucket.
618
673
  # @param [String] user_project
619
674
  # The project to be billed for this request. Required for Requester Pays buckets.
620
675
  # @param [String] fields
@@ -636,13 +691,14 @@ module Google
636
691
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
637
692
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
638
693
  # @raise [Google::Apis::AuthorizationError] Authorization is required
639
- def set_bucket_iam_policy(bucket, policy_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
694
+ def set_bucket_iam_policy(bucket, policy_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
640
695
  command = make_simple_command(:put, 'b/{bucket}/iam', options)
641
696
  command.request_representation = Google::Apis::StorageV1::Policy::Representation
642
697
  command.request_object = policy_object
643
698
  command.response_representation = Google::Apis::StorageV1::Policy::Representation
644
699
  command.response_class = Google::Apis::StorageV1::Policy
645
700
  command.params['bucket'] = bucket unless bucket.nil?
701
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
646
702
  command.query['userProject'] = user_project unless user_project.nil?
647
703
  command.query['fields'] = fields unless fields.nil?
648
704
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -656,6 +712,9 @@ module Google
656
712
  # Name of a bucket.
657
713
  # @param [Array<String>, String] permissions
658
714
  # Permissions to test.
715
+ # @param [String] provisional_user_project
716
+ # The project to be billed for this request if the target bucket is requester-
717
+ # pays bucket.
659
718
  # @param [String] user_project
660
719
  # The project to be billed for this request. Required for Requester Pays buckets.
661
720
  # @param [String] fields
@@ -677,12 +736,13 @@ module Google
677
736
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
678
737
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
679
738
  # @raise [Google::Apis::AuthorizationError] Authorization is required
680
- def test_bucket_iam_permissions(bucket, permissions, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
739
+ def test_bucket_iam_permissions(bucket, permissions, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
681
740
  command = make_simple_command(:get, 'b/{bucket}/iam/testPermissions', options)
682
741
  command.response_representation = Google::Apis::StorageV1::TestIamPermissionsResponse::Representation
683
742
  command.response_class = Google::Apis::StorageV1::TestIamPermissionsResponse
684
743
  command.params['bucket'] = bucket unless bucket.nil?
685
744
  command.query['permissions'] = permissions unless permissions.nil?
745
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
686
746
  command.query['userProject'] = user_project unless user_project.nil?
687
747
  command.query['fields'] = fields unless fields.nil?
688
748
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -707,6 +767,9 @@ module Google
707
767
  # Apply a predefined set of default object access controls to this bucket.
708
768
  # @param [String] projection
709
769
  # Set of properties to return. Defaults to full.
770
+ # @param [String] provisional_user_project
771
+ # The project to be billed for this request if the target bucket is requester-
772
+ # pays bucket.
710
773
  # @param [String] user_project
711
774
  # The project to be billed for this request. Required for Requester Pays buckets.
712
775
  # @param [String] fields
@@ -728,7 +791,7 @@ module Google
728
791
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
792
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
793
  # @raise [Google::Apis::AuthorizationError] Authorization is required
731
- def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
794
+ def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
732
795
  command = make_simple_command(:put, 'b/{bucket}', options)
733
796
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
734
797
  command.request_object = bucket_object
@@ -740,6 +803,7 @@ module Google
740
803
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
741
804
  command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
742
805
  command.query['projection'] = projection unless projection.nil?
806
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
743
807
  command.query['userProject'] = user_project unless user_project.nil?
744
808
  command.query['fields'] = fields unless fields.nil?
745
809
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -785,6 +849,9 @@ module Google
785
849
  # @param [String] entity
786
850
  # The entity holding the permission. Can be user-userId, user-emailAddress,
787
851
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
852
+ # @param [String] provisional_user_project
853
+ # The project to be billed for this request if the target bucket is requester-
854
+ # pays bucket.
788
855
  # @param [String] user_project
789
856
  # The project to be billed for this request. Required for Requester Pays buckets.
790
857
  # @param [String] fields
@@ -806,10 +873,11 @@ module Google
806
873
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
874
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
875
  # @raise [Google::Apis::AuthorizationError] Authorization is required
809
- def delete_default_object_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
876
+ def delete_default_object_access_control(bucket, entity, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
810
877
  command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options)
811
878
  command.params['bucket'] = bucket unless bucket.nil?
812
879
  command.params['entity'] = entity unless entity.nil?
880
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
813
881
  command.query['userProject'] = user_project unless user_project.nil?
814
882
  command.query['fields'] = fields unless fields.nil?
815
883
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -824,6 +892,9 @@ module Google
824
892
  # @param [String] entity
825
893
  # The entity holding the permission. Can be user-userId, user-emailAddress,
826
894
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
895
+ # @param [String] provisional_user_project
896
+ # The project to be billed for this request if the target bucket is requester-
897
+ # pays bucket.
827
898
  # @param [String] user_project
828
899
  # The project to be billed for this request. Required for Requester Pays buckets.
829
900
  # @param [String] fields
@@ -845,12 +916,13 @@ module Google
845
916
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
846
917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
847
918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
848
- def get_default_object_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
919
+ def get_default_object_access_control(bucket, entity, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
849
920
  command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options)
850
921
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
851
922
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
852
923
  command.params['bucket'] = bucket unless bucket.nil?
853
924
  command.params['entity'] = entity unless entity.nil?
925
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
854
926
  command.query['userProject'] = user_project unless user_project.nil?
855
927
  command.query['fields'] = fields unless fields.nil?
856
928
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -862,6 +934,9 @@ module Google
862
934
  # @param [String] bucket
863
935
  # Name of a bucket.
864
936
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
937
+ # @param [String] provisional_user_project
938
+ # The project to be billed for this request if the target bucket is requester-
939
+ # pays bucket.
865
940
  # @param [String] user_project
866
941
  # The project to be billed for this request. Required for Requester Pays buckets.
867
942
  # @param [String] fields
@@ -883,13 +958,14 @@ module Google
883
958
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
959
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
960
  # @raise [Google::Apis::AuthorizationError] Authorization is required
886
- def insert_default_object_access_control(bucket, object_access_control_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
961
+ def insert_default_object_access_control(bucket, object_access_control_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
887
962
  command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options)
888
963
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
889
964
  command.request_object = object_access_control_object
890
965
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
891
966
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
892
967
  command.params['bucket'] = bucket unless bucket.nil?
968
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
893
969
  command.query['userProject'] = user_project unless user_project.nil?
894
970
  command.query['fields'] = fields unless fields.nil?
895
971
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -906,6 +982,9 @@ module Google
906
982
  # @param [Fixnum] if_metageneration_not_match
907
983
  # If present, only return default ACL listing if the bucket's current
908
984
  # metageneration does not match the given value.
985
+ # @param [String] provisional_user_project
986
+ # The project to be billed for this request if the target bucket is requester-
987
+ # pays bucket.
909
988
  # @param [String] user_project
910
989
  # The project to be billed for this request. Required for Requester Pays buckets.
911
990
  # @param [String] fields
@@ -927,13 +1006,14 @@ module Google
927
1006
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
1007
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
1008
  # @raise [Google::Apis::AuthorizationError] Authorization is required
930
- def list_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1009
+ def list_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
931
1010
  command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options)
932
1011
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
933
1012
  command.response_class = Google::Apis::StorageV1::ObjectAccessControls
934
1013
  command.params['bucket'] = bucket unless bucket.nil?
935
1014
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
936
1015
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1016
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
937
1017
  command.query['userProject'] = user_project unless user_project.nil?
938
1018
  command.query['fields'] = fields unless fields.nil?
939
1019
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -948,6 +1028,9 @@ module Google
948
1028
  # The entity holding the permission. Can be user-userId, user-emailAddress,
949
1029
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
950
1030
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
1031
+ # @param [String] provisional_user_project
1032
+ # The project to be billed for this request if the target bucket is requester-
1033
+ # pays bucket.
951
1034
  # @param [String] user_project
952
1035
  # The project to be billed for this request. Required for Requester Pays buckets.
953
1036
  # @param [String] fields
@@ -969,7 +1052,7 @@ module Google
969
1052
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
970
1053
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
971
1054
  # @raise [Google::Apis::AuthorizationError] Authorization is required
972
- def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1055
+ def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
973
1056
  command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options)
974
1057
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
975
1058
  command.request_object = object_access_control_object
@@ -977,6 +1060,7 @@ module Google
977
1060
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
978
1061
  command.params['bucket'] = bucket unless bucket.nil?
979
1062
  command.params['entity'] = entity unless entity.nil?
1063
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
980
1064
  command.query['userProject'] = user_project unless user_project.nil?
981
1065
  command.query['fields'] = fields unless fields.nil?
982
1066
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -991,6 +1075,9 @@ module Google
991
1075
  # The entity holding the permission. Can be user-userId, user-emailAddress,
992
1076
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
993
1077
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
1078
+ # @param [String] provisional_user_project
1079
+ # The project to be billed for this request if the target bucket is requester-
1080
+ # pays bucket.
994
1081
  # @param [String] user_project
995
1082
  # The project to be billed for this request. Required for Requester Pays buckets.
996
1083
  # @param [String] fields
@@ -1012,7 +1099,7 @@ module Google
1012
1099
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1013
1100
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1014
1101
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1015
- def update_default_object_access_control(bucket, entity, object_access_control_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1102
+ def update_default_object_access_control(bucket, entity, object_access_control_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1016
1103
  command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options)
1017
1104
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1018
1105
  command.request_object = object_access_control_object
@@ -1020,6 +1107,7 @@ module Google
1020
1107
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
1021
1108
  command.params['bucket'] = bucket unless bucket.nil?
1022
1109
  command.params['entity'] = entity unless entity.nil?
1110
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1023
1111
  command.query['userProject'] = user_project unless user_project.nil?
1024
1112
  command.query['fields'] = fields unless fields.nil?
1025
1113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1032,6 +1120,9 @@ module Google
1032
1120
  # The parent bucket of the notification.
1033
1121
  # @param [String] notification
1034
1122
  # ID of the notification to delete.
1123
+ # @param [String] provisional_user_project
1124
+ # The project to be billed for this request if the target bucket is requester-
1125
+ # pays bucket.
1035
1126
  # @param [String] user_project
1036
1127
  # The project to be billed for this request. Required for Requester Pays buckets.
1037
1128
  # @param [String] fields
@@ -1053,10 +1144,11 @@ module Google
1053
1144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
1145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
1146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
- def delete_notification(bucket, notification, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1147
+ def delete_notification(bucket, notification, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1057
1148
  command = make_simple_command(:delete, 'b/{bucket}/notificationConfigs/{notification}', options)
1058
1149
  command.params['bucket'] = bucket unless bucket.nil?
1059
1150
  command.params['notification'] = notification unless notification.nil?
1151
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1060
1152
  command.query['userProject'] = user_project unless user_project.nil?
1061
1153
  command.query['fields'] = fields unless fields.nil?
1062
1154
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1069,6 +1161,9 @@ module Google
1069
1161
  # The parent bucket of the notification.
1070
1162
  # @param [String] notification
1071
1163
  # Notification ID
1164
+ # @param [String] provisional_user_project
1165
+ # The project to be billed for this request if the target bucket is requester-
1166
+ # pays bucket.
1072
1167
  # @param [String] user_project
1073
1168
  # The project to be billed for this request. Required for Requester Pays buckets.
1074
1169
  # @param [String] fields
@@ -1090,12 +1185,13 @@ module Google
1090
1185
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1091
1186
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1092
1187
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1093
- def get_notification(bucket, notification, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1188
+ def get_notification(bucket, notification, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1094
1189
  command = make_simple_command(:get, 'b/{bucket}/notificationConfigs/{notification}', options)
1095
1190
  command.response_representation = Google::Apis::StorageV1::Notification::Representation
1096
1191
  command.response_class = Google::Apis::StorageV1::Notification
1097
1192
  command.params['bucket'] = bucket unless bucket.nil?
1098
1193
  command.params['notification'] = notification unless notification.nil?
1194
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1099
1195
  command.query['userProject'] = user_project unless user_project.nil?
1100
1196
  command.query['fields'] = fields unless fields.nil?
1101
1197
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1107,6 +1203,9 @@ module Google
1107
1203
  # @param [String] bucket
1108
1204
  # The parent bucket of the notification.
1109
1205
  # @param [Google::Apis::StorageV1::Notification] notification_object
1206
+ # @param [String] provisional_user_project
1207
+ # The project to be billed for this request if the target bucket is requester-
1208
+ # pays bucket.
1110
1209
  # @param [String] user_project
1111
1210
  # The project to be billed for this request. Required for Requester Pays buckets.
1112
1211
  # @param [String] fields
@@ -1128,13 +1227,14 @@ module Google
1128
1227
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1129
1228
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1130
1229
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1131
- def insert_notification(bucket, notification_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1230
+ def insert_notification(bucket, notification_object = nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1132
1231
  command = make_simple_command(:post, 'b/{bucket}/notificationConfigs', options)
1133
1232
  command.request_representation = Google::Apis::StorageV1::Notification::Representation
1134
1233
  command.request_object = notification_object
1135
1234
  command.response_representation = Google::Apis::StorageV1::Notification::Representation
1136
1235
  command.response_class = Google::Apis::StorageV1::Notification
1137
1236
  command.params['bucket'] = bucket unless bucket.nil?
1237
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1138
1238
  command.query['userProject'] = user_project unless user_project.nil?
1139
1239
  command.query['fields'] = fields unless fields.nil?
1140
1240
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1145,6 +1245,9 @@ module Google
1145
1245
  # Retrieves a list of notification subscriptions for a given bucket.
1146
1246
  # @param [String] bucket
1147
1247
  # Name of a Google Cloud Storage bucket.
1248
+ # @param [String] provisional_user_project
1249
+ # The project to be billed for this request if the target bucket is requester-
1250
+ # pays bucket.
1148
1251
  # @param [String] user_project
1149
1252
  # The project to be billed for this request. Required for Requester Pays buckets.
1150
1253
  # @param [String] fields
@@ -1166,11 +1269,12 @@ module Google
1166
1269
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1167
1270
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1168
1271
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1169
- def list_notifications(bucket, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1272
+ def list_notifications(bucket, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1170
1273
  command = make_simple_command(:get, 'b/{bucket}/notificationConfigs', options)
1171
1274
  command.response_representation = Google::Apis::StorageV1::Notifications::Representation
1172
1275
  command.response_class = Google::Apis::StorageV1::Notifications
1173
1276
  command.params['bucket'] = bucket unless bucket.nil?
1277
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1174
1278
  command.query['userProject'] = user_project unless user_project.nil?
1175
1279
  command.query['fields'] = fields unless fields.nil?
1176
1280
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1191,6 +1295,9 @@ module Google
1191
1295
  # @param [Fixnum] generation
1192
1296
  # If present, selects a specific revision of this object (as opposed to the
1193
1297
  # latest version, the default).
1298
+ # @param [String] provisional_user_project
1299
+ # The project to be billed for this request if the target bucket is requester-
1300
+ # pays bucket.
1194
1301
  # @param [String] user_project
1195
1302
  # The project to be billed for this request. Required for Requester Pays buckets.
1196
1303
  # @param [String] fields
@@ -1212,12 +1319,13 @@ module Google
1212
1319
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1213
1320
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1214
1321
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1215
- def delete_object_access_control(bucket, object, entity, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1322
+ def delete_object_access_control(bucket, object, entity, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1216
1323
  command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options)
1217
1324
  command.params['bucket'] = bucket unless bucket.nil?
1218
1325
  command.params['object'] = object unless object.nil?
1219
1326
  command.params['entity'] = entity unless entity.nil?
1220
1327
  command.query['generation'] = generation unless generation.nil?
1328
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1221
1329
  command.query['userProject'] = user_project unless user_project.nil?
1222
1330
  command.query['fields'] = fields unless fields.nil?
1223
1331
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1237,6 +1345,9 @@ module Google
1237
1345
  # @param [Fixnum] generation
1238
1346
  # If present, selects a specific revision of this object (as opposed to the
1239
1347
  # latest version, the default).
1348
+ # @param [String] provisional_user_project
1349
+ # The project to be billed for this request if the target bucket is requester-
1350
+ # pays bucket.
1240
1351
  # @param [String] user_project
1241
1352
  # The project to be billed for this request. Required for Requester Pays buckets.
1242
1353
  # @param [String] fields
@@ -1258,7 +1369,7 @@ module Google
1258
1369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1259
1370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1260
1371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1261
- def get_object_access_control(bucket, object, entity, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1372
+ def get_object_access_control(bucket, object, entity, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1262
1373
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options)
1263
1374
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1264
1375
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
@@ -1266,6 +1377,7 @@ module Google
1266
1377
  command.params['object'] = object unless object.nil?
1267
1378
  command.params['entity'] = entity unless entity.nil?
1268
1379
  command.query['generation'] = generation unless generation.nil?
1380
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1269
1381
  command.query['userProject'] = user_project unless user_project.nil?
1270
1382
  command.query['fields'] = fields unless fields.nil?
1271
1383
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1283,6 +1395,9 @@ module Google
1283
1395
  # @param [Fixnum] generation
1284
1396
  # If present, selects a specific revision of this object (as opposed to the
1285
1397
  # latest version, the default).
1398
+ # @param [String] provisional_user_project
1399
+ # The project to be billed for this request if the target bucket is requester-
1400
+ # pays bucket.
1286
1401
  # @param [String] user_project
1287
1402
  # The project to be billed for this request. Required for Requester Pays buckets.
1288
1403
  # @param [String] fields
@@ -1304,7 +1419,7 @@ module Google
1304
1419
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1305
1420
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1306
1421
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1307
- def insert_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1422
+ def insert_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1308
1423
  command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options)
1309
1424
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1310
1425
  command.request_object = object_access_control_object
@@ -1313,6 +1428,7 @@ module Google
1313
1428
  command.params['bucket'] = bucket unless bucket.nil?
1314
1429
  command.params['object'] = object unless object.nil?
1315
1430
  command.query['generation'] = generation unless generation.nil?
1431
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1316
1432
  command.query['userProject'] = user_project unless user_project.nil?
1317
1433
  command.query['fields'] = fields unless fields.nil?
1318
1434
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1329,6 +1445,9 @@ module Google
1329
1445
  # @param [Fixnum] generation
1330
1446
  # If present, selects a specific revision of this object (as opposed to the
1331
1447
  # latest version, the default).
1448
+ # @param [String] provisional_user_project
1449
+ # The project to be billed for this request if the target bucket is requester-
1450
+ # pays bucket.
1332
1451
  # @param [String] user_project
1333
1452
  # The project to be billed for this request. Required for Requester Pays buckets.
1334
1453
  # @param [String] fields
@@ -1350,13 +1469,14 @@ module Google
1350
1469
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1351
1470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1352
1471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1353
- def list_object_access_controls(bucket, object, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1472
+ def list_object_access_controls(bucket, object, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1354
1473
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options)
1355
1474
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
1356
1475
  command.response_class = Google::Apis::StorageV1::ObjectAccessControls
1357
1476
  command.params['bucket'] = bucket unless bucket.nil?
1358
1477
  command.params['object'] = object unless object.nil?
1359
1478
  command.query['generation'] = generation unless generation.nil?
1479
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1360
1480
  command.query['userProject'] = user_project unless user_project.nil?
1361
1481
  command.query['fields'] = fields unless fields.nil?
1362
1482
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1377,6 +1497,9 @@ module Google
1377
1497
  # @param [Fixnum] generation
1378
1498
  # If present, selects a specific revision of this object (as opposed to the
1379
1499
  # latest version, the default).
1500
+ # @param [String] provisional_user_project
1501
+ # The project to be billed for this request if the target bucket is requester-
1502
+ # pays bucket.
1380
1503
  # @param [String] user_project
1381
1504
  # The project to be billed for this request. Required for Requester Pays buckets.
1382
1505
  # @param [String] fields
@@ -1398,7 +1521,7 @@ module Google
1398
1521
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1399
1522
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1400
1523
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1401
- def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1524
+ def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1402
1525
  command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options)
1403
1526
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1404
1527
  command.request_object = object_access_control_object
@@ -1408,6 +1531,7 @@ module Google
1408
1531
  command.params['object'] = object unless object.nil?
1409
1532
  command.params['entity'] = entity unless entity.nil?
1410
1533
  command.query['generation'] = generation unless generation.nil?
1534
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1411
1535
  command.query['userProject'] = user_project unless user_project.nil?
1412
1536
  command.query['fields'] = fields unless fields.nil?
1413
1537
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1428,6 +1552,9 @@ module Google
1428
1552
  # @param [Fixnum] generation
1429
1553
  # If present, selects a specific revision of this object (as opposed to the
1430
1554
  # latest version, the default).
1555
+ # @param [String] provisional_user_project
1556
+ # The project to be billed for this request if the target bucket is requester-
1557
+ # pays bucket.
1431
1558
  # @param [String] user_project
1432
1559
  # The project to be billed for this request. Required for Requester Pays buckets.
1433
1560
  # @param [String] fields
@@ -1449,7 +1576,7 @@ module Google
1449
1576
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1450
1577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1451
1578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1452
- def update_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1579
+ def update_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1453
1580
  command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options)
1454
1581
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1455
1582
  command.request_object = object_access_control_object
@@ -1459,6 +1586,7 @@ module Google
1459
1586
  command.params['object'] = object unless object.nil?
1460
1587
  command.params['entity'] = entity unless entity.nil?
1461
1588
  command.query['generation'] = generation unless generation.nil?
1589
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1462
1590
  command.query['userProject'] = user_project unless user_project.nil?
1463
1591
  command.query['fields'] = fields unless fields.nil?
1464
1592
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1487,6 +1615,9 @@ module Google
1487
1615
  # Resource name of the Cloud KMS key, of the form projects/my-project/locations/
1488
1616
  # global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
1489
1617
  # object. Overrides the object metadata's kms_key_name value, if any.
1618
+ # @param [String] provisional_user_project
1619
+ # The project to be billed for this request if the target bucket is requester-
1620
+ # pays bucket.
1490
1621
  # @param [String] user_project
1491
1622
  # The project to be billed for this request. Required for Requester Pays buckets.
1492
1623
  # @param [String] fields
@@ -1508,7 +1639,7 @@ module Google
1508
1639
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1509
1640
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1510
1641
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1511
- def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1642
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1512
1643
  command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1513
1644
  command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
1514
1645
  command.request_object = compose_request_object
@@ -1520,6 +1651,7 @@ module Google
1520
1651
  command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1521
1652
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1522
1653
  command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
1654
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1523
1655
  command.query['userProject'] = user_project unless user_project.nil?
1524
1656
  command.query['fields'] = fields unless fields.nil?
1525
1657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1573,6 +1705,9 @@ module Google
1573
1705
  # @param [String] projection
1574
1706
  # Set of properties to return. Defaults to noAcl, unless the object resource
1575
1707
  # specifies the acl property, when it defaults to full.
1708
+ # @param [String] provisional_user_project
1709
+ # The project to be billed for this request if the target bucket is requester-
1710
+ # pays bucket.
1576
1711
  # @param [Fixnum] source_generation
1577
1712
  # If present, selects a specific revision of the source object (as opposed to
1578
1713
  # the latest version, the default).
@@ -1597,7 +1732,7 @@ module Google
1597
1732
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1598
1733
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1599
1734
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1600
- def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1735
+ def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, provisional_user_project: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1601
1736
  command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1602
1737
  command.request_representation = Google::Apis::StorageV1::Object::Representation
1603
1738
  command.request_object = object_object
@@ -1617,6 +1752,7 @@ module Google
1617
1752
  command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
1618
1753
  command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
1619
1754
  command.query['projection'] = projection unless projection.nil?
1755
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1620
1756
  command.query['sourceGeneration'] = source_generation unless source_generation.nil?
1621
1757
  command.query['userProject'] = user_project unless user_project.nil?
1622
1758
  command.query['fields'] = fields unless fields.nil?
@@ -1650,6 +1786,9 @@ module Google
1650
1786
  # @param [Fixnum] if_metageneration_not_match
1651
1787
  # Makes the operation conditional on whether the object's current metageneration
1652
1788
  # does not match the given value.
1789
+ # @param [String] provisional_user_project
1790
+ # The project to be billed for this request if the target bucket is requester-
1791
+ # pays bucket.
1653
1792
  # @param [String] user_project
1654
1793
  # The project to be billed for this request. Required for Requester Pays buckets.
1655
1794
  # @param [String] fields
@@ -1671,7 +1810,7 @@ module Google
1671
1810
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1672
1811
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1673
1812
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1674
- 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1813
+ 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, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1675
1814
  command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options)
1676
1815
  command.params['bucket'] = bucket unless bucket.nil?
1677
1816
  command.params['object'] = object unless object.nil?
@@ -1680,6 +1819,7 @@ module Google
1680
1819
  command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1681
1820
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1682
1821
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1822
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1683
1823
  command.query['userProject'] = user_project unless user_project.nil?
1684
1824
  command.query['fields'] = fields unless fields.nil?
1685
1825
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1713,6 +1853,9 @@ module Google
1713
1853
  # does not match the given value.
1714
1854
  # @param [String] projection
1715
1855
  # Set of properties to return. Defaults to noAcl.
1856
+ # @param [String] provisional_user_project
1857
+ # The project to be billed for this request if the target bucket is requester-
1858
+ # pays bucket.
1716
1859
  # @param [String] user_project
1717
1860
  # The project to be billed for this request. Required for Requester Pays buckets.
1718
1861
  # @param [String] fields
@@ -1736,7 +1879,7 @@ module Google
1736
1879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1737
1880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1738
1881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1739
- 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1882
+ 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, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1740
1883
  if download_dest.nil?
1741
1884
  command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
1742
1885
  else
@@ -1753,6 +1896,7 @@ module Google
1753
1896
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1754
1897
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1755
1898
  command.query['projection'] = projection unless projection.nil?
1899
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1756
1900
  command.query['userProject'] = user_project unless user_project.nil?
1757
1901
  command.query['fields'] = fields unless fields.nil?
1758
1902
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1769,6 +1913,9 @@ module Google
1769
1913
  # @param [Fixnum] generation
1770
1914
  # If present, selects a specific revision of this object (as opposed to the
1771
1915
  # latest version, the default).
1916
+ # @param [String] provisional_user_project
1917
+ # The project to be billed for this request if the target bucket is requester-
1918
+ # pays bucket.
1772
1919
  # @param [String] user_project
1773
1920
  # The project to be billed for this request. Required for Requester Pays buckets.
1774
1921
  # @param [String] fields
@@ -1790,13 +1937,14 @@ module Google
1790
1937
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1791
1938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1792
1939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1793
- def get_object_iam_policy(bucket, object, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1940
+ def get_object_iam_policy(bucket, object, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1794
1941
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/iam', options)
1795
1942
  command.response_representation = Google::Apis::StorageV1::Policy::Representation
1796
1943
  command.response_class = Google::Apis::StorageV1::Policy
1797
1944
  command.params['bucket'] = bucket unless bucket.nil?
1798
1945
  command.params['object'] = object unless object.nil?
1799
1946
  command.query['generation'] = generation unless generation.nil?
1947
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1800
1948
  command.query['userProject'] = user_project unless user_project.nil?
1801
1949
  command.query['fields'] = fields unless fields.nil?
1802
1950
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1843,6 +1991,9 @@ module Google
1843
1991
  # @param [String] projection
1844
1992
  # Set of properties to return. Defaults to noAcl, unless the object resource
1845
1993
  # specifies the acl property, when it defaults to full.
1994
+ # @param [String] provisional_user_project
1995
+ # The project to be billed for this request if the target bucket is requester-
1996
+ # pays bucket.
1846
1997
  # @param [String] user_project
1847
1998
  # The project to be billed for this request. Required for Requester Pays buckets.
1848
1999
  # @param [String] fields
@@ -1868,7 +2019,7 @@ module Google
1868
2019
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1869
2020
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1870
2021
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1871
- def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, kms_key_name: nil, name: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
2022
+ def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, kms_key_name: nil, name: nil, predefined_acl: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1872
2023
  if upload_source.nil?
1873
2024
  command = make_simple_command(:post, 'b/{bucket}/o', options)
1874
2025
  else
@@ -1890,6 +2041,7 @@ module Google
1890
2041
  command.query['name'] = name unless name.nil?
1891
2042
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1892
2043
  command.query['projection'] = projection unless projection.nil?
2044
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1893
2045
  command.query['userProject'] = user_project unless user_project.nil?
1894
2046
  command.query['fields'] = fields unless fields.nil?
1895
2047
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1921,6 +2073,9 @@ module Google
1921
2073
  # Filter results to objects whose names begin with this prefix.
1922
2074
  # @param [String] projection
1923
2075
  # Set of properties to return. Defaults to noAcl.
2076
+ # @param [String] provisional_user_project
2077
+ # The project to be billed for this request if the target bucket is requester-
2078
+ # pays bucket.
1924
2079
  # @param [String] user_project
1925
2080
  # The project to be billed for this request. Required for Requester Pays buckets.
1926
2081
  # @param [Boolean] versions
@@ -1945,7 +2100,7 @@ module Google
1945
2100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1946
2101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1947
2102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1948
- def list_objects(bucket, delimiter: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2103
+ def list_objects(bucket, delimiter: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, provisional_user_project: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1949
2104
  command = make_simple_command(:get, 'b/{bucket}/o', options)
1950
2105
  command.response_representation = Google::Apis::StorageV1::Objects::Representation
1951
2106
  command.response_class = Google::Apis::StorageV1::Objects
@@ -1956,6 +2111,7 @@ module Google
1956
2111
  command.query['pageToken'] = page_token unless page_token.nil?
1957
2112
  command.query['prefix'] = prefix unless prefix.nil?
1958
2113
  command.query['projection'] = projection unless projection.nil?
2114
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
1959
2115
  command.query['userProject'] = user_project unless user_project.nil?
1960
2116
  command.query['versions'] = versions unless versions.nil?
1961
2117
  command.query['fields'] = fields unless fields.nil?
@@ -1993,6 +2149,9 @@ module Google
1993
2149
  # Apply a predefined set of access controls to this object.
1994
2150
  # @param [String] projection
1995
2151
  # Set of properties to return. Defaults to full.
2152
+ # @param [String] provisional_user_project
2153
+ # The project to be billed for this request if the target bucket is requester-
2154
+ # pays bucket.
1996
2155
  # @param [String] user_project
1997
2156
  # The project to be billed for this request, for Requester Pays buckets.
1998
2157
  # @param [String] fields
@@ -2014,7 +2173,7 @@ module Google
2014
2173
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2015
2174
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2016
2175
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2017
- def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2176
+ def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2018
2177
  command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
2019
2178
  command.request_representation = Google::Apis::StorageV1::Object::Representation
2020
2179
  command.request_object = object_object
@@ -2029,6 +2188,7 @@ module Google
2029
2188
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
2030
2189
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
2031
2190
  command.query['projection'] = projection unless projection.nil?
2191
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2032
2192
  command.query['userProject'] = user_project unless user_project.nil?
2033
2193
  command.query['fields'] = fields unless fields.nil?
2034
2194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2095,6 +2255,9 @@ module Google
2095
2255
  # @param [String] projection
2096
2256
  # Set of properties to return. Defaults to noAcl, unless the object resource
2097
2257
  # specifies the acl property, when it defaults to full.
2258
+ # @param [String] provisional_user_project
2259
+ # The project to be billed for this request if the target bucket is requester-
2260
+ # pays bucket.
2098
2261
  # @param [String] rewrite_token
2099
2262
  # Include this field (from the previous rewrite response) on each rewrite
2100
2263
  # request after the first one, until the rewrite response 'done' flag is true.
@@ -2125,7 +2288,7 @@ module Google
2125
2288
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2126
2289
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2127
2290
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2128
- def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2291
+ def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, provisional_user_project: nil, rewrite_token: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2129
2292
  command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
2130
2293
  command.request_representation = Google::Apis::StorageV1::Object::Representation
2131
2294
  command.request_object = object_object
@@ -2147,6 +2310,7 @@ module Google
2147
2310
  command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
2148
2311
  command.query['maxBytesRewrittenPerCall'] = max_bytes_rewritten_per_call unless max_bytes_rewritten_per_call.nil?
2149
2312
  command.query['projection'] = projection unless projection.nil?
2313
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2150
2314
  command.query['rewriteToken'] = rewrite_token unless rewrite_token.nil?
2151
2315
  command.query['sourceGeneration'] = source_generation unless source_generation.nil?
2152
2316
  command.query['userProject'] = user_project unless user_project.nil?
@@ -2166,6 +2330,9 @@ module Google
2166
2330
  # @param [Fixnum] generation
2167
2331
  # If present, selects a specific revision of this object (as opposed to the
2168
2332
  # latest version, the default).
2333
+ # @param [String] provisional_user_project
2334
+ # The project to be billed for this request if the target bucket is requester-
2335
+ # pays bucket.
2169
2336
  # @param [String] user_project
2170
2337
  # The project to be billed for this request. Required for Requester Pays buckets.
2171
2338
  # @param [String] fields
@@ -2187,7 +2354,7 @@ module Google
2187
2354
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2188
2355
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2189
2356
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2190
- def set_object_iam_policy(bucket, object, policy_object = nil, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2357
+ def set_object_iam_policy(bucket, object, policy_object = nil, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2191
2358
  command = make_simple_command(:put, 'b/{bucket}/o/{object}/iam', options)
2192
2359
  command.request_representation = Google::Apis::StorageV1::Policy::Representation
2193
2360
  command.request_object = policy_object
@@ -2196,6 +2363,7 @@ module Google
2196
2363
  command.params['bucket'] = bucket unless bucket.nil?
2197
2364
  command.params['object'] = object unless object.nil?
2198
2365
  command.query['generation'] = generation unless generation.nil?
2366
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2199
2367
  command.query['userProject'] = user_project unless user_project.nil?
2200
2368
  command.query['fields'] = fields unless fields.nil?
2201
2369
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2215,6 +2383,9 @@ module Google
2215
2383
  # @param [Fixnum] generation
2216
2384
  # If present, selects a specific revision of this object (as opposed to the
2217
2385
  # latest version, the default).
2386
+ # @param [String] provisional_user_project
2387
+ # The project to be billed for this request if the target bucket is requester-
2388
+ # pays bucket.
2218
2389
  # @param [String] user_project
2219
2390
  # The project to be billed for this request. Required for Requester Pays buckets.
2220
2391
  # @param [String] fields
@@ -2236,7 +2407,7 @@ module Google
2236
2407
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2237
2408
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2238
2409
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2239
- def test_object_iam_permissions(bucket, object, permissions, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2410
+ def test_object_iam_permissions(bucket, object, permissions, generation: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2240
2411
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/iam/testPermissions', options)
2241
2412
  command.response_representation = Google::Apis::StorageV1::TestIamPermissionsResponse::Representation
2242
2413
  command.response_class = Google::Apis::StorageV1::TestIamPermissionsResponse
@@ -2244,6 +2415,7 @@ module Google
2244
2415
  command.params['object'] = object unless object.nil?
2245
2416
  command.query['generation'] = generation unless generation.nil?
2246
2417
  command.query['permissions'] = permissions unless permissions.nil?
2418
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2247
2419
  command.query['userProject'] = user_project unless user_project.nil?
2248
2420
  command.query['fields'] = fields unless fields.nil?
2249
2421
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2280,6 +2452,9 @@ module Google
2280
2452
  # Apply a predefined set of access controls to this object.
2281
2453
  # @param [String] projection
2282
2454
  # Set of properties to return. Defaults to full.
2455
+ # @param [String] provisional_user_project
2456
+ # The project to be billed for this request if the target bucket is requester-
2457
+ # pays bucket.
2283
2458
  # @param [String] user_project
2284
2459
  # The project to be billed for this request. Required for Requester Pays buckets.
2285
2460
  # @param [String] fields
@@ -2301,7 +2476,7 @@ module Google
2301
2476
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2302
2477
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2303
2478
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2304
- def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2479
+ def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2305
2480
  command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
2306
2481
  command.request_representation = Google::Apis::StorageV1::Object::Representation
2307
2482
  command.request_object = object_object
@@ -2316,6 +2491,7 @@ module Google
2316
2491
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
2317
2492
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
2318
2493
  command.query['projection'] = projection unless projection.nil?
2494
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2319
2495
  command.query['userProject'] = user_project unless user_project.nil?
2320
2496
  command.query['fields'] = fields unless fields.nil?
2321
2497
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2348,6 +2524,9 @@ module Google
2348
2524
  # Filter results to objects whose names begin with this prefix.
2349
2525
  # @param [String] projection
2350
2526
  # Set of properties to return. Defaults to noAcl.
2527
+ # @param [String] provisional_user_project
2528
+ # The project to be billed for this request if the target bucket is requester-
2529
+ # pays bucket.
2351
2530
  # @param [String] user_project
2352
2531
  # The project to be billed for this request. Required for Requester Pays buckets.
2353
2532
  # @param [Boolean] versions
@@ -2372,7 +2551,7 @@ module Google
2372
2551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2373
2552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2374
2553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2375
- def watch_all_objects(bucket, channel_object = nil, delimiter: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2554
+ def watch_all_objects(bucket, channel_object = nil, delimiter: nil, include_trailing_delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, provisional_user_project: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2376
2555
  command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
2377
2556
  command.request_representation = Google::Apis::StorageV1::Channel::Representation
2378
2557
  command.request_object = channel_object
@@ -2385,6 +2564,7 @@ module Google
2385
2564
  command.query['pageToken'] = page_token unless page_token.nil?
2386
2565
  command.query['prefix'] = prefix unless prefix.nil?
2387
2566
  command.query['projection'] = projection unless projection.nil?
2567
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2388
2568
  command.query['userProject'] = user_project unless user_project.nil?
2389
2569
  command.query['versions'] = versions unless versions.nil?
2390
2570
  command.query['fields'] = fields unless fields.nil?
@@ -2393,9 +2573,223 @@ module Google
2393
2573
  execute_or_queue_command(command, &block)
2394
2574
  end
2395
2575
 
2576
+ # Creates a new HMAC key for the specified service account.
2577
+ # @param [String] project_id
2578
+ # Project ID owning the service account.
2579
+ # @param [String] service_account_email
2580
+ # Email address of the service account.
2581
+ # @param [String] user_project
2582
+ # The project to be billed for this request.
2583
+ # @param [String] fields
2584
+ # Selector specifying which fields to include in a partial response.
2585
+ # @param [String] quota_user
2586
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2587
+ # characters.
2588
+ # @param [String] user_ip
2589
+ # Deprecated. Please use quotaUser instead.
2590
+ # @param [Google::Apis::RequestOptions] options
2591
+ # Request-specific options
2592
+ #
2593
+ # @yield [result, err] Result & error if block supplied
2594
+ # @yieldparam result [Google::Apis::StorageV1::HmacKey] parsed result object
2595
+ # @yieldparam err [StandardError] error object if request failed
2596
+ #
2597
+ # @return [Google::Apis::StorageV1::HmacKey]
2598
+ #
2599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2602
+ def create_project_hmac_key(project_id, service_account_email, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2603
+ command = make_simple_command(:post, 'projects/{projectId}/hmacKeys', options)
2604
+ command.response_representation = Google::Apis::StorageV1::HmacKey::Representation
2605
+ command.response_class = Google::Apis::StorageV1::HmacKey
2606
+ command.params['projectId'] = project_id unless project_id.nil?
2607
+ command.query['serviceAccountEmail'] = service_account_email unless service_account_email.nil?
2608
+ command.query['userProject'] = user_project unless user_project.nil?
2609
+ command.query['fields'] = fields unless fields.nil?
2610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2611
+ command.query['userIp'] = user_ip unless user_ip.nil?
2612
+ execute_or_queue_command(command, &block)
2613
+ end
2614
+
2615
+ # Deletes an HMAC key.
2616
+ # @param [String] project_id
2617
+ # Project ID owning the requested key
2618
+ # @param [String] access_id
2619
+ # Name of the HMAC key to be deleted.
2620
+ # @param [String] user_project
2621
+ # The project to be billed for this request.
2622
+ # @param [String] fields
2623
+ # Selector specifying which fields to include in a partial response.
2624
+ # @param [String] quota_user
2625
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2626
+ # characters.
2627
+ # @param [String] user_ip
2628
+ # Deprecated. Please use quotaUser instead.
2629
+ # @param [Google::Apis::RequestOptions] options
2630
+ # Request-specific options
2631
+ #
2632
+ # @yield [result, err] Result & error if block supplied
2633
+ # @yieldparam result [NilClass] No result returned for this method
2634
+ # @yieldparam err [StandardError] error object if request failed
2635
+ #
2636
+ # @return [void]
2637
+ #
2638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2641
+ def delete_project_hmac_key(project_id, access_id, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2642
+ command = make_simple_command(:delete, 'projects/{projectId}/hmacKeys/{accessId}', options)
2643
+ command.params['projectId'] = project_id unless project_id.nil?
2644
+ command.params['accessId'] = access_id unless access_id.nil?
2645
+ command.query['userProject'] = user_project unless user_project.nil?
2646
+ command.query['fields'] = fields unless fields.nil?
2647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2648
+ command.query['userIp'] = user_ip unless user_ip.nil?
2649
+ execute_or_queue_command(command, &block)
2650
+ end
2651
+
2652
+ # Retrieves an HMAC key's metadata
2653
+ # @param [String] project_id
2654
+ # Project ID owning the service account of the requested key.
2655
+ # @param [String] access_id
2656
+ # Name of the HMAC key.
2657
+ # @param [String] user_project
2658
+ # The project to be billed for this request.
2659
+ # @param [String] fields
2660
+ # Selector specifying which fields to include in a partial response.
2661
+ # @param [String] quota_user
2662
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2663
+ # characters.
2664
+ # @param [String] user_ip
2665
+ # Deprecated. Please use quotaUser instead.
2666
+ # @param [Google::Apis::RequestOptions] options
2667
+ # Request-specific options
2668
+ #
2669
+ # @yield [result, err] Result & error if block supplied
2670
+ # @yieldparam result [Google::Apis::StorageV1::HmacKeyMetadata] parsed result object
2671
+ # @yieldparam err [StandardError] error object if request failed
2672
+ #
2673
+ # @return [Google::Apis::StorageV1::HmacKeyMetadata]
2674
+ #
2675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2678
+ def get_project_hmac_key(project_id, access_id, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2679
+ command = make_simple_command(:get, 'projects/{projectId}/hmacKeys/{accessId}', options)
2680
+ command.response_representation = Google::Apis::StorageV1::HmacKeyMetadata::Representation
2681
+ command.response_class = Google::Apis::StorageV1::HmacKeyMetadata
2682
+ command.params['projectId'] = project_id unless project_id.nil?
2683
+ command.params['accessId'] = access_id unless access_id.nil?
2684
+ command.query['userProject'] = user_project unless user_project.nil?
2685
+ command.query['fields'] = fields unless fields.nil?
2686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2687
+ command.query['userIp'] = user_ip unless user_ip.nil?
2688
+ execute_or_queue_command(command, &block)
2689
+ end
2690
+
2691
+ # Retrieves a list of HMAC keys matching the criteria.
2692
+ # @param [String] project_id
2693
+ # Name of the project in which to look for HMAC keys.
2694
+ # @param [Fixnum] max_results
2695
+ # Maximum number of items to return in a single page of responses. The service
2696
+ # uses this parameter or 250 items, whichever is smaller. The max number of
2697
+ # items per page will also be limited by the number of distinct service accounts
2698
+ # in the response. If the number of service accounts in a single response is too
2699
+ # high, the page will truncated and a next page token will be returned.
2700
+ # @param [String] page_token
2701
+ # A previously-returned page token representing part of the larger set of
2702
+ # results to view.
2703
+ # @param [String] service_account_email
2704
+ # If present, only keys for the given service account are returned.
2705
+ # @param [Boolean] show_deleted_keys
2706
+ # Whether or not to show keys in the DELETED state.
2707
+ # @param [String] user_project
2708
+ # The project to be billed for this request.
2709
+ # @param [String] fields
2710
+ # Selector specifying which fields to include in a partial response.
2711
+ # @param [String] quota_user
2712
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2713
+ # characters.
2714
+ # @param [String] user_ip
2715
+ # Deprecated. Please use quotaUser instead.
2716
+ # @param [Google::Apis::RequestOptions] options
2717
+ # Request-specific options
2718
+ #
2719
+ # @yield [result, err] Result & error if block supplied
2720
+ # @yieldparam result [Google::Apis::StorageV1::HmacKeysMetadata] parsed result object
2721
+ # @yieldparam err [StandardError] error object if request failed
2722
+ #
2723
+ # @return [Google::Apis::StorageV1::HmacKeysMetadata]
2724
+ #
2725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2728
+ def list_project_hmac_keys(project_id, max_results: nil, page_token: nil, service_account_email: nil, show_deleted_keys: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2729
+ command = make_simple_command(:get, 'projects/{projectId}/hmacKeys', options)
2730
+ command.response_representation = Google::Apis::StorageV1::HmacKeysMetadata::Representation
2731
+ command.response_class = Google::Apis::StorageV1::HmacKeysMetadata
2732
+ command.params['projectId'] = project_id unless project_id.nil?
2733
+ command.query['maxResults'] = max_results unless max_results.nil?
2734
+ command.query['pageToken'] = page_token unless page_token.nil?
2735
+ command.query['serviceAccountEmail'] = service_account_email unless service_account_email.nil?
2736
+ command.query['showDeletedKeys'] = show_deleted_keys unless show_deleted_keys.nil?
2737
+ command.query['userProject'] = user_project unless user_project.nil?
2738
+ command.query['fields'] = fields unless fields.nil?
2739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2740
+ command.query['userIp'] = user_ip unless user_ip.nil?
2741
+ execute_or_queue_command(command, &block)
2742
+ end
2743
+
2744
+ # Updates the state of an HMAC key. See the HMAC Key resource descriptor for
2745
+ # valid states.
2746
+ # @param [String] project_id
2747
+ # Project ID owning the service account of the updated key.
2748
+ # @param [String] access_id
2749
+ # Name of the HMAC key being updated.
2750
+ # @param [Google::Apis::StorageV1::HmacKeyMetadata] hmac_key_metadata_object
2751
+ # @param [String] user_project
2752
+ # The project to be billed for this request.
2753
+ # @param [String] fields
2754
+ # Selector specifying which fields to include in a partial response.
2755
+ # @param [String] quota_user
2756
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2757
+ # characters.
2758
+ # @param [String] user_ip
2759
+ # Deprecated. Please use quotaUser instead.
2760
+ # @param [Google::Apis::RequestOptions] options
2761
+ # Request-specific options
2762
+ #
2763
+ # @yield [result, err] Result & error if block supplied
2764
+ # @yieldparam result [Google::Apis::StorageV1::HmacKeyMetadata] parsed result object
2765
+ # @yieldparam err [StandardError] error object if request failed
2766
+ #
2767
+ # @return [Google::Apis::StorageV1::HmacKeyMetadata]
2768
+ #
2769
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2770
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2771
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2772
+ def update_project_hmac_key(project_id, access_id, hmac_key_metadata_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2773
+ command = make_simple_command(:put, 'projects/{projectId}/hmacKeys/{accessId}', options)
2774
+ command.request_representation = Google::Apis::StorageV1::HmacKeyMetadata::Representation
2775
+ command.request_object = hmac_key_metadata_object
2776
+ command.response_representation = Google::Apis::StorageV1::HmacKeyMetadata::Representation
2777
+ command.response_class = Google::Apis::StorageV1::HmacKeyMetadata
2778
+ command.params['projectId'] = project_id unless project_id.nil?
2779
+ command.params['accessId'] = access_id unless access_id.nil?
2780
+ command.query['userProject'] = user_project unless user_project.nil?
2781
+ command.query['fields'] = fields unless fields.nil?
2782
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2783
+ command.query['userIp'] = user_ip unless user_ip.nil?
2784
+ execute_or_queue_command(command, &block)
2785
+ end
2786
+
2396
2787
  # Get the email address of this project's Google Cloud Storage service account.
2397
2788
  # @param [String] project_id
2398
2789
  # Project ID
2790
+ # @param [String] provisional_user_project
2791
+ # The project to be billed for this request if the target bucket is requester-
2792
+ # pays bucket.
2399
2793
  # @param [String] user_project
2400
2794
  # The project to be billed for this request.
2401
2795
  # @param [String] fields
@@ -2417,11 +2811,12 @@ module Google
2417
2811
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2418
2812
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2419
2813
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2420
- def get_project_service_account(project_id, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2814
+ def get_project_service_account(project_id, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2421
2815
  command = make_simple_command(:get, 'projects/{projectId}/serviceAccount', options)
2422
2816
  command.response_representation = Google::Apis::StorageV1::ServiceAccount::Representation
2423
2817
  command.response_class = Google::Apis::StorageV1::ServiceAccount
2424
2818
  command.params['projectId'] = project_id unless project_id.nil?
2819
+ command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil?
2425
2820
  command.query['userProject'] = user_project unless user_project.nil?
2426
2821
  command.query['fields'] = fields unless fields.nil?
2427
2822
  command.query['quotaUser'] = quota_user unless quota_user.nil?