Skip to content

TPT-4111: Support listing VPC availabilities in regions - #838

Open
yec-akamai wants to merge 1 commit into
linode:devfrom
yec-akamai:TPT-4111/add-vpc-avail-modules
Open

TPT-4111: Support listing VPC availabilities in regions#838
yec-akamai wants to merge 1 commit into
linode:devfrom
yec-akamai:TPT-4111/add-vpc-avail-modules

Conversation

@yec-akamai

Copy link
Copy Markdown
Contributor

📝 Description

Add a new module for listing region vpc availabilities.

✔️ How to Test

make test-int TEST_SUITE=region_vpc_availability_list

@yec-akamai yec-akamai added the new-feature for new features in the changelog. label Jul 23, 2026
@yec-akamai
yec-akamai requested review from a team as code owners July 23, 2026 20:13
@yec-akamai
yec-akamai requested review from Copilot, mawilk90 and zliang-akamai and removed request for a team July 23, 2026 20:13
@yec-akamai yec-akamai changed the title Support listing VPC availabilities in regions TPT-4111: Support listing VPC availabilities in regions Jul 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Ansible list module to the linode.cloud collection to retrieve VPC availability data across regions via the Linode API, along with generated documentation and an integration test target.

Changes:

  • Added region_vpc_availability_list module implemented with the shared ListModule helper against /regions/vpc-availability.
  • Added specdoc doc fragments and generated module documentation for the new module.
  • Added an ansible-test integration target and wired the module into the README module list.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/integration/targets/region_vpc_availability_list/tasks/main.yaml Adds an integration test target validating basic listing behavior and count limiting.
README.md Registers the new module in the collection’s module list.
plugins/modules/region_vpc_availability_list.py Implements the new list module using the shared ListModule helper.
plugins/module_utils/doc_fragments/region_vpc_availability_list.py Provides specdoc examples and sample return payloads for doc generation.
docs/modules/region_vpc_availability_list.md Adds generated end-user documentation for the new module.
Comments suppressed due to low confidence (1)

docs/modules/region_vpc_availability_list.md:41

  • The return value description should be plural to match the returned list field name (vpc_availabilities).
- `vpc_availabilities` - The returned Region VPC Availability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/modules/region_vpc_availability_list.py
Comment thread plugins/modules/region_vpc_availability_list.py
Comment thread docs/modules/region_vpc_availability_list.md
that:
- no_filter.vpc_availabilities | length > 0
- no_filter.vpc_availabilities[0].region is defined
- no_filter.vpc_availabilities[0].available is defined

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add assertion for available_ipv6_prefix_lengths?
no_filter.vpc_availabilities[0].available_ipv6_prefix_lengths is defined

}
]
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-regions-vpc-availability) for a list of returned fields

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have doubts about this link TBH. As far as I know from TechDoc, it's not published yet so maybe it makes sense to leave it as TODO?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature for new features in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants