uploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost- Upload Prompt Evaluation Dataset⚠️ DeprecatedlistPromptDatasetsProjectsProjectIdPromptDatasetsGet- List Prompt Datasets⚠️ Deprecated- createDatasetDatasetsPost - Create Dataset
- listDatasetsDatasetsGet - List Datasets
- bulkDeleteDatasetsDatasetsBulkDeleteDelete - Bulk Delete Datasets
- getDatasetDatasetsDatasetIdGet - Get Dataset
- updateDatasetDatasetsDatasetIdPatch - Update Dataset
- deleteDatasetDatasetsDatasetIdDelete - Delete Dataset
- queryDatasetsDatasetsQueryPost - Query Datasets
updatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut- Update Prompt Dataset⚠️ DeprecateddeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete- Delete Prompt Dataset⚠️ DeprecateddownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet- Download Prompt Dataset⚠️ Deprecated- updateDatasetContentDatasetsDatasetIdContentPatch - Update Dataset Content
- getDatasetContentDatasetsDatasetIdContentGet - Get Dataset Content
- upsertDatasetContentDatasetsDatasetIdContentPut - Upsert Dataset Content
- downloadDatasetDatasetsDatasetIdDownloadGet - Download Dataset
- previewDatasetDatasetsDatasetIdPreviewPost - Preview Dataset
- queryDatasetContentDatasetsDatasetIdContentQueryPost - Query Dataset Content
- createUserDatasetCollaboratorsDatasetsDatasetIdUsersPost - Create User Dataset Collaborators
- listUserDatasetCollaboratorsDatasetsDatasetIdUsersGet - List User Dataset Collaborators
- createGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost - Create Group Dataset Collaborators
- listGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet - List Group Dataset Collaborators
- updateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch - Update User Dataset Collaborator
- deleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete - Delete User Dataset Collaborator
- updateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch - Update Group Dataset Collaborator
- deleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete - Delete Group Dataset Collaborator
- queryDatasetVersionsDatasetsDatasetIdVersionsQueryPost - Query Dataset Versions
- getDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet - Get Dataset Version Content
- updateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch - Update Dataset Version
- listDatasetProjectsDatasetsDatasetIdProjectsGet - List Dataset Projects
- extendDatasetContentDatasetsExtendPost - Extend Dataset Content
- getDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet - Get Dataset Synthetic Extend Status
Upload Prompt Evaluation Dataset
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
import { GalileoGenerated } from "galileo-generated";
import { openAsBlob } from "node:fs";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.uploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
body: {
file: await openAsBlob("example.file"),
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost } from "galileo-generated/funcs/datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost.js";
import { openAsBlob } from "node:fs";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
body: {
file: await openAsBlob("example.file"),
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostRequest | ✔️ | The request object to use for the request. |
security |
operations.UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.PromptDatasetDB>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List Prompt Datasets
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.listPromptDatasetsProjectsProjectIdPromptDatasetsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet } from "galileo-generated/funcs/datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListPromptDatasetsProjectsProjectIdPromptDatasetsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListPromptDatasetsProjectsProjectIdPromptDatasetsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListPromptDatasetResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Creates a standalone dataset.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.createDatasetDatasetsPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsCreateDatasetDatasetsPost } from "galileo-generated/funcs/datasetsCreateDatasetDatasetsPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsCreateDatasetDatasetsPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsCreateDatasetDatasetsPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateDatasetDatasetsPostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateDatasetDatasetsPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetDB>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List Datasets
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.listDatasetsDatasetsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListDatasetsDatasetsGet } from "galileo-generated/funcs/datasetsListDatasetsDatasetsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsListDatasetsDatasetsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsListDatasetsDatasetsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListDatasetsDatasetsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListDatasetsDatasetsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListDatasetResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Delete multiple datasets in bulk.
This endpoint allows efficient deletion of multiple datasets at once. It validates permissions for each dataset in the service and provides detailed feedback about successful and failed deletions for each dataset.
delete_request : BulkDeleteDatasetsRequest Request containing list of dataset IDs to delete (max 100) ctx : Context Request context including authentication information
BulkDeleteDatasetsResponse Details about the bulk deletion operation including: - Number of successfully deleted datasets - List of failed deletions with reasons - Summary message
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.bulkDeleteDatasetsDatasetsBulkDeleteDelete({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetIds: [
"<value 1>",
"<value 2>",
],
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete } from "galileo-generated/funcs/datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetIds: [
"<value 1>",
"<value 2>",
],
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.BulkDeleteDatasetsRequest | ✔️ | The request object to use for the request. |
security |
operations.BulkDeleteDatasetsDatasetsBulkDeleteDeleteSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BulkDeleteDatasetsResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Dataset
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.getDatasetDatasetsDatasetIdGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetDatasetsDatasetIdGet } from "galileo-generated/funcs/datasetsGetDatasetDatasetsDatasetIdGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsGetDatasetDatasetsDatasetIdGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsGetDatasetDatasetsDatasetIdGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetDatasetDatasetsDatasetIdGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetDatasetDatasetsDatasetIdGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetDB>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update Dataset
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.updateDatasetDatasetsDatasetIdPatch({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: {},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateDatasetDatasetsDatasetIdPatch } from "galileo-generated/funcs/datasetsUpdateDatasetDatasetsDatasetIdPatch.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpdateDatasetDatasetsDatasetIdPatch(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: {},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpdateDatasetDatasetsDatasetIdPatch failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateDatasetDatasetsDatasetIdPatchRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdateDatasetDatasetsDatasetIdPatchSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetDB>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Delete Dataset
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.deleteDatasetDatasetsDatasetIdDelete({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeleteDatasetDatasetsDatasetIdDelete } from "galileo-generated/funcs/datasetsDeleteDatasetDatasetsDatasetIdDelete.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsDeleteDatasetDatasetsDatasetIdDelete(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsDeleteDatasetDatasetsDatasetIdDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DeleteDatasetDatasetsDatasetIdDeleteRequest | ✔️ | The request object to use for the request. |
security |
operations.DeleteDatasetDatasetsDatasetIdDeleteSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Query Datasets
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.queryDatasetsDatasetsQueryPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsQueryDatasetsDatasetsQueryPost } from "galileo-generated/funcs/datasetsQueryDatasetsDatasetsQueryPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsQueryDatasetsDatasetsQueryPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsQueryDatasetsDatasetsQueryPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.QueryDatasetsDatasetsQueryPostRequest | ✔️ | The request object to use for the request. |
security |
operations.QueryDatasetsDatasetsQueryPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListDatasetResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update Prompt Dataset
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.updatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut } from "galileo-generated/funcs/datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.PromptDatasetDB>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Delete Prompt Dataset
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.deletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete } from "galileo-generated/funcs/datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteRequest | ✔️ | The request object to use for the request. |
security |
operations.DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Download Prompt Dataset
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
await galileoGenerated.datasets.downloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
datasetId: "<value>",
});
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet } from "galileo-generated/funcs/datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
projectId: "<value>",
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
} else {
console.log("datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetRequest | ✔️ | The request object to use for the request. |
security |
operations.DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update the content of a dataset.
The index and column_name fields are treated as keys tied to a specific version of the dataset.
As such, these values are considered immutable identifiers for the dataset's structure.
For example, if an edit operation changes the name of a column, subsequent edit operations in the same request should reference the column using its original name.
The If-Match header is used to ensure that updates are only applied if the client's version of the dataset
matches the server's version. This prevents conflicts from simultaneous updates. The ETag header in the response
provides the new version identifier after a successful update.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.updateDatasetContentDatasetsDatasetIdContentPatch({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
ifMatch: "d89cce33-549d-4b6d-b220-afb641d859c8",
body: {
edits: [
{
editType: "filter_rows",
rowIds: [
"<value 1>",
"<value 2>",
],
},
],
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch } from "galileo-generated/funcs/datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
ifMatch: "d89cce33-549d-4b6d-b220-afb641d859c8",
body: {
edits: [
{
editType: "filter_rows",
rowIds: [
"<value 1>",
"<value 2>",
],
},
],
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateDatasetContentDatasetsDatasetIdContentPatchRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdateDatasetContentDatasetsDatasetIdContentPatchSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Dataset Content
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.getDatasetContentDatasetsDatasetIdContentGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetContentDatasetsDatasetIdContentGet } from "galileo-generated/funcs/datasetsGetDatasetContentDatasetsDatasetIdContentGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsGetDatasetContentDatasetsDatasetIdContentGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsGetDatasetContentDatasetsDatasetIdContentGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetDatasetContentDatasetsDatasetIdContentGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetDatasetContentDatasetsDatasetIdContentGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetContent>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Rollback the content of a dataset to a previous version.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.upsertDatasetContentDatasetsDatasetIdContentPut({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: {
datasetId: "<value>",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpsertDatasetContentDatasetsDatasetIdContentPut } from "galileo-generated/funcs/datasetsUpsertDatasetContentDatasetsDatasetIdContentPut.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpsertDatasetContentDatasetsDatasetIdContentPut(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: {
datasetId: "<value>",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpsertDatasetContentDatasetsDatasetIdContentPut failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpsertDatasetContentDatasetsDatasetIdContentPutRequest | ✔️ | The request object to use for the request. |
security |
operations.UpsertDatasetContentDatasetsDatasetIdContentPutSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Download Dataset
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.downloadDatasetDatasetsDatasetIdDownloadGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDownloadDatasetDatasetsDatasetIdDownloadGet } from "galileo-generated/funcs/datasetsDownloadDatasetDatasetsDatasetIdDownloadGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsDownloadDatasetDatasetsDatasetIdDownloadGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsDownloadDatasetDatasetsDatasetIdDownloadGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DownloadDatasetDatasetsDatasetIdDownloadGetRequest | ✔️ | The request object to use for the request. |
security |
operations.DownloadDatasetDatasetsDatasetIdDownloadGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Preview Dataset
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.previewDatasetDatasetsDatasetIdPreviewPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: {},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsPreviewDatasetDatasetsDatasetIdPreviewPost } from "galileo-generated/funcs/datasetsPreviewDatasetDatasetsDatasetIdPreviewPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsPreviewDatasetDatasetsDatasetIdPreviewPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: {},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsPreviewDatasetDatasetsDatasetIdPreviewPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.PreviewDatasetDatasetsDatasetIdPreviewPostRequest | ✔️ | The request object to use for the request. |
security |
operations.PreviewDatasetDatasetsDatasetIdPreviewPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetContent>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Query Dataset Content
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.queryDatasetContentDatasetsDatasetIdContentQueryPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost } from "galileo-generated/funcs/datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.QueryDatasetContentDatasetsDatasetIdContentQueryPostRequest | ✔️ | The request object to use for the request. |
security |
operations.QueryDatasetContentDatasetsDatasetIdContentQueryPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetContent>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Create User Dataset Collaborators
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.createUserDatasetCollaboratorsDatasetsDatasetIdUsersPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: [],
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost } from "galileo-generated/funcs/datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: [],
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.UserCollaborator[]>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List the users with which the dataset has been shared.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.listUserDatasetCollaboratorsDatasetsDatasetIdUsersGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet } from "galileo-generated/funcs/datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListUserCollaboratorsResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Share a dataset with groups.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.createGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: [],
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost } from "galileo-generated/funcs/datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
body: [],
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GroupCollaborator[]>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List the groups with which the dataset has been shared.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.listGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet } from "galileo-generated/funcs/datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListGroupCollaboratorsResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update the sharing permissions of a user on a dataset.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.updateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
userId: "<value>",
body: {
role: "annotator",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch } from "galileo-generated/funcs/datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
userId: "<value>",
body: {
role: "annotator",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.UserCollaborator>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Remove a user's access to a dataset.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.deleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
userId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete } from "galileo-generated/funcs/datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
userId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteRequest | ✔️ | The request object to use for the request. |
security |
operations.DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update the sharing permissions of a group on a dataset.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.updateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
groupId: "<value>",
body: {
role: "owner",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch } from "galileo-generated/funcs/datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
groupId: "<value>",
body: {
role: "owner",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GroupCollaborator>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Remove a group's access to a dataset.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.deleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
groupId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete } from "galileo-generated/funcs/datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
groupId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteRequest | ✔️ | The request object to use for the request. |
security |
operations.DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Query Dataset Versions
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.queryDatasetVersionsDatasetsDatasetIdVersionsQueryPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost } from "galileo-generated/funcs/datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostRequest | ✔️ | The request object to use for the request. |
security |
operations.QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListDatasetVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Dataset Version Content
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.getDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
versionIndex: 602551,
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet } from "galileo-generated/funcs/datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
versionIndex: 602551,
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetContent>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update Dataset Version
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.updateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
versionIndex: 462507,
body: {},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch } from "galileo-generated/funcs/datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
versionIndex: 462507,
body: {},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DatasetVersionDB>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List Dataset Projects
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.listDatasetProjectsDatasetsDatasetIdProjectsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet } from "galileo-generated/funcs/datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListDatasetProjectsDatasetsDatasetIdProjectsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListDatasetProjectsDatasetsDatasetIdProjectsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListDatasetProjectsResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Extends the dataset content
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.extendDatasetContentDatasetsExtendPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsExtendDatasetContentDatasetsExtendPost } from "galileo-generated/funcs/datasetsExtendDatasetContentDatasetsExtendPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsExtendDatasetContentDatasetsExtendPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsExtendDatasetContentDatasetsExtendPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.SyntheticDatasetExtensionRequest | ✔️ | The request object to use for the request. |
security |
operations.ExtendDatasetContentDatasetsExtendPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.SyntheticDatasetExtensionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Dataset Synthetic Extend Status
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.datasets.getDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet } from "galileo-generated/funcs/datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
datasetId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.JobProgress>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |