|
1 | 1 | import json |
2 | 2 | import pandas as pd |
3 | | -from typing import Union, Optional, Literal, List, Dict, IO, TYPE_CHECKING |
| 3 | +from typing import Union, Optional, Literal, List, Dict, Tuple, IO, TYPE_CHECKING |
4 | 4 | from uuid import UUID |
5 | 5 | from datetime import datetime |
6 | 6 | from pydantic.alias_generators import to_camel |
@@ -40,6 +40,7 @@ def list( |
40 | 40 | sampled_medium: str = ..., |
41 | 41 | status: Optional[str] = ..., |
42 | 42 | result_type: str = ..., |
| 43 | + tag: Tuple[str, str] = ..., |
43 | 44 | is_private: bool = ..., |
44 | 45 | value_count_max: int = ..., |
45 | 46 | value_count_min: int = ..., |
@@ -69,6 +70,7 @@ def list( |
69 | 70 | sampled_medium=sampled_medium, |
70 | 71 | status=status, |
71 | 72 | result_type=result_type, |
| 73 | + tag=[f"{tag[0]}:{tag[1]}"] if tag is not ... else tag, |
72 | 74 | is_private=is_private, |
73 | 75 | value_count_max=value_count_max, |
74 | 76 | value_count_min=value_count_min, |
@@ -111,10 +113,12 @@ def create( |
111 | 113 | result_end_time: Optional[datetime] = None, |
112 | 114 | is_private: bool = False, |
113 | 115 | is_visible: bool = True, |
| 116 | + uid: Optional[UUID] = None, |
114 | 117 | ) -> "Datastream": |
115 | 118 | """Create a new datastream.""" |
116 | 119 |
|
117 | 120 | body = { |
| 121 | + "id": normalize_uuid(uid), |
118 | 122 | "name": name, |
119 | 123 | "description": description, |
120 | 124 | "thingId": normalize_uuid(thing), |
|
0 commit comments