linode_api4-python icon indicating copy to clipboard operation
linode_api4-python copied to clipboard

new: Add support for LKE Control Plane ACLs

Open lgarber-akamai opened this issue 1 year ago • 0 comments

📝 Description

This pull request adds support for configuring and viewing the ACL configuration for an LKE cluster's control plane.

New Endpoint Methods

  • control_plane_acl - GET /lke/clusters/{cluster_id}/control_plane_acl
  • control_plane_acl_update(...) - PUT /lke/clusters/{cluster_id}/control_plane_acl
  • control_plane_acl_delete() - POST /lke/clusters/{cluster_id}/control_plane_acl

Updated Endpoint Methods

  • LKEGroup.cluster_create(...) - Add control_plane field to method arguments

Misc Changes

  • Added data classes for LKE cluster control plane and all substructures
  • Added logic to JSONObject to remove Optional values from the generated dict if None
    • Added a new Nullable type hint to represent an optional value that should always be included in the generated dict
  • Updated test fixture framework to support underscores in path

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?

How do I run the relevant unit/integration tests?

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

lgarber-akamai avatar May 14 '24 15:05 lgarber-akamai