generated from Luis/nextjs-python-web-template
draft emulating flag
This commit is contained in:
@@ -21,6 +21,7 @@ from openapi_client.models.eventmessage_create import EventmessageCreate
|
||||
from openapi_client.models.http_validation_error import HTTPValidationError
|
||||
from openapi_client.models.machine import Machine
|
||||
from openapi_client.models.resolution import Resolution
|
||||
from openapi_client.models.roles import Roles
|
||||
from openapi_client.models.service import Service
|
||||
from openapi_client.models.service_create import ServiceCreate
|
||||
from openapi_client.models.status import Status
|
||||
|
||||
@@ -20,6 +20,7 @@ import json
|
||||
|
||||
from typing import Any, Dict
|
||||
from pydantic import BaseModel, Field, StrictBool, StrictStr
|
||||
from openapi_client.models.roles import Roles
|
||||
|
||||
class Entity(BaseModel):
|
||||
"""
|
||||
@@ -28,11 +29,13 @@ class Entity(BaseModel):
|
||||
did: StrictStr = Field(...)
|
||||
name: StrictStr = Field(...)
|
||||
ip: StrictStr = Field(...)
|
||||
network: StrictStr = Field(...)
|
||||
role: Roles = Field(...)
|
||||
visible: StrictBool = Field(...)
|
||||
other: Dict[str, Any] = Field(...)
|
||||
attached: StrictBool = Field(...)
|
||||
stop_health_task: StrictBool = Field(...)
|
||||
__properties = ["did", "name", "ip", "visible", "other", "attached", "stop_health_task"]
|
||||
__properties = ["did", "name", "ip", "network", "role", "visible", "other", "attached", "stop_health_task"]
|
||||
|
||||
class Config:
|
||||
"""Pydantic configuration"""
|
||||
@@ -73,6 +76,8 @@ class Entity(BaseModel):
|
||||
"did": obj.get("did"),
|
||||
"name": obj.get("name"),
|
||||
"ip": obj.get("ip"),
|
||||
"network": obj.get("network"),
|
||||
"role": obj.get("role"),
|
||||
"visible": obj.get("visible"),
|
||||
"other": obj.get("other"),
|
||||
"attached": obj.get("attached"),
|
||||
|
||||
@@ -20,6 +20,7 @@ import json
|
||||
|
||||
from typing import Any, Dict
|
||||
from pydantic import BaseModel, Field, StrictBool, StrictStr
|
||||
from openapi_client.models.roles import Roles
|
||||
|
||||
class EntityCreate(BaseModel):
|
||||
"""
|
||||
@@ -28,9 +29,11 @@ class EntityCreate(BaseModel):
|
||||
did: StrictStr = Field(...)
|
||||
name: StrictStr = Field(...)
|
||||
ip: StrictStr = Field(...)
|
||||
network: StrictStr = Field(...)
|
||||
role: Roles = Field(...)
|
||||
visible: StrictBool = Field(...)
|
||||
other: Dict[str, Any] = Field(...)
|
||||
__properties = ["did", "name", "ip", "visible", "other"]
|
||||
__properties = ["did", "name", "ip", "network", "role", "visible", "other"]
|
||||
|
||||
class Config:
|
||||
"""Pydantic configuration"""
|
||||
@@ -71,6 +74,8 @@ class EntityCreate(BaseModel):
|
||||
"did": obj.get("did"),
|
||||
"name": obj.get("name"),
|
||||
"ip": obj.get("ip"),
|
||||
"network": obj.get("network"),
|
||||
"role": obj.get("role"),
|
||||
"visible": obj.get("visible"),
|
||||
"other": obj.get("other")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user