Registry / cloud / go-orgpolicy

go-orgpolicy

JSON →
library1.20.0gogounverified

A Go client library for managing organization policies using the Google Cloud Org Policy API.

go get cloud.google.com/go/orgpolicy
INSTALL
IMPORT
SIG · GO-ORGPOLICY
G
go-orgpolicy
cloudgov1.20.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

orgpolicy
cloud.google.com/go/orgpolicy/apiv1

Creates a new Org Policy client using a service account key.

package main import ( "context" "fmt" orgpolicy "cloud.google.com/go/orgpolicy/apiv1" "google.golang.org/api/option" ) func main() { ctx := context.Background() client, err := orgpolicy.NewClient(ctx, option.WithCredentialsFile("path/to/key.json")) if err != nil { panic(err) } defer client.Close() fmt.Println("Client created") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.20.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
go-orgpolicy — go get go-orgpolicy · libregistry