cloudflare
Version:
The official TypeScript library for the Cloudflare API
38 lines • 1.43 kB
TypeScript
import { APIResource } from "../../../../../resource.js";
import * as Core from "../../../../../core.js";
import { type BlobLike } from "../../../../../uploads.js";
export declare class Entries extends APIResource {
/**
* This is used for multi-column EDMv2 datasets. The EDMv2 format can only be
* created in the Cloudflare dashboard.
*
* @example
* ```ts
* const entry =
* await client.zeroTrust.dlp.datasets.versions.entries.create(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* 0,
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* fs.createReadStream('path/to/file'),
* { account_id: 'account_id' },
* );
* ```
*/
create(datasetId: string, version: number, entryId: string, datasetVersionEntry: string | ArrayBufferView | ArrayBuffer | BlobLike, params: EntryCreateParams, options?: Core.RequestOptions): Core.APIPromise<EntryCreateResponse>;
}
export interface EntryCreateResponse {
entry_id: string;
header_name: string;
num_cells: number;
upload_status: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
}
export interface EntryCreateParams {
/**
* Path param:
*/
account_id: string;
}
export declare namespace Entries {
export { type EntryCreateResponse as EntryCreateResponse, type EntryCreateParams as EntryCreateParams };
}
//# sourceMappingURL=entries.d.ts.map