chore: Update discovery artifacts (#2840)

## Deleted keys were detected in the following stable discovery artifacts:
assuredworkloads v1 https://togithub.com/googleapis/google-api-python-client/commit/8a2d3f7d6a387c5d3c04b8226e9bf7d07f2b6892
dataplex v1 https://togithub.com/googleapis/google-api-python-client/commit/d3fa0d75532a43173a35f60922790fd2c228a96a
displayvideo v2 https://togithub.com/googleapis/google-api-python-client/commit/a752408f2ecbe71da8ec71952042d5ad3f63ce33
displayvideo v3 https://togithub.com/googleapis/google-api-python-client/commit/a752408f2ecbe71da8ec71952042d5ad3f63ce33
displayvideo v4 https://togithub.com/googleapis/google-api-python-client/commit/a752408f2ecbe71da8ec71952042d5ad3f63ce33
workspaceevents v1 https://togithub.com/googleapis/google-api-python-client/commit/7244849fef09276bad045c13eb3cfdcf8482a573

## Deleted keys were detected in the following pre-stable discovery artifacts:
assuredworkloads v1beta1 https://togithub.com/googleapis/google-api-python-client/commit/8a2d3f7d6a387c5d3c04b8226e9bf7d07f2b6892
compute alpha https://togithub.com/googleapis/google-api-python-client/commit/ef1276739b4824dc29d5f3b5da8b6c2c5546b249

## Discovery Artifact Change Summary:
feat(agentregistry): update the api https://togithub.com/googleapis/google-api-python-client/commit/4c719e98d6f8d6ac76ac7dac2cd53b7c2db0c395
feat(aiplatform): update the api https://togithub.com/googleapis/google-api-python-client/commit/aee04f1921234e8e457edb5e37e108902f66798c
feat(alloydb): update the api https://togithub.com/googleapis/google-api-python-client/commit/9e5d2bb67b08af94e3cac9345a3aebb6389d0ab2
feat(assuredworkloads): update the api https://togithub.com/googleapis/google-api-python-client/commit/8a2d3f7d6a387c5d3c04b8226e9bf7d07f2b6892
fix(auditmanager): update the api https://togithub.com/googleapis/google-api-python-client/commit/e520c8be656e463144ab1f665c8e57d1849062ec
feat(biglake): update the api https://togithub.com/googleapis/google-api-python-client/commit/0e58f75a4d3dee77ed9ffe698a4b41e6a686b274
feat(chromemanagement): update the api https://togithub.com/googleapis/google-api-python-client/commit/ed3c9972fe4ce5bdd29623e5b1fb5cf1a9f9aba3
fix(cloudscheduler): update the api https://togithub.com/googleapis/google-api-python-client/commit/f2c1b339bc31b328930696cb7bb4721a92a72e3b
feat(compute): update the api https://togithub.com/googleapis/google-api-python-client/commit/ef1276739b4824dc29d5f3b5da8b6c2c5546b249
feat(dataplex): update the api https://togithub.com/googleapis/google-api-python-client/commit/d3fa0d75532a43173a35f60922790fd2c228a96a
fix(developerconnect): update the api https://togithub.com/googleapis/google-api-python-client/commit/c712eb12651e3d1121cd6b80af073ba886a83e52
feat(devicerun): update the api https://togithub.com/googleapis/google-api-python-client/commit/2f3a581f3a3ce5cf1d8d471a07cc693b6fb0cfaf
feat(discoveryengine): update the api https://togithub.com/googleapis/google-api-python-client/commit/15949492b2d75197fb8fb4fe27265611a995a978
feat(displayvideo): update the api https://togithub.com/googleapis/google-api-python-client/commit/a752408f2ecbe71da8ec71952042d5ad3f63ce33
feat(dns): update the api https://togithub.com/googleapis/google-api-python-client/commit/482a94957adfd3cda8a3addd3b76aa03ae0150a2
feat(documentai): update the api https://togithub.com/googleapis/google-api-python-client/commit/72e68471f0fa5d031b02616b63e3305b6a429420
feat(file): update the api https://togithub.com/googleapis/google-api-python-client/commit/50ed14be22b3e11781a69a684ceba675c945bb42
feat(firebasecrashlytics): update the api https://togithub.com/googleapis/google-api-python-client/commit/8250447ecbfb766e3255a5e3de74dc918a749a83
feat(firebasedataconnect): update the api https://togithub.com/googleapis/google-api-python-client/commit/68dfb846fe7b05843afadd0ead2963d35f63a780
feat(firebaseml): update the api https://togithub.com/googleapis/google-api-python-client/commit/5b9d0c00eb4e7de27878403207506227a1408706
feat(integrations): update the api https://togithub.com/googleapis/google-api-python-client/commit/324aa06f620c4524d61120be274943afe7b2aed3
feat(looker): update the api https://togithub.com/googleapis/google-api-python-client/commit/2b41cbdf8ed9760ef4e2930fe753353c2ace4f95
feat(networkmanagement): update the api https://togithub.com/googleapis/google-api-python-client/commit/cde10fe2ca03c0a746433d5ca4aef88e3c17f1fe
feat(recaptchaenterprise): update the api https://togithub.com/googleapis/google-api-python-client/commit/788c837e741a542cef3f3228ae3b789ad888d965
feat(run): update the api https://togithub.com/googleapis/google-api-python-client/commit/06a9f23e7f7d9f8e05e7c860b37175133be311bb
feat(saasservicemgmt): update the api https://togithub.com/googleapis/google-api-python-client/commit/313733d09edf47c4b61291d93581730c0e5b2e7f
feat(securitycenter): update the api https://togithub.com/googleapis/google-api-python-client/commit/020b542faf65b088f56fd2343b7db515432d21ac
feat(servicecontrol): update the api https://togithub.com/googleapis/google-api-python-client/commit/b61cb24f5ce87a754ad07589e653b1fcda765f7e
fix(spanner): update the api https://togithub.com/googleapis/google-api-python-client/commit/5da619b4a5fb400f5150047f75494c10c6c2768a
feat(workspaceevents): update the api https://togithub.com/googleapis/google-api-python-client/commit/7244849fef09276bad045c13eb3cfdcf8482a573
feat(workstations): update the api https://togithub.com/googleapis/google-api-python-client/commit/a4e973a037062e4c50f7222f903c85e47dc18e79
294 files changed
tree: 17897bed66b5f56ca98bd3c890d8674ec39a21c0
  1. .github/
  2. .kokoro/
  3. apiclient/
  4. docs/
  5. googleapiclient/
  6. samples/
  7. scripts/
  8. testing/
  9. tests/
  10. tools/
  11. .coveragerc
  12. .gitignore
  13. .gitmodules
  14. .hgignore
  15. .repo-metadata.json
  16. .trampolinerc
  17. CHANGELOG.md
  18. CODE_OF_CONDUCT.md
  19. CONTRIBUTING.rst
  20. describe.py
  21. expandsymlinks.py
  22. LICENSE
  23. Makefile
  24. MANIFEST.in
  25. noxfile.py
  26. owlbot.py
  27. README.md
  28. renovate.json
  29. samples-index.py
  30. SECURITY.md
  31. setup.py
  32. sitecustomize.py
  33. UPGRADING.md
README.md

Google API Client

PyPI version

This is the Google API Python client library for Google's discovery based APIs. To get started, please see the docs folder.

This library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

This library is officially supported by Google. However, the maintainers of this repository recommend using Cloud Client Libraries for Python, where possible, for new code development. For more information, please visit Client Libraries Explained.

Version 2.0 Release

The 2.0 release of google-api-python-client includes a substantial reliability improvement, compared with 1.x, as discovery documents are now cached in the library rather than fetched dynamically. It is highly recommended to upgrade from v1.x to v2.x.

Only python 3.10 and newer is supported. If you are not able to upgrade python, then please continue to use version 1.x as we will continue supporting python 2.7+ in v1.

Discovery documents will no longer be retrieved dynamically when you call discovery.build(). The discovery documents will instead be retrieved from the client library directly. New versions of this library are released weekly. As a result of caching the discovery documents, the size of this package is at least 50 MB larger compared to the previous version.

Please see the Migration Guide for more information.

Documentation

See the docs folder for more detailed instructions and additional documentation.

Other Google API libraries

The maintainers of this repository recommend using Cloud Client Libraries for Python, where possible, for new code development due to the following reasons:

With Cloud Client Libraries for Python:

  • There is a separate client library for each API, so you can choose which client libraries to download. Whereas, google-api-python-client is a single client library for all APIs. As a result, the total package size for google-api-python-client exceeds 50MB.
  • There are stricter controls for breaking changes to the underlying APIs as each client library is focused on a specific API.
  • There are more features in these Cloud Client Libraries as each library is focused on a specific API, and in some cases, the libraries are owned by team who specialized in that API.
  • Developers will benefit from intellisense.

For more information, please visit Client Libraries Explained.

Although there are many benefits to moving to Cloud Client Libraries for Python, the maintainers want to emphasize that google-api-python-client will continue to be supported.

For Google Ads API, we recommend using Google Ads API Client Library for Python.

For Google Firebase Admin API, we recommend using Firebase Admin Python SDK.

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.

Mac/Linux

pip3 install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-api-python-client

Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-api-python-client

Supported Python Versions

Python 3.10, 3.11, 3.12, 3.13, 3.14, and 3.15 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions.

Unsupported Python Versions

Python < 3.10

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

For development you will also need the following libraries:

Contributing

Please see our Contribution Guide. In particular, we love pull requests - but please make sure to sign the contributor license agreement.