edponce commented on code in PR #12763: URL: https://github.com/apache/arrow/pull/12763#discussion_r854813000
########## cpp/src/arrow/filesystem/gcsfs.h: ########## @@ -27,11 +27,37 @@ namespace arrow { namespace fs { -struct GcsCredentials; +// Opaque wrapper for GCS's library credentials to avoid exposing in Arrow headers. +struct GcsCredentialsHolder; +class GcsFileSystem; + +/// \brief Container for GCS Credentials an information necessary to recreate +/// them. +class GcsCredentials { + public: + bool Equals(const GcsCredentials& other) const; + bool anonymous() const { return anonymous_; } + const std::string& access_token() { return access_token_; } + TimePoint expiration() const { return expiration_; } + const std::string& target_service_account() { return target_service_account_; } + const std::string& json_credentials() { return json_credentials_; } + const std::shared_ptr<GcsCredentialsHolder>& holder() const { return holder_; } + + private: + GcsCredentials() = default; + bool anonymous_ = false; + std::string access_token_; + TimePoint expiration_; + std::string target_service_account_; + std::string json_credentials_; + std::shared_ptr<GcsCredentialsHolder> holder_; + friend class GcsFileSystem; + friend struct GcsOptions; +}; /// Options for the GcsFileSystem implementation. struct ARROW_EXPORT GcsOptions { - std::shared_ptr<GcsCredentials> credentials; + GcsCredentials credentials; Review Comment: Typo in comment: `Equivelant` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org