Adding OData Import
This commit is contained in:
1 parent
c8696e67b5
commit
291416544e
18 files changed
+547
-3
No files matched your search
@@ -0,0 +1,34 @@
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
class ImportedPartRead(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
InventoryID: str
|
||||
Description: str | None
|
||||
TBXColour: str | None
|
||||
ProductMaxThreadDepthmm: str | None
|
||||
ProductMaxThreadDepthin: str | None
|
||||
ProductODmm: str | None
|
||||
ProductODin: str | None
|
||||
TBXThreadAttribute: str | None
|
||||
|
||||
|
||||
class ImportedPartConfigRead(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
odata_url: str | None
|
||||
username: str | None
|
||||
has_password: bool
|
||||
|
||||
|
||||
class ImportedPartConfigUpdate(BaseModel):
|
||||
odata_url: str | None = None
|
||||
username: str | None = None
|
||||
password: str | None = None
|
||||
|
||||
|
||||
class SyncResult(BaseModel):
|
||||
created: int
|
||||
updated: int
|
||||
total: int
|
||||
Reference in new issue
Block a user