@@ -25,8 +25,8 @@ namespace {
2525void GetBucketEncryptionEnforcementConfig (
2626 google::cloud::storage::Client client,
2727 std::vector<std::string> const & argv) {
28- // ! [get bucket encryption enforcement config] [START
29- // ! storage_get_bucket_encryption_enforcement_config]
28+ // ! [get bucket encryption enforcement config]
29+ // ! [START storage_get_bucket_encryption_enforcement_config]
3030 namespace gcs = ::google::cloud::storage;
3131 using ::google::cloud::StatusOr;
3232 [](gcs::Client client, std::string const & bucket_name) {
@@ -65,16 +65,16 @@ void GetBucketEncryptionEnforcementConfig(
6565 encryption.customer_supplied_encryption_enforcement_config )
6666 << " \n " ;
6767 }
68- // ! [get bucket encryption enforcement config] [END
69- // ! storage_get_bucket_encryption_enforcement_config]
68+ // ! [get bucket encryption enforcement config]
69+ // ! [END storage_get_bucket_encryption_enforcement_config]
7070 (std::move (client), argv.at (0 ));
7171}
7272
7373void SetBucketEncryptionEnforcementConfig (
7474 google::cloud::storage::Client client,
7575 std::vector<std::string> const & argv) {
76- // ! [set bucket encryption enforcement config] [START
77- // ! storage_set_bucket_encryption_enforcement_config]
76+ // ! [set bucket encryption enforcement config]
77+ // ! [START storage_set_bucket_encryption_enforcement_config]
7878 namespace gcs = ::google::cloud::storage;
7979 using ::google::cloud::StatusOr;
8080 [](gcs::Client client, std::string const & project_id,
@@ -127,16 +127,16 @@ void SetBucketEncryptionEnforcementConfig(
127127 << create_bucket (" rc-" + bucket_name, csek_encryption)->name ()
128128 << " created with a policy to restrict CSEK.\n " ;
129129 }
130- // ! [set bucket encryption enforcement config] [END
131- // ! storage_set_bucket_encryption_enforcement_config]
130+ // ! [set bucket encryption enforcement config]
131+ // ! [END storage_set_bucket_encryption_enforcement_config]
132132 (std::move (client), argv.at (0 ), argv.at (1 ));
133133}
134134
135135void UpdateBucketEncryptionEnforcementConfig (
136136 google::cloud::storage::Client client,
137137 std::vector<std::string> const & argv) {
138- // ! [update bucket encryption enforcement config] [START
139- // ! storage_update_bucket_encryption_enforcement_config ]
138+ // ! [START storage_update_bucket_encryption_enforcement_config]
139+ // ! [update bucket encryption enforcement config ]
140140 namespace gcs = ::google::cloud::storage;
141141 using ::google::cloud::StatusOr;
142142 [](gcs::Client client, std::string const & bucket_name) {
@@ -171,8 +171,8 @@ void UpdateBucketEncryptionEnforcementConfig(
171171 << " GMEK is now fully restricted, and CMEK enforcement has been "
172172 " removed.\n " ;
173173 }
174- // ! [update bucket encryption enforcement config] [END
175- // ! storage_update_bucket_encryption_enforcement_config]
174+ // ! [update bucket encryption enforcement config]
175+ // ! [END storage_update_bucket_encryption_enforcement_config]
176176 (std::move (client), argv.at (0 ));
177177}
178178
0 commit comments