-
Notifications
You must be signed in to change notification settings - Fork 448
cleanup: remove line wrapping for region tags so they can be embedded in docs #16087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,8 +25,7 @@ namespace { | |
| void GetBucketEncryptionEnforcementConfig( | ||
| google::cloud::storage::Client client, | ||
| std::vector<std::string> 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 +64,14 @@ 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] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The placement of this |
||
| (std::move(client), argv.at(0)); | ||
| } | ||
|
|
||
| void SetBucketEncryptionEnforcementConfig( | ||
| google::cloud::storage::Client client, | ||
| std::vector<std::string> 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 +124,14 @@ 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] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The placement of this |
||
| (std::move(client), argv.at(0), argv.at(1)); | ||
| } | ||
|
|
||
| void UpdateBucketEncryptionEnforcementConfig( | ||
| google::cloud::storage::Client client, | ||
| std::vector<std::string> 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 +166,7 @@ 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] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The placement of this |
||
| (std::move(client), argv.at(0)); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this line exceeds 80 columns, clang-format will wrap it. I would try either putting them on separate lines (assuming the various documentation tools can handle that), or trying adding
// clang-format offand// clang-format onbefore and after the tags to try and prevent the wrapping form occurring.