Often, the easiest way to learn how to use an API can be to look at sample
code. For sample code that uses the Google Cloud Deployment Manager V2 API, see the reference documentation for
each of the API methods. For example, if you want to use the API to create a new deployment,
see the examples for deployments.insert
.
Google Cloud Deployment Manager V2 API client libraries
The Google Cloud Deployment Manager V2 API is built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.
However, the Google APIs client libraries provide better language integration, improved security, and support for making calls that require user authorization. The client libraries are available in a number of programming languages; by using them you can avoid the need to manually set up HTTP requests and parse the responses.
Go
Get the latest Google Cloud Deployment Manager V2 API client library for Go.
Read the client library's developer's guide.
Java
This page contains information about getting started with the Google Cloud Deployment Manager API using the Google API Client Library for Java. In addition, you may be interested in the following documentation: Select your build environment (Maven or Gradle) from the following tabs, or download a zip file containing all of the jars you need:
See the The Add the following to your Add the following to your
Add Library to Your Project
Download the Google Cloud Deployment Manager API v2 Client Library for Java.
deploymentmanager/readme.html
file for details on:
libs
folder contains all the of the globally applicable dependencies you might need across all application types.pom.xml
file:build.gradle
file:
JavaScript
Read the client library's developer's guide.
.NET
This page contains information about getting started with the Google Cloud Deployment Manager API using the Google API Client Library for .NET. In addition, you may be interested in the following documentation: Install the NuGet package:
Google.Apis.
Downloading the library
Node.js
Get the latest Google Cloud Deployment Manager V2 API client library for Node.js.
Read the client library's developer's guide.
Obj-C
Get the latest Google Cloud Deployment Manager V2 API client library for Objective-C.
Read the client library's developer's guide.
PHP
Get the latest Google Cloud Deployment Manager V2 API client library for PHP.
Read the client library's developer's guide.
Python
This page contains information about getting started with the Google Cloud Deployment Manager API using the Google API Client Library for Python. In addition, you may be interested in the following documentation: You can either use a package manager or download and install the Python client library
manually: Use pip or setuptools to manage your installation (you might
need to run Because the Python client libraries are not installed in the
App Engine Python runtime environment,
they must be
vendored into your application just like third-party libraries.
System requirements
Installing the client library
Managed installation
sudo
first):
$ pip install --upgrade google-api-python-client
easy_install
tool included in the
setuptools package:
$ easy_install --upgrade google-api-python-client
Manual installation
Download the latest client
library for Python, unpack the code, and run
python setup.py install
App Engine
Ruby
This page contains information about getting started with the Google Cloud Deployment Manager API using the Google API Client Library for Ruby. In addition, you may be interested in the following documentation:
If you haven't installed the Google API Client Library for Ruby before, open a terminal and install using
Installing the google-api-client gem
RubyGems
:
$ gem install google-api-client
If you already have the gem installed and would simply like to update to the latest version:
$ gem update -y google-api-client
Depending on your system, you may need to prepend these commands with sudo
.
Getting started with the Google API Client Library for Ruby
Be sure to check our extensive Getting started guide for a quick overview of how to make your first request.