This page shows how to get started with the Cloud Client Libraries for the
Backup and DR API. Client libraries make it easier to access
Google Cloud APIs from a supported language. Although you can use
Google Cloud APIs directly by making raw requests to the server, client
libraries provide simplifications that significantly reduce the amount of code
you need to write.

Read more about the Cloud Client Libraries
and the older Google API Client Libraries in
[Client libraries explained](https://docs.cloud.google.com/apis/docs/client-libraries-explained.md.txt).

## Install the client library

### C++

See [Setting up a C++ development environment](https://docs.cloud.google.com/cpp/docs/setup.md.txt)
for details about this client library's requirements and install dependencies.

### C#

If you are using Visual Studio 2017 or later, open the NuGet package manager window and type the following:

<br />

```
Install-Package Google.Apis
```

If you are using .NET Core command-line interface tools to install your dependencies, run the following command:

```
dotnet add package Google.Apis
```

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

### Go

```
go get -d google.golang.org/api/...
```

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

### Java

Note that the Google API Client Library for Java does not currently support Android.

<br />

If you are using Maven, add this to your

```java
pom.xml 
```
file:

<br />

```java
<dependency>
    <groupId>com.google.api-client</groupId>
    <artifactId>google-api-client</artifactId>
    <version>1.22.0</version>
</dependency>
```

If you are using Gradle, add this to your dependencies:

```java
compile 'com.google.api-client:google-api-client:1.22.0'
```

If you are using SBT, add this to your dependencies:

```java
libraryDependencies += "com.google.api-client" % "google-api-client" % "1.22.0"
```

For more information, see [Setting Up a Java Development Environment](https://docs.cloud.google.com/java/docs/setup.md.txt).

### Node.js

```
npm install googleapis
```

For more information, see [Setting Up a Node.js Development Environment](https://docs.cloud.google.com/nodejs/docs/setup.md.txt).

### PHP

```
composer require google/apiclient
```

For more information, see [Using PHP on Google Cloud](https://docs.cloud.google.com/php/docs.md.txt).

### Python

```
pip install --upgrade google-api-python-client
```

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

### Ruby

```
gem install google-api-client
```

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

<br />

## Set up authentication

To authenticate calls to Google Cloud APIs, client libraries support [Application Default Credentials (ADC)](https://docs.cloud.google.com/docs/authentication/application-default-credentials.md.txt); the libraries look for credentials in a set of defined locations and use those credentials to authenticate requests to the API. With ADC, you can make credentials available to your application in a variety of environments, such as local development or production, without needing to modify your application code.

For production environments, the way you set up ADC depends on the service
and context. For more information, see [Set up Application Default Credentials](https://docs.cloud.google.com/docs/authentication/provide-credentials-adc.md.txt).

## Backup and DR Client Libraries

Refer to the following information on Backup and DR specific client libraries:

- [Cloud Client Libraries](https://docs.cloud.google.com/apis/docs/cloud-client-libraries.md.txt)

- [C++ Client Libraries](https://docs.cloud.google.com/cpp/docs/reference/backupdr/latest.md.txt)

- [C# Client Libraries](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest.md.txt)

- [Go Client Libraries](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/backupdr/latest/apiv1.md.txt)

- [Java Client Libraries](https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview.md.txt)

- [Node.js Client Libraries](https://docs.cloud.google.com/nodejs/docs/reference/backupdr/latest.md.txt)

- [PHP Client Libraries](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest.md.txt)

- [Python Client Libraries](https://docs.cloud.google.com/python/docs/reference/backupdr/latest.md.txt)

- [Ruby Client Libraries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-backupdr-v1/latest/Google-Api-ResourceDescriptor-History.md.txt)

## Additional resources

### C++

The following list contains links to more resources related to the Backup and DR
client library for C++:

- [API reference](https://docs.cloud.google.com/cpp/docs/reference.md.txt)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/googleapis/google-cloud-cpp/issues)
- [Source code](https://github.com/googleapis/google-cloud-cpp)

### C#

The following list contains links to more resources related to the Backup and DR
client library for C#:

- [API reference](https://developers.google.com/api-client-library/dotnet)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-dotnet-client/issues)

- [Source code](https://github.com/google/google-api-dotnet-client)

### Go

The following list contains links to more resources related to the Backup and DR
client library for Go:

- [API reference](https://godoc.org/google.golang.org/api)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-go-client/issues)
- [Source code](https://github.com/google/google-api-go-client)

### Java

The following list contains links to more resources related to the Backup and DR
client library for Java:

- [API reference](https://developers.google.com/api-client-library/java/apis/)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-java-client/issues)
- [Source code](https://github.com/google/google-api-java-client)

### Node.js

The following list contains links to more resources related to the Backup and DR
client library for Node.js:

- [API reference](https://github.com/googleapis/google-cloud-node#google-cloud-nodejs-client-libraries)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-nodejs-client/issues)
- [Source code](https://github.com/google/google-api-nodejs-client)

### PHP

The following list contains links to more resources related to the Backup and DR
client library for PHP:

- [API reference](https://developers.google.com/api-client-library/php/)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-php-client/issues)
- [Source code](https://github.com/google/google-api-php-client)

### Python

The following list contains links to more resources related to the Backup and DR
client library for Python:

- [API reference](https://developers.google.com/api-client-library/python/apis/)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-python-client/issues)
- [Source code](https://github.com/google/google-api-python-client)

### Ruby

The following list contains links to more resources related to the Backup and DR
client library for Ruby:

- [API reference](https://developers.google.com/api-client-library/ruby/apis/)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices.md.txt)
- [Issue tracker](https://github.com/google/google-api-ruby-client/issues)
- [Source code](https://github.com/google/google-api-ruby-client)

<br />

C++, Python, Java, Node.js, Ruby, Go, PHP, C#