chore: Update discovery artifacts (#2590)

## Deleted keys were detected in the following stable discovery artifacts:
policysimulator v1 https://togithub.com/googleapis/google-api-python-client/commit/31165adf4c8d868b82057af3444204c4bfea8c5c
run v2 https://togithub.com/googleapis/google-api-python-client/commit/6aacadb411deacf2c7f5c1c034401c0bd903b3ce

## Deleted keys were detected in the following pre-stable discovery artifacts:
beyondcorp v1alpha https://togithub.com/googleapis/google-api-python-client/commit/491ecf6f52101f64dc016213ea7e3a42796e1469
osconfig v2beta https://togithub.com/googleapis/google-api-python-client/commit/d6cf16f83ffc77ecef2fcbfdad9c9072faa9b778
policysimulator v1alpha https://togithub.com/googleapis/google-api-python-client/commit/31165adf4c8d868b82057af3444204c4bfea8c5c
policysimulator v1beta https://togithub.com/googleapis/google-api-python-client/commit/31165adf4c8d868b82057af3444204c4bfea8c5c

## Discovery Artifact Change Summary:
feat(admin): update the api https://togithub.com/googleapis/google-api-python-client/commit/1d949e1471362a21bf35fdf5fe54660965a1070c
feat(aiplatform): update the api https://togithub.com/googleapis/google-api-python-client/commit/b71638cfb2c65029078c45f805e62ccba66e7dcd
feat(alloydb): update the api https://togithub.com/googleapis/google-api-python-client/commit/d2fbe202c8cd7f63d742be4c29add5819d628726
feat(analyticshub): update the api https://togithub.com/googleapis/google-api-python-client/commit/d062d76305bbb917751c635201b01b00f6528b59
feat(beyondcorp): update the api https://togithub.com/googleapis/google-api-python-client/commit/491ecf6f52101f64dc016213ea7e3a42796e1469
feat(bigquerydatatransfer): update the api https://togithub.com/googleapis/google-api-python-client/commit/bfec0197704b342e3186f39917c3b1b085abdfa3
feat(chromepolicy): update the api https://togithub.com/googleapis/google-api-python-client/commit/d644ef9cae31d200f6732b046010ae5196d3cedf
feat(cloudbuild): update the api https://togithub.com/googleapis/google-api-python-client/commit/bf0bc27f46f9a1c7641c53d2b7a708d40d60c192
feat(cloudfunctions): update the api https://togithub.com/googleapis/google-api-python-client/commit/b84ad39361f1db39cc705cdc13c6b2a041a37861
feat(connectors): update the api https://togithub.com/googleapis/google-api-python-client/commit/4f8f602d69e5ccf57f8616403b9ca98a3189a84a
feat(contactcenteraiplatform): update the api https://togithub.com/googleapis/google-api-python-client/commit/a4227406655b9457910958d1ca94fd9554a21e44
feat(container): update the api https://togithub.com/googleapis/google-api-python-client/commit/986114db026df99f387884cbf13b0b5931980e18
feat(dataform): update the api https://togithub.com/googleapis/google-api-python-client/commit/8827d367ab8cf4064b9d832220df85e3a03c9223
fix(datalineage): update the api https://togithub.com/googleapis/google-api-python-client/commit/51dd9cf6de12b2d3b0505d6501fe3fec95567a3e
feat(datamigration): update the api https://togithub.com/googleapis/google-api-python-client/commit/6ebc9eb31d794a8c933aba492433f72b13acf276
feat(dataplex): update the api https://togithub.com/googleapis/google-api-python-client/commit/a394bb9db3715ab9783b3c1af831ec3df7c8ae65
feat(datastream): update the api https://togithub.com/googleapis/google-api-python-client/commit/314252583186147ba24afe83a67741348fcbf84d
feat(deploymentmanager): update the api https://togithub.com/googleapis/google-api-python-client/commit/fdfe76406c2a4388f07ad09a924cf9cf5ffb9038
feat(developerconnect): update the api https://togithub.com/googleapis/google-api-python-client/commit/dad44abcd777c787fbe75c03083a75525a72993a
feat(dialogflow): update the api https://togithub.com/googleapis/google-api-python-client/commit/b282c785dda009a52fd9d644f2cbf5319510679f
feat(discoveryengine): update the api https://togithub.com/googleapis/google-api-python-client/commit/f8ca7a156e2163ad469b0c246f0fd41cb6db5209
feat(firebasedataconnect): update the api https://togithub.com/googleapis/google-api-python-client/commit/147dbf95a428037ec2f0dc5d63ddda3c23210278
feat(firebaseml): update the api https://togithub.com/googleapis/google-api-python-client/commit/ca736ee5a1201b1d1cd07ff08325f2f6bb316fe4
feat(gkehub): update the api https://togithub.com/googleapis/google-api-python-client/commit/9f522b955deaf0d8e539d53fb98777ab46933477
feat(gkeonprem): update the api https://togithub.com/googleapis/google-api-python-client/commit/45813e718144bb78f08d9d4d4083f8c6abe101fd
feat(iam): update the api https://togithub.com/googleapis/google-api-python-client/commit/6844441243409dca7fcf18fb891e939493b91567
feat(ids): update the api https://togithub.com/googleapis/google-api-python-client/commit/a9bb8e004d60283d17a8bed4b109394ba1bad93a
feat(managedkafka): update the api https://togithub.com/googleapis/google-api-python-client/commit/b60033cef9bbeb8a0ecebeffd2d3341e59abcad0
feat(metastore): update the api https://togithub.com/googleapis/google-api-python-client/commit/c54bfd493a1c4575c49479abc5cb4cade27313a5
feat(migrationcenter): update the api https://togithub.com/googleapis/google-api-python-client/commit/f8e8c6e80e04a6da6c1f3705253c2365ce61acee
feat(monitoring): update the api https://togithub.com/googleapis/google-api-python-client/commit/53862a57119ea3b9b3fb4643148c8aa69970afc4
feat(networkconnectivity): update the api https://togithub.com/googleapis/google-api-python-client/commit/81e4576bf38665c195c15d850d93cbb0c579e4e8
feat(networkservices): update the api https://togithub.com/googleapis/google-api-python-client/commit/6dc7106f738a9746f2d5801ecc1ab9dbf462122b
feat(notebooks): update the api https://togithub.com/googleapis/google-api-python-client/commit/e85c958848df881518caa00b0b3a24b2b01754e5
feat(observability): update the api https://togithub.com/googleapis/google-api-python-client/commit/6b4f7ba10b34a04ecd02859cf3f90c6184d05536
feat(oracledatabase): update the api https://togithub.com/googleapis/google-api-python-client/commit/2007fca07b84314922475de5ab95c691780b8679
feat(osconfig): update the api https://togithub.com/googleapis/google-api-python-client/commit/d6cf16f83ffc77ecef2fcbfdad9c9072faa9b778
feat(parallelstore): update the api https://togithub.com/googleapis/google-api-python-client/commit/eba9792ea10f49d750dc8676a57b2050ba6f7baf
feat(paymentsresellersubscription): update the api https://togithub.com/googleapis/google-api-python-client/commit/1886f90173562963efbe95e4dcc9eb307120e6c0
feat(policysimulator): update the api https://togithub.com/googleapis/google-api-python-client/commit/31165adf4c8d868b82057af3444204c4bfea8c5c
feat(rapidmigrationassessment): update the api https://togithub.com/googleapis/google-api-python-client/commit/6c2b636b38e91140dfda0fa1640b803fe1a1a6c4
feat(recommender): update the api https://togithub.com/googleapis/google-api-python-client/commit/7482f9ac030e47a3b494ff8581ab16cfce2951c6
feat(redis): update the api https://togithub.com/googleapis/google-api-python-client/commit/99c60077d43a601e29d3c281256d3eb836dd56fe
feat(run): update the api https://togithub.com/googleapis/google-api-python-client/commit/6aacadb411deacf2c7f5c1c034401c0bd903b3ce
feat(secretmanager): update the api https://togithub.com/googleapis/google-api-python-client/commit/cb3189a7edaac9a831c5f6f6adcd4efd8bc4aa2e
feat(securitycenter): update the api https://togithub.com/googleapis/google-api-python-client/commit/a379c71f2811c0513176920e40a7983af35f01a9
feat(servicedirectory): update the api https://togithub.com/googleapis/google-api-python-client/commit/a0aa76fdad8c77f5e43d435c2f3667b3e276f6f5
feat(testing): update the api https://togithub.com/googleapis/google-api-python-client/commit/dcfada6551f602a94dff9bfa856464ddbc520506
feat(tpu): update the api https://togithub.com/googleapis/google-api-python-client/commit/52399381d45a5f84ccecfe9cb56fb61894e19d4e
feat(vmmigration): update the api https://togithub.com/googleapis/google-api-python-client/commit/890a3418c5165f47a6e20c948024282e29de14d0
feat(workloadmanager): update the api https://togithub.com/googleapis/google-api-python-client/commit/a4e95cb15797fbe612d0380cc884c9dcc65b477e
466 files changed
tree: 85f0655c5fa13a12e7804a5166fcc92f53c1d689
  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.cfg
  32. setup.py
  33. sitecustomize.py
  34. 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.7 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.7, 3.8, 3.9, 3.10, 3.11 and 3.12 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.7

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.