Skip to content

Commit 8443248

Browse files
Generate vpn
1 parent a6f9daf commit 8443248

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

services/vpn/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
91111d4871a604207235ce0835c7840677bda134
1+
00b020b2998425397c9a0e51364fe8846fa66880

services/vpn/src/stackit/vpn/models/bgp_gateway_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class BGPGatewayConfig(BaseModel):
2727
BGP configuration effects all connections. (only for routingMode=BGP_ROUTE_BASED)
2828
""" # noqa: E501
2929

30-
local_asn: Optional[Annotated[int, Field(le=4294967294, strict=True, ge=64512)]] = Field(
31-
default=None,
30+
local_asn: Annotated[int, Field(le=4294967294, strict=True, ge=64512)] = Field(
3231
description="ASN for private use (reserved by IANA), both 16Bit and 32Bit ranges are valid (RFC 6996). ",
3332
alias="localAsn",
3433
)

services/vpn/src/stackit/vpn/models/gateway_status_response.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ class GatewayStatusResponse(BaseModel):
3636
display_name: Optional[StrictStr] = Field(
3737
default=None, description="Name of the Gateway instance.", alias="displayName"
3838
)
39+
error_message: Optional[StrictStr] = Field(
40+
default=None,
41+
description="A descriptive message provided when the gateway is in an error state.",
42+
alias="errorMessage",
43+
)
3944
gateway_status: Optional[GatewayStatus] = Field(default=None, alias="gatewayStatus")
4045
id: Optional[UUID] = Field(default=None, description="UUID of the Gateway instance.")
4146
tunnels: Optional[List[VPNTunnels]] = None
42-
__properties: ClassVar[List[str]] = ["connections", "displayName", "gatewayStatus", "id", "tunnels"]
47+
__properties: ClassVar[List[str]] = ["connections", "displayName", "errorMessage", "gatewayStatus", "id", "tunnels"]
4348

4449
model_config = ConfigDict(
4550
validate_by_name=True,
@@ -111,6 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
111116
else None
112117
),
113118
"displayName": obj.get("displayName"),
119+
"errorMessage": obj.get("errorMessage"),
114120
"gatewayStatus": obj.get("gatewayStatus"),
115121
"id": obj.get("id"),
116122
"tunnels": (

services/vpn/src/stackit/vpn/models/routing_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class RoutingType(str, Enum):
2323
"""
24-
RoutingType
24+
Once the gateway is created, it is not possible to change this attribute.
2525
"""
2626

2727
"""

0 commit comments

Comments
 (0)