mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
add SCIMPatchOp
This commit is contained in:
parent
a6e2988efb
commit
10d399a714
1 changed files with 12 additions and 0 deletions
|
@ -68,3 +68,15 @@ class SCIMListResponse(BaseModel):
|
||||||
startIndex: Optional[int] = 1
|
startIndex: Optional[int] = 1
|
||||||
itemsPerPage: Optional[int] = 10
|
itemsPerPage: Optional[int] = 10
|
||||||
Resources: List[Union[SCIMUser, SCIMGroup]]
|
Resources: List[Union[SCIMUser, SCIMGroup]]
|
||||||
|
|
||||||
|
|
||||||
|
# SCIM PATCH Operation Models
|
||||||
|
class SCIMPatchOperation(BaseModel):
|
||||||
|
op: str # add, remove, replace
|
||||||
|
path: Optional[str] = None
|
||||||
|
value: Optional[Any] = None
|
||||||
|
|
||||||
|
|
||||||
|
class SCIMPatchOp(BaseModel):
|
||||||
|
schemas: List[str] = ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]
|
||||||
|
Operations: List[SCIMPatchOperation]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue