UNPKG

redis-cloud-api-sdk

Version:
54 lines (53 loc) 1.87 kB
import { AccountInformation, DataPersistence, DatabaseModule, SystemLog, PaymentMethod, Plan, Region } from '../types/responses/general'; import { SubscriptionCloudProvider } from '../types/responses/subscription'; import { Client } from './api.base'; export declare class General { protected client: Client; constructor(client: Client); /** * Retrieving a lookup of the account information */ getAccountInformation(): Promise<AccountInformation & { [key: string]: any; }>; /** * Returning a lookup list of data persistence values */ getDataPersistences(): Promise<DataPersistence[] & { [key: string]: any; }>; /** * Returning a lookup list of database modules supported in current account (support may differ based on subscription and database settings) */ getDatabaseModules(): Promise<DatabaseModule[] & { [key: string]: any; }>; /** * Returning system log information for current account * @param limit Maximum number of items to return * @param offset Number of items to skip */ getSystemLogs(limit: number, offset: number): Promise<SystemLog[] & { [key: string]: any; }>; /** * Returning a lookup list of current account’s payment methods */ getPaymentMethods(): Promise<PaymentMethod[] & { [key: string]: any; }>; /** * Returning a lookup list of current account's plans * @param provider The cloud provider of the plan */ getPlans(provider: SubscriptionCloudProvider): Promise<Plan[] & { [key: string]: any; }>; /** * Returning a lookup list of current account's regions * @param provider The cloud provider of the plan */ getRegions(provider: SubscriptionCloudProvider): Promise<Region[] & { [key: string]: any; }>; }