TPT-4552: Add modules for object storage global quota#824
Open
zliang-akamai wants to merge 4 commits into
Open
TPT-4552: Add modules for object storage global quota#824zliang-akamai wants to merge 4 commits into
zliang-akamai wants to merge 4 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new Ansible collection modules to list and fetch details for the Linode Object Storage global quota endpoints, along with generated docs and integration coverage.
Changes:
- Introduce
object_storage_global_quota_listandobject_storage_global_quota_infomodules. - Add documentation fragments and generated module docs, and link the modules in
README.md. - Add integration tests for the new list/info modules and adjust
ListModule’s default description when filters are disabled.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/integration/targets/object_storage_global_quota_list/tasks/main.yaml | New integration test for the list module. |
| tests/integration/targets/object_storage_global_quota_info/tasks/main.yaml | New integration test for the info module (includes quota usage). |
| README.md | Adds the new modules to the module index tables. |
| plugins/modules/object_storage_global_quota_list.py | New list module wired to /object-storage/global-quotas with filters disabled. |
| plugins/modules/object_storage_global_quota_info.py | New info module with optional secondary result to fetch quota usage. |
| plugins/module_utils/linode_common_list.py | Makes default list-module description accurate when disable_filters=True. |
| plugins/module_utils/doc_fragments/object_storage_global_quota_list.py | Adds specdoc examples and sample results for list module docs. |
| plugins/module_utils/doc_fragments/object_storage_global_quota_info.py | Adds specdoc examples and sample results for info module docs. |
| docs/modules/object_storage_global_quota_list.md | Generated docs for list module. |
| docs/modules/object_storage_global_quota_info.md | Generated docs for info module (needs return behavior clarification). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ec366f0 to
2dc7270
Compare
2dc7270 to
49cbf68
Compare
f7d78ea to
0ea55a3
Compare
| ] | ||
| max-positional-arguments = 12 | ||
| py-version = "3.9" | ||
| py-version = "3.10" |
|
|
||
| from __future__ import absolute_import, division, print_function | ||
|
|
||
| from typing import Any |
| client: LinodeClient, | ||
| object_storage_global_quota: dict[str, Any], | ||
| params: list[InfoModuleParam], | ||
| ) -> dict[str, Any] | None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Add list and info modules for the new object storage global quota endpoints.
✔️ How to Test
make integration-test TEST_SUITE=object_storage_global_quota_list```