bayesline.api.SharedResource

bayesline.api.SharedResource#

model SharedResource#

A grant of access to a resource that the current user made to a principal.

permission is the level granted to shared_with, not the current user’s own permission on the resource.

field expires_at: datetime | None [Optional]#
field permission: PermissionLevel [Required]#
field resource_id: int [Required]#
field resource_type: ResourceType [Required]#
field shared_at: datetime [Required]#
field shared_type: PrincipalType [Required]#
field shared_with: str [Required]#
field shared_with_email: str | None [Optional]#