46 std::string base_uri,
const std::string& prefix,
47 const std::string& namespace_separator);
90 std::optional<std::string> plan_id = std::nullopt)
const;
97 ResourcePaths(std::string base_uri,
const std::string& prefix,
98 std::string namespace_separator);
100 std::string base_uri_;
101 const std::string prefix_;
102 const std::string namespace_separator_;
Resource path builder for Iceberg REST catalog endpoints.
Definition resource_paths.h:38
Result< std::string > Credentials(const TableIdentifier &ident) const
Get the /v1/{prefix}/namespaces/{namespace}/tables/{table}/credentials endpoint path.
Result< std::string > Config() const
Get the /v1/config endpoint path.
static Result< std::unique_ptr< ResourcePaths > > Make(std::string base_uri, const std::string &prefix, const std::string &namespace_separator)
Construct a ResourcePaths with base URI and optional prefix.
Result< std::string > NamespaceProperties(const Namespace &ns) const
Get the /v1/{prefix}/namespaces/{namespace}/properties endpoint path.
Result< std::string > Table(const TableIdentifier &ident) const
Get the /v1/{prefix}/namespaces/{namespace}/tables/{table} endpoint path.
Result< std::string > Namespace_(const Namespace &ns) const
Get the /v1/{prefix}/namespaces/{namespace} endpoint path.
Result< std::string > Register(const Namespace &ns) const
Get the /v1/{prefix}/namespaces/{namespace}/register endpoint path.
Result< std::string > Namespaces() const
Get the /v1/{prefix}/namespaces endpoint path.
Result< std::string > FetchScanTasks(const TableIdentifier &ident) const
Get the /v1/{prefix}/namespaces/{namespace}/tables/{table}/tasks endpoint path.
Result< std::string > Tables(const Namespace &ns) const
Get the /v1/{prefix}/namespaces/{namespace}/tables endpoint path.
Result< std::string > OAuth2Tokens() const
Get the /v1/oauth/tokens endpoint path.
Result< std::string > Metrics(const TableIdentifier &ident) const
Get the /v1/{prefix}/namespaces/{namespace}/tables/{table}/metrics endpoint path.
Result< std::string > Rename() const
Get the /v1/{prefix}/tables/rename endpoint path.
Result< std::string > CommitTransaction() const
Get the /v1/{prefix}/transactions/commit endpoint path.
Result< std::string > Plan(const TableIdentifier &ident, std::optional< std::string > plan_id=std::nullopt) const
Get the /v1/{prefix}/namespaces/{namespace}/tables/{table}/plan endpoint path, or /plan/{plan_id} if ...
Define symbol visibility macros for the REST catalog library.
REST catalog APIs.
Definition auth_manager.h:34
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.
A namespace in a catalog.
Definition table_identifier.h:35
Identifies a table in iceberg catalog.
Definition table_identifier.h:46