UNPKG

cache-typescript-sdk

Version:
20 lines (19 loc) 1.12 kB
import { Observable } from "rxjs"; import { Namespace } from "../models/namespace/Namespace"; import { HttpEndpoint, ServerConfig } from "./HttpEndpoint"; export declare class NamespaceHttp extends HttpEndpoint { constructor(nodes?: ServerConfig[]); /** * Gets the root namespaces. The requests supports paging, i.e. retrieving the root namespaces in batches of a specified size. * @param id - The topmost namespace database id up to which root namespaces are returned. The parameter is optional. If not supplied the most recent rented root namespaces are returned. * @param pageSize - (Optional) The number of namespace objects to be returned for each request. The parameter is optional. The default value is 25, the minimum value is 5 and hte maximum value is 100. * @returns Observable<Namespace[]> */ getRootNamespaces(id: number, pageSize?: string): Observable<Namespace[]>; /** * Gets the namespace with given id. * @param namespace - The namespace id. * @returns Observable<Namespace> */ getNamespace(namespace: string): Observable<Namespace>; }