MCPcopy Create free account
hub / github.com/apache/arrow / FromServiceAccountCredentials

Method FromServiceAccountCredentials

cpp/src/arrow/filesystem/gcsfs.cc:759–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759GcsOptions 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
768Result<GcsOptions> GcsOptions::FromUri(const arrow::util::Uri& uri,
769 std::string* out_path) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected