Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"

# Define package exports
Expand Down
25 changes: 13 additions & 12 deletions services/loadbalancer/src/stackit/loadbalancer/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
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):
"""
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.",
Expand Down
Loading