Using js-genai with googleapis.com

TypeScript integration

✓ Official SDK
Install
npm install js-genai
Quick start
import Js_genai from 'js-genai';

const client = new Js_genai({ accessToken: "YOUR_ACCESS_TOKEN" });
Get the patch job. This can be used to track the progress of an ongoing patch…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://osconfig.googleapis.com/v1beta/{name}
Get a list of patch jobs.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://osconfig.googleapis.com/v1beta/{parent}/patchJobs
Get a page of OS Config guest policies.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://osconfig.googleapis.com/v1beta/{parent}/guestPolicies
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:osconfig
At a glance
Language TypeScript
Endpoints14
Base URLhttps://osconfig.googleapis.com
✓ Official