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

Function patchDataset

healthcare/datasets/patchDataset.js:32–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 });
31
32 const patchDataset = async () => {
33 // TODO(developer): uncomment these lines before running the sample
34 // const cloudRegion = 'us-central1';
35 // const projectId = 'adjective-noun-123';
36 // const datasetId = 'my-dataset';
37 // const timeZone = 'UTC';
38 const name = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`;
39 const request = {
40 name,
41 updateMask: 'timeZone',
42 resource: {timeZone: timeZone},
43 };
44
45 await healthcare.projects.locations.datasets.patch(request);
46 console.log(`Dataset ${datasetId} patched with time zone ${timeZone}`);
47 };
48
49 patchDataset();
50 // [END healthcare_patch_dataset]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected