From a2d96f06928ba8c4c4bae5daea87c0734d66f6e5 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 6 Nov 2026 15:16:53 +0000 Subject: [PATCH] Generate ufw --- services/ufw/oas_commit | 2 +- services/ufw/src/stackit/ufw/api/default_api.py | 12 ++++++------ .../src/stackit/ufw/models/create_rule_payload.py | 2 +- services/ufw/src/stackit/ufw/models/rule_response.py | 9 ++++++--- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/services/ufw/oas_commit b/services/ufw/oas_commit index 9510a8946..5147c3029 100644 --- a/services/ufw/oas_commit +++ b/services/ufw/oas_commit @@ -1 +1 @@ -c9fb47b3087043293b6f77e5d3b778784de27ef2 +716f4d2bf40383fc9a9c3ee0f67a0490d4a15d81 diff --git a/services/ufw/src/stackit/ufw/api/default_api.py b/services/ufw/src/stackit/ufw/api/default_api.py index 70d38e9d5..4be6e99c1 100644 --- a/services/ufw/src/stackit/ufw/api/default_api.py +++ b/services/ufw/src/stackit/ufw/api/default_api.py @@ -1749,7 +1749,7 @@ def list_rules( Field(description="The ID of the source, similar to a project ID but for the product service instance."), ] = None, type: Annotated[ - Optional[StrictStr], Field(description='The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule").') + Optional[StrictStr], Field(description='The type of the rule (e.g., "ACL", "SecurityRule").') ] = None, source_ip: Annotated[Optional[StrictStr], Field(description="The IP for the rule.")] = None, port_range: Annotated[Optional[StrictStr], Field(description="The port range for the rule.")] = None, @@ -1798,7 +1798,7 @@ def list_rules( :type product: str :param instance_id: The ID of the source, similar to a project ID but for the product service instance. :type instance_id: str - :param type: The type of the rule (e.g., \"ACL\", \"PublicIP\", \"SecurityRule\"). + :param type: The type of the rule (e.g., \"ACL\", \"SecurityRule\"). :type type: str :param source_ip: The IP for the rule. :type source_ip: str @@ -1891,7 +1891,7 @@ def list_rules_with_http_info( Field(description="The ID of the source, similar to a project ID but for the product service instance."), ] = None, type: Annotated[ - Optional[StrictStr], Field(description='The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule").') + Optional[StrictStr], Field(description='The type of the rule (e.g., "ACL", "SecurityRule").') ] = None, source_ip: Annotated[Optional[StrictStr], Field(description="The IP for the rule.")] = None, port_range: Annotated[Optional[StrictStr], Field(description="The port range for the rule.")] = None, @@ -1940,7 +1940,7 @@ def list_rules_with_http_info( :type product: str :param instance_id: The ID of the source, similar to a project ID but for the product service instance. :type instance_id: str - :param type: The type of the rule (e.g., \"ACL\", \"PublicIP\", \"SecurityRule\"). + :param type: The type of the rule (e.g., \"ACL\", \"SecurityRule\"). :type type: str :param source_ip: The IP for the rule. :type source_ip: str @@ -2033,7 +2033,7 @@ def list_rules_without_preload_content( Field(description="The ID of the source, similar to a project ID but for the product service instance."), ] = None, type: Annotated[ - Optional[StrictStr], Field(description='The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule").') + Optional[StrictStr], Field(description='The type of the rule (e.g., "ACL", "SecurityRule").') ] = None, source_ip: Annotated[Optional[StrictStr], Field(description="The IP for the rule.")] = None, port_range: Annotated[Optional[StrictStr], Field(description="The port range for the rule.")] = None, @@ -2082,7 +2082,7 @@ def list_rules_without_preload_content( :type product: str :param instance_id: The ID of the source, similar to a project ID but for the product service instance. :type instance_id: str - :param type: The type of the rule (e.g., \"ACL\", \"PublicIP\", \"SecurityRule\"). + :param type: The type of the rule (e.g., \"ACL\", \"SecurityRule\"). :type type: str :param source_ip: The IP for the rule. :type source_ip: str diff --git a/services/ufw/src/stackit/ufw/models/create_rule_payload.py b/services/ufw/src/stackit/ufw/models/create_rule_payload.py index 39818cfd0..55d1a6dd8 100644 --- a/services/ufw/src/stackit/ufw/models/create_rule_payload.py +++ b/services/ufw/src/stackit/ufw/models/create_rule_payload.py @@ -61,7 +61,7 @@ class CreateRulePayload(BaseModel): default=None, description="Indicates whether the security group rule is stateful or stateless (used only for security groups, default value for them will be true).", ) - type: StrictStr = Field(description='The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule").') + type: StrictStr = Field(description='The type of the rule (e.g., "ACL", "SecurityRule").') __properties: ClassVar[List[str]] = [ "description", "direction", diff --git a/services/ufw/src/stackit/ufw/models/rule_response.py b/services/ufw/src/stackit/ufw/models/rule_response.py index 8da8a14cd..4e36e6126 100644 --- a/services/ufw/src/stackit/ufw/models/rule_response.py +++ b/services/ufw/src/stackit/ufw/models/rule_response.py @@ -51,11 +51,12 @@ class RuleResponse(BaseModel): ref_id: Optional[UUID] = Field(default=None, alias="refId") region: Optional[StrictStr] = None remote_security_group_id: Optional[StrictStr] = Field(default=None, alias="remoteSecurityGroupId") + remote_security_group_name: Optional[StrictStr] = Field(default=None, alias="remoteSecurityGroupName") security_group_id: Optional[StrictStr] = Field(default=None, alias="securityGroupId") source_ip: StrictStr = Field(alias="sourceIP") stateful: Optional[StrictBool] = None status: StrictStr = Field(description="The current state of the resource.") - type: StrictStr = Field(description='The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule").') + type: StrictStr = Field(description='The type of the rule (e.g., "ACL", "SecurityRule").') __properties: ClassVar[List[str]] = [ "description", "destination", @@ -72,6 +73,7 @@ class RuleResponse(BaseModel): "refId", "region", "remoteSecurityGroupId", + "remoteSecurityGroupName", "securityGroupId", "sourceIP", "stateful", @@ -91,8 +93,8 @@ def status_validate_enum(cls, value): @field_validator("type") def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(["ACL", "PublicIP", "SecurityRule", "SecurityGroup"]): - raise ValueError("must be one of enum values ('ACL', 'PublicIP', 'SecurityRule', 'SecurityGroup')") + if value not in set(["ACL", "SecurityRule", "SecurityGroup"]): + raise ValueError("must be one of enum values ('ACL', 'SecurityRule', 'SecurityGroup')") return value model_config = ConfigDict( @@ -160,6 +162,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "refId": obj.get("refId"), "region": obj.get("region"), "remoteSecurityGroupId": obj.get("remoteSecurityGroupId"), + "remoteSecurityGroupName": obj.get("remoteSecurityGroupName"), "securityGroupId": obj.get("securityGroupId"), "sourceIP": obj.get("sourceIP"), "stateful": obj.get("stateful"),