linode / linode_api4-python

Official Python bindings for the Linode API
https://linode-api4.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
135 stars 75 forks source link

Add VPC Grant and Refactor `UserGrants` class #455

Open zliang-akamai opened 1 week ago

zliang-akamai commented 1 week ago

📝 Description

✔️ How to Test

make testunit
import os
from linode_api4 import LinodeClient

client = LinodeClient(token=os.getenv('LINODE_TOKEN'))

user = client.account.user_create(
    "your.email@example.com",
    "yourtestusername",
)

print(vars(user.grants))
user.delete()