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 @@
bda6ad3d9e8850526f25eddcb6589fcc7559c625
876a48fb56473c7c844baa697906d461c0675f47
11 changes: 6 additions & 5 deletions services/cdn/src/stackit/cdn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
# flake8: noqa

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"

# Define package exports
Expand Down
10 changes: 5 additions & 5 deletions services/cdn/src/stackit/cdn/api/default_api.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

from datetime import datetime
Expand Down
11 changes: 6 additions & 5 deletions services/cdn/src/stackit/cdn/api_client.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

import datetime
Expand Down Expand Up @@ -36,6 +36,7 @@
ApiException,
)


RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]


Expand Down
1 change: 1 addition & 0 deletions services/cdn/src/stackit/cdn/api_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from pydantic import BaseModel, Field, StrictBytes, StrictInt


T = TypeVar("T")


Expand Down
11 changes: 6 additions & 5 deletions services/cdn/src/stackit/cdn/configuration.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

import sys
Expand All @@ -18,6 +18,7 @@

import os


ServerVariablesT = Dict[str, str]


Expand Down
10 changes: 5 additions & 5 deletions services/cdn/src/stackit/cdn/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

from typing import Any, Optional
Expand Down
10 changes: 5 additions & 5 deletions services/cdn/src/stackit/cdn/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

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

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

# import models into model package
Expand Down
32 changes: 23 additions & 9 deletions services/cdn/src/stackit/cdn/models/bucket_backend.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

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

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from pydantic_core import to_jsonable_python
from typing_extensions import Self

Expand All @@ -27,11 +27,25 @@ class BucketBackend(BaseModel):
BucketBackend
""" # noqa: E501

bucket_url: StrictStr = Field(alias="bucketUrl")
region: StrictStr
type: StrictStr
bucket_url: StrictStr = Field(
description="The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`).",
alias="bucketUrl",
)
region: StrictStr = Field(
description="The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT)."
)
type: StrictStr = Field(
description="Defines the type of content origin. For this schema, it must be set to `bucket`."
)
__properties: ClassVar[List[str]] = ["bucketUrl", "region", "type"]

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

model_config = ConfigDict(
validate_by_name=True,
validate_by_alias=True,
Expand Down
32 changes: 23 additions & 9 deletions services/cdn/src/stackit/cdn/models/bucket_backend_create.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

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

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from pydantic_core import to_jsonable_python
from typing_extensions import Self

Expand All @@ -29,12 +29,26 @@ class BucketBackendCreate(BaseModel):
BucketBackendCreate
""" # noqa: E501

bucket_url: StrictStr = Field(alias="bucketUrl")
bucket_url: StrictStr = Field(
description="The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`).",
alias="bucketUrl",
)
credentials: BucketCredentials
region: StrictStr
type: StrictStr
region: StrictStr = Field(
description="The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT)."
)
type: StrictStr = Field(
description="Defines the type of content origin. For this schema, it must be set to `bucket`."
)
__properties: ClassVar[List[str]] = ["bucketUrl", "credentials", "region", "type"]

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

model_config = ConfigDict(
validate_by_name=True,
validate_by_alias=True,
Expand Down
34 changes: 25 additions & 9 deletions services/cdn/src/stackit/cdn/models/bucket_backend_patch.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

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

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from pydantic_core import to_jsonable_python
from typing_extensions import Self

Expand All @@ -29,12 +29,28 @@ class BucketBackendPatch(BaseModel):
BucketBackendPatch
""" # noqa: E501

bucket_url: Optional[StrictStr] = Field(default=None, alias="bucketUrl")
bucket_url: Optional[StrictStr] = Field(
default=None,
description="The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`).",
alias="bucketUrl",
)
credentials: Optional[BucketCredentials] = None
region: Optional[StrictStr] = None
type: StrictStr
region: Optional[StrictStr] = Field(
default=None,
description="The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT).",
)
type: StrictStr = Field(
description="Defines the type of content origin. For this schema, it must be set to `bucket`."
)
__properties: ClassVar[List[str]] = ["bucketUrl", "credentials", "region", "type"]

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

model_config = ConfigDict(
validate_by_name=True,
validate_by_alias=True,
Expand Down
10 changes: 5 additions & 5 deletions services/cdn/src/stackit/cdn/models/bucket_credentials.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

from __future__ import annotations
Expand Down
10 changes: 5 additions & 5 deletions services/cdn/src/stackit/cdn/models/config.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

from __future__ import annotations
Expand Down
11 changes: 6 additions & 5 deletions services/cdn/src/stackit/cdn/models/config_backend.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# coding: utf-8

"""
STACKIT CDN API
STACKIT CDN API

API used to create and manage your CDN distributions.
API used to create and manage your CDN distributions.

The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Do not edit the class manually.
""" # noqa: E501

from __future__ import annotations
Expand All @@ -28,6 +28,7 @@
from stackit.cdn.models.bucket_backend import BucketBackend
from stackit.cdn.models.http_backend import HttpBackend


CONFIGBACKEND_ONE_OF_SCHEMAS = ["BucketBackend", "HttpBackend"]


Expand Down
Loading
Loading