Search code examples
google-cloud-platformgoogle-cloud-composer

Where is the actual documentation for the composer python SDK?


Am I crazy or is this documentation non-existent: https://cloud.google.com/python/docs/reference/composer/latest

"Code samples and snippets live in the samples/ folder." What samples folder?

The repo also has nothing: https://github.com/googleapis/python-orchestration-airflow

Any documentation anywhere? I'd like to experiment with calling the composer APIs through a python script instead of the gcloud cli.

Example snippets for simple stuff like creating, listing, and updating environment with the python SDK.

EDIT

Per comments there appear to be samples here, but they seem to only be for V1? I'm using composer V2. https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-orchestration-airflow/samples/generated_samples/composer_v1_generated_environments_update_environment_async.py


Solution

  • As commented by @user2357112 and @John Hanley the "Read the Client Library Documentation" link under "Next Steps" just links right back to the same page you're already on.

    Google published their examples on GitHub. You can download repositories with a large number of examples for many languages, SDKs, and frameworks. Start here or here. Use the search feature to find what you want. For example .

    The samples are available here

    Posting the answer as community wiki for the benefit of the community that might encounter this use case in the future.

    Feel free to edit this answer for additional information.