Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/ufw/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c9fb47b3087043293b6f77e5d3b778784de27ef2
716f4d2bf40383fc9a9c3ee0f67a0490d4a15d81
12 changes: 6 additions & 6 deletions services/ufw/src/stackit/ufw/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 6 additions & 3 deletions services/ufw/src/stackit/ufw/models/rule_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -72,6 +73,7 @@ class RuleResponse(BaseModel):
"refId",
"region",
"remoteSecurityGroupId",
"remoteSecurityGroupName",
"securityGroupId",
"sourceIP",
"stateful",
Expand All @@ -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(
Expand Down Expand Up @@ -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"),
Expand Down
Loading