Skip to content

Commit 94a54b7

Browse files
Generate alb
1 parent d38df9f commit 94a54b7

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

services/alb/src/stackit/alb/__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/alb/src/stackit/alb/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
@@ -55,7 +56,7 @@ def create_credentials(
5556
project_id: StrictStr,
5657
region: StrictStr,
5758
create_credentials_payload: CreateCredentialsPayload,
58-
x_request_id: Optional[StrictStr] = None,
59+
x_request_id: Optional[UUID] = None,
5960
_request_timeout: Union[
6061
None,
6162
Annotated[StrictFloat, Field(gt=0)],
@@ -77,7 +78,7 @@ def create_credentials(
7778
:param create_credentials_payload: (required)
7879
:type create_credentials_payload: CreateCredentialsPayload
7980
:param x_request_id:
80-
:type x_request_id: str
81+
:type x_request_id: UUID
8182
:param _request_timeout: timeout setting for this request. If one
8283
number provided, it will be total request
8384
timeout. It can also be a pair (tuple) of
@@ -131,7 +132,7 @@ def create_credentials_with_http_info(
131132
project_id: StrictStr,
132133
region: StrictStr,
133134
create_credentials_payload: CreateCredentialsPayload,
134-
x_request_id: Optional[StrictStr] = None,
135+
x_request_id: Optional[UUID] = None,
135136
_request_timeout: Union[
136137
None,
137138
Annotated[StrictFloat, Field(gt=0)],
@@ -153,7 +154,7 @@ def create_credentials_with_http_info(
153154
:param create_credentials_payload: (required)
154155
:type create_credentials_payload: CreateCredentialsPayload
155156
:param x_request_id:
156-
:type x_request_id: str
157+
:type x_request_id: UUID
157158
:param _request_timeout: timeout setting for this request. If one
158159
number provided, it will be total request
159160
timeout. It can also be a pair (tuple) of
@@ -207,7 +208,7 @@ def create_credentials_without_preload_content(
207208
project_id: StrictStr,
208209
region: StrictStr,
209210
create_credentials_payload: CreateCredentialsPayload,
210-
x_request_id: Optional[StrictStr] = None,
211+
x_request_id: Optional[UUID] = None,
211212
_request_timeout: Union[
212213
None,
213214
Annotated[StrictFloat, Field(gt=0)],
@@ -229,7 +230,7 @@ def create_credentials_without_preload_content(
229230
:param create_credentials_payload: (required)
230231
:type create_credentials_payload: CreateCredentialsPayload
231232
:param x_request_id:
232-
:type x_request_id: str
233+
:type x_request_id: UUID
233234
:param _request_timeout: timeout setting for this request. If one
234235
number provided, it will be total request
235236
timeout. It can also be a pair (tuple) of
@@ -346,7 +347,7 @@ def create_load_balancer(
346347
project_id: StrictStr,
347348
region: StrictStr,
348349
create_load_balancer_payload: CreateLoadBalancerPayload,
349-
x_request_id: Optional[StrictStr] = None,
350+
x_request_id: Optional[UUID] = None,
350351
_request_timeout: Union[
351352
None,
352353
Annotated[StrictFloat, Field(gt=0)],
@@ -368,7 +369,7 @@ def create_load_balancer(
368369
:param create_load_balancer_payload: (required)
369370
:type create_load_balancer_payload: CreateLoadBalancerPayload
370371
:param x_request_id:
371-
:type x_request_id: str
372+
:type x_request_id: UUID
372373
:param _request_timeout: timeout setting for this request. If one
373374
number provided, it will be total request
374375
timeout. It can also be a pair (tuple) of
@@ -423,7 +424,7 @@ def create_load_balancer_with_http_info(
423424
project_id: StrictStr,
424425
region: StrictStr,
425426
create_load_balancer_payload: CreateLoadBalancerPayload,
426-
x_request_id: Optional[StrictStr] = None,
427+
x_request_id: Optional[UUID] = None,
427428
_request_timeout: Union[
428429
None,
429430
Annotated[StrictFloat, Field(gt=0)],
@@ -445,7 +446,7 @@ def create_load_balancer_with_http_info(
445446
:param create_load_balancer_payload: (required)
446447
:type create_load_balancer_payload: CreateLoadBalancerPayload
447448
:param x_request_id:
448-
:type x_request_id: str
449+
:type x_request_id: UUID
449450
:param _request_timeout: timeout setting for this request. If one
450451
number provided, it will be total request
451452
timeout. It can also be a pair (tuple) of
@@ -500,7 +501,7 @@ def create_load_balancer_without_preload_content(
500501
project_id: StrictStr,
501502
region: StrictStr,
502503
create_load_balancer_payload: CreateLoadBalancerPayload,
503-
x_request_id: Optional[StrictStr] = None,
504+
x_request_id: Optional[UUID] = None,
504505
_request_timeout: Union[
505506
None,
506507
Annotated[StrictFloat, Field(gt=0)],
@@ -522,7 +523,7 @@ def create_load_balancer_without_preload_content(
522523
:param create_load_balancer_payload: (required)
523524
:type create_load_balancer_payload: CreateLoadBalancerPayload
524525
:param x_request_id:
525-
:type x_request_id: str
526+
:type x_request_id: UUID
526527
:param _request_timeout: timeout setting for this request. If one
527528
number provided, it will be total request
528529
timeout. It can also be a pair (tuple) of

services/alb/src/stackit/alb/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.alb.models.active_health_check import ActiveHealthCheck
1817
from stackit.alb.models.certificate_config import CertificateConfig

services/alb/src/stackit/alb/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.",
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/alb/src/stackit/alb/models/network.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +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+
network_id: Optional[UUID] = Field(
3132
default=None,
3233
description="STACKIT network ID the Application Load Balancer and/or targets are in.",
3334
alias="networkId",

0 commit comments

Comments
 (0)