UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

24 lines (23 loc) 1.09 kB
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { KubernetesResourceList, Namespace, Project, ResourceListParams } from '../core/public-api'; import * as i0 from "@angular/core"; export declare class ProjectApiService { private readonly http; constructor(http: HttpClient); getProjects(params?: ResourceListParams): Observable<Project[]>; getProjectList(params?: ResourceListParams): Observable<KubernetesResourceList<Project>>; getNamespaces({ project, cluster }: { project: string; cluster: string; }): Observable<KubernetesResourceList<Namespace>>; get(name: string): Observable<Project>; getClusterNamespaces(project: string, cluster: string): Observable<Namespace[]>; deleteProject(project: string): Observable<Project>; getProjectNamespaces(projectName: string): Observable<Array<{ cluster: string; namespace: string; }>>; static ɵfac: i0.ɵɵFactoryDeclaration<ProjectApiService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ProjectApiService>; }