UNPKG

@gridscale/api

Version:
18 lines (17 loc) 1.01 kB
import { GridscaleObjects } from './GridscaleObjects'; import { APIClass, ApiResult, RequestOptions, VoidApiResult } from '../api'; import * as models from './../Specs'; import { PaasServiceCreate, PaasServiceUpdate } from './../Specs'; interface PaasService { list(_options?: RequestOptions, _callback?: Function): Promise<ApiResult<models.PaasServicesGetResponse>>; get(_uuid: string, _callback?: Function): Promise<ApiResult<models.PaasServiceGetResponse>>; create(_attributes: PaasServiceCreate, _callback?: Function): Promise<ApiResult<models.PaasServiceCreateResponse>>; patch(_uuid: string, _attributes: PaasServiceUpdate, _callback?: Function): Promise<ApiResult<VoidApiResult>>; } declare class PaasService extends GridscaleObjects { api: APIClass; constructor(_api: APIClass); listMetrics(_uuid: any, _callback: any): Promise<ApiResult<models.PaasServiceMetricsGetResponse>>; renewCredentials(_uuid: string): Promise<ApiResult<VoidApiResult>>; } export { PaasService };