Skip to content

Commit 9e6f82c

Browse files
feat(storage): Add samples related to AppendableObject and OpenObject (#15563)
1 parent 135abcb commit 9e6f82c

File tree

2 files changed

+311
-55
lines changed

2 files changed

+311
-55
lines changed

google/cloud/storage/async/client.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class AsyncClient {
371371
std::int64_t limit, Options opts = {});
372372

373373
/*
374-
[start-appendable-object-upload]
374+
[create-and-write-appendable-object]
375375
Initiates a [resumable upload][resumable-link] for an appendable object.
376376
377377
Appendable objects allow you to create an object and upload data to it
@@ -385,21 +385,21 @@ class AsyncClient {
385385
closure of the streaming RPC used for the upload.
386386
387387
@par Example
388-
@snippet storage_async_samples.cc start-appendable-object-upload
388+
@snippet storage_async_samples.cc create-and-write-appendable-object
389389
390390
@par Idempotency
391391
This function is always treated as idempotent, and the library will
392392
automatically retry the function on transient errors.
393393
394394
[resumable-link]: https://cloud.google.com/storage/docs/resumable-uploads
395-
[start-appendable-object-upload]
395+
[create-and-write-appendable-object]
396396
*/
397397

398398
/**
399399
* Starts a new resumable upload session for appendable objects and
400400
* automatic recovery from transient failures.
401401
*
402-
* @snippet{doc} async/client.h start-appendable-object-upload
402+
* @snippet{doc} async/client.h create-and-write-appendable-object
403403
*
404404
* @param bucket_name the name of the bucket that contains the object.
405405
* @param object_name the name of the object to be uploaded.
@@ -414,7 +414,7 @@ class AsyncClient {
414414
* Starts a new resumable upload session for appendable objects and
415415
* automatic recovery from transient failures.
416416
*
417-
* @snippet{doc} async/client.h start-appendable-object-upload
417+
* @snippet{doc} async/client.h create-and-write-appendable-object
418418
*
419419
* @param request the request contents, it must include the bucket name and
420420
* object name. Many other fields are optional.

0 commit comments

Comments
 (0)