A permission defining allowed operations on a resource.
| Name | Type | Description | Notes |
|---|---|---|---|
| resource | str | The resource (e.g., "devices", "fleets", "*" for all resources). | |
| operations | List[str] | List of allowed operations (e.g., "get", "list", "create", "update", "patch", "delete", "*" for all operations). |
from flightctl.models.permission import Permission
# TODO update the JSON string below
json = "{}"
# create an instance of Permission from a JSON string
permission_instance = Permission.from_json(json)
# print the JSON string representation of the object
print(Permission.to_json())
# convert the object into a dict
permission_dict = permission_instance.to_dict()
# create an instance of Permission from a dict
permission_from_dict = Permission.from_dict(permission_dict)