From 8898f31f4aea126e480454a0147ad96086d6ffa1 Mon Sep 17 00:00:00 2001 From: bajajnehaa Date: Mon, 25 May 2026 09:10:47 +0000 Subject: [PATCH 1/3] chore(storage): keep region_tag and START/END in one line --- ...e_bucket_encryption_enforcement_samples.cc | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc b/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc index e98feb19269ab..ffa9dd11aca68 100644 --- a/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc +++ b/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc @@ -25,8 +25,8 @@ namespace { void GetBucketEncryptionEnforcementConfig( google::cloud::storage::Client client, std::vector const& argv) { - //! [get bucket encryption enforcement config] [START - //! storage_get_bucket_encryption_enforcement_config] + //! [get bucket encryption enforcement config] + //! [START storage_get_bucket_encryption_enforcement_config] namespace gcs = ::google::cloud::storage; using ::google::cloud::StatusOr; [](gcs::Client client, std::string const& bucket_name) { @@ -65,16 +65,16 @@ void GetBucketEncryptionEnforcementConfig( encryption.customer_supplied_encryption_enforcement_config) << "\n"; } - //! [get bucket encryption enforcement config] [END - //! storage_get_bucket_encryption_enforcement_config] + //! [get bucket encryption enforcement config] + //! [END storage_get_bucket_encryption_enforcement_config] (std::move(client), argv.at(0)); } void SetBucketEncryptionEnforcementConfig( google::cloud::storage::Client client, std::vector const& argv) { - //! [set bucket encryption enforcement config] [START - //! storage_set_bucket_encryption_enforcement_config] + //! [set bucket encryption enforcement config] + //! [START storage_set_bucket_encryption_enforcement_config] namespace gcs = ::google::cloud::storage; using ::google::cloud::StatusOr; [](gcs::Client client, std::string const& project_id, @@ -127,16 +127,16 @@ void SetBucketEncryptionEnforcementConfig( << create_bucket("rc-" + bucket_name, csek_encryption)->name() << " created with a policy to restrict CSEK.\n"; } - //! [set bucket encryption enforcement config] [END - //! storage_set_bucket_encryption_enforcement_config] + //! [set bucket encryption enforcement config] + //! [END storage_set_bucket_encryption_enforcement_config] (std::move(client), argv.at(0), argv.at(1)); } void UpdateBucketEncryptionEnforcementConfig( google::cloud::storage::Client client, std::vector const& argv) { - //! [update bucket encryption enforcement config] [START - //! storage_update_bucket_encryption_enforcement_config] + //! [update bucket encryption enforcement config] + //! [START storage_update_bucket_encryption_enforcement_config] namespace gcs = ::google::cloud::storage; using ::google::cloud::StatusOr; [](gcs::Client client, std::string const& bucket_name) { @@ -171,8 +171,8 @@ void UpdateBucketEncryptionEnforcementConfig( << "GMEK is now fully restricted, and CMEK enforcement has been " "removed.\n"; } - //! [update bucket encryption enforcement config] [END - //! storage_update_bucket_encryption_enforcement_config] + //! [update bucket encryption enforcement config] + //! [END storage_update_bucket_encryption_enforcement_config] (std::move(client), argv.at(0)); } From a84ff8bf3ef052ddf9c09b06085c3dc672382a07 Mon Sep 17 00:00:00 2001 From: bajajnehaa Date: Mon, 25 May 2026 09:17:43 +0000 Subject: [PATCH 2/3] chore: rearrange lines --- .../examples/storage_bucket_encryption_enforcement_samples.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc b/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc index ffa9dd11aca68..093c500e69ddf 100644 --- a/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc +++ b/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc @@ -171,8 +171,8 @@ void UpdateBucketEncryptionEnforcementConfig( << "GMEK is now fully restricted, and CMEK enforcement has been " "removed.\n"; } - //! [update bucket encryption enforcement config] //! [END storage_update_bucket_encryption_enforcement_config] + //! [update bucket encryption enforcement config] (std::move(client), argv.at(0)); } From dda13425b83e05000cc74327f67fd24137873df0 Mon Sep 17 00:00:00 2001 From: bajajnehaa Date: Mon, 25 May 2026 09:24:26 +0000 Subject: [PATCH 3/3] Keeping the format same as rest of the file --- .../examples/storage_bucket_encryption_enforcement_samples.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc b/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc index 093c500e69ddf..c9bfb22da4320 100644 --- a/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc +++ b/google/cloud/storage/examples/storage_bucket_encryption_enforcement_samples.cc @@ -135,8 +135,8 @@ void SetBucketEncryptionEnforcementConfig( void UpdateBucketEncryptionEnforcementConfig( google::cloud::storage::Client client, std::vector const& argv) { - //! [update bucket encryption enforcement config] //! [START storage_update_bucket_encryption_enforcement_config] + //! [update bucket encryption enforcement config] namespace gcs = ::google::cloud::storage; using ::google::cloud::StatusOr; [](gcs::Client client, std::string const& bucket_name) { @@ -171,8 +171,8 @@ void UpdateBucketEncryptionEnforcementConfig( << "GMEK is now fully restricted, and CMEK enforcement has been " "removed.\n"; } - //! [END storage_update_bucket_encryption_enforcement_config] //! [update bucket encryption enforcement config] + //! [END storage_update_bucket_encryption_enforcement_config] (std::move(client), argv.at(0)); }