Skip to content

Commit

Permalink
docs(storage): better suggestion for deprecated API (#14786)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc authored Oct 14, 2024
1 parent 8abc170 commit 80a518a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions google/cloud/storage/client_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ Options DefaultOptionsWithCredentials(Options opts);
*/
class ChannelOptions {
public:
/// @deprecated Use google::cloud::Options and CAPathOption instead.
/// @deprecated Use google::cloud::Options and
/// google::cloud::CARootsFilePathOption instead.
std::string ssl_root_path() const { return ssl_root_path_; }

/// @deprecated Use google::cloud::Options and CAPathOption instead.
/// @deprecated Use google::cloud::Options and
/// google::cloud::CARootsFilePathOption instead.
ChannelOptions& set_ssl_root_path(std::string ssl_root_path) {
ssl_root_path_ = std::move(ssl_root_path);
return *this;
Expand Down Expand Up @@ -400,10 +402,12 @@ class ClientOptions {
return *this;
}

/// @deprecated Use google::cloud::Options and CAPathOption instead.
/// @deprecated Use google::cloud::Options and
/// google::cloud::CARootsFilePathOption instead.
ChannelOptions& channel_options() { return channel_options_; }

/// @deprecated Use google::cloud::Options and CAPathOption instead.
/// @deprecated Use google::cloud::Options and
/// google::cloud::CARootsFilePathOption instead.
ChannelOptions const& channel_options() const { return channel_options_; }

///@{
Expand Down

0 comments on commit 80a518a

Please sign in to comment.