modification schema vm os
This commit is contained in:
parent
6c935061a9
commit
fcd61bf583
|
@ -40,10 +40,10 @@ class OSBootOrder(BaseModel):
|
||||||
class OSInfo(BaseModel):
|
class OSInfo(BaseModel):
|
||||||
model_config = ConfigDict(from_attributes=True)
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
name:str = Field(alias="os.name", serialization_alias="name")
|
name:str = Field(alias="os.name")
|
||||||
version:str = Field(alias="os.version-id", serialization_alias="version")
|
version:str = Field(alias="os.version-id")
|
||||||
machine:str = Field(alias="os.machine", serialization_alias="architecture")
|
machine:str = Field(alias="os.machine")
|
||||||
kernel:str = Field(alias="os.kernel-release", serialization_alias="kernel")
|
kernel:str = Field(alias="os.kernel-release")
|
||||||
|
|
||||||
class OS(BaseModel):
|
class OS(BaseModel):
|
||||||
firmware:configDom.OS.firmwareEnum = Field(default=configDom.OS.firmwareEnum.bios, description="Microprogramme")
|
firmware:configDom.OS.firmwareEnum = Field(default=configDom.OS.firmwareEnum.bios, description="Microprogramme")
|
||||||
|
|
Loading…
Reference in New Issue