Client libraries

This page shows the Policy Intelligence features that have Cloud Client Libraries, and shows how to get started with those libraries. Read more about the client libraries for Cloud APIs, including the older Google API Client Libraries, in Client Libraries Explained.

Policy Troubleshooter API

Use the Policy Troubleshooter API to understand why a principal has or does not have a certain type of access.

Installing the client library

C++

For more information, see Setting up a C++ development environment.

C#

For more information, see Setting up a C# development environment.

install-package Google.Cloud.PolicyTroubleshooter.V1

Go

For more information, see Setting up a Go development environment.

go get cloud.google.com/go/policytroubleshooter/apiv1

Java

For more information, see Setting up a Java development environment.

If you are using Maven, add this to your pom.xml file.
<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-policy-troubleshooter</artifactId>
</dependency>

Node.js

For more information, see Setting up a Node.js development environment.

npm install @google-cloud/policy-troubleshooter

PHP

For more information, see Using PHP on Google Cloud.

Add the library as a dependency to your composer.json file:
"require": {
  "google/cloud-policy-troubleshooter": "^0.2.3"
}

Python

For more information, see Setting up a Python development environment.

pip install google-cloud-policy-troubleshooter

Ruby

For more information, see Setting up a Ruby development environment.

gem install google-cloud-policy_troubleshooter-v1

Additional resources

C++

For more information about how to use this client library, see the following resources:

C#

For more information about how to use this client library, see the following resources:

Go

For more information about how to use this client library, see the following resources:

Java

For more information about how to use this client library, see the following resources:

Node.js

For more information about how to use this client library, see the following resources:

PHP

For more information about how to use this client library, see the following resources:

Python

For more information about how to use this client library, see the following resources:

Ruby

For more information about how to use this client library, see the following resources: