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
1414from __future__ import annotations
1717import pprint
1818from 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
2121from pydantic_core import to_jsonable_python
2222from 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