Skip to content

Commit 6d7d898

Browse files
Generate cdn
1 parent d14550d commit 6d7d898

92 files changed

Lines changed: 605 additions & 483 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/cdn/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bda6ad3d9e8850526f25eddcb6589fcc7559c625
1+
876a48fb56473c7c844baa697906d461c0675f47

services/cdn/src/stackit/cdn/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
# flake8: noqa
44

55
"""
6-
STACKIT CDN API
6+
STACKIT CDN API
77
8-
API used to create and manage your CDN distributions.
8+
API used to create and manage your CDN distributions.
99
10-
The version of the OpenAPI document: 1.0.0
11-
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
The version of the OpenAPI document: 1.0.0
11+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
13-
Do not edit the class manually.
13+
Do not edit the class manually.
1414
""" # noqa: E501
1515

16+
1617
__version__ = "1.0.0"
1718

1819
# Define package exports

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: utf-8
22

33
"""
4-
STACKIT CDN API
4+
STACKIT CDN API
55
6-
API used to create and manage your CDN distributions.
6+
API used to create and manage your CDN distributions.
77
8-
The version of the OpenAPI document: 1.0.0
9-
Generated by OpenAPI Generator (https://openapi-generator.tech)
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
11-
Do not edit the class manually.
11+
Do not edit the class manually.
1212
""" # noqa: E501
1313

1414
from datetime import datetime

services/cdn/src/stackit/cdn/api_client.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: utf-8
22

33
"""
4-
STACKIT CDN API
4+
STACKIT CDN API
55
6-
API used to create and manage your CDN distributions.
6+
API used to create and manage your CDN distributions.
77
8-
The version of the OpenAPI document: 1.0.0
9-
Generated by OpenAPI Generator (https://openapi-generator.tech)
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
11-
Do not edit the class manually.
11+
Do not edit the class manually.
1212
""" # noqa: E501
1313

1414
import datetime
@@ -36,6 +36,7 @@
3636
ApiException,
3737
)
3838

39+
3940
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
4041

4142

services/cdn/src/stackit/cdn/api_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from pydantic import BaseModel, Field, StrictBytes, StrictInt
88

9+
910
T = TypeVar("T")
1011

1112

services/cdn/src/stackit/cdn/configuration.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: utf-8
22

33
"""
4-
STACKIT CDN API
4+
STACKIT CDN API
55
6-
API used to create and manage your CDN distributions.
6+
API used to create and manage your CDN distributions.
77
8-
The version of the OpenAPI document: 1.0.0
9-
Generated by OpenAPI Generator (https://openapi-generator.tech)
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
11-
Do not edit the class manually.
11+
Do not edit the class manually.
1212
""" # noqa: E501
1313

1414
import sys
@@ -18,6 +18,7 @@
1818

1919
import os
2020

21+
2122
ServerVariablesT = Dict[str, str]
2223

2324

services/cdn/src/stackit/cdn/exceptions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: utf-8
22

33
"""
4-
STACKIT CDN API
4+
STACKIT CDN API
55
6-
API used to create and manage your CDN distributions.
6+
API used to create and manage your CDN distributions.
77
8-
The version of the OpenAPI document: 1.0.0
9-
Generated by OpenAPI Generator (https://openapi-generator.tech)
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
11-
Do not edit the class manually.
11+
Do not edit the class manually.
1212
""" # noqa: E501
1313

1414
from typing import Any, Optional

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# flake8: noqa
44
"""
5-
STACKIT CDN API
5+
STACKIT CDN API
66
7-
API used to create and manage your CDN distributions.
7+
API used to create and manage your CDN distributions.
88
9-
The version of the OpenAPI document: 1.0.0
10-
Generated by OpenAPI Generator (https://openapi-generator.tech)
9+
The version of the OpenAPI document: 1.0.0
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
12-
Do not edit the class manually.
12+
Do not edit the class manually.
1313
""" # noqa: E501
1414

1515
# import models into model package

services/cdn/src/stackit/cdn/models/bucket_backend.py

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: utf-8
22

33
"""
4-
STACKIT CDN API
4+
STACKIT CDN API
55
6-
API used to create and manage your CDN distributions.
6+
API used to create and manage your CDN distributions.
77
8-
The version of the OpenAPI document: 1.0.0
9-
Generated by OpenAPI Generator (https://openapi-generator.tech)
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
11-
Do not edit the class manually.
11+
Do not edit the class manually.
1212
""" # noqa: E501
1313

1414
from __future__ import annotations
@@ -17,7 +17,7 @@
1717
import pprint
1818
from typing import Any, ClassVar, Dict, List, Optional, Set
1919

20-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
20+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2121
from pydantic_core import to_jsonable_python
2222
from typing_extensions import Self
2323

@@ -27,11 +27,25 @@ class BucketBackend(BaseModel):
2727
BucketBackend
2828
""" # noqa: E501
2929

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

42+
@field_validator("type")
43+
def type_validate_enum(cls, value):
44+
"""Validates the enum"""
45+
if value not in set(["bucket"]):
46+
raise ValueError("must be one of enum values ('bucket')")
47+
return value
48+
3549
model_config = ConfigDict(
3650
validate_by_name=True,
3751
validate_by_alias=True,

services/cdn/src/stackit/cdn/models/bucket_backend_create.py

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: utf-8
22

33
"""
4-
STACKIT CDN API
4+
STACKIT CDN API
55
6-
API used to create and manage your CDN distributions.
6+
API used to create and manage your CDN distributions.
77
8-
The version of the OpenAPI document: 1.0.0
9-
Generated by OpenAPI Generator (https://openapi-generator.tech)
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
11-
Do not edit the class manually.
11+
Do not edit the class manually.
1212
""" # noqa: E501
1313

1414
from __future__ import annotations
@@ -17,7 +17,7 @@
1717
import pprint
1818
from typing import Any, ClassVar, Dict, List, Optional, Set
1919

20-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
20+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2121
from pydantic_core import to_jsonable_python
2222
from typing_extensions import Self
2323

@@ -29,12 +29,26 @@ class BucketBackendCreate(BaseModel):
2929
BucketBackendCreate
3030
""" # noqa: E501
3131

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

45+
@field_validator("type")
46+
def type_validate_enum(cls, value):
47+
"""Validates the enum"""
48+
if value not in set(["bucket"]):
49+
raise ValueError("must be one of enum values ('bucket')")
50+
return value
51+
3852
model_config = ConfigDict(
3953
validate_by_name=True,
4054
validate_by_alias=True,

0 commit comments

Comments
 (0)