]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/api/nfs.service.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / api / nfs.service.ts
index 3ad1aadcd3c537077e7cd710766628058d108b26..1a53047ecdce0ea14f2bbc2d7a0d57ed9f7e1b09 100644 (file)
@@ -57,29 +57,29 @@ export class NfsService {
     return this.http.get(`${this.apiPath}/export`);
   }
 
-  get(clusterId, exportId) {
+  get(clusterId: string, exportId: string) {
     return this.http.get(`${this.apiPath}/export/${clusterId}/${exportId}`);
   }
 
-  create(nfs) {
+  create(nfs: any) {
     return this.http.post(`${this.apiPath}/export`, nfs, { observe: 'response' });
   }
 
-  update(clusterId, id, nfs) {
+  update(clusterId: string, id: string, nfs: any) {
     return this.http.put(`${this.apiPath}/export/${clusterId}/${id}`, nfs, { observe: 'response' });
   }
 
-  delete(clusterId, exportId) {
+  delete(clusterId: string, exportId: string) {
     return this.http.delete(`${this.apiPath}/export/${clusterId}/${exportId}`, {
       observe: 'response'
     });
   }
 
-  lsDir(root_dir) {
+  lsDir(root_dir: string) {
     return this.http.get(`${this.uiApiPath}/lsdir?root_dir=${root_dir}`);
   }
 
-  buckets(user_id) {
+  buckets(user_id: string) {
     return this.http.get(`${this.uiApiPath}/rgw/buckets?user_id=${user_id}`);
   }