constructor()

in source/idea/idea-cluster-manager/webapp/src/client/clients.ts [64:219]


    constructor(props: IdeaClientsProps) {
        this.clients = [];

        this.authClient = new AuthClient({
            name: "auth-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.authClient);

        this.authzClient = new AuthzClient({
            name: "authz-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.authzClient);

        this.authAdminClient = new AccountsClient({
            name: "accounts-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.authAdminClient);

        this.proxyClient = new ProxyClient({
            name: "proxy-client",
            baseUrl: `${props.baseUrl}/awsproxy`,
            authContext: props.authContext,
            apiContextPath: "",
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.proxyClient);

        this.backendClient = new BackendClient({
            name: "backend-client",
            baseUrl: `${props.baseUrl}/res`,
            authContext: props.authContext,
            apiContextPath: "",
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.backendClient);

        this.snapshotsClient = new SnapshotsClient({
            name: "snapshots-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.snapshotsClient);

        this.schedulerAdminClient = new SchedulerAdminClient({
            name: "scheduler-admin-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_SCHEDULER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.schedulerAdminClient);

        this.schedulerClient = new SchedulerClient({
            name: "scheduler-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_SCHEDULER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.authClient);

        this.fileBrowserClient = new FileBrowserClient({
            name: "file-browser-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.fileBrowserClient);

        this.virtualDesktopAdminClient = new VirtualDesktopAdminClient({
            name: "virtual-desktop-admin-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_VIRTUAL_DESKTOP_CONTROLLER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.authClient);

        this.virtualDesktopClient = new VirtualDesktopClient({
            name: "virtual-desktop-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_VIRTUAL_DESKTOP_CONTROLLER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.virtualDesktopClient);

        this.virtualDesktopUtilsClient = new VirtualDesktopUtilsClient({
            name: "virtual-desktop-utils-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_VIRTUAL_DESKTOP_CONTROLLER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.virtualDesktopUtilsClient);

        this.virtualDesktopDCVClient = new VirtualDesktopDCVClient({
            name: "virtual-desktop-dcv-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_VIRTUAL_DESKTOP_CONTROLLER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.virtualDesktopDCVClient);

        this.clusterSettingsClient = new ClusterSettingsClient({
            name: "cluster-settings-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.clusterSettingsClient);

        this.projectsClient = new ProjectsClient({
            name: "projects-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.projectsClient);

        this.filesystemClient = new FileSystemClient({
            name: "filesystem-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.filesystemClient);

        this.emailTemplatesClient = new EmailTemplatesClient({
            name: "email-templates-client",
            baseUrl: props.baseUrl,
            authContext: props.authContext,
            apiContextPath: Utils.getApiContextPath(Constants.MODULE_CLUSTER_MANAGER),
            serviceWorkerRegistration: props.serviceWorkerRegistration,
        });
        this.clients.push(this.emailTemplatesClient);
    }