These APIs are no longer offered by Google
SUMMARY
Google Cloud does not host source repositories anymore, they provide connections to other source code providers (e.g. github, gitlab, bitbucket)
Likewise, they stopped offering their ML products in favor of Vertex AI.
The modules that use these APIs are currently broken and, given that the upstream actively discourages you to use them, are not worth to fix imo.
There should be some new modules to replace sourcerepo_repository under the cloudbuild umbrella (since they are part of the v2 API) and there should be new modules for Vertex as well.
After the next major version, these should be tombstoned, ref:
https://docs.ansible.com/ansible/latest/dev_guide/module_lifecycle.html
ISSUE TYPE
- Deprecation notice
COMPONENT NAME
- gcp_sourcecode_repo
- gcp_sourcecode_repo_info
- gcp_mlengine_model
- gcp_mlengine_model_info
- gcp_mlengine_version
- gcp_mlengine_version_info
ADDITIONAL INFORMATION
With this patch, a deprecation notice is shown when running a playbook with these modules, example for sourcecode_repo:
[DEPRECATION WARNING]: google.cloud.gcp_sourcerepo_repository has been deprecated. Effective June
17, 2024, Cloud Source Repositories isn't available to new customers. If your organization hasn't
previously used Cloud Source Repositories, you can't enable the API or use Cloud Source
Repositories. This feature will be removed from google.cloud in version 2.0.0. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
@p3ck I completely missed that bit from the lifecycle reference, my bad. I tried it but the alternative field is required, I could put there is no alternative, or I could wait to add this deprecation information until after I have created the actual alternatives... WDYT?
I think you need the actual alternatives first :-)
half of this is being handled in #729