Python Client for Cloud Asset API¶
Cloud Asset API: The cloud asset API manages the history and inventory of cloud resources.
Quick Start¶
In order to use this library, you first need to go through the following steps:
Installation¶
Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.
With virtualenv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.
Supported Python Versions¶
Python >= 3.6
Deprecated Python Versions¶
Python == 2.7.
The last version of this library compatible with Python 2.7 is google-cloud-asset==1.3.0.
Mac/Linux¶
pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-asset
Windows¶
pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-asset
Next Steps¶
Read the Client Library Documentation for Cloud Asset API API to see other available methods on the client.
Read the Product documentation to learn more about the product and see How-to Guides.
Note
Because this client uses grpc
library, it is safe to
share instances across threads. In multiprocessing scenarios, the best
practice is to create client instances after the invocation of
os.fork()
by multiprocessing.pool.Pool
or
multiprocessing.Process
.
Api Reference¶
This package includes clients for multiple versions of the Cloud Asset API. By default, you will get v1
the latest stable version.
v1 <v1>¶
Beta releases with additional features over the current stable version. These are expected to move into the stable release soon; until then, the usual beta admonishment (changes are possible, etc.) applies.
In order to use it, you will want to import from
google.cloud.asset_v1p4beta1
in lieu of google.cloud.asset_v1
.
v1p1beta1¶
v1p2beta1¶
v1p4beta1¶
Migration Guide¶
See the guide below for instructions on migrating to the 2.x release of this library.
Changelog¶
For a list of all google-cloud-asset
releases:
- Changelog
- 3.6.1 (2021-09-30)
- Bug Fixes
- 3.6.0 (2021-09-24)
- 3.5.0 (2021-09-03)
- 3.4.0 (2021-08-17)
- 3.3.0 (2021-07-28)
- 3.2.0 (2021-07-12)
- 3.1.0 (2021-06-07)
- 2.2.0 (2020-11-19)
- 2.1.0 (2020-09-25)
- 2.0.0 (2020-08-05)
- 1.3.0 (2020-06-25)
- 1.2.0 (2020-06-23)
- 1.1.0 (2020-06-10)
- 1.0.0 (2020-06-10)
- 0.10.0 (2020-05-08)
- 0.9.0 (2020-03-17)
- 0.8.0 (2020-03-07)
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0