mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-23 20:48:11 +00:00
51 lines
1.8 KiB
TypeScript
51 lines
1.8 KiB
TypeScript
import { IResourceProviderClient } from "../ResourceProvider/IResourceProviderClient";
|
|
import { NotebookWorkspace } from "../Contracts/DataModels";
|
|
|
|
export class NotebookWorkspaceSettingsProviderClient implements IResourceProviderClient<string> {
|
|
public async deleteAsync(url: string, apiVersion: string): Promise<void> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async postAsync(url: string, body: any, apiVersion: string): Promise<any> {
|
|
return Promise.resolve({
|
|
notebookServerEndpoint: "http://localhost:8888",
|
|
username: "",
|
|
password: ""
|
|
});
|
|
}
|
|
|
|
public async getAsync(url: string, apiVersion: string): Promise<string> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async putAsync(url: string, body: any, apiVersion: string): Promise<string> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async patchAsync(url: string, apiVersion: string): Promise<string> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
}
|
|
|
|
export class NotebookWorkspaceResourceProviderClient implements IResourceProviderClient<NotebookWorkspace> {
|
|
public async deleteAsync(url: string, apiVersion: string): Promise<void> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async postAsync(url: string, body: any, apiVersion: string): Promise<NotebookWorkspace> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async getAsync(url: string, apiVersion: string): Promise<NotebookWorkspace | NotebookWorkspace[]> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async putAsync(url: string, body: any, apiVersion: string): Promise<NotebookWorkspace> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
|
|
public async patchAsync(url: string, body: any, apiVersion: string): Promise<NotebookWorkspace> {
|
|
throw new Error("Not yet implemented");
|
|
}
|
|
}
|