Using python-genai with googleapis.com

Python integration

✓ Official SDK
Install
pip install python-genai
Quick start
import python-genai

# Use an OAuth2 access token
client = python_genai.Client(access_token="YOUR_ACCESS_TOKEN")
Gets the latest state of a long-running operation. Clients can use this metho…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://iam.googleapis.com/v2/{name}
Retrieves the policies of the specified kind that are attached to a resource.…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://iam.googleapis.com/v2/{parent}
SDK on GitHub 📄 API Docs
SDK
python-genai
Python
API
googleapis.com
googleapis.com:iam
At a glance
Language Python
Endpoints5
Base URLhttps://iam.googleapis.com
✓ Official