feat(cloud): add edge host enrollment
This commit is contained in:
@@ -6,6 +6,27 @@ from typing import Any, Literal
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class HostEnrollmentRequest(BaseModel):
|
||||
agent_instance_id: str = Field(min_length=1, max_length=256)
|
||||
host_token: str = Field(min_length=32, max_length=512)
|
||||
display_name: str | None = Field(default=None, max_length=256)
|
||||
|
||||
|
||||
class HostEnrollmentResponse(BaseModel):
|
||||
host_id: str
|
||||
|
||||
|
||||
class DeviceEnrollmentRequest(BaseModel):
|
||||
local_device_id: str = Field(min_length=1, max_length=256)
|
||||
driver_type: str = Field(min_length=1, max_length=128)
|
||||
name: str | None = Field(default=None, max_length=256)
|
||||
capability_tags: list[str] = Field(default_factory=list)
|
||||
|
||||
|
||||
class DeviceEnrollmentResponse(BaseModel):
|
||||
device_id: str
|
||||
|
||||
|
||||
class DeviceSnapshotModel(BaseModel):
|
||||
device_id: str = Field(min_length=1)
|
||||
driver_type: str = Field(min_length=1)
|
||||
|
||||
Reference in New Issue
Block a user