From 81d7476bb9fd568a3b0b221807081cc60fdcd8d5 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 17 Jul 2026 07:47:53 +0000 Subject: [PATCH] Generate loadbalancer --- services/loadbalancer/oas_commit | 2 +- .../loadbalancer/src/stackit/loadbalancer/exceptions.py | 8 ++++---- .../stackit/loadbalancer/models/load_balancer_error.py | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/services/loadbalancer/oas_commit b/services/loadbalancer/oas_commit index 36076afe8..97ce74323 100644 --- a/services/loadbalancer/oas_commit +++ b/services/loadbalancer/oas_commit @@ -1 +1 @@ -87a3ad63dec0a953ff5c6072ad9a15fddd8ec5f8 +e4d23dc7d62fd23751cce23a8f70967f581bb282 diff --git a/services/loadbalancer/src/stackit/loadbalancer/exceptions.py b/services/loadbalancer/src/stackit/loadbalancer/exceptions.py index 89c5ce1e6..486e27239 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/exceptions.py +++ b/services/loadbalancer/src/stackit/loadbalancer/exceptions.py @@ -45,7 +45,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) -> full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) + super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type) class ApiValueError(OpenApiException, ValueError): @@ -63,7 +63,7 @@ def __init__(self, msg, path_to_item=None) -> None: full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) + super(ApiValueError, self).__init__(full_msg, path_to_item) class ApiAttributeError(OpenApiException, AttributeError): @@ -82,7 +82,7 @@ def __init__(self, msg, path_to_item=None) -> None: full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) + super(ApiAttributeError, self).__init__(full_msg, path_to_item) class ApiKeyError(OpenApiException, KeyError): @@ -99,7 +99,7 @@ def __init__(self, msg, path_to_item=None) -> None: full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) + super(ApiKeyError, self).__init__(full_msg, path_to_item) class ApiException(OpenApiException): diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer_error.py b/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer_error.py index 8b94401aa..44c3b4426 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer_error.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer_error.py @@ -55,10 +55,13 @@ def type_validate_enum(cls, value): "TYPE_METRICS_MISCONFIGURED", "TYPE_LOGS_MISCONFIGURED", "TYPE_FIP_NOT_FOUND", + "TYPE_IP_EXHAUSTED", + "TYPE_DNS_NOT_CONFIGURED", + "TYPE_VM_PORT_NOT_CONFIGURED", ] ): raise ValueError( - "must be one of enum values ('TYPE_UNSPECIFIED', 'TYPE_INTERNAL', 'TYPE_QUOTA_SECGROUP_EXCEEDED', 'TYPE_QUOTA_SECGROUPRULE_EXCEEDED', 'TYPE_PORT_NOT_CONFIGURED', 'TYPE_FIP_NOT_CONFIGURED', 'TYPE_TARGET_NOT_ACTIVE', 'TYPE_METRICS_MISCONFIGURED', 'TYPE_LOGS_MISCONFIGURED', 'TYPE_FIP_NOT_FOUND')" + "must be one of enum values ('TYPE_UNSPECIFIED', 'TYPE_INTERNAL', 'TYPE_QUOTA_SECGROUP_EXCEEDED', 'TYPE_QUOTA_SECGROUPRULE_EXCEEDED', 'TYPE_PORT_NOT_CONFIGURED', 'TYPE_FIP_NOT_CONFIGURED', 'TYPE_TARGET_NOT_ACTIVE', 'TYPE_METRICS_MISCONFIGURED', 'TYPE_LOGS_MISCONFIGURED', 'TYPE_FIP_NOT_FOUND', 'TYPE_IP_EXHAUSTED', 'TYPE_DNS_NOT_CONFIGURED', 'TYPE_VM_PORT_NOT_CONFIGURED')" ) return value