2

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

red888
  • 27,709
  • 55
  • 204
  • 392
  • 2
    Oh geeze, the "Read the Client Library Documentation" link under "Next Steps" just links right back to the same page you're already on. – user2357112 Jul 27 '23 at 03:38
  • 2
    [These](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-orchestration-airflow/samples/generated_samples) *might* be the samples they're talking about? They're no substitute for proper documentation either way, though. – user2357112 Jul 27 '23 at 03:42
  • I think if you look at the sidebar on the left, and navigate the tree under "google-cloud-orchestration-airflow > Orchestration", those might be the docs you're looking for. – user2357112 Jul 27 '23 at 04:10
  • 1) All companies have documentation that sometimes breaks. Perhaps consider clicking the feedback button on the page at the bottom and letting someone know. 2) Google published their examples on GitHub. You can download repositories with a large number of examples for many languages, SDKs, and frameworks. Start [here](https://github.com/google) or [here](https://github.com/googleapis). Use the search feature to find what want. For [example](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-orchestration-airflow). – John Hanley Jul 27 '23 at 06:27
  • In your post, you reference a repository. That repository has been moved and there is a notice that tells you that. The new repository has many [examples](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-orchestration-airflow/samples/generated_samples). – John Hanley Jul 27 '23 at 06:30
  • Hi @red888, If my answer addressed your question, do consider accepting and up voting it as per [Stack Overflow guidelines](https://stackoverflow.com/help/someone-answers) helping more Stack contributors with their researches. If not, let me know so that I can improve my answer. – Arpita Shrivastava Aug 04 '23 at 07:10

1 Answers1

0

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.