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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -18,18 +18,21 @@ require 'google/apis/storage_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Cloud Storage API
21
+ # Cloud Storage JSON API
22
22
  #
23
23
  # Lets you store and retrieve potentially-large, immutable data objects.
24
24
  #
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20150710'
28
+ REVISION = '20151214'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
32
 
33
+ # View your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
35
+
33
36
  # Manage your data and permissions in Google Cloud Storage
34
37
  AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
35
38
 
@@ -108,11 +108,16 @@ module Google
108
108
  # @return [String]
109
109
  attr_accessor :storage_class
110
110
 
111
- # Creation time of the bucket in RFC 3339 format.
111
+ # The creation time of the bucket in RFC 3339 format.
112
112
  # Corresponds to the JSON property `timeCreated`
113
113
  # @return [DateTime]
114
114
  attr_accessor :time_created
115
115
 
116
+ # The modification time of the bucket in RFC 3339 format.
117
+ # Corresponds to the JSON property `updated`
118
+ # @return [DateTime]
119
+ attr_accessor :updated
120
+
116
121
  # The bucket's versioning configuration.
117
122
  # Corresponds to the JSON property `versioning`
118
123
  # @return [Google::Apis::StorageV1::Bucket::Versioning]
@@ -145,6 +150,7 @@ module Google
145
150
  @self_link = args[:self_link] unless args[:self_link].nil?
146
151
  @storage_class = args[:storage_class] unless args[:storage_class].nil?
147
152
  @time_created = args[:time_created] unless args[:time_created].nil?
153
+ @updated = args[:updated] unless args[:updated].nil?
148
154
  @versioning = args[:versioning] unless args[:versioning].nil?
149
155
  @website = args[:website] unless args[:website].nil?
150
156
  end
@@ -787,6 +793,12 @@ module Google
787
793
  # @return [String]
788
794
  attr_accessor :crc32c
789
795
 
796
+ # Metadata of customer-supplied encryption key, if the object is encrypted by
797
+ # such a key.
798
+ # Corresponds to the JSON property `customerEncryption`
799
+ # @return [Google::Apis::StorageV1::Object::CustomerEncryption]
800
+ attr_accessor :customer_encryption
801
+
790
802
  # HTTP 1.1 Entity tag for the object.
791
803
  # Corresponds to the JSON property `etag`
792
804
  # @return [String]
@@ -856,15 +868,18 @@ module Google
856
868
  # @return [String]
857
869
  attr_accessor :storage_class
858
870
 
871
+ # The creation time of the object in RFC 3339 format.
872
+ # Corresponds to the JSON property `timeCreated`
873
+ # @return [DateTime]
874
+ attr_accessor :time_created
875
+
859
876
  # The deletion time of the object in RFC 3339 format. Will be returned if and
860
877
  # only if this version of the object has been deleted.
861
878
  # Corresponds to the JSON property `timeDeleted`
862
879
  # @return [DateTime]
863
880
  attr_accessor :time_deleted
864
881
 
865
- # The creation or modification time of the object in RFC 3339 format. For
866
- # buckets with versioning enabled, changing an object's metadata does not change
867
- # this property.
882
+ # The modification time of the object metadata in RFC 3339 format.
868
883
  # Corresponds to the JSON property `updated`
869
884
  # @return [DateTime]
870
885
  attr_accessor :updated
@@ -884,6 +899,7 @@ module Google
884
899
  @content_language = args[:content_language] unless args[:content_language].nil?
885
900
  @content_type = args[:content_type] unless args[:content_type].nil?
886
901
  @crc32c = args[:crc32c] unless args[:crc32c].nil?
902
+ @customer_encryption = args[:customer_encryption] unless args[:customer_encryption].nil?
887
903
  @etag = args[:etag] unless args[:etag].nil?
888
904
  @generation = args[:generation] unless args[:generation].nil?
889
905
  @id = args[:id] unless args[:id].nil?
@@ -897,10 +913,37 @@ module Google
897
913
  @self_link = args[:self_link] unless args[:self_link].nil?
898
914
  @size = args[:size] unless args[:size].nil?
899
915
  @storage_class = args[:storage_class] unless args[:storage_class].nil?
916
+ @time_created = args[:time_created] unless args[:time_created].nil?
900
917
  @time_deleted = args[:time_deleted] unless args[:time_deleted].nil?
901
918
  @updated = args[:updated] unless args[:updated].nil?
902
919
  end
903
920
 
921
+ # Metadata of customer-supplied encryption key, if the object is encrypted by
922
+ # such a key.
923
+ class CustomerEncryption
924
+ include Google::Apis::Core::Hashable
925
+
926
+ # The encryption algorithm.
927
+ # Corresponds to the JSON property `encryptionAlgorithm`
928
+ # @return [String]
929
+ attr_accessor :encryption_algorithm
930
+
931
+ # SHA256 hash value of the encryption key.
932
+ # Corresponds to the JSON property `keySha256`
933
+ # @return [String]
934
+ attr_accessor :key_sha256
935
+
936
+ def initialize(**args)
937
+ update!(**args)
938
+ end
939
+
940
+ # Update properties of this object
941
+ def update!(**args)
942
+ @encryption_algorithm = args[:encryption_algorithm] unless args[:encryption_algorithm].nil?
943
+ @key_sha256 = args[:key_sha256] unless args[:key_sha256].nil?
944
+ end
945
+ end
946
+
904
947
  # The owner of the object. This will always be the uploader of the object.
905
948
  class Owner
906
949
  include Google::Apis::Core::Hashable
@@ -97,6 +97,10 @@ module Google
97
97
  class Object
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
+ class CustomerEncryption
101
+ class Representation < Google::Apis::Core::JsonRepresentation; end
102
+ end
103
+
100
104
  class Owner
101
105
  class Representation < Google::Apis::Core::JsonRepresentation; end
102
106
  end
@@ -148,6 +152,8 @@ module Google
148
152
  property :storage_class, as: 'storageClass'
149
153
  property :time_created, as: 'timeCreated', type: DateTime
150
154
 
155
+ property :updated, as: 'updated', type: DateTime
156
+
151
157
  property :versioning, as: 'versioning', class: Google::Apis::StorageV1::Bucket::Versioning, decorator: Google::Apis::StorageV1::Bucket::Versioning::Representation
152
158
 
153
159
  property :website, as: 'website', class: Google::Apis::StorageV1::Bucket::Website, decorator: Google::Apis::StorageV1::Bucket::Website::Representation
@@ -334,6 +340,8 @@ module Google
334
340
  property :content_language, as: 'contentLanguage'
335
341
  property :content_type, as: 'contentType'
336
342
  property :crc32c, as: 'crc32c'
343
+ property :customer_encryption, as: 'customerEncryption', class: Google::Apis::StorageV1::Object::CustomerEncryption, decorator: Google::Apis::StorageV1::Object::CustomerEncryption::Representation
344
+
337
345
  property :etag, as: 'etag'
338
346
  property :generation, as: 'generation'
339
347
  property :id, as: 'id'
@@ -348,12 +356,22 @@ module Google
348
356
  property :self_link, as: 'selfLink'
349
357
  property :size, as: 'size'
350
358
  property :storage_class, as: 'storageClass'
359
+ property :time_created, as: 'timeCreated', type: DateTime
360
+
351
361
  property :time_deleted, as: 'timeDeleted', type: DateTime
352
362
 
353
363
  property :updated, as: 'updated', type: DateTime
354
364
 
355
365
  end
356
366
 
367
+ class CustomerEncryption
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :encryption_algorithm, as: 'encryptionAlgorithm'
371
+ property :key_sha256, as: 'keySha256'
372
+ end
373
+ end
374
+
357
375
  class Owner
358
376
  # @private
359
377
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module StorageV1
23
- # Cloud Storage API
23
+ # Cloud Storage JSON API
24
24
  #
25
25
  # Lets you store and retrieve potentially-large, immutable data objects.
26
26
  #
@@ -81,8 +81,7 @@ module Google
81
81
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
82
  # @raise [Google::Apis::AuthorizationError] Authorization is required
83
83
  def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
- path = 'b/{bucket}/acl/{entity}'
85
- command = make_simple_command(:delete, path, options)
84
+ command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options)
86
85
  command.params['bucket'] = bucket unless bucket.nil?
87
86
  command.params['entity'] = entity unless entity.nil?
88
87
  command.query['fields'] = fields unless fields.nil?
@@ -119,8 +118,7 @@ module Google
119
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
121
120
  def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
- path = 'b/{bucket}/acl/{entity}'
123
- command = make_simple_command(:get, path, options)
121
+ command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options)
124
122
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
125
123
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
126
124
  command.params['bucket'] = bucket unless bucket.nil?
@@ -157,8 +155,7 @@ module Google
157
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
159
157
  def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
160
- path = 'b/{bucket}/acl'
161
- command = make_simple_command(:post, path, options)
158
+ command = make_simple_command(:post, 'b/{bucket}/acl', options)
162
159
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
163
160
  command.request_object = bucket_access_control_object
164
161
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
@@ -195,8 +192,7 @@ module Google
195
192
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
196
193
  # @raise [Google::Apis::AuthorizationError] Authorization is required
197
194
  def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
198
- path = 'b/{bucket}/acl'
199
- command = make_simple_command(:get, path, options)
195
+ command = make_simple_command(:get, 'b/{bucket}/acl', options)
200
196
  command.response_representation = Google::Apis::StorageV1::BucketAccessControls::Representation
201
197
  command.response_class = Google::Apis::StorageV1::BucketAccessControls
202
198
  command.params['bucket'] = bucket unless bucket.nil?
@@ -236,8 +232,7 @@ module Google
236
232
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
233
  # @raise [Google::Apis::AuthorizationError] Authorization is required
238
234
  def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
239
- path = 'b/{bucket}/acl/{entity}'
240
- command = make_simple_command(:patch, path, options)
235
+ command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options)
241
236
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
242
237
  command.request_object = bucket_access_control_object
243
238
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
@@ -279,8 +274,7 @@ module Google
279
274
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
275
  # @raise [Google::Apis::AuthorizationError] Authorization is required
281
276
  def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
282
- path = 'b/{bucket}/acl/{entity}'
283
- command = make_simple_command(:put, path, options)
277
+ command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options)
284
278
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
285
279
  command.request_object = bucket_access_control_object
286
280
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
@@ -323,8 +317,7 @@ module Google
323
317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
319
  def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
326
- path = 'b/{bucket}'
327
- command = make_simple_command(:delete, path, options)
320
+ command = make_simple_command(:delete, 'b/{bucket}', options)
328
321
  command.params['bucket'] = bucket unless bucket.nil?
329
322
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
330
323
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
@@ -367,8 +360,7 @@ module Google
367
360
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
368
361
  # @raise [Google::Apis::AuthorizationError] Authorization is required
369
362
  def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
370
- path = 'b/{bucket}'
371
- command = make_simple_command(:get, path, options)
363
+ command = make_simple_command(:get, 'b/{bucket}', options)
372
364
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
373
365
  command.response_class = Google::Apis::StorageV1::Bucket
374
366
  command.params['bucket'] = bucket unless bucket.nil?
@@ -414,8 +406,7 @@ module Google
414
406
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
415
407
  # @raise [Google::Apis::AuthorizationError] Authorization is required
416
408
  def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
417
- path = 'b'
418
- command = make_simple_command(:post, path, options)
409
+ command = make_simple_command(:post, 'b', options)
419
410
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
420
411
  command.request_object = bucket_object
421
412
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
@@ -464,8 +455,7 @@ module Google
464
455
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
465
456
  # @raise [Google::Apis::AuthorizationError] Authorization is required
466
457
  def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
467
- path = 'b'
468
- command = make_simple_command(:get, path, options)
458
+ command = make_simple_command(:get, 'b', options)
469
459
  command.response_representation = Google::Apis::StorageV1::Buckets::Representation
470
460
  command.response_class = Google::Apis::StorageV1::Buckets
471
461
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -517,8 +507,7 @@ module Google
517
507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
519
509
  def patch_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
520
- path = 'b/{bucket}'
521
- command = make_simple_command(:patch, path, options)
510
+ command = make_simple_command(:patch, 'b/{bucket}', options)
522
511
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
523
512
  command.request_object = bucket_object
524
513
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
@@ -573,8 +562,7 @@ module Google
573
562
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
574
563
  # @raise [Google::Apis::AuthorizationError] Authorization is required
575
564
  def update_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
576
- path = 'b/{bucket}'
577
- command = make_simple_command(:put, path, options)
565
+ command = make_simple_command(:put, 'b/{bucket}', options)
578
566
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
579
567
  command.request_object = bucket_object
580
568
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
@@ -615,8 +603,7 @@ module Google
615
603
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
616
604
  # @raise [Google::Apis::AuthorizationError] Authorization is required
617
605
  def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
618
- path = 'channels/stop'
619
- command = make_simple_command(:post, path, options)
606
+ command = make_simple_command(:post, 'channels/stop', options)
620
607
  command.request_representation = Google::Apis::StorageV1::Channel::Representation
621
608
  command.request_object = channel_object
622
609
  command.query['fields'] = fields unless fields.nil?
@@ -654,8 +641,7 @@ module Google
654
641
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
655
642
  # @raise [Google::Apis::AuthorizationError] Authorization is required
656
643
  def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
657
- path = 'b/{bucket}/defaultObjectAcl/{entity}'
658
- command = make_simple_command(:delete, path, options)
644
+ command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options)
659
645
  command.params['bucket'] = bucket unless bucket.nil?
660
646
  command.params['entity'] = entity unless entity.nil?
661
647
  command.query['fields'] = fields unless fields.nil?
@@ -693,8 +679,7 @@ module Google
693
679
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
680
  # @raise [Google::Apis::AuthorizationError] Authorization is required
695
681
  def get_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
696
- path = 'b/{bucket}/defaultObjectAcl/{entity}'
697
- command = make_simple_command(:get, path, options)
682
+ command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options)
698
683
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
699
684
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
700
685
  command.params['bucket'] = bucket unless bucket.nil?
@@ -731,8 +716,7 @@ module Google
731
716
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
717
  # @raise [Google::Apis::AuthorizationError] Authorization is required
733
718
  def insert_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
734
- path = 'b/{bucket}/defaultObjectAcl'
735
- command = make_simple_command(:post, path, options)
719
+ command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options)
736
720
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
737
721
  command.request_object = object_access_control_object
738
722
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -775,8 +759,7 @@ module Google
775
759
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
776
760
  # @raise [Google::Apis::AuthorizationError] Authorization is required
777
761
  def list_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
778
- path = 'b/{bucket}/defaultObjectAcl'
779
- command = make_simple_command(:get, path, options)
762
+ command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options)
780
763
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
781
764
  command.response_class = Google::Apis::StorageV1::ObjectAccessControls
782
765
  command.params['bucket'] = bucket unless bucket.nil?
@@ -818,8 +801,7 @@ module Google
818
801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
819
802
  # @raise [Google::Apis::AuthorizationError] Authorization is required
820
803
  def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
821
- path = 'b/{bucket}/defaultObjectAcl/{entity}'
822
- command = make_simple_command(:patch, path, options)
804
+ command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options)
823
805
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
824
806
  command.request_object = object_access_control_object
825
807
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -861,8 +843,7 @@ module Google
861
843
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
862
844
  # @raise [Google::Apis::AuthorizationError] Authorization is required
863
845
  def update_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
864
- path = 'b/{bucket}/defaultObjectAcl/{entity}'
865
- command = make_simple_command(:put, path, options)
846
+ command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options)
866
847
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
867
848
  command.request_object = object_access_control_object
868
849
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -880,7 +861,8 @@ module Google
880
861
  # @param [String] bucket
881
862
  # Name of a bucket.
882
863
  # @param [String] object
883
- # Name of the object.
864
+ # Name of the object. For information about how to URL encode object names to be
865
+ # path safe, see Encoding URI Path Parts.
884
866
  # @param [String] entity
885
867
  # The entity holding the permission. Can be user-userId, user-emailAddress,
886
868
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
@@ -909,8 +891,7 @@ module Google
909
891
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
892
  # @raise [Google::Apis::AuthorizationError] Authorization is required
911
893
  def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
912
- path = 'b/{bucket}/o/{object}/acl/{entity}'
913
- command = make_simple_command(:delete, path, options)
894
+ command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options)
914
895
  command.params['bucket'] = bucket unless bucket.nil?
915
896
  command.params['object'] = object unless object.nil?
916
897
  command.params['entity'] = entity unless entity.nil?
@@ -925,7 +906,8 @@ module Google
925
906
  # @param [String] bucket
926
907
  # Name of a bucket.
927
908
  # @param [String] object
928
- # Name of the object.
909
+ # Name of the object. For information about how to URL encode object names to be
910
+ # path safe, see Encoding URI Path Parts.
929
911
  # @param [String] entity
930
912
  # The entity holding the permission. Can be user-userId, user-emailAddress,
931
913
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
@@ -954,8 +936,7 @@ module Google
954
936
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
955
937
  # @raise [Google::Apis::AuthorizationError] Authorization is required
956
938
  def get_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
957
- path = 'b/{bucket}/o/{object}/acl/{entity}'
958
- command = make_simple_command(:get, path, options)
939
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options)
959
940
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
960
941
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
961
942
  command.params['bucket'] = bucket unless bucket.nil?
@@ -972,7 +953,8 @@ module Google
972
953
  # @param [String] bucket
973
954
  # Name of a bucket.
974
955
  # @param [String] object
975
- # Name of the object.
956
+ # Name of the object. For information about how to URL encode object names to be
957
+ # path safe, see Encoding URI Path Parts.
976
958
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
977
959
  # @param [String] generation
978
960
  # If present, selects a specific revision of this object (as opposed to the
@@ -999,8 +981,7 @@ module Google
999
981
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
982
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
983
  def insert_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1002
- path = 'b/{bucket}/o/{object}/acl'
1003
- command = make_simple_command(:post, path, options)
984
+ command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options)
1004
985
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1005
986
  command.request_object = object_access_control_object
1006
987
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -1018,7 +999,8 @@ module Google
1018
999
  # @param [String] bucket
1019
1000
  # Name of a bucket.
1020
1001
  # @param [String] object
1021
- # Name of the object.
1002
+ # Name of the object. For information about how to URL encode object names to be
1003
+ # path safe, see Encoding URI Path Parts.
1022
1004
  # @param [String] generation
1023
1005
  # If present, selects a specific revision of this object (as opposed to the
1024
1006
  # latest version, the default).
@@ -1044,8 +1026,7 @@ module Google
1044
1026
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
1027
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
1028
  def list_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1047
- path = 'b/{bucket}/o/{object}/acl'
1048
- command = make_simple_command(:get, path, options)
1029
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options)
1049
1030
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
1050
1031
  command.response_class = Google::Apis::StorageV1::ObjectAccessControls
1051
1032
  command.params['bucket'] = bucket unless bucket.nil?
@@ -1062,7 +1043,8 @@ module Google
1062
1043
  # @param [String] bucket
1063
1044
  # Name of a bucket.
1064
1045
  # @param [String] object
1065
- # Name of the object.
1046
+ # Name of the object. For information about how to URL encode object names to be
1047
+ # path safe, see Encoding URI Path Parts.
1066
1048
  # @param [String] entity
1067
1049
  # The entity holding the permission. Can be user-userId, user-emailAddress,
1068
1050
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
@@ -1092,8 +1074,7 @@ module Google
1092
1074
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1093
1075
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1094
1076
  def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1095
- path = 'b/{bucket}/o/{object}/acl/{entity}'
1096
- command = make_simple_command(:patch, path, options)
1077
+ command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options)
1097
1078
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1098
1079
  command.request_object = object_access_control_object
1099
1080
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -1112,7 +1093,8 @@ module Google
1112
1093
  # @param [String] bucket
1113
1094
  # Name of a bucket.
1114
1095
  # @param [String] object
1115
- # Name of the object.
1096
+ # Name of the object. For information about how to URL encode object names to be
1097
+ # path safe, see Encoding URI Path Parts.
1116
1098
  # @param [String] entity
1117
1099
  # The entity holding the permission. Can be user-userId, user-emailAddress,
1118
1100
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
@@ -1142,8 +1124,7 @@ module Google
1142
1124
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1143
1125
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1144
1126
  def update_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1145
- path = 'b/{bucket}/o/{object}/acl/{entity}'
1146
- command = make_simple_command(:put, path, options)
1127
+ command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options)
1147
1128
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1148
1129
  command.request_object = object_access_control_object
1149
1130
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -1162,7 +1143,8 @@ module Google
1162
1143
  # @param [String] destination_bucket
1163
1144
  # Name of the bucket in which to store the new object.
1164
1145
  # @param [String] destination_object
1165
- # Name of the new object.
1146
+ # Name of the new object. For information about how to URL encode object names
1147
+ # to be path safe, see Encoding URI Path Parts.
1166
1148
  # @param [Google::Apis::StorageV1::ComposeRequest] compose_request_object
1167
1149
  # @param [String] destination_predefined_acl
1168
1150
  # Apply a predefined set of access controls to the destination object.
@@ -1195,12 +1177,11 @@ module Google
1195
1177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1196
1178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1197
1179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1198
- def compose(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1199
- path = 'b/{destinationBucket}/o/{destinationObject}/compose'
1180
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1200
1181
  if download_dest.nil?
1201
- command = make_simple_command(:post, path, options)
1182
+ command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1202
1183
  else
1203
- command = make_download_command(:post, path, options)
1184
+ command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1204
1185
  command.download_dest = download_dest
1205
1186
  end
1206
1187
  command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
@@ -1222,10 +1203,12 @@ module Google
1222
1203
  # @param [String] source_bucket
1223
1204
  # Name of the bucket in which to find the source object.
1224
1205
  # @param [String] source_object
1225
- # Name of the source object.
1206
+ # Name of the source object. For information about how to URL encode object
1207
+ # names to be path safe, see Encoding URI Path Parts.
1226
1208
  # @param [String] destination_bucket
1227
1209
  # Name of the bucket in which to store the new object. Overrides the provided
1228
- # object metadata's bucket value, if any.
1210
+ # object metadata's bucket value, if any.For information about how to URL encode
1211
+ # object names to be path safe, see Encoding URI Path Parts.
1229
1212
  # @param [String] destination_object
1230
1213
  # Name of the new object. Required when the object metadata is not otherwise
1231
1214
  # provided. Overrides the object metadata's name value, if any.
@@ -1286,11 +1269,10 @@ module Google
1286
1269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1287
1270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1288
1271
  def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1289
- path = 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}'
1290
1272
  if download_dest.nil?
1291
- command = make_simple_command(:post, path, options)
1273
+ command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1292
1274
  else
1293
- command = make_download_command(:post, path, options)
1275
+ command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1294
1276
  command.download_dest = download_dest
1295
1277
  end
1296
1278
  command.request_representation = Google::Apis::StorageV1::Object::Representation
@@ -1323,7 +1305,8 @@ module Google
1323
1305
  # @param [String] bucket
1324
1306
  # Name of the bucket in which the object resides.
1325
1307
  # @param [String] object
1326
- # Name of the object.
1308
+ # Name of the object. For information about how to URL encode object names to be
1309
+ # path safe, see Encoding URI Path Parts.
1327
1310
  # @param [String] generation
1328
1311
  # If present, permanently deletes a specific revision of this object (as opposed
1329
1312
  # to the latest version, the default).
@@ -1361,8 +1344,7 @@ module Google
1361
1344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1362
1345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1363
1346
  def delete_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1364
- path = 'b/{bucket}/o/{object}'
1365
- command = make_simple_command(:delete, path, options)
1347
+ command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options)
1366
1348
  command.params['bucket'] = bucket unless bucket.nil?
1367
1349
  command.params['object'] = object unless object.nil?
1368
1350
  command.query['generation'] = generation unless generation.nil?
@@ -1380,7 +1362,8 @@ module Google
1380
1362
  # @param [String] bucket
1381
1363
  # Name of the bucket in which the object resides.
1382
1364
  # @param [String] object
1383
- # Name of the object.
1365
+ # Name of the object. For information about how to URL encode object names to be
1366
+ # path safe, see Encoding URI Path Parts.
1384
1367
  # @param [String] generation
1385
1368
  # If present, selects a specific revision of this object (as opposed to the
1386
1369
  # latest version, the default).
@@ -1422,11 +1405,10 @@ module Google
1422
1405
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
1406
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
1407
  def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1425
- path = 'b/{bucket}/o/{object}'
1426
1408
  if download_dest.nil?
1427
- command = make_simple_command(:get, path, options)
1409
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
1428
1410
  else
1429
- command = make_download_command(:get, path, options)
1411
+ command = make_download_command(:get, 'b/{bucket}/o/{object}', options)
1430
1412
  command.download_dest = download_dest
1431
1413
  end
1432
1414
  command.response_representation = Google::Apis::StorageV1::Object::Representation
@@ -1469,7 +1451,9 @@ module Google
1469
1451
  # does not match the given value.
1470
1452
  # @param [String] name
1471
1453
  # Name of the object. Required when the object metadata is not otherwise
1472
- # provided. Overrides the object metadata's name value, if any.
1454
+ # provided. Overrides the object metadata's name value, if any. For information
1455
+ # about how to URL encode object names to be path safe, see Encoding URI Path
1456
+ # Parts.
1473
1457
  # @param [String] predefined_acl
1474
1458
  # Apply a predefined set of access controls to this object.
1475
1459
  # @param [String] projection
@@ -1501,11 +1485,10 @@ module Google
1501
1485
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1502
1486
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1503
1487
  def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1504
- path = 'b/{bucket}/o'
1505
1488
  if upload_source.nil?
1506
- command = make_simple_command(:post, path, options)
1489
+ command = make_simple_command(:post, 'b/{bucket}/o', options)
1507
1490
  else
1508
- command = make_upload_command(:post, path, options)
1491
+ command = make_upload_command(:post, 'b/{bucket}/o', options)
1509
1492
  command.upload_source = upload_source
1510
1493
  command.upload_content_type = content_type
1511
1494
  end
@@ -1573,8 +1556,7 @@ module Google
1573
1556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1574
1557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1575
1558
  def list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1576
- path = 'b/{bucket}/o'
1577
- command = make_simple_command(:get, path, options)
1559
+ command = make_simple_command(:get, 'b/{bucket}/o', options)
1578
1560
  command.response_representation = Google::Apis::StorageV1::Objects::Representation
1579
1561
  command.response_class = Google::Apis::StorageV1::Objects
1580
1562
  command.params['bucket'] = bucket unless bucket.nil?
@@ -1594,7 +1576,8 @@ module Google
1594
1576
  # @param [String] bucket
1595
1577
  # Name of the bucket in which the object resides.
1596
1578
  # @param [String] object
1597
- # Name of the object.
1579
+ # Name of the object. For information about how to URL encode object names to be
1580
+ # path safe, see Encoding URI Path Parts.
1598
1581
  # @param [Google::Apis::StorageV1::Object] object_object
1599
1582
  # @param [String] generation
1600
1583
  # If present, selects a specific revision of this object (as opposed to the
@@ -1637,8 +1620,7 @@ module Google
1637
1620
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1638
1621
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1639
1622
  def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1640
- path = 'b/{bucket}/o/{object}'
1641
- command = make_simple_command(:patch, path, options)
1623
+ command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
1642
1624
  command.request_representation = Google::Apis::StorageV1::Object::Representation
1643
1625
  command.request_object = object_object
1644
1626
  command.response_representation = Google::Apis::StorageV1::Object::Representation
@@ -1663,13 +1645,16 @@ module Google
1663
1645
  # @param [String] source_bucket
1664
1646
  # Name of the bucket in which to find the source object.
1665
1647
  # @param [String] source_object
1666
- # Name of the source object.
1648
+ # Name of the source object. For information about how to URL encode object
1649
+ # names to be path safe, see Encoding URI Path Parts.
1667
1650
  # @param [String] destination_bucket
1668
1651
  # Name of the bucket in which to store the new object. Overrides the provided
1669
1652
  # object metadata's bucket value, if any.
1670
1653
  # @param [String] destination_object
1671
1654
  # Name of the new object. Required when the object metadata is not otherwise
1672
- # provided. Overrides the object metadata's name value, if any.
1655
+ # provided. Overrides the object metadata's name value, if any. For information
1656
+ # about how to URL encode object names to be path safe, see Encoding URI Path
1657
+ # Parts.
1673
1658
  # @param [Google::Apis::StorageV1::Object] object_object
1674
1659
  # @param [String] destination_predefined_acl
1675
1660
  # Apply a predefined set of access controls to the destination object.
@@ -1738,8 +1723,7 @@ module Google
1738
1723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1739
1724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1740
1725
  def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1741
- path = 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}'
1742
- command = make_simple_command(:post, path, options)
1726
+ command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
1743
1727
  command.request_representation = Google::Apis::StorageV1::Object::Representation
1744
1728
  command.request_object = object_object
1745
1729
  command.response_representation = Google::Apis::StorageV1::RewriteResponse::Representation
@@ -1771,7 +1755,8 @@ module Google
1771
1755
  # @param [String] bucket
1772
1756
  # Name of the bucket in which the object resides.
1773
1757
  # @param [String] object
1774
- # Name of the object.
1758
+ # Name of the object. For information about how to URL encode object names to be
1759
+ # path safe, see Encoding URI Path Parts.
1775
1760
  # @param [Google::Apis::StorageV1::Object] object_object
1776
1761
  # @param [String] generation
1777
1762
  # If present, selects a specific revision of this object (as opposed to the
@@ -1816,11 +1801,10 @@ module Google
1816
1801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1817
1802
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1818
1803
  def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1819
- path = 'b/{bucket}/o/{object}'
1820
1804
  if download_dest.nil?
1821
- command = make_simple_command(:put, path, options)
1805
+ command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
1822
1806
  else
1823
- command = make_download_command(:put, path, options)
1807
+ command = make_download_command(:put, 'b/{bucket}/o/{object}', options)
1824
1808
  command.download_dest = download_dest
1825
1809
  end
1826
1810
  command.request_representation = Google::Apis::StorageV1::Object::Representation
@@ -1887,9 +1871,8 @@ module Google
1887
1871
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1888
1872
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1889
1873
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1890
- def watch_all_object(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1891
- path = 'b/{bucket}/o/watch'
1892
- command = make_simple_command(:post, path, options)
1874
+ def watch_all_objects(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1875
+ command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
1893
1876
  command.request_representation = Google::Apis::StorageV1::Channel::Representation
1894
1877
  command.request_object = channel_object
1895
1878
  command.response_representation = Google::Apis::StorageV1::Channel::Representation