Skip to content

Add region capability enum#644

Open
mgwoj wants to merge 4 commits intolinode:devfrom
mgwoj:feature/TPT-4010-python-sdk-add-region-capability-enum
Open

Add region capability enum#644
mgwoj wants to merge 4 commits intolinode:devfrom
mgwoj:feature/TPT-4010-python-sdk-add-region-capability-enum

Conversation

@mgwoj
Copy link

@mgwoj mgwoj commented Feb 11, 2026

📝 Description

A new StrEnum has been added containing all region capability constants defined in the API.

✔️ How to Test

No tests needed.

@mgwoj mgwoj requested a review from a team as a code owner February 11, 2026 07:56
@mgwoj mgwoj requested review from ezilber-akamai and yec-akamai and removed request for a team February 11, 2026 07:56
Copy link
Contributor

Copilot AI left a comment

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 Capability enum to the linode_api4.objects.region module containing all region capability constants defined in the Linode API. The enum extends StrEnum and provides a type-safe way to reference the various capabilities (like "Linodes", "NodeBalancers", "Kubernetes", etc.) that are available across different Linode regions.

Changes:

  • Added a comprehensive Capability StrEnum class with 51 capability constants representing various Linode services and features
  • Exported the Capability enum in linode_api4/objects/__init__.py for public API usage

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
linode_api4/objects/region.py Adds the Capability StrEnum class containing all region capability constants
linode_api4/objects/init.py Exports the new Capability enum alongside the existing Region class

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants