Skip to content

Commit 6a58cfb

Browse files
Generate loadbalancer
1 parent d38df9f commit 6a58cfb

File tree

5 files changed

+18
-21
lines changed

5 files changed

+18
-21
lines changed

services/loadbalancer/src/stackit/loadbalancer/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
__version__ = "1.0.0"
1817

1918
# Define package exports

services/loadbalancer/src/stackit/loadbalancer/api/default_api.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
""" # noqa: E501
1313

1414
from typing import Any, Dict, List, Optional, Tuple, Union
15+
from uuid import UUID
1516

1617
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1718
from stackit.core.configuration import Configuration
@@ -73,7 +74,7 @@ def create_credentials(
7374
project_id: StrictStr,
7475
region: StrictStr,
7576
create_credentials_payload: CreateCredentialsPayload,
76-
x_request_id: Optional[StrictStr] = None,
77+
x_request_id: Optional[UUID] = None,
7778
_request_timeout: Union[
7879
None,
7980
Annotated[StrictFloat, Field(gt=0)],
@@ -95,7 +96,7 @@ def create_credentials(
9596
:param create_credentials_payload: (required)
9697
:type create_credentials_payload: CreateCredentialsPayload
9798
:param x_request_id:
98-
:type x_request_id: str
99+
:type x_request_id: UUID
99100
:param _request_timeout: timeout setting for this request. If one
100101
number provided, it will be total request
101102
timeout. It can also be a pair (tuple) of
@@ -149,7 +150,7 @@ def create_credentials_with_http_info(
149150
project_id: StrictStr,
150151
region: StrictStr,
151152
create_credentials_payload: CreateCredentialsPayload,
152-
x_request_id: Optional[StrictStr] = None,
153+
x_request_id: Optional[UUID] = None,
153154
_request_timeout: Union[
154155
None,
155156
Annotated[StrictFloat, Field(gt=0)],
@@ -171,7 +172,7 @@ def create_credentials_with_http_info(
171172
:param create_credentials_payload: (required)
172173
:type create_credentials_payload: CreateCredentialsPayload
173174
:param x_request_id:
174-
:type x_request_id: str
175+
:type x_request_id: UUID
175176
:param _request_timeout: timeout setting for this request. If one
176177
number provided, it will be total request
177178
timeout. It can also be a pair (tuple) of
@@ -225,7 +226,7 @@ def create_credentials_without_preload_content(
225226
project_id: StrictStr,
226227
region: StrictStr,
227228
create_credentials_payload: CreateCredentialsPayload,
228-
x_request_id: Optional[StrictStr] = None,
229+
x_request_id: Optional[UUID] = None,
229230
_request_timeout: Union[
230231
None,
231232
Annotated[StrictFloat, Field(gt=0)],
@@ -247,7 +248,7 @@ def create_credentials_without_preload_content(
247248
:param create_credentials_payload: (required)
248249
:type create_credentials_payload: CreateCredentialsPayload
249250
:param x_request_id:
250-
:type x_request_id: str
251+
:type x_request_id: UUID
251252
:param _request_timeout: timeout setting for this request. If one
252253
number provided, it will be total request
253254
timeout. It can also be a pair (tuple) of
@@ -364,7 +365,7 @@ def create_load_balancer(
364365
project_id: StrictStr,
365366
region: StrictStr,
366367
create_load_balancer_payload: CreateLoadBalancerPayload,
367-
x_request_id: Optional[StrictStr] = None,
368+
x_request_id: Optional[UUID] = None,
368369
_request_timeout: Union[
369370
None,
370371
Annotated[StrictFloat, Field(gt=0)],
@@ -386,7 +387,7 @@ def create_load_balancer(
386387
:param create_load_balancer_payload: (required)
387388
:type create_load_balancer_payload: CreateLoadBalancerPayload
388389
:param x_request_id:
389-
:type x_request_id: str
390+
:type x_request_id: UUID
390391
:param _request_timeout: timeout setting for this request. If one
391392
number provided, it will be total request
392393
timeout. It can also be a pair (tuple) of
@@ -441,7 +442,7 @@ def create_load_balancer_with_http_info(
441442
project_id: StrictStr,
442443
region: StrictStr,
443444
create_load_balancer_payload: CreateLoadBalancerPayload,
444-
x_request_id: Optional[StrictStr] = None,
445+
x_request_id: Optional[UUID] = None,
445446
_request_timeout: Union[
446447
None,
447448
Annotated[StrictFloat, Field(gt=0)],
@@ -463,7 +464,7 @@ def create_load_balancer_with_http_info(
463464
:param create_load_balancer_payload: (required)
464465
:type create_load_balancer_payload: CreateLoadBalancerPayload
465466
:param x_request_id:
466-
:type x_request_id: str
467+
:type x_request_id: UUID
467468
:param _request_timeout: timeout setting for this request. If one
468469
number provided, it will be total request
469470
timeout. It can also be a pair (tuple) of
@@ -518,7 +519,7 @@ def create_load_balancer_without_preload_content(
518519
project_id: StrictStr,
519520
region: StrictStr,
520521
create_load_balancer_payload: CreateLoadBalancerPayload,
521-
x_request_id: Optional[StrictStr] = None,
522+
x_request_id: Optional[UUID] = None,
522523
_request_timeout: Union[
523524
None,
524525
Annotated[StrictFloat, Field(gt=0)],
@@ -540,7 +541,7 @@ def create_load_balancer_without_preload_content(
540541
:param create_load_balancer_payload: (required)
541542
:type create_load_balancer_payload: CreateLoadBalancerPayload
542543
:param x_request_id:
543-
:type x_request_id: str
544+
:type x_request_id: UUID
544545
:param _request_timeout: timeout setting for this request. If one
545546
number provided, it will be total request
546547
timeout. It can also be a pair (tuple) of

services/loadbalancer/src/stackit/loadbalancer/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
Do not edit the class manually.
1313
""" # noqa: E501
1414

15-
1615
# import models into model package
1716
from stackit.loadbalancer.models.active_health_check import ActiveHealthCheck
1817
from stackit.loadbalancer.models.create_credentials_payload import (

services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import pprint
1818
import re # noqa: F401
1919
from typing import Any, ClassVar, Dict, List, Optional, Set
20+
from uuid import UUID
2021

2122
from pydantic import BaseModel, ConfigDict, Field, field_validator
2223
from typing_extensions import Annotated, Self
@@ -37,9 +38,7 @@ class GetQuotaResponse(BaseModel):
3738
description="The maximum number of load balancing servers in this project. Unlimited if set to -1.",
3839
alias="maxLoadBalancers",
3940
)
40-
project_id: Optional[Annotated[str, Field(strict=True)]] = Field(
41-
default=None, description="Project identifier", alias="projectId"
42-
)
41+
project_id: Optional[UUID] = Field(default=None, description="Project identifier", alias="projectId")
4342
region: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Region")
4443
used_credentials: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field(
4544
default=None,

services/loadbalancer/src/stackit/loadbalancer/models/network.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,18 @@
1717
import pprint
1818
import re # noqa: F401
1919
from typing import Any, ClassVar, Dict, List, Optional, Set
20+
from uuid import UUID
2021

2122
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22-
from typing_extensions import Annotated, Self
23+
from typing_extensions import Self
2324

2425

2526
class Network(BaseModel):
2627
"""
2728
Network
2829
""" # noqa: E501
2930

30-
network_id: Optional[Annotated[str, Field(strict=True)]] = Field(
31-
default=None, description="Openstack network ID", alias="networkId"
32-
)
31+
network_id: Optional[UUID] = Field(default=None, description="Openstack network ID", alias="networkId")
3332
role: Optional[StrictStr] = Field(
3433
default=None,
3534
description="The role defines how the load balancer is using the network. Currently only ROLE_LISTENERS_AND_TARGETS is supported.",

0 commit comments

Comments
 (0)