From de6e5a82d7820f1fbb54a53e1f7ced7bd05dab6a Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 20 Nov 2026 18:42:03 +0000 Subject: [PATCH 1/2] 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..49c5b451c 100644 --- a/services/ufw/oas_commit +++ b/services/ufw/oas_commit @@ -1 +1 @@ -c9fb47b3087043293b6f77e5d3b778784de27ef2 +d3f51a99ec81d4226be8c6d4826ed2547014edb0 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"), From f48c30672e21fb16b9b8134f746d31232e79e536 Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Mon, 23 Nov 2026 10:09:47 +0100 Subject: [PATCH 2/2] chore(ufw): Add changelogs Signed-off-by: Alexander Dahmen --- CHANGELOG.md | 5 +++-- services/ufw/CHANGELOG.md | 5 +++-- services/ufw/pyproject.toml | 2 +- services/ufw/uv.lock | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 883679cce..1f62b4c3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -306,8 +306,9 @@ - [v0.3.0](services/ufw/CHANGELOG.md#v030) - **Breaking Change:** `list_provider_options` now returns a single `ProviderOptionsResponse` instead of `List[ProviderOptionsResponse]`, matching the endpoint's actual (non-array) response - **Breaking Change:** Removal of `security_group` field from `RuleResponse` model - - **Breaking Change:** `type` field in `RuleResponse` model now validates against a fixed set of values (`ACL`, `PublicIP`, `SecurityRule`, `SecurityGroup`); previously any string was accepted - - **Feature:** Add `ref_id` and `stateful` fields to `RuleResponse` model + - **Breaking Change:** `type` field in `RuleResponse` model now validates against a fixed set of values (`ACL`, `SecurityRule`, `SecurityGroup`); previously any string was accepted + - **Breaking Change:** Rule type `PublicIP` is no longer supported: it can no longer be used to create rules (`CreateRulePayload.type`) or to filter `list_rules` + - **Feature:** Add `ref_id`, `remote_security_group_name` and `stateful` fields to `RuleResponse` model - **Feature:** Add `remote_security_group_id` and `stateful` fields to `CreateRulePayload` model - [v0.2.0](services/ufw/CHANGELOG.md#v020) - **Chore:** Bump minimum Python version to 3.11 diff --git a/services/ufw/CHANGELOG.md b/services/ufw/CHANGELOG.md index cd8636584..de013169a 100644 --- a/services/ufw/CHANGELOG.md +++ b/services/ufw/CHANGELOG.md @@ -2,8 +2,9 @@ - **Breaking Change:** `list_provider_options` now returns a single `ProviderOptionsResponse` instead of `List[ProviderOptionsResponse]`, matching the endpoint's actual (non-array) response - **Breaking Change:** Removal of `security_group` field from `RuleResponse` model -- **Breaking Change:** `type` field in `RuleResponse` model now validates against a fixed set of values (`ACL`, `PublicIP`, `SecurityRule`, `SecurityGroup`); previously any string was accepted -- **Feature:** Add `ref_id` and `stateful` fields to `RuleResponse` model +- **Breaking Change:** `type` field in `RuleResponse` model now validates against a fixed set of values (`ACL`, `SecurityRule`, `SecurityGroup`); previously any string was accepted +- **Breaking Change:** Rule type `PublicIP` is no longer supported: it can no longer be used to create rules (`CreateRulePayload.type`) or to filter `list_rules` +- **Feature:** Add `ref_id`, `remote_security_group_name` and `stateful` fields to `RuleResponse` model - **Feature:** Add `remote_security_group_id` and `stateful` fields to `CreateRulePayload` model ## v0.2.0 diff --git a/services/ufw/pyproject.toml b/services/ufw/pyproject.toml index 9888341eb..def2f71e1 100644 --- a/services/ufw/pyproject.toml +++ b/services/ufw/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stackit-ufw" -version = "v0.2.0" +version = "v0.3.0" description = "STACKIT Unified Firewall API" authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}] requires-python = ">=3.11,<4.0" diff --git a/services/ufw/uv.lock b/services/ufw/uv.lock index a204f9759..d51f31eb2 100644 --- a/services/ufw/uv.lock +++ b/services/ufw/uv.lock @@ -1116,7 +1116,7 @@ dev = [ [[package]] name = "stackit-ufw" -version = "0.2.0" +version = "0.3.0" source = { editable = "." } default-groups = "all" dependencies = [