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](https://docs.cloud.google.com/apis/docs/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](https://docs.cloud.google.com/cpp/docs/setup.md.txt).

### C#

For more information, see
[Setting up a C# development environment](https://docs.cloud.google.com/dotnet/docs/setup.md.txt).

```bash
install-package Google.Cloud.PolicyTroubleshooter.V1
```

### Go

For more information, see
[Setting up a Go development environment](https://docs.cloud.google.com/go/docs/setup.md.txt).

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

### Java

For more information, see
[Setting up a Java development environment](https://docs.cloud.google.com/java/docs/setup.md.txt).
If you are using Maven, add this to your pom.xml file.

```java
<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](https://docs.cloud.google.com/nodejs/docs/setup.md.txt).

```bash
npm install @google-cloud/policy-troubleshooter
```

### PHP

For more information, see
[Using PHP on Google Cloud](https://docs.cloud.google.com/php/docs.md.txt).
Add the library as a dependency to your `composer.json` file:

```json
"require": {
  "google/cloud-policy-troubleshooter": "^0.2.3"
}
```

### Python

For more information, see
[Setting up a Python development environment](https://docs.cloud.google.com/python/docs/setup.md.txt).

```bash
pip install google-cloud-policy-troubleshooter
```

### Ruby

For more information, see
[Setting up a Ruby development environment](https://docs.cloud.google.com/ruby/docs/setup.md.txt).

```bash
gem install google-cloud-policy_troubleshooter-v1
```

### Additional resources

### C++


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

- API reference documentation: [C++ Policy Troubleshooter client library reference](https://docs.cloud.google.com/cpp/docs/reference/policytroubleshooter)
- Source code: [C++ Policy Troubleshooter client library source code](https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/policytroubleshooter)
- Issue tracker: [Google Cloud C++ client library issue tracker](https://github.com/googleapis/google-cloud-cpp/issues)

### C#


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

- API reference documentation: [C# Policy Troubleshooter client library reference](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/latest.md.txt)
- Source code: [C# Policy Troubleshooter client library source code](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Cloud.PolicyTroubleshooter.V1)
- Issue tracker: [Google Cloud C# client library issue tracker](https://github.com/googleapis/google-cloud-dotnet/issues)

### Go


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

- API reference documentation: [Go Policy Troubleshooter client library reference](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/policytroubleshooter/latest/apiv1.md.txt)
- Source code: [Go Policy Troubleshooter client library source code](https://github.com/googleapis/google-cloud-go/tree/main/policytroubleshooter)
- Issue tracker: [Google Cloud Go client library issue tracker](https://github.com/googleapis/google-cloud-go/issues)

### Java


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

- API reference documentation: [Java Policy Troubleshooter client library reference](https://docs.cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/google.cloud.policytroubleshooter.v1.md.txt)
- Source code: [Java Policy Troubleshooter client library source code](https://github.com/googleapis/java-policy-troubleshooter)
- Issue tracker: [Java Policy Troubleshooter client Library issue tracker](https://github.com/googleapis/java-policy-troubleshooter/issues)

### Node.js


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

- API reference documentation: [Node.js Policy Troubleshooter client library reference](https://docs.cloud.google.com/nodejs/docs/reference/policy-troubleshooter/latest.md.txt)
- Source code: [Node.js Policy Troubleshooter client library source code](https://github.com/googleapis/nodejs-policy-troubleshooter)
- Issue tracker: [Node.js Policy Troubleshooter client library issue tracker](https://github.com/googleapis/nodejs-policy-troubleshooter/issues)

### PHP


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

- API reference documentation: [PHP Policy Troubleshooter client library reference](https://docs.cloud.google.com/php/docs/reference/cloud-policy-troubleshooter/latest.md.txt)
- Source code: [PHP Policy Troubleshooter client library source code](https://github.com/googleapis/google-cloud-php/tree/main/PolicyTroubleshooter)
- Issue tracker: [Google Cloud PHP client library issue tracker](https://github.com/googleapis/google-cloud-php/issues)

### Python


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

- API reference documentation: [Python Policy Troubleshooter client library reference](https://docs.cloud.google.com/python/docs/reference/policytroubleshooter/latest.md.txt)
- Source code: [Python Policy Troubleshooter client library source code](https://github.com/googleapis/python-policy-troubleshooter)
- Issue tracker: [Python Policy Troubleshooter client Library issue tracker](https://github.com/googleapis/python-policy-troubleshooter/issues)

### Ruby


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

- API documentation reference: [Ruby Policy Troubleshooter client library reference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_troubleshooter-v1/latest.md.txt)
- Source code: [Ruby Policy Troubleshooter client library](https://github.com/googleapis/google-cloud-ruby/tree/main/google-cloud-policy_troubleshooter-v1)
- Issue tracker: [Google Cloud Ruby client library issue tracker](https://github.com/googleapis/google-cloud-ruby/issues)