Е
Size: a a a
Е
Е
Е
SK
А
FL
AL
PT
updateVm(vm: Info): Observable<any> {
const id = vm.id;
const vmUrl = `${this.infoUrl}/${id}`;
return this.http.put(vmUrl, vm, this.httpOptions).pipe(
tap(_ => console.log('update'))
);
}
updateVm(vm: Info, edit: EditProperty): Observable<any> {
const id = vm.id;
const vmUrl = `${this.infoUrl}/${id}`;
return this.http.put(vmUrl, edit, this.httpOptions).pipe(
tap(_ => console.log('update'))
);
}
{
status: 1,
blocked: 1|0,
single_params: [
{
key: string,
},
.....
],
edit_params:
{
name: string,
description: string
}
}
AB
updateVm(vm: Info): Observable<any> {
const id = vm.id;
const vmUrl = `${this.infoUrl}/${id}`;
return this.http.put(vmUrl, vm, this.httpOptions).pipe(
tap(_ => console.log('update'))
);
}
updateVm(vm: Info, edit: EditProperty): Observable<any> {
const id = vm.id;
const vmUrl = `${this.infoUrl}/${id}`;
return this.http.put(vmUrl, edit, this.httpOptions).pipe(
tap(_ => console.log('update'))
);
}
{
status: 1,
blocked: 1|0,
single_params: [
{
key: string,
},
.....
],
edit_params:
{
name: string,
description: string
}
}
updateVm(id: number, vm: Partial<Info>): Observable<Info>;
R
R
PT
updateVm(id: number, vm: Partial<Info>): Observable<Info>;
AB
PT
PT
PT
PT
PT