This page shows how to get started with the Cloud Client Libraries for the Data Catalog API. Read more about the client libraries for Cloud APIs, including the older Google API Client Libraries, in Client Libraries Explained.
Install the client library
C#
For more information, see Setting Up a C# Development Environment.
Install-Package Google.Cloud.DataCatalog.V1
Go
For more information, see Setting Up a Go Development Environment.
go get cloud.google.com/go/datacatalog/apiv1
Java
For more information, see Setting Up a Java Development Environment.
If you are using Maven, add this to your pom.xml file:
Maven: <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-datacatalog</artifactId> <version>insert datacatalog-library-version here</version> </dependency>If you are using Gradle, add this to your dependencies:
compile group: 'com.google.cloud', name: 'google-cloud-datacatalog', version: 'insert datacatalog-library-version here'
Node.js
For more information, see Setting Up a Node.js Development Environment.
npm install --save @google-cloud/datacatalog
PHP
For more information, see Using PHP on Google Cloud.
composer require google/cloud-data-catalog
Python
For more information, see Setting Up a Python Development Environment.
pip install --upgrade google-cloud-datacatalog
Ruby
For more information, see Setting Up a Ruby Development Environment.
gem install google-cloud-data_catalog
Set up authentication
When you use client libraries, you use Application Default Credentials (ADC) to authenticate. For information about setting up ADC, see Provide credentials for Application Default Credentials. For information about using ADC with client libraries, see Authenticate using client libraries.
Use the client library
The following example shows how to use the client library.
Java
For more information, see the Data Catalog Java API reference documentation.
To authenticate to Data Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Node.js
For more information, see the Data Catalog Node.js API reference documentation.
To authenticate to Data Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
For more information, see the Data Catalog Python API reference documentation.
To authenticate to Data Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.