| 757 | } |
| 758 | |
| 759 | GcsOptions GcsOptions::FromServiceAccountCredentials(const std::string& json_object) { |
| 760 | GcsOptions options{}; |
| 761 | options.credentials.holder_ = std::make_shared<internal::GcsCredentialsHolder>( |
| 762 | google::cloud::MakeServiceAccountCredentials(json_object)); |
| 763 | options.credentials.json_credentials_ = json_object; |
| 764 | options.scheme = "https"; |
| 765 | return options; |
| 766 | } |
| 767 | |
| 768 | Result<GcsOptions> GcsOptions::FromUri(const arrow::util::Uri& uri, |
| 769 | std::string* out_path) { |
nothing calls this directly
no outgoing calls
no test coverage detected