@@ -147,11 +147,11 @@ def reload(
147
147
self ,
148
148
client = None ,
149
149
projection = "noAcl" ,
150
- timeout = _DEFAULT_TIMEOUT ,
151
150
if_generation_match = None ,
152
151
if_generation_not_match = None ,
153
152
if_metageneration_match = None ,
154
153
if_metageneration_not_match = None ,
154
+ timeout = _DEFAULT_TIMEOUT ,
155
155
retry = DEFAULT_RETRY ,
156
156
):
157
157
"""Reload properties from Cloud Storage.
@@ -168,31 +168,26 @@ def reload(
168
168
Defaults to ``'noAcl'``. Specifies the set of
169
169
properties to return.
170
170
171
- :type timeout: float or tuple
172
- :param timeout:
173
- (Optional) The amount of time, in seconds, to wait
174
- for the server response. See: :ref:`configuring_timeouts`
175
-
176
171
:type if_generation_match: long
177
- :param if_generation_match: (Optional) Make the operation conditional on whether
178
- the blob's current generation matches the given value.
179
- Setting to 0 makes the operation succeed only if there
180
- are no live versions of the blob.
172
+ :param if_generation_match:
173
+ (Optional) See :ref:`using-if-generation-match`
181
174
182
175
:type if_generation_not_match: long
183
- :param if_generation_not_match: (Optional) Make the operation conditional on whether
184
- the blob's current generation does not match the given
185
- value. If no live blob exists, the precondition fails.
186
- Setting to 0 makes the operation succeed only if there
187
- is a live version of the blob.
176
+ :param if_generation_not_match:
177
+ (Optional) See :ref:`using-if-generation-not-match`
188
178
189
179
:type if_metageneration_match: long
190
- :param if_metageneration_match: (Optional) Make the operation conditional on whether the
191
- blob's current metageneration matches the given value.
180
+ :param if_metageneration_match:
181
+ (Optional) See :ref:`using-if- metageneration-match`
192
182
193
183
:type if_metageneration_not_match: long
194
- :param if_metageneration_not_match: (Optional) Make the operation conditional on whether the
195
- blob's current metageneration does not match the given value.
184
+ :param if_metageneration_not_match:
185
+ (Optional) See :ref:`using-if-metageneration-not-match`
186
+
187
+ :type timeout: float or tuple
188
+ :param timeout:
189
+ (Optional) The amount of time, in seconds, to wait
190
+ for the server response. See: :ref:`configuring_timeouts`
196
191
197
192
:type retry: google.api_core.retry.Retry or google.cloud.storage.retry.ConditionalRetryPolicy
198
193
:param retry:
@@ -251,11 +246,11 @@ def _set_properties(self, value):
251
246
def patch (
252
247
self ,
253
248
client = None ,
254
- timeout = _DEFAULT_TIMEOUT ,
255
249
if_generation_match = None ,
256
250
if_generation_not_match = None ,
257
251
if_metageneration_match = None ,
258
252
if_metageneration_not_match = None ,
253
+ timeout = _DEFAULT_TIMEOUT ,
259
254
retry = DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED ,
260
255
):
261
256
"""Sends all changed properties in a PATCH request.
@@ -269,31 +264,26 @@ def patch(
269
264
:param client: the client to use. If not passed, falls back to the
270
265
``client`` stored on the current object.
271
266
272
- :type timeout: float or tuple
273
- :param timeout:
274
- (Optional) The amount of time, in seconds, to wait
275
- for the server response. See: :ref:`configuring_timeouts`
276
-
277
267
:type if_generation_match: long
278
- :param if_generation_match: (Optional) Make the operation conditional on whether
279
- the blob's current generation matches the given value.
280
- Setting to 0 makes the operation succeed only if there
281
- are no live versions of the blob.
268
+ :param if_generation_match:
269
+ (Optional) See :ref:`using-if-generation-match`
282
270
283
271
:type if_generation_not_match: long
284
- :param if_generation_not_match: (Optional) Make the operation conditional on whether
285
- the blob's current generation does not match the given
286
- value. If no live blob exists, the precondition fails.
287
- Setting to 0 makes the operation succeed only if there
288
- is a live version of the blob.
272
+ :param if_generation_not_match:
273
+ (Optional) See :ref:`using-if-generation-not-match`
289
274
290
275
:type if_metageneration_match: long
291
- :param if_metageneration_match: (Optional) Make the operation conditional on whether the
292
- blob's current metageneration matches the given value.
276
+ :param if_metageneration_match:
277
+ (Optional) See :ref:`using-if- metageneration-match`
293
278
294
279
:type if_metageneration_not_match: long
295
- :param if_metageneration_not_match: (Optional) Make the operation conditional on whether the
296
- blob's current metageneration does not match the given value.
280
+ :param if_metageneration_not_match:
281
+ (Optional) See :ref:`using-if-metageneration-not-match`
282
+
283
+ :type timeout: float or tuple
284
+ :param timeout:
285
+ (Optional) The amount of time, in seconds, to wait
286
+ for the server response. See: :ref:`configuring_timeouts`
297
287
298
288
:type retry: google.api_core.retry.Retry or google.cloud.storage.retry.ConditionalRetryPolicy
299
289
:param retry:
@@ -327,11 +317,11 @@ def patch(
327
317
def update (
328
318
self ,
329
319
client = None ,
330
- timeout = _DEFAULT_TIMEOUT ,
331
320
if_generation_match = None ,
332
321
if_generation_not_match = None ,
333
322
if_metageneration_match = None ,
334
323
if_metageneration_not_match = None ,
324
+ timeout = _DEFAULT_TIMEOUT ,
335
325
retry = DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED ,
336
326
):
337
327
"""Sends all properties in a PUT request.
@@ -345,31 +335,26 @@ def update(
345
335
:param client: the client to use. If not passed, falls back to the
346
336
``client`` stored on the current object.
347
337
348
- :type timeout: float or tuple
349
- :param timeout:
350
- (Optional) The amount of time, in seconds, to wait
351
- for the server response. See: :ref:`configuring_timeouts`
352
-
353
338
:type if_generation_match: long
354
- :param if_generation_match: (Optional) Make the operation conditional on whether
355
- the blob's current generation matches the given value.
356
- Setting to 0 makes the operation succeed only if there
357
- are no live versions of the blob.
339
+ :param if_generation_match:
340
+ (Optional) See :ref:`using-if-generation-match`
358
341
359
342
:type if_generation_not_match: long
360
- :param if_generation_not_match: (Optional) Make the operation conditional on whether
361
- the blob's current generation does not match the given
362
- value. If no live blob exists, the precondition fails.
363
- Setting to 0 makes the operation succeed only if there
364
- is a live version of the blob.
343
+ :param if_generation_not_match:
344
+ (Optional) See :ref:`using-if-generation-not-match`
365
345
366
346
:type if_metageneration_match: long
367
- :param if_metageneration_match: (Optional) Make the operation conditional on whether the
368
- blob's current metageneration matches the given value.
347
+ :param if_metageneration_match:
348
+ (Optional) See :ref:`using-if- metageneration-match`
369
349
370
350
:type if_metageneration_not_match: long
371
- :param if_metageneration_not_match: (Optional) Make the operation conditional on whether the
372
- blob's current metageneration does not match the given value.
351
+ :param if_metageneration_not_match:
352
+ (Optional) See :ref:`using-if-metageneration-not-match`
353
+
354
+ :type timeout: float or tuple
355
+ :param timeout:
356
+ (Optional) The amount of time, in seconds, to wait
357
+ for the server response. See: :ref:`configuring_timeouts`
373
358
374
359
:type retry: google.api_core.retry.Retry or google.cloud.storage.retry.ConditionalRetryPolicy
375
360
:param retry:
0 commit comments