dataiku-sdk 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +1259 -4
- package/dist/src/client.d.ts +46 -0
- package/dist/src/client.js +158 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.js +13 -0
- package/dist/src/resources/api-deployer.d.ts +66 -0
- package/dist/src/resources/api-deployer.js +79 -0
- package/dist/src/resources/api-services.d.ts +38 -0
- package/dist/src/resources/api-services.js +50 -0
- package/dist/src/resources/applications.d.ts +56 -0
- package/dist/src/resources/applications.js +67 -0
- package/dist/src/resources/bundles.d.ts +53 -0
- package/dist/src/resources/bundles.js +103 -0
- package/dist/src/resources/continuous-activities.d.ts +27 -0
- package/dist/src/resources/continuous-activities.js +22 -0
- package/dist/src/resources/datasets.d.ts +6 -0
- package/dist/src/resources/datasets.js +15 -0
- package/dist/src/resources/discussions.d.ts +26 -0
- package/dist/src/resources/discussions.js +29 -0
- package/dist/src/resources/meanings.d.ts +41 -0
- package/dist/src/resources/meanings.js +33 -0
- package/dist/src/resources/metrics.d.ts +44 -0
- package/dist/src/resources/metrics.js +31 -0
- package/dist/src/resources/project-library.d.ts +38 -0
- package/dist/src/resources/project-library.js +82 -0
- package/dist/src/resources/projects.d.ts +70 -0
- package/dist/src/resources/projects.js +97 -0
- package/dist/src/resources/recipes.js +10 -8
- package/dist/src/resources/scenarios.d.ts +3 -0
- package/dist/src/resources/scenarios.js +8 -1
- package/dist/src/resources/statistics.d.ts +56 -0
- package/dist/src/resources/statistics.js +51 -0
- package/dist/src/resources/streaming-endpoints.d.ts +45 -0
- package/dist/src/resources/streaming-endpoints.js +36 -0
- package/dist/src/resources/webapps.d.ts +27 -0
- package/dist/src/resources/webapps.js +36 -0
- package/dist/src/resources/workspaces.d.ts +59 -0
- package/dist/src/resources/workspaces.js +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseResource, } from "./base.js";
|
|
2
|
+
export class WorkspacesResource extends BaseResource {
|
|
3
|
+
/** List workspaces visible to the API key. */
|
|
4
|
+
async list() {
|
|
5
|
+
return this.client.get("/public/api/workspaces/");
|
|
6
|
+
}
|
|
7
|
+
/** Get workspace settings. */
|
|
8
|
+
async get(workspaceKey) {
|
|
9
|
+
return this.client.get(`/public/api/workspaces/${encodeURIComponent(workspaceKey)}`);
|
|
10
|
+
}
|
|
11
|
+
/** Create a workspace. DSS returns a text confirmation. */
|
|
12
|
+
async create(body) {
|
|
13
|
+
return this.client.postText("/public/api/workspaces/", body);
|
|
14
|
+
}
|
|
15
|
+
/** Replace workspace settings. */
|
|
16
|
+
async updateSettings(workspaceKey, body) {
|
|
17
|
+
await this.client.putVoid(`/public/api/workspaces/${encodeURIComponent(workspaceKey)}`, body);
|
|
18
|
+
}
|
|
19
|
+
/** Delete a workspace. */
|
|
20
|
+
async delete(workspaceKey) {
|
|
21
|
+
await this.client.del(`/public/api/workspaces/${encodeURIComponent(workspaceKey)}`);
|
|
22
|
+
}
|
|
23
|
+
/** List objects in a workspace. */
|
|
24
|
+
async listObjects(workspaceKey) {
|
|
25
|
+
return this.client.get(`/public/api/workspaces/${encodeURIComponent(workspaceKey)}/objects`);
|
|
26
|
+
}
|
|
27
|
+
/** Add an object to a workspace. */
|
|
28
|
+
async addObject(workspaceKey, object) {
|
|
29
|
+
return this.client.post(`/public/api/workspaces/${encodeURIComponent(workspaceKey)}/objects`, object);
|
|
30
|
+
}
|
|
31
|
+
}
|