google-api-client 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -190,12 +190,6 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
- class Labels
194
- class Representation < Google::Apis::Core::JsonRepresentation; end
195
-
196
- include Google::Apis::Core::JsonObjectSupport
197
- end
198
-
199
193
  class LocationPreference
200
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
195
 
@@ -543,6 +537,7 @@ module Google
543
537
 
544
538
  property :database, as: 'database'
545
539
  property :file_type, as: 'fileType'
540
+ property :import_user, as: 'importUser'
546
541
  property :kind, as: 'kind'
547
542
  property :uri, as: 'uri'
548
543
  end
@@ -634,14 +629,6 @@ module Google
634
629
  end
635
630
  end
636
631
 
637
- class Labels
638
- # @private
639
- class Representation < Google::Apis::Core::JsonRepresentation
640
- property :key, as: 'key'
641
- property :value, as: 'value'
642
- end
643
- end
644
-
645
632
  class LocationPreference
646
633
  # @private
647
634
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -777,8 +764,7 @@ module Google
777
764
  property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta4::IpConfiguration, decorator: Google::Apis::SqladminV1beta4::IpConfiguration::Representation
778
765
 
779
766
  property :kind, as: 'kind'
780
- collection :labels, as: 'labels', class: Google::Apis::SqladminV1beta4::Labels, decorator: Google::Apis::SqladminV1beta4::Labels::Representation
781
-
767
+ hash :labels, as: 'labels'
782
768
  property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta4::LocationPreference, decorator: Google::Apis::SqladminV1beta4::LocationPreference::Representation
783
769
 
784
770
  property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation
@@ -802,7 +802,7 @@ module Google
802
802
  # @param [String] project
803
803
  # Project ID of the project for which to list Cloud SQL instances.
804
804
  # @param [String] filter
805
- # A filter expression for filtering listed instances.
805
+ # Reserved for future use.
806
806
  # @param [Fixnum] max_results
807
807
  # The maximum number of results to return per response.
808
808
  # @param [String] page_token
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170329'
28
+ REVISION = '20170510'
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'
@@ -31,6 +31,11 @@ module Google
31
31
  # @return [Array<Google::Apis::StorageV1::BucketAccessControl>]
32
32
  attr_accessor :acl
33
33
 
34
+ # The bucket's billing configuration.
35
+ # Corresponds to the JSON property `billing`
36
+ # @return [Google::Apis::StorageV1::Bucket::Billing]
37
+ attr_accessor :billing
38
+
34
39
  # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
35
40
  # Corresponds to the JSON property `cors`
36
41
  # @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]
@@ -144,6 +149,7 @@ module Google
144
149
  # Update properties of this object
145
150
  def update!(**args)
146
151
  @acl = args[:acl] if args.key?(:acl)
152
+ @billing = args[:billing] if args.key?(:billing)
147
153
  @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
148
154
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
149
155
  @etag = args[:etag] if args.key?(:etag)
@@ -165,6 +171,26 @@ module Google
165
171
  @website = args[:website] if args.key?(:website)
166
172
  end
167
173
 
174
+ # The bucket's billing configuration.
175
+ class Billing
176
+ include Google::Apis::Core::Hashable
177
+
178
+ # When set to true, bucket is requester pays.
179
+ # Corresponds to the JSON property `requesterPays`
180
+ # @return [Boolean]
181
+ attr_accessor :requester_pays
182
+ alias_method :requester_pays?, :requester_pays
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @requester_pays = args[:requester_pays] if args.key?(:requester_pays)
191
+ end
192
+ end
193
+
168
194
  #
169
195
  class CorsConfiguration
170
196
  include Google::Apis::Core::Hashable
@@ -25,6 +25,12 @@ module Google
25
25
  class Bucket
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
+ class Billing
29
+ class Representation < Google::Apis::Core::JsonRepresentation; end
30
+
31
+ include Google::Apis::Core::JsonObjectSupport
32
+ end
33
+
28
34
  class CorsConfiguration
29
35
  class Representation < Google::Apis::Core::JsonRepresentation; end
30
36
 
@@ -219,6 +225,8 @@ module Google
219
225
  class Representation < Google::Apis::Core::JsonRepresentation
220
226
  collection :acl, as: 'acl', class: Google::Apis::StorageV1::BucketAccessControl, decorator: Google::Apis::StorageV1::BucketAccessControl::Representation
221
227
 
228
+ property :billing, as: 'billing', class: Google::Apis::StorageV1::Bucket::Billing, decorator: Google::Apis::StorageV1::Bucket::Billing::Representation
229
+
222
230
  collection :cors_configurations, as: 'cors', class: Google::Apis::StorageV1::Bucket::CorsConfiguration, decorator: Google::Apis::StorageV1::Bucket::CorsConfiguration::Representation
223
231
 
224
232
  collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
@@ -249,6 +257,13 @@ module Google
249
257
 
250
258
  end
251
259
 
260
+ class Billing
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :requester_pays, as: 'requesterPays'
264
+ end
265
+ end
266
+
252
267
  class CorsConfiguration
253
268
  # @private
254
269
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -60,6 +60,8 @@ module Google
60
60
  # @param [String] entity
61
61
  # The entity holding the permission. Can be user-userId, user-emailAddress,
62
62
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
63
+ # @param [String] user_project
64
+ # The project number to be billed for this request, for Requester Pays buckets.
63
65
  # @param [String] fields
64
66
  # Selector specifying which fields to include in a partial response.
65
67
  # @param [String] quota_user
@@ -81,10 +83,11 @@ module Google
81
83
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
84
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
85
  # @raise [Google::Apis::AuthorizationError] Authorization is required
84
- def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
86
+ def delete_bucket_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
85
87
  command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options)
86
88
  command.params['bucket'] = bucket unless bucket.nil?
87
89
  command.params['entity'] = entity unless entity.nil?
90
+ command.query['userProject'] = user_project unless user_project.nil?
88
91
  command.query['fields'] = fields unless fields.nil?
89
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
90
93
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -97,6 +100,8 @@ module Google
97
100
  # @param [String] entity
98
101
  # The entity holding the permission. Can be user-userId, user-emailAddress,
99
102
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
103
+ # @param [String] user_project
104
+ # The project number to be billed for this request, for Requester Pays buckets.
100
105
  # @param [String] fields
101
106
  # Selector specifying which fields to include in a partial response.
102
107
  # @param [String] quota_user
@@ -118,12 +123,13 @@ module Google
118
123
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
124
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
125
  # @raise [Google::Apis::AuthorizationError] Authorization is required
121
- def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
126
+ def get_bucket_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
127
  command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options)
123
128
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
124
129
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
125
130
  command.params['bucket'] = bucket unless bucket.nil?
126
131
  command.params['entity'] = entity unless entity.nil?
132
+ command.query['userProject'] = user_project unless user_project.nil?
127
133
  command.query['fields'] = fields unless fields.nil?
128
134
  command.query['quotaUser'] = quota_user unless quota_user.nil?
129
135
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -134,6 +140,8 @@ module Google
134
140
  # @param [String] bucket
135
141
  # Name of a bucket.
136
142
  # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
143
+ # @param [String] user_project
144
+ # The project number to be billed for this request, for Requester Pays buckets.
137
145
  # @param [String] fields
138
146
  # Selector specifying which fields to include in a partial response.
139
147
  # @param [String] quota_user
@@ -155,13 +163,14 @@ module Google
155
163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
158
- def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
166
+ 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)
159
167
  command = make_simple_command(:post, 'b/{bucket}/acl', options)
160
168
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
161
169
  command.request_object = bucket_access_control_object
162
170
  command.response_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
163
171
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
164
172
  command.params['bucket'] = bucket unless bucket.nil?
173
+ command.query['userProject'] = user_project unless user_project.nil?
165
174
  command.query['fields'] = fields unless fields.nil?
166
175
  command.query['quotaUser'] = quota_user unless quota_user.nil?
167
176
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -171,6 +180,8 @@ module Google
171
180
  # Retrieves ACL entries on the specified bucket.
172
181
  # @param [String] bucket
173
182
  # Name of a bucket.
183
+ # @param [String] user_project
184
+ # The project number to be billed for this request, for Requester Pays buckets.
174
185
  # @param [String] fields
175
186
  # Selector specifying which fields to include in a partial response.
176
187
  # @param [String] quota_user
@@ -192,11 +203,12 @@ module Google
192
203
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
204
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
205
  # @raise [Google::Apis::AuthorizationError] Authorization is required
195
- def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
206
+ def list_bucket_access_controls(bucket, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
207
  command = make_simple_command(:get, 'b/{bucket}/acl', options)
197
208
  command.response_representation = Google::Apis::StorageV1::BucketAccessControls::Representation
198
209
  command.response_class = Google::Apis::StorageV1::BucketAccessControls
199
210
  command.params['bucket'] = bucket unless bucket.nil?
211
+ command.query['userProject'] = user_project unless user_project.nil?
200
212
  command.query['fields'] = fields unless fields.nil?
201
213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
202
214
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -211,6 +223,8 @@ module Google
211
223
  # The entity holding the permission. Can be user-userId, user-emailAddress,
212
224
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
213
225
  # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
226
+ # @param [String] user_project
227
+ # The project number to be billed for this request, for Requester Pays buckets.
214
228
  # @param [String] fields
215
229
  # Selector specifying which fields to include in a partial response.
216
230
  # @param [String] quota_user
@@ -232,7 +246,7 @@ module Google
232
246
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
235
- def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
249
+ 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)
236
250
  command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options)
237
251
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
238
252
  command.request_object = bucket_access_control_object
@@ -240,6 +254,7 @@ module Google
240
254
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
241
255
  command.params['bucket'] = bucket unless bucket.nil?
242
256
  command.params['entity'] = entity unless entity.nil?
257
+ command.query['userProject'] = user_project unless user_project.nil?
243
258
  command.query['fields'] = fields unless fields.nil?
244
259
  command.query['quotaUser'] = quota_user unless quota_user.nil?
245
260
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -253,6 +268,8 @@ module Google
253
268
  # The entity holding the permission. Can be user-userId, user-emailAddress,
254
269
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
255
270
  # @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
271
+ # @param [String] user_project
272
+ # The project number to be billed for this request, for Requester Pays buckets.
256
273
  # @param [String] fields
257
274
  # Selector specifying which fields to include in a partial response.
258
275
  # @param [String] quota_user
@@ -274,7 +291,7 @@ module Google
274
291
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
292
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
293
  # @raise [Google::Apis::AuthorizationError] Authorization is required
277
- def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
294
+ 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)
278
295
  command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options)
279
296
  command.request_representation = Google::Apis::StorageV1::BucketAccessControl::Representation
280
297
  command.request_object = bucket_access_control_object
@@ -282,6 +299,7 @@ module Google
282
299
  command.response_class = Google::Apis::StorageV1::BucketAccessControl
283
300
  command.params['bucket'] = bucket unless bucket.nil?
284
301
  command.params['entity'] = entity unless entity.nil?
302
+ command.query['userProject'] = user_project unless user_project.nil?
285
303
  command.query['fields'] = fields unless fields.nil?
286
304
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
305
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -296,6 +314,8 @@ module Google
296
314
  # @param [Fixnum] if_metageneration_not_match
297
315
  # If set, only deletes the bucket if its metageneration does not match this
298
316
  # value.
317
+ # @param [String] user_project
318
+ # The project number to be billed for this request, for Requester Pays buckets.
299
319
  # @param [String] fields
300
320
  # Selector specifying which fields to include in a partial response.
301
321
  # @param [String] quota_user
@@ -317,11 +337,12 @@ module Google
317
337
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
338
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
339
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
340
+ 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)
321
341
  command = make_simple_command(:delete, 'b/{bucket}', options)
322
342
  command.params['bucket'] = bucket unless bucket.nil?
323
343
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
324
344
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
345
+ command.query['userProject'] = user_project unless user_project.nil?
325
346
  command.query['fields'] = fields unless fields.nil?
326
347
  command.query['quotaUser'] = quota_user unless quota_user.nil?
327
348
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -339,6 +360,8 @@ module Google
339
360
  # current metageneration does not match the given value.
340
361
  # @param [String] projection
341
362
  # Set of properties to return. Defaults to noAcl.
363
+ # @param [String] user_project
364
+ # The project number to be billed for this request, for Requester Pays buckets.
342
365
  # @param [String] fields
343
366
  # Selector specifying which fields to include in a partial response.
344
367
  # @param [String] quota_user
@@ -360,7 +383,7 @@ module Google
360
383
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
384
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
385
  # @raise [Google::Apis::AuthorizationError] Authorization is required
363
- 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)
386
+ 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)
364
387
  command = make_simple_command(:get, 'b/{bucket}', options)
365
388
  command.response_representation = Google::Apis::StorageV1::Bucket::Representation
366
389
  command.response_class = Google::Apis::StorageV1::Bucket
@@ -368,6 +391,7 @@ module Google
368
391
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
369
392
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
370
393
  command.query['projection'] = projection unless projection.nil?
394
+ command.query['userProject'] = user_project unless user_project.nil?
371
395
  command.query['fields'] = fields unless fields.nil?
372
396
  command.query['quotaUser'] = quota_user unless quota_user.nil?
373
397
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -377,6 +401,8 @@ module Google
377
401
  # Returns an IAM policy for the specified bucket.
378
402
  # @param [String] bucket
379
403
  # Name of a bucket.
404
+ # @param [String] user_project
405
+ # The project number to be billed for this request, for Requester Pays buckets.
380
406
  # @param [String] fields
381
407
  # Selector specifying which fields to include in a partial response.
382
408
  # @param [String] quota_user
@@ -398,11 +424,12 @@ module Google
398
424
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
399
425
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
400
426
  # @raise [Google::Apis::AuthorizationError] Authorization is required
401
- def get_bucket_iam_policy(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
427
+ def get_bucket_iam_policy(bucket, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
402
428
  command = make_simple_command(:get, 'b/{bucket}/iam', options)
403
429
  command.response_representation = Google::Apis::StorageV1::Policy::Representation
404
430
  command.response_class = Google::Apis::StorageV1::Policy
405
431
  command.params['bucket'] = bucket unless bucket.nil?
432
+ command.query['userProject'] = user_project unless user_project.nil?
406
433
  command.query['fields'] = fields unless fields.nil?
407
434
  command.query['quotaUser'] = quota_user unless quota_user.nil?
408
435
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -524,6 +551,8 @@ module Google
524
551
  # Apply a predefined set of default object access controls to this bucket.
525
552
  # @param [String] projection
526
553
  # Set of properties to return. Defaults to full.
554
+ # @param [String] user_project
555
+ # The project number to be billed for this request, for Requester Pays buckets.
527
556
  # @param [String] fields
528
557
  # Selector specifying which fields to include in a partial response.
529
558
  # @param [String] quota_user
@@ -545,7 +574,7 @@ module Google
545
574
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
575
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
576
  # @raise [Google::Apis::AuthorizationError] Authorization is required
548
- 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)
577
+ 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)
549
578
  command = make_simple_command(:patch, 'b/{bucket}', options)
550
579
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
551
580
  command.request_object = bucket_object
@@ -557,6 +586,7 @@ module Google
557
586
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
558
587
  command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
559
588
  command.query['projection'] = projection unless projection.nil?
589
+ command.query['userProject'] = user_project unless user_project.nil?
560
590
  command.query['fields'] = fields unless fields.nil?
561
591
  command.query['quotaUser'] = quota_user unless quota_user.nil?
562
592
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -567,6 +597,8 @@ module Google
567
597
  # @param [String] bucket
568
598
  # Name of a bucket.
569
599
  # @param [Google::Apis::StorageV1::Policy] policy_object
600
+ # @param [String] user_project
601
+ # The project number to be billed for this request, for Requester Pays buckets.
570
602
  # @param [String] fields
571
603
  # Selector specifying which fields to include in a partial response.
572
604
  # @param [String] quota_user
@@ -588,13 +620,14 @@ module Google
588
620
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
621
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
622
  # @raise [Google::Apis::AuthorizationError] Authorization is required
591
- def set_bucket_iam_policy(bucket, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
623
+ def set_bucket_iam_policy(bucket, policy_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
592
624
  command = make_simple_command(:put, 'b/{bucket}/iam', options)
593
625
  command.request_representation = Google::Apis::StorageV1::Policy::Representation
594
626
  command.request_object = policy_object
595
627
  command.response_representation = Google::Apis::StorageV1::Policy::Representation
596
628
  command.response_class = Google::Apis::StorageV1::Policy
597
629
  command.params['bucket'] = bucket unless bucket.nil?
630
+ command.query['userProject'] = user_project unless user_project.nil?
598
631
  command.query['fields'] = fields unless fields.nil?
599
632
  command.query['quotaUser'] = quota_user unless quota_user.nil?
600
633
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -607,6 +640,8 @@ module Google
607
640
  # Name of a bucket.
608
641
  # @param [Array<String>, String] permissions
609
642
  # Permissions to test.
643
+ # @param [String] user_project
644
+ # The project number to be billed for this request, for Requester Pays buckets.
610
645
  # @param [String] fields
611
646
  # Selector specifying which fields to include in a partial response.
612
647
  # @param [String] quota_user
@@ -628,12 +663,13 @@ module Google
628
663
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
664
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
665
  # @raise [Google::Apis::AuthorizationError] Authorization is required
631
- def test_bucket_iam_permissions(bucket, permissions, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
666
+ def test_bucket_iam_permissions(bucket, permissions, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
632
667
  command = make_simple_command(:get, 'b/{bucket}/iam/testPermissions', options)
633
668
  command.response_representation = Google::Apis::StorageV1::TestIamPermissionsResponse::Representation
634
669
  command.response_class = Google::Apis::StorageV1::TestIamPermissionsResponse
635
670
  command.params['bucket'] = bucket unless bucket.nil?
636
671
  command.query['permissions'] = permissions unless permissions.nil?
672
+ command.query['userProject'] = user_project unless user_project.nil?
637
673
  command.query['fields'] = fields unless fields.nil?
638
674
  command.query['quotaUser'] = quota_user unless quota_user.nil?
639
675
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -657,6 +693,8 @@ module Google
657
693
  # Apply a predefined set of default object access controls to this bucket.
658
694
  # @param [String] projection
659
695
  # Set of properties to return. Defaults to full.
696
+ # @param [String] user_project
697
+ # The project number to be billed for this request, for Requester Pays buckets.
660
698
  # @param [String] fields
661
699
  # Selector specifying which fields to include in a partial response.
662
700
  # @param [String] quota_user
@@ -678,7 +716,7 @@ module Google
678
716
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
717
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
718
  # @raise [Google::Apis::AuthorizationError] Authorization is required
681
- 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)
719
+ 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)
682
720
  command = make_simple_command(:put, 'b/{bucket}', options)
683
721
  command.request_representation = Google::Apis::StorageV1::Bucket::Representation
684
722
  command.request_object = bucket_object
@@ -690,6 +728,7 @@ module Google
690
728
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
691
729
  command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
692
730
  command.query['projection'] = projection unless projection.nil?
731
+ command.query['userProject'] = user_project unless user_project.nil?
693
732
  command.query['fields'] = fields unless fields.nil?
694
733
  command.query['quotaUser'] = quota_user unless quota_user.nil?
695
734
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -736,6 +775,8 @@ module Google
736
775
  # @param [String] entity
737
776
  # The entity holding the permission. Can be user-userId, user-emailAddress,
738
777
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
778
+ # @param [String] user_project
779
+ # The project number to be billed for this request, for Requester Pays buckets.
739
780
  # @param [String] fields
740
781
  # Selector specifying which fields to include in a partial response.
741
782
  # @param [String] quota_user
@@ -757,10 +798,11 @@ module Google
757
798
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
799
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
800
  # @raise [Google::Apis::AuthorizationError] Authorization is required
760
- def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
801
+ def delete_default_object_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
761
802
  command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options)
762
803
  command.params['bucket'] = bucket unless bucket.nil?
763
804
  command.params['entity'] = entity unless entity.nil?
805
+ command.query['userProject'] = user_project unless user_project.nil?
764
806
  command.query['fields'] = fields unless fields.nil?
765
807
  command.query['quotaUser'] = quota_user unless quota_user.nil?
766
808
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -774,6 +816,8 @@ module Google
774
816
  # @param [String] entity
775
817
  # The entity holding the permission. Can be user-userId, user-emailAddress,
776
818
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
819
+ # @param [String] user_project
820
+ # The project number to be billed for this request, for Requester Pays buckets.
777
821
  # @param [String] fields
778
822
  # Selector specifying which fields to include in a partial response.
779
823
  # @param [String] quota_user
@@ -795,12 +839,13 @@ module Google
795
839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
796
840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
797
841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
798
- def get_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
842
+ def get_default_object_access_control(bucket, entity, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
799
843
  command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options)
800
844
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
801
845
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
802
846
  command.params['bucket'] = bucket unless bucket.nil?
803
847
  command.params['entity'] = entity unless entity.nil?
848
+ command.query['userProject'] = user_project unless user_project.nil?
804
849
  command.query['fields'] = fields unless fields.nil?
805
850
  command.query['quotaUser'] = quota_user unless quota_user.nil?
806
851
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -811,6 +856,8 @@ module Google
811
856
  # @param [String] bucket
812
857
  # Name of a bucket.
813
858
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
859
+ # @param [String] user_project
860
+ # The project number to be billed for this request, for Requester Pays buckets.
814
861
  # @param [String] fields
815
862
  # Selector specifying which fields to include in a partial response.
816
863
  # @param [String] quota_user
@@ -832,13 +879,14 @@ module Google
832
879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
835
- def insert_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
882
+ 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)
836
883
  command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options)
837
884
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
838
885
  command.request_object = object_access_control_object
839
886
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
840
887
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
841
888
  command.params['bucket'] = bucket unless bucket.nil?
889
+ command.query['userProject'] = user_project unless user_project.nil?
842
890
  command.query['fields'] = fields unless fields.nil?
843
891
  command.query['quotaUser'] = quota_user unless quota_user.nil?
844
892
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -854,6 +902,8 @@ module Google
854
902
  # @param [Fixnum] if_metageneration_not_match
855
903
  # If present, only return default ACL listing if the bucket's current
856
904
  # metageneration does not match the given value.
905
+ # @param [String] user_project
906
+ # The project number to be billed for this request, for Requester Pays buckets.
857
907
  # @param [String] fields
858
908
  # Selector specifying which fields to include in a partial response.
859
909
  # @param [String] quota_user
@@ -875,13 +925,14 @@ module Google
875
925
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
926
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
927
  # @raise [Google::Apis::AuthorizationError] Authorization is required
878
- 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)
928
+ 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)
879
929
  command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options)
880
930
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
881
931
  command.response_class = Google::Apis::StorageV1::ObjectAccessControls
882
932
  command.params['bucket'] = bucket unless bucket.nil?
883
933
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
884
934
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
935
+ command.query['userProject'] = user_project unless user_project.nil?
885
936
  command.query['fields'] = fields unless fields.nil?
886
937
  command.query['quotaUser'] = quota_user unless quota_user.nil?
887
938
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -896,6 +947,8 @@ module Google
896
947
  # The entity holding the permission. Can be user-userId, user-emailAddress,
897
948
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
898
949
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
950
+ # @param [String] user_project
951
+ # The project number to be billed for this request, for Requester Pays buckets.
899
952
  # @param [String] fields
900
953
  # Selector specifying which fields to include in a partial response.
901
954
  # @param [String] quota_user
@@ -917,7 +970,7 @@ module Google
917
970
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
918
971
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
919
972
  # @raise [Google::Apis::AuthorizationError] Authorization is required
920
- def patch_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
973
+ 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)
921
974
  command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options)
922
975
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
923
976
  command.request_object = object_access_control_object
@@ -925,6 +978,7 @@ module Google
925
978
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
926
979
  command.params['bucket'] = bucket unless bucket.nil?
927
980
  command.params['entity'] = entity unless entity.nil?
981
+ command.query['userProject'] = user_project unless user_project.nil?
928
982
  command.query['fields'] = fields unless fields.nil?
929
983
  command.query['quotaUser'] = quota_user unless quota_user.nil?
930
984
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -938,6 +992,8 @@ module Google
938
992
  # The entity holding the permission. Can be user-userId, user-emailAddress,
939
993
  # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
940
994
  # @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
995
+ # @param [String] user_project
996
+ # The project number to be billed for this request, for Requester Pays buckets.
941
997
  # @param [String] fields
942
998
  # Selector specifying which fields to include in a partial response.
943
999
  # @param [String] quota_user
@@ -959,7 +1015,7 @@ module Google
959
1015
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
960
1016
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
961
1017
  # @raise [Google::Apis::AuthorizationError] Authorization is required
962
- def update_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1018
+ 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)
963
1019
  command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options)
964
1020
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
965
1021
  command.request_object = object_access_control_object
@@ -967,6 +1023,7 @@ module Google
967
1023
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
968
1024
  command.params['bucket'] = bucket unless bucket.nil?
969
1025
  command.params['entity'] = entity unless entity.nil?
1026
+ command.query['userProject'] = user_project unless user_project.nil?
970
1027
  command.query['fields'] = fields unless fields.nil?
971
1028
  command.query['quotaUser'] = quota_user unless quota_user.nil?
972
1029
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -978,6 +1035,8 @@ module Google
978
1035
  # The parent bucket of the notification.
979
1036
  # @param [String] notification
980
1037
  # ID of the notification to delete.
1038
+ # @param [String] user_project
1039
+ # The project number to be billed for this request, for Requester Pays buckets.
981
1040
  # @param [String] fields
982
1041
  # Selector specifying which fields to include in a partial response.
983
1042
  # @param [String] quota_user
@@ -999,10 +1058,11 @@ module Google
999
1058
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
1059
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
1060
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
- def delete_notification(bucket, notification, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1061
+ def delete_notification(bucket, notification, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1003
1062
  command = make_simple_command(:delete, 'b/{bucket}/notificationConfigs/{notification}', options)
1004
1063
  command.params['bucket'] = bucket unless bucket.nil?
1005
1064
  command.params['notification'] = notification unless notification.nil?
1065
+ command.query['userProject'] = user_project unless user_project.nil?
1006
1066
  command.query['fields'] = fields unless fields.nil?
1007
1067
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1008
1068
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1014,6 +1074,8 @@ module Google
1014
1074
  # The parent bucket of the notification.
1015
1075
  # @param [String] notification
1016
1076
  # Notification ID
1077
+ # @param [String] user_project
1078
+ # The project number to be billed for this request, for Requester Pays buckets.
1017
1079
  # @param [String] fields
1018
1080
  # Selector specifying which fields to include in a partial response.
1019
1081
  # @param [String] quota_user
@@ -1035,12 +1097,13 @@ module Google
1035
1097
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1036
1098
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1037
1099
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1038
- def get_notification(bucket, notification, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1100
+ def get_notification(bucket, notification, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1039
1101
  command = make_simple_command(:get, 'b/{bucket}/notificationConfigs/{notification}', options)
1040
1102
  command.response_representation = Google::Apis::StorageV1::Notification::Representation
1041
1103
  command.response_class = Google::Apis::StorageV1::Notification
1042
1104
  command.params['bucket'] = bucket unless bucket.nil?
1043
1105
  command.params['notification'] = notification unless notification.nil?
1106
+ command.query['userProject'] = user_project unless user_project.nil?
1044
1107
  command.query['fields'] = fields unless fields.nil?
1045
1108
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1046
1109
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1051,6 +1114,8 @@ module Google
1051
1114
  # @param [String] bucket
1052
1115
  # The parent bucket of the notification.
1053
1116
  # @param [Google::Apis::StorageV1::Notification] notification_object
1117
+ # @param [String] user_project
1118
+ # The project number to be billed for this request, for Requester Pays buckets.
1054
1119
  # @param [String] fields
1055
1120
  # Selector specifying which fields to include in a partial response.
1056
1121
  # @param [String] quota_user
@@ -1072,13 +1137,14 @@ module Google
1072
1137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1073
1138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1074
1139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1075
- def insert_notification(bucket, notification_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1140
+ def insert_notification(bucket, notification_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1076
1141
  command = make_simple_command(:post, 'b/{bucket}/notificationConfigs', options)
1077
1142
  command.request_representation = Google::Apis::StorageV1::Notification::Representation
1078
1143
  command.request_object = notification_object
1079
1144
  command.response_representation = Google::Apis::StorageV1::Notification::Representation
1080
1145
  command.response_class = Google::Apis::StorageV1::Notification
1081
1146
  command.params['bucket'] = bucket unless bucket.nil?
1147
+ command.query['userProject'] = user_project unless user_project.nil?
1082
1148
  command.query['fields'] = fields unless fields.nil?
1083
1149
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1084
1150
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1088,6 +1154,8 @@ module Google
1088
1154
  # Retrieves a list of notification subscriptions for a given bucket.
1089
1155
  # @param [String] bucket
1090
1156
  # Name of a GCS bucket.
1157
+ # @param [String] user_project
1158
+ # The project number to be billed for this request, for Requester Pays buckets.
1091
1159
  # @param [String] fields
1092
1160
  # Selector specifying which fields to include in a partial response.
1093
1161
  # @param [String] quota_user
@@ -1109,11 +1177,12 @@ module Google
1109
1177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
1178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
1179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
- def list_notifications(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1180
+ def list_notifications(bucket, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1113
1181
  command = make_simple_command(:get, 'b/{bucket}/notificationConfigs', options)
1114
1182
  command.response_representation = Google::Apis::StorageV1::Notifications::Representation
1115
1183
  command.response_class = Google::Apis::StorageV1::Notifications
1116
1184
  command.params['bucket'] = bucket unless bucket.nil?
1185
+ command.query['userProject'] = user_project unless user_project.nil?
1117
1186
  command.query['fields'] = fields unless fields.nil?
1118
1187
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1119
1188
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1133,6 +1202,8 @@ module Google
1133
1202
  # @param [Fixnum] generation
1134
1203
  # If present, selects a specific revision of this object (as opposed to the
1135
1204
  # latest version, the default).
1205
+ # @param [String] user_project
1206
+ # The project number to be billed for this request, for Requester Pays buckets.
1136
1207
  # @param [String] fields
1137
1208
  # Selector specifying which fields to include in a partial response.
1138
1209
  # @param [String] quota_user
@@ -1154,12 +1225,13 @@ module Google
1154
1225
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1155
1226
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1156
1227
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1157
- def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1228
+ def delete_object_access_control(bucket, object, entity, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1158
1229
  command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options)
1159
1230
  command.params['bucket'] = bucket unless bucket.nil?
1160
1231
  command.params['object'] = object unless object.nil?
1161
1232
  command.params['entity'] = entity unless entity.nil?
1162
1233
  command.query['generation'] = generation unless generation.nil?
1234
+ command.query['userProject'] = user_project unless user_project.nil?
1163
1235
  command.query['fields'] = fields unless fields.nil?
1164
1236
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1165
1237
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1178,6 +1250,8 @@ module Google
1178
1250
  # @param [Fixnum] generation
1179
1251
  # If present, selects a specific revision of this object (as opposed to the
1180
1252
  # latest version, the default).
1253
+ # @param [String] user_project
1254
+ # The project number to be billed for this request, for Requester Pays buckets.
1181
1255
  # @param [String] fields
1182
1256
  # Selector specifying which fields to include in a partial response.
1183
1257
  # @param [String] quota_user
@@ -1199,7 +1273,7 @@ module Google
1199
1273
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1200
1274
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1201
1275
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1202
- def get_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1276
+ def get_object_access_control(bucket, object, entity, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1203
1277
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options)
1204
1278
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1205
1279
  command.response_class = Google::Apis::StorageV1::ObjectAccessControl
@@ -1207,6 +1281,7 @@ module Google
1207
1281
  command.params['object'] = object unless object.nil?
1208
1282
  command.params['entity'] = entity unless entity.nil?
1209
1283
  command.query['generation'] = generation unless generation.nil?
1284
+ command.query['userProject'] = user_project unless user_project.nil?
1210
1285
  command.query['fields'] = fields unless fields.nil?
1211
1286
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1212
1287
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1223,6 +1298,8 @@ module Google
1223
1298
  # @param [Fixnum] generation
1224
1299
  # If present, selects a specific revision of this object (as opposed to the
1225
1300
  # latest version, the default).
1301
+ # @param [String] user_project
1302
+ # The project number to be billed for this request, for Requester Pays buckets.
1226
1303
  # @param [String] fields
1227
1304
  # Selector specifying which fields to include in a partial response.
1228
1305
  # @param [String] quota_user
@@ -1244,7 +1321,7 @@ module Google
1244
1321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1245
1322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1246
1323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1247
- 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)
1324
+ 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)
1248
1325
  command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options)
1249
1326
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1250
1327
  command.request_object = object_access_control_object
@@ -1253,6 +1330,7 @@ module Google
1253
1330
  command.params['bucket'] = bucket unless bucket.nil?
1254
1331
  command.params['object'] = object unless object.nil?
1255
1332
  command.query['generation'] = generation unless generation.nil?
1333
+ command.query['userProject'] = user_project unless user_project.nil?
1256
1334
  command.query['fields'] = fields unless fields.nil?
1257
1335
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1258
1336
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1268,6 +1346,8 @@ module Google
1268
1346
  # @param [Fixnum] generation
1269
1347
  # If present, selects a specific revision of this object (as opposed to the
1270
1348
  # latest version, the default).
1349
+ # @param [String] user_project
1350
+ # The project number to be billed for this request, for Requester Pays buckets.
1271
1351
  # @param [String] fields
1272
1352
  # Selector specifying which fields to include in a partial response.
1273
1353
  # @param [String] quota_user
@@ -1289,13 +1369,14 @@ module Google
1289
1369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1290
1370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1291
1371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1292
- def list_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1372
+ def list_object_access_controls(bucket, object, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1293
1373
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options)
1294
1374
  command.response_representation = Google::Apis::StorageV1::ObjectAccessControls::Representation
1295
1375
  command.response_class = Google::Apis::StorageV1::ObjectAccessControls
1296
1376
  command.params['bucket'] = bucket unless bucket.nil?
1297
1377
  command.params['object'] = object unless object.nil?
1298
1378
  command.query['generation'] = generation unless generation.nil?
1379
+ command.query['userProject'] = user_project unless user_project.nil?
1299
1380
  command.query['fields'] = fields unless fields.nil?
1300
1381
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1301
1382
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1316,6 +1397,8 @@ module Google
1316
1397
  # @param [Fixnum] generation
1317
1398
  # If present, selects a specific revision of this object (as opposed to the
1318
1399
  # latest version, the default).
1400
+ # @param [String] user_project
1401
+ # The project number to be billed for this request, for Requester Pays buckets.
1319
1402
  # @param [String] fields
1320
1403
  # Selector specifying which fields to include in a partial response.
1321
1404
  # @param [String] quota_user
@@ -1337,7 +1420,7 @@ module Google
1337
1420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1338
1421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1339
1422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1340
- 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)
1423
+ 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)
1341
1424
  command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options)
1342
1425
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1343
1426
  command.request_object = object_access_control_object
@@ -1347,6 +1430,7 @@ module Google
1347
1430
  command.params['object'] = object unless object.nil?
1348
1431
  command.params['entity'] = entity unless entity.nil?
1349
1432
  command.query['generation'] = generation unless generation.nil?
1433
+ command.query['userProject'] = user_project unless user_project.nil?
1350
1434
  command.query['fields'] = fields unless fields.nil?
1351
1435
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1352
1436
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1366,6 +1450,8 @@ module Google
1366
1450
  # @param [Fixnum] generation
1367
1451
  # If present, selects a specific revision of this object (as opposed to the
1368
1452
  # latest version, the default).
1453
+ # @param [String] user_project
1454
+ # The project number to be billed for this request, for Requester Pays buckets.
1369
1455
  # @param [String] fields
1370
1456
  # Selector specifying which fields to include in a partial response.
1371
1457
  # @param [String] quota_user
@@ -1387,7 +1473,7 @@ module Google
1387
1473
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1388
1474
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1389
1475
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1390
- 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)
1476
+ 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)
1391
1477
  command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options)
1392
1478
  command.request_representation = Google::Apis::StorageV1::ObjectAccessControl::Representation
1393
1479
  command.request_object = object_access_control_object
@@ -1397,6 +1483,7 @@ module Google
1397
1483
  command.params['object'] = object unless object.nil?
1398
1484
  command.params['entity'] = entity unless entity.nil?
1399
1485
  command.query['generation'] = generation unless generation.nil?
1486
+ command.query['userProject'] = user_project unless user_project.nil?
1400
1487
  command.query['fields'] = fields unless fields.nil?
1401
1488
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1402
1489
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1418,6 +1505,8 @@ module Google
1418
1505
  # @param [Fixnum] if_metageneration_match
1419
1506
  # Makes the operation conditional on whether the object's current metageneration
1420
1507
  # matches the given value.
1508
+ # @param [String] user_project
1509
+ # The project number to be billed for this request, for Requester Pays buckets.
1421
1510
  # @param [String] fields
1422
1511
  # Selector specifying which fields to include in a partial response.
1423
1512
  # @param [String] quota_user
@@ -1441,7 +1530,7 @@ module Google
1441
1530
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1442
1531
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1443
1532
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1444
- 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)
1533
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1445
1534
  if download_dest.nil?
1446
1535
  command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1447
1536
  else
@@ -1457,6 +1546,7 @@ module Google
1457
1546
  command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
1458
1547
  command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1459
1548
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1549
+ command.query['userProject'] = user_project unless user_project.nil?
1460
1550
  command.query['fields'] = fields unless fields.nil?
1461
1551
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1462
1552
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1509,6 +1599,8 @@ module Google
1509
1599
  # @param [Fixnum] source_generation
1510
1600
  # If present, selects a specific revision of the source object (as opposed to
1511
1601
  # the latest version, the default).
1602
+ # @param [String] user_project
1603
+ # The project number to be billed for this request, for Requester Pays buckets.
1512
1604
  # @param [String] fields
1513
1605
  # Selector specifying which fields to include in a partial response.
1514
1606
  # @param [String] quota_user
@@ -1532,7 +1624,7 @@ module Google
1532
1624
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
1625
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
1626
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
- 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)
1627
+ 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, download_dest: nil, options: nil, &block)
1536
1628
  if download_dest.nil?
1537
1629
  command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
1538
1630
  else
@@ -1558,6 +1650,7 @@ module Google
1558
1650
  command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
1559
1651
  command.query['projection'] = projection unless projection.nil?
1560
1652
  command.query['sourceGeneration'] = source_generation unless source_generation.nil?
1653
+ command.query['userProject'] = user_project unless user_project.nil?
1561
1654
  command.query['fields'] = fields unless fields.nil?
1562
1655
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1563
1656
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1586,6 +1679,8 @@ module Google
1586
1679
  # @param [Fixnum] if_metageneration_not_match
1587
1680
  # Makes the operation conditional on whether the object's current metageneration
1588
1681
  # does not match the given value.
1682
+ # @param [String] user_project
1683
+ # The project number to be billed for this request, for Requester Pays buckets.
1589
1684
  # @param [String] fields
1590
1685
  # Selector specifying which fields to include in a partial response.
1591
1686
  # @param [String] quota_user
@@ -1607,7 +1702,7 @@ module Google
1607
1702
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1608
1703
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1609
1704
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1610
- 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)
1705
+ 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)
1611
1706
  command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options)
1612
1707
  command.params['bucket'] = bucket unless bucket.nil?
1613
1708
  command.params['object'] = object unless object.nil?
@@ -1616,6 +1711,7 @@ module Google
1616
1711
  command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1617
1712
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1618
1713
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1714
+ command.query['userProject'] = user_project unless user_project.nil?
1619
1715
  command.query['fields'] = fields unless fields.nil?
1620
1716
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1621
1717
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1645,6 +1741,8 @@ module Google
1645
1741
  # does not match the given value.
1646
1742
  # @param [String] projection
1647
1743
  # Set of properties to return. Defaults to noAcl.
1744
+ # @param [String] user_project
1745
+ # The project number to be billed for this request, for Requester Pays buckets.
1648
1746
  # @param [String] fields
1649
1747
  # Selector specifying which fields to include in a partial response.
1650
1748
  # @param [String] quota_user
@@ -1668,7 +1766,7 @@ module Google
1668
1766
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1669
1767
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1670
1768
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1671
- 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)
1769
+ 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)
1672
1770
  if download_dest.nil?
1673
1771
  command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
1674
1772
  else
@@ -1685,6 +1783,7 @@ module Google
1685
1783
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1686
1784
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1687
1785
  command.query['projection'] = projection unless projection.nil?
1786
+ command.query['userProject'] = user_project unless user_project.nil?
1688
1787
  command.query['fields'] = fields unless fields.nil?
1689
1788
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1690
1789
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1700,6 +1799,8 @@ module Google
1700
1799
  # @param [Fixnum] generation
1701
1800
  # If present, selects a specific revision of this object (as opposed to the
1702
1801
  # latest version, the default).
1802
+ # @param [String] user_project
1803
+ # The project number to be billed for this request, for Requester Pays buckets.
1703
1804
  # @param [String] fields
1704
1805
  # Selector specifying which fields to include in a partial response.
1705
1806
  # @param [String] quota_user
@@ -1721,13 +1822,14 @@ module Google
1721
1822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1722
1823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1723
1824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1724
- def get_object_iam_policy(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1825
+ def get_object_iam_policy(bucket, object, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1725
1826
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/iam', options)
1726
1827
  command.response_representation = Google::Apis::StorageV1::Policy::Representation
1727
1828
  command.response_class = Google::Apis::StorageV1::Policy
1728
1829
  command.params['bucket'] = bucket unless bucket.nil?
1729
1830
  command.params['object'] = object unless object.nil?
1730
1831
  command.query['generation'] = generation unless generation.nil?
1832
+ command.query['userProject'] = user_project unless user_project.nil?
1731
1833
  command.query['fields'] = fields unless fields.nil?
1732
1834
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1733
1835
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1766,6 +1868,8 @@ module Google
1766
1868
  # @param [String] projection
1767
1869
  # Set of properties to return. Defaults to noAcl, unless the object resource
1768
1870
  # specifies the acl property, when it defaults to full.
1871
+ # @param [String] user_project
1872
+ # The project number to be billed for this request, for Requester Pays buckets.
1769
1873
  # @param [String] fields
1770
1874
  # Selector specifying which fields to include in a partial response.
1771
1875
  # @param [String] quota_user
@@ -1791,7 +1895,7 @@ module Google
1791
1895
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1792
1896
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1793
1897
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1794
- 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)
1898
+ 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1795
1899
  if upload_source.nil?
1796
1900
  command = make_simple_command(:post, 'b/{bucket}/o', options)
1797
1901
  else
@@ -1812,6 +1916,7 @@ module Google
1812
1916
  command.query['name'] = name unless name.nil?
1813
1917
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1814
1918
  command.query['projection'] = projection unless projection.nil?
1919
+ command.query['userProject'] = user_project unless user_project.nil?
1815
1920
  command.query['fields'] = fields unless fields.nil?
1816
1921
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1817
1922
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1839,6 +1944,8 @@ module Google
1839
1944
  # Filter results to objects whose names begin with this prefix.
1840
1945
  # @param [String] projection
1841
1946
  # Set of properties to return. Defaults to noAcl.
1947
+ # @param [String] user_project
1948
+ # The project number to be billed for this request, for Requester Pays buckets.
1842
1949
  # @param [Boolean] versions
1843
1950
  # If true, lists all versions of an object as distinct results. The default is
1844
1951
  # false. For more information, see Object Versioning.
@@ -1863,7 +1970,7 @@ module Google
1863
1970
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1864
1971
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1865
1972
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1866
- 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)
1973
+ def list_objects(bucket, 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)
1867
1974
  command = make_simple_command(:get, 'b/{bucket}/o', options)
1868
1975
  command.response_representation = Google::Apis::StorageV1::Objects::Representation
1869
1976
  command.response_class = Google::Apis::StorageV1::Objects
@@ -1873,6 +1980,7 @@ module Google
1873
1980
  command.query['pageToken'] = page_token unless page_token.nil?
1874
1981
  command.query['prefix'] = prefix unless prefix.nil?
1875
1982
  command.query['projection'] = projection unless projection.nil?
1983
+ command.query['userProject'] = user_project unless user_project.nil?
1876
1984
  command.query['versions'] = versions unless versions.nil?
1877
1985
  command.query['fields'] = fields unless fields.nil?
1878
1986
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1906,6 +2014,8 @@ module Google
1906
2014
  # Apply a predefined set of access controls to this object.
1907
2015
  # @param [String] projection
1908
2016
  # Set of properties to return. Defaults to full.
2017
+ # @param [String] user_project
2018
+ # The project number to be billed for this request, for Requester Pays buckets.
1909
2019
  # @param [String] fields
1910
2020
  # Selector specifying which fields to include in a partial response.
1911
2021
  # @param [String] quota_user
@@ -1927,7 +2037,7 @@ module Google
1927
2037
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1928
2038
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1929
2039
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1930
- 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)
2040
+ 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)
1931
2041
  command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
1932
2042
  command.request_representation = Google::Apis::StorageV1::Object::Representation
1933
2043
  command.request_object = object_object
@@ -1942,6 +2052,7 @@ module Google
1942
2052
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1943
2053
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1944
2054
  command.query['projection'] = projection unless projection.nil?
2055
+ command.query['userProject'] = user_project unless user_project.nil?
1945
2056
  command.query['fields'] = fields unless fields.nil?
1946
2057
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1947
2058
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2009,6 +2120,8 @@ module Google
2009
2120
  # @param [Fixnum] source_generation
2010
2121
  # If present, selects a specific revision of the source object (as opposed to
2011
2122
  # the latest version, the default).
2123
+ # @param [String] user_project
2124
+ # The project number to be billed for this request, for Requester Pays buckets.
2012
2125
  # @param [String] fields
2013
2126
  # Selector specifying which fields to include in a partial response.
2014
2127
  # @param [String] quota_user
@@ -2030,7 +2143,7 @@ module Google
2030
2143
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2031
2144
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2032
2145
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2033
- 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)
2146
+ 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2034
2147
  command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
2035
2148
  command.request_representation = Google::Apis::StorageV1::Object::Representation
2036
2149
  command.request_object = object_object
@@ -2053,6 +2166,7 @@ module Google
2053
2166
  command.query['projection'] = projection unless projection.nil?
2054
2167
  command.query['rewriteToken'] = rewrite_token unless rewrite_token.nil?
2055
2168
  command.query['sourceGeneration'] = source_generation unless source_generation.nil?
2169
+ command.query['userProject'] = user_project unless user_project.nil?
2056
2170
  command.query['fields'] = fields unless fields.nil?
2057
2171
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2058
2172
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2069,6 +2183,8 @@ module Google
2069
2183
  # @param [Fixnum] generation
2070
2184
  # If present, selects a specific revision of this object (as opposed to the
2071
2185
  # latest version, the default).
2186
+ # @param [String] user_project
2187
+ # The project number to be billed for this request, for Requester Pays buckets.
2072
2188
  # @param [String] fields
2073
2189
  # Selector specifying which fields to include in a partial response.
2074
2190
  # @param [String] quota_user
@@ -2090,7 +2206,7 @@ module Google
2090
2206
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2091
2207
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2092
2208
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2093
- def set_object_iam_policy(bucket, object, policy_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2209
+ 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)
2094
2210
  command = make_simple_command(:put, 'b/{bucket}/o/{object}/iam', options)
2095
2211
  command.request_representation = Google::Apis::StorageV1::Policy::Representation
2096
2212
  command.request_object = policy_object
@@ -2099,6 +2215,7 @@ module Google
2099
2215
  command.params['bucket'] = bucket unless bucket.nil?
2100
2216
  command.params['object'] = object unless object.nil?
2101
2217
  command.query['generation'] = generation unless generation.nil?
2218
+ command.query['userProject'] = user_project unless user_project.nil?
2102
2219
  command.query['fields'] = fields unless fields.nil?
2103
2220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2104
2221
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2117,6 +2234,8 @@ module Google
2117
2234
  # @param [Fixnum] generation
2118
2235
  # If present, selects a specific revision of this object (as opposed to the
2119
2236
  # latest version, the default).
2237
+ # @param [String] user_project
2238
+ # The project number to be billed for this request, for Requester Pays buckets.
2120
2239
  # @param [String] fields
2121
2240
  # Selector specifying which fields to include in a partial response.
2122
2241
  # @param [String] quota_user
@@ -2138,7 +2257,7 @@ module Google
2138
2257
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2139
2258
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2140
2259
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2141
- def test_object_iam_permissions(bucket, object, permissions, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2260
+ def test_object_iam_permissions(bucket, object, permissions, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2142
2261
  command = make_simple_command(:get, 'b/{bucket}/o/{object}/iam/testPermissions', options)
2143
2262
  command.response_representation = Google::Apis::StorageV1::TestIamPermissionsResponse::Representation
2144
2263
  command.response_class = Google::Apis::StorageV1::TestIamPermissionsResponse
@@ -2146,6 +2265,7 @@ module Google
2146
2265
  command.params['object'] = object unless object.nil?
2147
2266
  command.query['generation'] = generation unless generation.nil?
2148
2267
  command.query['permissions'] = permissions unless permissions.nil?
2268
+ command.query['userProject'] = user_project unless user_project.nil?
2149
2269
  command.query['fields'] = fields unless fields.nil?
2150
2270
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2151
2271
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2178,6 +2298,8 @@ module Google
2178
2298
  # Apply a predefined set of access controls to this object.
2179
2299
  # @param [String] projection
2180
2300
  # Set of properties to return. Defaults to full.
2301
+ # @param [String] user_project
2302
+ # The project number to be billed for this request, for Requester Pays buckets.
2181
2303
  # @param [String] fields
2182
2304
  # Selector specifying which fields to include in a partial response.
2183
2305
  # @param [String] quota_user
@@ -2201,7 +2323,7 @@ module Google
2201
2323
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2202
2324
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2203
2325
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2204
- 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)
2326
+ 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, download_dest: nil, options: nil, &block)
2205
2327
  if download_dest.nil?
2206
2328
  command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
2207
2329
  else
@@ -2221,6 +2343,7 @@ module Google
2221
2343
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
2222
2344
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
2223
2345
  command.query['projection'] = projection unless projection.nil?
2346
+ command.query['userProject'] = user_project unless user_project.nil?
2224
2347
  command.query['fields'] = fields unless fields.nil?
2225
2348
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2226
2349
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2249,6 +2372,8 @@ module Google
2249
2372
  # Filter results to objects whose names begin with this prefix.
2250
2373
  # @param [String] projection
2251
2374
  # Set of properties to return. Defaults to noAcl.
2375
+ # @param [String] user_project
2376
+ # The project number to be billed for this request, for Requester Pays buckets.
2252
2377
  # @param [Boolean] versions
2253
2378
  # If true, lists all versions of an object as distinct results. The default is
2254
2379
  # false. For more information, see Object Versioning.
@@ -2273,7 +2398,7 @@ module Google
2273
2398
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2274
2399
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2275
2400
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2276
- 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)
2401
+ def watch_all_objects(bucket, channel_object = nil, 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)
2277
2402
  command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
2278
2403
  command.request_representation = Google::Apis::StorageV1::Channel::Representation
2279
2404
  command.request_object = channel_object
@@ -2285,6 +2410,7 @@ module Google
2285
2410
  command.query['pageToken'] = page_token unless page_token.nil?
2286
2411
  command.query['prefix'] = prefix unless prefix.nil?
2287
2412
  command.query['projection'] = projection unless projection.nil?
2413
+ command.query['userProject'] = user_project unless user_project.nil?
2288
2414
  command.query['versions'] = versions unless versions.nil?
2289
2415
  command.query['fields'] = fields unless fields.nil?
2290
2416
  command.query['quotaUser'] = quota_user unless quota_user.nil?