const healthcare = google.healthcare('v1'); const fs = require('fs');
const healthcare = google.healthcare('v1');
const healthcare = google.healthcare('v1');
function main( projectId = process.env.GCLOUD_PROJECT, cloudRegion = 'us-central1', datasetId ) { // [START healthcare_get_dataset] const {google} = require('googleapis'); const healthcare = google.healthcare('v1beta1'); async function getDataset() { const auth = await google.auth.getClient({ scopes: ['https://www.googleapis.com/auth/cloud-platform'], }); google.options({auth}); // TODO(developer): uncomment these lines before running the sample // const cloudRegion = 'us-central1'; // const projectId = 'adjective-noun-123'; // const datasetId = 'my-dataset'; const parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`; const request = {name: parent}; const dataset = await healthcare.projects.locations.datasets.get(request); console.log(dataset.data); } getDataset(); // [END healthcare_get_dataset] }
const healthcare = google.healthcare('v1beta1');
const healthcare = google.healthcare('v1beta1');
function main( projectId = process.env.GCLOUD_PROJECT, cloudRegion = 'us-central1', datasetId ) { // [START healthcare_delete_dataset] const {google} = require('googleapis'); const healthcare = google.healthcare('v1beta1'); async function deleteDataset() { const auth = await google.auth.getClient({ scopes: ['https://www.googleapis.com/auth/cloud-platform'], }); google.options({auth}); // TODO(developer): uncomment these lines before running the sample // const cloudRegion = 'us-central1'; // const projectId = 'adjective-noun-123'; // const datasetId = 'my-dataset'; const parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`; const request = {name: parent}; await healthcare.projects.locations.datasets.delete(request); console.log(`Deleted dataset: ${datasetId}`); } deleteDataset(); // [END healthcare_delete_dataset] }
const healthcare = google.healthcare('v1beta1');
function main( projectId = process.env.GCLOUD_PROJECT, cloudRegion = 'us-central1' ) { // [START healthcare_list_datasets] const {google} = require('googleapis'); const healthcare = google.healthcare('v1beta1'); async function listDatasets() { const auth = await google.auth.getClient({ scopes: ['https://www.googleapis.com/auth/cloud-platform'], }); google.options({auth}); // TODO(developer): uncomment these lines before running the sample // const cloudRegion = 'us-central1'; // const projectId = 'adjective-noun-123'; const parent = `projects/${projectId}/locations/${cloudRegion}`; const request = {parent}; const dataset = await healthcare.projects.locations.datasets.list(request); console.log(dataset.data); } listDatasets(); // [END healthcare_list_datasets] }
const healthcare = google.healthcare('v1beta1');
const healthcare = google.healthcare('v1beta1');
function main( projectId = process.env.GCLOUD_PROJECT, cloudRegion = 'us-central1', datasetId ) { // [START healthcare_create_dataset] const {google} = require('googleapis'); const healthcare = google.healthcare('v1beta1'); async function createDataset() { const auth = await google.auth.getClient({ scopes: ['https://www.googleapis.com/auth/cloud-platform'], }); google.options({auth}); // TODO(developer): uncomment these lines before running the sample // const cloudRegion = 'us-central1'; // const projectId = 'adjective-noun-123'; // const datasetId = 'my-dataset'; const parent = `projects/${projectId}/locations/${cloudRegion}`; const request = {parent, datasetId}; await healthcare.projects.locations.datasets.create(request); console.log(`Created dataset: ${datasetId}`); } createDataset(); // [END healthcare_create_dataset] }
const healthcare = google.healthcare('v1beta1');
const healthcare = google.healthcare('v1beta1');
const healthcare = google.healthcare('v1beta1');