mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Merge branch '3.1' into fix/duplicate-device-configs-merge
This commit is contained in:
11 files changed
+359
-37
No files matched your search
@@ -20,6 +20,7 @@ from uuid import UUID, uuid4
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Discriminator, Field, field_validator, model_validator
|
||||
|
||||
from ..common import ErrorMessage
|
||||
from ..update import PartialUpdateModel
|
||||
from .labels import Label
|
||||
|
||||
@@ -216,6 +217,16 @@ class Link(LinkBase):
|
||||
)
|
||||
|
||||
|
||||
class LinkBatchResult(BaseModel):
|
||||
"""
|
||||
Outcome of one link of a batch creation request.
|
||||
"""
|
||||
|
||||
status_code: int = Field(..., description="HTTP status code the same request would have returned on its own")
|
||||
link: Optional[Link] = Field(None, description="The created link, set when status_code is 201")
|
||||
error: Optional[ErrorMessage] = Field(None, description="The error, set when the link could not be created")
|
||||
|
||||
|
||||
class UDPPortInfo(BaseModel):
|
||||
"""
|
||||
UDP port information.
|
||||
|
||||
Reference in new issue
Block a user