Skip to content

Commit ac99ef0

Browse files
authored
samples(storagebatch): fix region tags to use start and end (#15350)
1 parent 8660801 commit ac99ef0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

google/cloud/storagebatchoperations/v1/samples/storage_batch_operations_job_samples.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void CreateJob(
2727
google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
2828
client,
2929
std::vector<std::string> const& argv) {
30-
//! [storage_batch_create_job]
30+
// [START storage_batch_create_job]
3131
[](google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
3232
client,
3333
std::string const& project_id, std::string const& job_id,
@@ -47,15 +47,15 @@ void CreateJob(
4747
if (!result) throw result.status();
4848
std::cout << "Created job: " << result->name() << "\n";
4949
}
50-
//! [storage_batch_create_job]
50+
// [END storage_batch_create_job]
5151
(std::move(client), argv.at(0), argv.at(1), argv.at(2), argv.at(3));
5252
}
5353

5454
void ListJobs(
5555
google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
5656
client,
5757
std::vector<std::string> const& argv) {
58-
//! [storage_batch_list_jobs]
58+
// [START storage_batch_list_jobs]
5959
[](google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
6060
client,
6161
std::string const& project_id) {
@@ -66,15 +66,15 @@ void ListJobs(
6666
std::cout << job->name() << "\n";
6767
}
6868
}
69-
//! [storage_batch_list_jobs]
69+
// [END storage_batch_list_jobs]
7070
(std::move(client), argv.at(0));
7171
}
7272

7373
void GetJob(
7474
google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
7575
client,
7676
std::vector<std::string> const& argv) {
77-
//! [storage_batch_get_job]
77+
// [START storage_batch_get_job]
7878
[](google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
7979
client,
8080
std::string const& project_id, std::string const& job_id) {
@@ -85,15 +85,15 @@ void GetJob(
8585
if (!job) throw job.status();
8686
std::cout << "Got job: " << job->name() << "\n";
8787
}
88-
//! [storage_batch_get_job]
88+
// [END storage_batch_get_job]
8989
(std::move(client), argv.at(0), argv.at(1));
9090
}
9191

9292
void CancelJob(
9393
google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
9494
client,
9595
std::vector<std::string> const& argv) {
96-
//! [storage_batch_cancel_job]
96+
// [START storage_batch_cancel_job]
9797
[](google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
9898
client,
9999
std::string const& project_id, std::string const& job_id) {
@@ -104,15 +104,15 @@ void CancelJob(
104104
if (!response) throw response.status();
105105
std::cout << "Cancelled job: " << name << "\n";
106106
}
107-
//! [storage_batch_cancel_job]
107+
// [END storage_batch_cancel_job]
108108
(std::move(client), argv.at(0), argv.at(1));
109109
}
110110

111111
void DeleteJob(
112112
google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
113113
client,
114114
std::vector<std::string> const& argv) {
115-
//! [storage_batch_delete_job]
115+
// [START storage_batch_delete_job]
116116
[](google::cloud::storagebatchoperations_v1::StorageBatchOperationsClient
117117
client,
118118
std::string const& project_id, std::string const& job_id) {
@@ -123,7 +123,7 @@ void DeleteJob(
123123
if (!status.ok()) throw status;
124124
std::cout << "Deleted job: " << name << "\n";
125125
}
126-
//! [storage_batch_delete_job]
126+
// [END storage_batch_delete_job]
127127
(std::move(client), argv.at(0), argv.at(1));
128128
}
129129

0 commit comments

Comments
 (0)