Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add region capability enum#644

Merged
mgwoj merged 4 commits intolinode:devlinode/linode_api4-python:devfrom
mgwoj:feature/TPT-4010-python-sdk-add-region-capability-enummgwoj/linode_api4-python:feature/TPT-4010-python-sdk-add-region-capability-enumCopy head branch name to clipboard
Feb 20, 2026
Merged

Add region capability enum#644
mgwoj merged 4 commits intolinode:devlinode/linode_api4-python:devfrom
mgwoj:feature/TPT-4010-python-sdk-add-region-capability-enummgwoj/linode_api4-python:feature/TPT-4010-python-sdk-add-region-capability-enumCopy head branch name to clipboard

Conversation

@mgwoj
Copy link
Contributor

@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
linode_api4/objects/region.py Outdated Show resolved Hide resolved
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.

linode_api4/objects/region.py Outdated Show resolved Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mgwoj mgwoj merged commit 4003f2a into linode:dev Feb 20, 2026
12 checks passed
@yec-akamai yec-akamai added the improvement for improvements in existing functionality in the changelog. label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement for improvements in existing functionality in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.