Backup and DR Service client libraries
Stay organized with collections
Save and categorize content based on your preferences.
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.
Install the client library
C#
If you are using Visual Studio 2017 or later, open the NuGet package manager window and type the following:
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.
Java
Note that the Google API Client Library for Java does not currently support Android.
If you are using Maven, add this to your
pom.xml
file:
<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:
compile 'com.google.api-client:google-api-client:1.22.0'
If you are using SBT, add this to your dependencies:
libraryDependencies += "com.google.api-client" % "google-api-client" % "1.22.0"
For more information, see Setting Up a Java Development Environment.
Set up authentication
To authenticate calls to Google Cloud APIs, client libraries support
Application Default Credentials (ADC);
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.
Backup and DR Service Client Libraries
Refer to the following information on Backup and DR Service specific client libraries:
Additional resources
C++
The following list contains links to more resources related to the Backup and DR Service
client library for C++:
C#
The following list contains links to more resources related to the Backup and DR Service
client library for C#:
Go
The following list contains links to more resources related to the Backup and DR Service
client library for Go:
Java
The following list contains links to more resources related to the Backup and DR Service
client library for Java:
Node.js
The following list contains links to more resources related to the Backup and DR Service
client library for Node.js:
PHP
The following list contains links to more resources related to the Backup and DR Service
client library for PHP:
Python
The following list contains links to more resources related to the Backup and DR Service
client library for Python:
Ruby
The following list contains links to more resources related to the Backup and DR Service
client library for Ruby:
C++,
Python,
Java,
Node.js,
Ruby,
Go,
PHP,
C#
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eCloud Client Libraries simplify accessing Google Cloud APIs, reducing the amount of code needed compared to direct server requests.\u003c/p\u003e\n"],["\u003cp\u003eInstallation instructions are provided for various languages including C++, C#, Go, Java, Node.js, PHP, Python, and Ruby.\u003c/p\u003e\n"],["\u003cp\u003eThe page details how to set up Application Default Credentials (ADC) for authentication across different environments.\u003c/p\u003e\n"],["\u003cp\u003eLanguage-specific Backup and DR Service client libraries are referenced, along with their respective API documentation links.\u003c/p\u003e\n"],["\u003cp\u003eEach language section contains additional resources such as API references, client library best practices, issue trackers, and source code links.\u003c/p\u003e\n"]]],[],null,["This page shows how to get started with the Cloud Client Libraries for the\nBackup and DR API. Client libraries make it easier to access\nGoogle Cloud APIs from a supported language. Although you can use\nGoogle Cloud APIs directly by making raw requests to the server, client\nlibraries provide simplifications that significantly reduce the amount of code\nyou need to write.\n\nRead more about the Cloud Client Libraries\nand the older Google API Client Libraries in\n[Client libraries explained](/apis/docs/client-libraries-explained).\n\nInstall the client library \n\nC++\n\nSee [Setting up a C++ development environment](/cpp/docs/setup)\nfor details about this client library's requirements and install dependencies.\n\nC# If you are using Visual Studio 2017 or later, open the NuGet package manager window and type the following:\n\n\u003cbr /\u003e\n\n```\nInstall-Package Google.Apis\n```\n\nIf you are using .NET Core command-line interface tools to install your dependencies, run the following command: \n\n```\ndotnet add package Google.Apis\n```\n\nFor more information, see [Setting Up a C# Development Environment](/dotnet/docs/setup).\n\nGo \n\n```\ngo get -d google.golang.org/api/...\n```\n\nFor more information, see [Setting Up a Go Development Environment](/go/docs/setup).\n\nJava Note that the Google API Client Library for Java does not currently support Android.\n\n\u003cbr /\u003e\n\nIf you are using Maven, add this to your \n\n```java\npom.xml \n```\nfile:\n\n\u003cbr /\u003e\n\n```java\n\u003cdependency\u003e\n \u003cgroupId\u003ecom.google.api-client\u003c/groupId\u003e\n \u003cartifactId\u003egoogle-api-client\u003c/artifactId\u003e\n \u003cversion\u003e1.22.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nIf you are using Gradle, add this to your dependencies: \n\n```java\ncompile 'com.google.api-client:google-api-client:1.22.0'\n```\n\nIf you are using SBT, add this to your dependencies: \n\n```java\nlibraryDependencies += \"com.google.api-client\" % \"google-api-client\" % \"1.22.0\"\n```\n\nFor more information, see [Setting Up a Java Development Environment](/java/docs/setup).\n\nNode.js \n\n```\nnpm install googleapis\n```\n\nFor more information, see [Setting Up a Node.js Development Environment](/nodejs/docs/setup).\n\nPHP \n\n```\ncomposer require google/apiclient\n```\n\nFor more information, see [Using PHP on Google Cloud](/php/docs).\n\nPython \n\n```\npip install --upgrade google-api-python-client\n```\n\nFor more information, see [Setting Up a Python Development Environment](/python/docs/setup).\n\nRuby \n\n```\ngem install google-api-client\n```\n\nFor more information, see [Setting Up a Ruby Development Environment](/ruby/docs/setup).\n\n\u003cbr /\u003e\n\nSet up authentication To authenticate calls to Google Cloud APIs, client libraries support [Application Default Credentials (ADC)](/docs/authentication/application-default-credentials); 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.\n\nFor production environments, the way you set up ADC depends on the service\nand context. For more information, see [Set up Application Default Credentials](/docs/authentication/provide-credentials-adc).\n\nBackup and DR Service Client Libraries\n\nRefer to the following information on Backup and DR Service specific client libraries:\n\n- [Cloud Client Libraries](/apis/docs/cloud-client-libraries)\n\n- [C++ Client Libraries](/cpp/docs/reference/backupdr/latest)\n\n- [C# Client Libraries](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest)\n\n- [Go Client Libraries](/go/docs/reference/cloud.google.com/go/backupdr/latest/apiv1)\n\n- [Java Client Libraries](/java/docs/reference/google-cloud-backupdr/latest/overview)\n\n- [Node.js Client Libraries](/nodejs/docs/reference/backupdr/latest)\n\n- [PHP Client Libraries](/php/docs/reference/cloud-backupdr/latest)\n\n- [Python Client Libraries](/python/docs/reference/backupdr/latest)\n\n- [Ruby Client Libraries](/ruby/docs/reference/google-cloud-backupdr-v1/latest/Google-Api-ResourceDescriptor-History)\n\nAdditional resources \n\nC++\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for C++:\n\n- [API reference](/cpp/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-cpp/issues)\n- [Source code](https://github.com/googleapis/google-cloud-cpp)\n\nC#\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for C#:\n\n- [API reference](https://developers.google.com/api-client-library/dotnet)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-dotnet-client/issues)\n\n- [Source code](https://github.com/google/google-api-dotnet-client)\n\nGo\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for Go:\n\n- [API reference](https://godoc.org/google.golang.org/api)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-go-client/issues)\n- [Source code](https://github.com/google/google-api-go-client)\n\nJava\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for Java:\n\n- [API reference](https://developers.google.com/api-client-library/java/apis/)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-java-client/issues)\n- [Source code](https://github.com/google/google-api-java-client)\n\nNode.js\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for Node.js:\n\n- [API reference](https://github.com/googleapis/google-cloud-node#google-cloud-nodejs-client-libraries)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-nodejs-client/issues)\n- [Source code](https://github.com/google/google-api-nodejs-client)\n\nPHP\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for PHP:\n\n- [API reference](https://developers.google.com/api-client-library/php/)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-php-client/issues)\n- [Source code](https://github.com/google/google-api-php-client)\n\nPython\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for Python:\n\n- [API reference](https://developers.google.com/api-client-library/python/apis/)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-python-client/issues)\n- [Source code](https://github.com/google/google-api-python-client)\n\nRuby\n\nThe following list contains links to more resources related to the Backup and DR Service\nclient library for Ruby:\n\n- [API reference](https://developers.google.com/api-client-library/ruby/apis/)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/google/google-api-ruby-client/issues)\n- [Source code](https://github.com/google/google-api-ruby-client)\n\n\u003cbr /\u003e\n\nC++, Python, Java, Node.js, Ruby, Go, PHP, C#"]]