From 7605273a6b5196e5c295447bd4fe7286506cf5e4 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 21 Jan 2026 14:26:19 +0000 Subject: [PATCH] Generate runcommand --- .../src/stackit/runcommand/__init__.py | 1 - .../src/stackit/runcommand/models/__init__.py | 1 - .../runcommand/models/command_template_schema.py | 16 ++++++++-------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/services/runcommand/src/stackit/runcommand/__init__.py b/services/runcommand/src/stackit/runcommand/__init__.py index 2624da331..f3226135d 100644 --- a/services/runcommand/src/stackit/runcommand/__init__.py +++ b/services/runcommand/src/stackit/runcommand/__init__.py @@ -14,7 +14,6 @@ Do not edit the class manually. """ # noqa: E501 - __version__ = "1.0.0" # Define package exports diff --git a/services/runcommand/src/stackit/runcommand/models/__init__.py b/services/runcommand/src/stackit/runcommand/models/__init__.py index 1d83b0711..8fa483017 100644 --- a/services/runcommand/src/stackit/runcommand/models/__init__.py +++ b/services/runcommand/src/stackit/runcommand/models/__init__.py @@ -13,7 +13,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from stackit.runcommand.models.command_details import CommandDetails from stackit.runcommand.models.command_template import CommandTemplate diff --git a/services/runcommand/src/stackit/runcommand/models/command_template_schema.py b/services/runcommand/src/stackit/runcommand/models/command_template_schema.py index b9392e28a..58b4a644f 100644 --- a/services/runcommand/src/stackit/runcommand/models/command_template_schema.py +++ b/services/runcommand/src/stackit/runcommand/models/command_template_schema.py @@ -32,9 +32,9 @@ class CommandTemplateSchema(BaseModel): description: Optional[StrictStr] = None name: Optional[StrictStr] = None os_type: Optional[List[StrictStr]] = Field(default=None, alias="osType") - parameter_schema: Optional[ParametersSchema] = Field(default=None, alias="parameterSchema") + parameters_schema: Optional[ParametersSchema] = Field(default=None, alias="parametersSchema") title: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["description", "name", "osType", "parameterSchema", "title"] + __properties: ClassVar[List[str]] = ["description", "name", "osType", "parametersSchema", "title"] model_config = ConfigDict( populate_by_name=True, @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of parameter_schema - if self.parameter_schema: - _dict["parameterSchema"] = self.parameter_schema.to_dict() + # override the default output from pydantic by calling `to_dict()` of parameters_schema + if self.parameters_schema: + _dict["parametersSchema"] = self.parameters_schema.to_dict() return _dict @classmethod @@ -92,9 +92,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "description": obj.get("description"), "name": obj.get("name"), "osType": obj.get("osType"), - "parameterSchema": ( - ParametersSchema.from_dict(obj["parameterSchema"]) - if obj.get("parameterSchema") is not None + "parametersSchema": ( + ParametersSchema.from_dict(obj["parametersSchema"]) + if obj.get("parametersSchema") is not None else None ), "title": obj.get("title"),