You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aggregation-platform/d.ts/configs/ts/configsDataService.d.ts

52 lines
1.3 KiB

/// <reference path="../../includes.d.ts" />
/// <reference path="configPlugin.d.ts" />
declare module Configs {
interface Block {
ip: string;
path: string;
status: boolean;
availableSize?: number;
usedSize?: number;
editable?: boolean;
}
interface oracleParam {
name: string;
ip: string;
port: string;
serviceName: string;
tableName: string;
status: string;
id?: number;
}
interface volume {
name: string;
allSize: number;
usedSize: number;
brick: Array<Block>;
folder?: Array<any>;
status: boolean;
path: string;
editable?: boolean;
}
function formatVolumes(volumes: Array<volume>): void;
/**
刪除volume中指定的brock
*/
function deleteBrock(volume: volume, brock: Block): void;
/**
volume添加brock
*/
function addBrock(volume: volume, brock: Block): void;
class ConfigsModelService {
cluster: Array<volume>;
oracleParam: Array<oracleParam>;
systemInfo: Array<any>;
regionalismInfo: Array<any>;
constructor();
updateAllData(): void;
updateVolumeData(): void;
updateOracleParam(): void;
getFolderByVolumeName(name: string): any[];
}
}