File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
esgf_playground_utils/models Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 44
55from datetime import datetime
66from enum import Enum
7- from typing import Literal , Union
7+ from typing import Any , Dict , Literal , Union
88
99from pydantic import BaseModel
1010from stac_pydantic .item import Item
@@ -52,6 +52,16 @@ class RevokePayload(_Payload):
5252 item_id : str
5353
5454
55+ class PartialUpdatePayload (_Payload ):
56+ """
57+ Model describing a ``PARTIAL_UPDATE`` payload. This must be sent as a ``PATCH`` request.
58+ """
59+
60+ method : Literal ["PATCH" ]
61+ item : Dict [str , Any ]
62+ item_id : str
63+
64+
5565class UpdatePayload (_Payload ):
5666 """
5767 Model describing a ``UPDATE`` payload. This must be sent as a ``PATCH`` or ``PUT`` request.
Original file line number Diff line number Diff line change 44
55import unittest
66
7- from pydantic import ValidationError
8-
97from esgf_playground_utils .models .kafka import (
108 CreatePayload ,
119 KafkaEvent ,
1210 RevokePayload ,
1311 UpdatePayload ,
1412)
13+ from pydantic import ValidationError
1514
1615
1716class TestKafkaEvent (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments