Skip to content
Closed
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
2 changes: 1 addition & 1 deletion services/cdn/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cfcfc32bc1ae335acecd7bf7ffb60354fdc565ab
0e64886dd0847341800d7191ed193b75413be998
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# flake8: noqa

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/api/default_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/api_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/configuration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# flake8: noqa
"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/bucket_backend.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/config_backend.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/config_patch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/custom_domain.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/distribution.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/distribution_waf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
13 changes: 11 additions & 2 deletions services/cdn/src/stackit/cdn/models/domain.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down Expand Up @@ -29,6 +29,7 @@ class Domain(BaseModel):
Definition of a custom or managed domain without any certificates or keys
""" # noqa: E501

certificate_type: StrictStr = Field(alias="certificateType")
errors: Optional[Annotated[List[StatusError], Field(min_length=1)]] = Field(
default=None, description="This object is present if the custom domain has errors."
)
Expand All @@ -39,7 +40,14 @@ class Domain(BaseModel):
type: StrictStr = Field(
description="Specifies the type of this Domain. Custom Domain can be further queries using the GetCustomDomain Endpoint"
)
__properties: ClassVar[List[str]] = ["errors", "name", "status", "type"]
__properties: ClassVar[List[str]] = ["certificateType", "errors", "name", "status", "type"]

@field_validator("certificate_type")
def certificate_type_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(["managed", "custom"]):
raise ValueError("must be one of enum values ('managed', 'custom')")
return value

@field_validator("type")
def type_validate_enum(cls, value):
Expand Down Expand Up @@ -105,6 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate(
{
"certificateType": obj.get("certificateType"),
"errors": (
[StatusError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None
),
Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/domain_status.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
2 changes: 1 addition & 1 deletion services/cdn/src/stackit/cdn/models/error_details.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.

Expand All @@ -17,7 +17,13 @@
import pprint
from typing import Any, ClassVar, Dict, List, Optional, Set

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic import (
BaseModel,
ConfigDict,
Field,
StrictBool,
StrictStr,
)
from typing_extensions import Annotated, Self


Expand All @@ -26,11 +32,15 @@ class GetCustomDomainCustomCertificate(BaseModel):
Returned if a custom certificate is used. Response does not contain the certificate or key.
""" # noqa: E501

skip_dns_check: StrictBool = Field(
description="Returns if the CNAME Check has been disabled for this Custom Domain. This is usually set for migrations to allow for no downtime.",
alias="skipDnsCheck",
)
type: StrictStr
version: Annotated[int, Field(strict=True, ge=1)] = Field(
description="Whenever a new custom certificate is added the version is increased by 1."
)
__properties: ClassVar[List[str]] = ["type", "version"]
__properties: ClassVar[List[str]] = ["skipDnsCheck", "type", "version"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -80,5 +90,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({"type": obj.get("type"), "version": obj.get("version")})
_obj = cls.model_validate(
{
"skipDnsCheck": obj.get("skipDnsCheck") if obj.get("skipDnsCheck") is not None else False,
"type": obj.get("type"),
"version": obj.get("version"),
}
)
return _obj
Loading
Loading