iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::rest::ResourcePaths Class Reference

Resource path builder for Iceberg REST catalog endpoints. More...

#include <resource_paths.h>

Public Member Functions

Result< std::string > Config () const
 Get the /v1/config endpoint path.
 
Result< std::string > OAuth2Tokens () const
 Get the /v1/{prefix}/oauth/tokens endpoint path.
 
Result< std::string > Namespaces () const
 Get the /v1/{prefix}/namespaces endpoint path.
 
Result< std::string > Namespace_ (const Namespace &ns) const
 Get the /v1/{prefix}/namespaces/{namespace} endpoint path.
 
Result< std::string > NamespaceProperties (const Namespace &ns) const
 Get the /v1/{prefix}/namespaces/{namespace}/properties endpoint path.
 
Result< std::string > Tables (const Namespace &ns) const
 Get the /v1/{prefix}/namespaces/{namespace}/tables endpoint path.
 
Result< std::string > Table (const TableIdentifier &ident) const
 Get the /v1/{prefix}/namespaces/{namespace}/tables/{table} endpoint path.
 
Result< std::string > Register (const Namespace &ns) const
 Get the /v1/{prefix}/namespaces/{namespace}/register endpoint path.
 
Result< std::string > Rename () const
 Get the /v1/{prefix}/tables/rename endpoint path.
 
Result< std::string > Metrics (const TableIdentifier &ident) const
 Get the /v1/{prefix}/namespaces/{namespace}/tables/{table}/metrics endpoint path.
 
Result< std::string > Credentials (const TableIdentifier &ident) const
 Get the /v1/{prefix}/namespaces/{namespace}/tables/{table}/credentials endpoint path.
 
Result< std::string > CommitTransaction () const
 Get the /v1/{prefix}/transactions/commit endpoint path.
 

Static Public Member Functions

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.
 

Detailed Description

Resource path builder for Iceberg REST catalog endpoints.

This class constructs REST API endpoint URLs for various catalog operations.

Member Function Documentation

◆ Make()

Result< std::unique_ptr< ResourcePaths > > iceberg::rest::ResourcePaths::Make ( std::string  base_uri,
const std::string &  prefix,
const std::string &  namespace_separator 
)
static

Construct a ResourcePaths with base URI and optional prefix.

Parameters
base_uriThe base URI of the REST catalog server (without trailing slash)
prefixOptional prefix for REST API paths (default: empty)
namespace_separatorEncoded separator used between namespace levels.
Returns
A unique_ptr to ResourcePaths instance

The documentation for this class was generated from the following files: