Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.18 KB

File metadata and controls

31 lines (22 loc) · 1.18 KB

Permission

A permission defining allowed operations on a resource.

Properties

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).

Example

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)

[Back to Model list] [Back to API list] [Back to README]