MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / exportDataset

Function exportDataset

automl/export_dataset.js:38–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 const client = new AutoMlClient();
37
38 async function exportDataset() {
39 // Construct request
40 const request = {
41 name: client.datasetPath(projectId, location, datasetId),
42 outputConfig: {
43 gcsDestination: {
44 outputUriPrefix: gcsUri,
45 },
46 },
47 };
48
49 const [operation] = await client.exportData(request);
50 // Wait for operation to complete.
51 const [response] = await operation.promise();
52 console.log(`Dataset exported: ${response}`);
53 }
54
55 exportDataset();
56 // [END automl_export_dataset]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected