code: async function listVMs() {
    // [START auth]
    const authClient = await google.auth.getClient({
      scopes: [
        'https://www.googleapis.com/auth/cloud-platform',
        'https://www.googleapis.com/auth/compute',
        'https://www.googleapis.com/auth/compute.readonly',
      ],
    });
    // [END auth]
  
    // [START list]
    const projectId = await google.auth.getProjectId();
    const result = await compute.instances.aggregatedList({
      auth: authClient,
      project: projectId,
    });
    const vms = result.data;
    console.log('VMs:', vms);
    // [END list]
  }
docs: [END initialize]