constructor(private http: HttpClient, private rbdConfigurationService: RbdConfigurationService) {}
- create(pool) {
+ create(pool: any) {
return this.http.post(this.apiPath, pool, { observe: 'response' });
}
- update(pool) {
+ update(pool: any) {
let name: string;
if (pool.hasOwnProperty('srcpool')) {
name = pool.srcpool;
});
}
- delete(name) {
+ delete(name: string) {
return this.http.delete(`${this.apiPath}/${name}`, { observe: 'response' });
}
- get(poolName) {
+ get(poolName: string) {
return this.http.get(`${this.apiPath}/${poolName}`);
}
);
}
- getInfo(pool_name?: string) {
- return this.http.get(`${this.apiPath}/_info` + (pool_name ? `?pool_name=${pool_name}` : ''));
+ getInfo() {
+ return this.http.get(`ui-${this.apiPath}/info`);
}
- list(attrs = []) {
+ list(attrs: string[] = []) {
const attrsStr = attrs.join(',');
return this.http
.get(`${this.apiPath}?attrs=${attrsStr}`)