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

Function quickstart

datalabeling/quickstart.js:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 const client = new DataLabelingServiceClient();
26
27 async function quickstart() {
28 const projectId = await client.getProjectId();
29 const parent = client.projectPath(projectId);
30 const [result] = await client.listDatasets({parent});
31 console.log('Datasets:');
32 console.log(result);
33 }
34 quickstart();
35 // [END datalabeling_quickstart]
36}

Callers 1

mainFunction · 0.70

Calls 1

getProjectIdMethod · 0.80

Tested by

no test coverage detected