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 4
4
5
5
from datetime import datetime
6
6
from enum import Enum
7
- from typing import Literal , Union
7
+ from typing import Any , Dict , Literal , Union
8
8
9
9
from pydantic import BaseModel
10
10
from stac_pydantic .item import Item
@@ -52,6 +52,16 @@ class RevokePayload(_Payload):
52
52
item_id : str
53
53
54
54
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
+
55
65
class UpdatePayload (_Payload ):
56
66
"""
57
67
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 4
4
5
5
import unittest
6
6
7
- from pydantic import ValidationError
8
-
9
7
from esgf_playground_utils .models .kafka import (
10
8
CreatePayload ,
11
9
KafkaEvent ,
12
10
RevokePayload ,
13
11
UpdatePayload ,
14
12
)
13
+ from pydantic import ValidationError
15
14
16
15
17
16
class TestKafkaEvent (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments