From 6a58cfb65779bb32ad3139a3748576195b3cb303 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 21 Jan 2026 14:25:30 +0000 Subject: [PATCH] Generate loadbalancer --- .../src/stackit/loadbalancer/__init__.py | 1 - .../stackit/loadbalancer/api/default_api.py | 25 ++++++++++--------- .../stackit/loadbalancer/models/__init__.py | 1 - .../loadbalancer/models/get_quota_response.py | 5 ++-- .../stackit/loadbalancer/models/network.py | 7 +++--- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/services/loadbalancer/src/stackit/loadbalancer/__init__.py b/services/loadbalancer/src/stackit/loadbalancer/__init__.py index fbeeaf2c..5437c894 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/__init__.py +++ b/services/loadbalancer/src/stackit/loadbalancer/__init__.py @@ -13,7 +13,6 @@ Do not edit the class manually. """ # noqa: E501 - __version__ = "1.0.0" # Define package exports diff --git a/services/loadbalancer/src/stackit/loadbalancer/api/default_api.py b/services/loadbalancer/src/stackit/loadbalancer/api/default_api.py index 3ed3dbd9..023b3099 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/api/default_api.py +++ b/services/loadbalancer/src/stackit/loadbalancer/api/default_api.py @@ -12,6 +12,7 @@ """ # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union +from uuid import UUID from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call from stackit.core.configuration import Configuration @@ -73,7 +74,7 @@ def create_credentials( project_id: StrictStr, region: StrictStr, create_credentials_payload: CreateCredentialsPayload, - x_request_id: Optional[StrictStr] = None, + x_request_id: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95,7 +96,7 @@ def create_credentials( :param create_credentials_payload: (required) :type create_credentials_payload: CreateCredentialsPayload :param x_request_id: - :type x_request_id: str + :type x_request_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -149,7 +150,7 @@ def create_credentials_with_http_info( project_id: StrictStr, region: StrictStr, create_credentials_payload: CreateCredentialsPayload, - x_request_id: Optional[StrictStr] = None, + x_request_id: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -171,7 +172,7 @@ def create_credentials_with_http_info( :param create_credentials_payload: (required) :type create_credentials_payload: CreateCredentialsPayload :param x_request_id: - :type x_request_id: str + :type x_request_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -225,7 +226,7 @@ def create_credentials_without_preload_content( project_id: StrictStr, region: StrictStr, create_credentials_payload: CreateCredentialsPayload, - x_request_id: Optional[StrictStr] = None, + x_request_id: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -247,7 +248,7 @@ def create_credentials_without_preload_content( :param create_credentials_payload: (required) :type create_credentials_payload: CreateCredentialsPayload :param x_request_id: - :type x_request_id: str + :type x_request_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -364,7 +365,7 @@ def create_load_balancer( project_id: StrictStr, region: StrictStr, create_load_balancer_payload: CreateLoadBalancerPayload, - x_request_id: Optional[StrictStr] = None, + x_request_id: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -386,7 +387,7 @@ def create_load_balancer( :param create_load_balancer_payload: (required) :type create_load_balancer_payload: CreateLoadBalancerPayload :param x_request_id: - :type x_request_id: str + :type x_request_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -441,7 +442,7 @@ def create_load_balancer_with_http_info( project_id: StrictStr, region: StrictStr, create_load_balancer_payload: CreateLoadBalancerPayload, - x_request_id: Optional[StrictStr] = None, + x_request_id: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -463,7 +464,7 @@ def create_load_balancer_with_http_info( :param create_load_balancer_payload: (required) :type create_load_balancer_payload: CreateLoadBalancerPayload :param x_request_id: - :type x_request_id: str + :type x_request_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -518,7 +519,7 @@ def create_load_balancer_without_preload_content( project_id: StrictStr, region: StrictStr, create_load_balancer_payload: CreateLoadBalancerPayload, - x_request_id: Optional[StrictStr] = None, + x_request_id: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -540,7 +541,7 @@ def create_load_balancer_without_preload_content( :param create_load_balancer_payload: (required) :type create_load_balancer_payload: CreateLoadBalancerPayload :param x_request_id: - :type x_request_id: str + :type x_request_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/__init__.py b/services/loadbalancer/src/stackit/loadbalancer/models/__init__.py index e8f4836c..86f1538c 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/__init__.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/__init__.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from stackit.loadbalancer.models.active_health_check import ActiveHealthCheck from stackit.loadbalancer.models.create_credentials_payload import ( diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py b/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py index 202dcbc3..1a70e286 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py @@ -17,6 +17,7 @@ import pprint import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID from pydantic import BaseModel, ConfigDict, Field, field_validator from typing_extensions import Annotated, Self @@ -37,9 +38,7 @@ class GetQuotaResponse(BaseModel): description="The maximum number of load balancing servers in this project. Unlimited if set to -1.", alias="maxLoadBalancers", ) - project_id: Optional[Annotated[str, Field(strict=True)]] = Field( - default=None, description="Project identifier", alias="projectId" - ) + project_id: Optional[UUID] = Field(default=None, description="Project identifier", alias="projectId") region: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Region") used_credentials: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field( default=None, diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/network.py b/services/loadbalancer/src/stackit/loadbalancer/models/network.py index d2d7f145..00d2499d 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/network.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/network.py @@ -17,9 +17,10 @@ import pprint import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set +from uuid import UUID from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing_extensions import Annotated, Self +from typing_extensions import Self class Network(BaseModel): @@ -27,9 +28,7 @@ class Network(BaseModel): Network """ # noqa: E501 - network_id: Optional[Annotated[str, Field(strict=True)]] = Field( - default=None, description="Openstack network ID", alias="networkId" - ) + network_id: Optional[UUID] = Field(default=None, description="Openstack network ID", alias="networkId") role: Optional[StrictStr] = Field( default=None, description="The role defines how the load balancer is using the network. Currently only ROLE_LISTENERS_AND_TARGETS is supported.",