Buckets:

download
raw
1.26 kB
from typing import NamedTuple, Literal
from pydantic import BaseModel, Field
from mlflow_oidc_auth.permissions import Permission
class PermissionResult(NamedTuple):
"""
Result object containing permission information and its source.
This class encapsulates both the permission details and metadata about
where the permission was determined from (e.g., user, group, regex, fallback).
Attributes:
permission (Permission): The Permission object containing access rights
type (str): String indicating the source type (e.g., 'user', 'group', 'regex', 'fallback')
"""
permission: Permission
kind: str
class UserPermission(BaseModel):
"""
User permission information.
Parameters:
-----------
name : str
The username of the user with access to the resource.
permission : str
The permission level the user has for this resource.
kind : str
The kind of user account ('user' or 'service-account').
"""
name: str = Field(..., description="Username of the user with access")
permission: str = Field(..., description="Permission level for the resource")
kind: Literal["user", "service-account"] = Field(..., description="Kind of user account")

Xet Storage Details

Size:
1.26 kB
·
Xet hash:
d443267cb9b42451e262ec620e39f9fa678ccab8623086fd56537ddc10e1afd6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.