Using go-genai with googleapis.com

Go integration

✓ Official SDK
Install
go get github.com/googleapis/go-genai
Quick start
import "go-genai"

// Initialize client
client := go-genai.NewClient("YOUR_ACCESS_TOKEN")
Fetches the representation of an existing Project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://dns.googleapis.com/dns/v2/projects/{project}/locations/{location}
Enumerates all Policies associated with a project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://dns.googleapis.com/dns/v2/projects/{project}/locations/{location}/policies
Enumerates ManagedZones that have been created but not yet deleted.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://dns.googleapis.com/dns/v2/projects/{project}/locations/{location}/managedZones
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:dns
At a glance
Language Go
Endpoints40
Base URLhttps://dns.googleapis.com
✓ Official