stackit-scf 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/PKG-INFO +5 -2
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/pyproject.toml +1 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_manager.py +28 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_manager_response.py +28 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization.py +35 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organizations_list_item.py +35 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/quota.py +28 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space.py +28 -1
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/LICENSE.md +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/NOTICE.txt +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/README.md +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/__init__.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/api/__init__.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/api/default_api.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/api_client.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/api_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/configuration.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/exceptions.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/__init__.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/apply_organization_quota_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/create_org_role_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/create_organization_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/create_space_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/create_space_role_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/error_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_manager_delete_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_role_create_bff_request.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_role_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_role_type.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_create_bff_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_create_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_delete_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_quota.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_usage_summary.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organizations_list.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/pagination.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/platform_list.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/platforms.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/quota_apps.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/quota_domains.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/quota_routes.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/quota_services.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_created_bff_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_delete_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_create_bff_request.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_create_bff_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_create_response.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_type.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/spaces_list.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/update_organization_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/update_space_payload.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/usage_summary.py +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/py.typed +0 -0
- {stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/rest.py +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-scf
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: STACKIT Cloud Foundry API
|
|
5
|
+
License-File: LICENSE.md
|
|
6
|
+
License-File: NOTICE.txt
|
|
5
7
|
Author: STACKIT Developer Tools
|
|
6
8
|
Author-email: developer-tools@stackit.cloud
|
|
7
9
|
Requires-Python: >=3.9,<4.0
|
|
@@ -13,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
19
|
Requires-Dist: pydantic (>=2.9.2)
|
|
17
20
|
Requires-Dist: python-dateutil (>=2.9.0.post0)
|
|
18
21
|
Requires-Dist: requests (>=2.32.3)
|
|
@@ -16,10 +16,11 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
19
20
|
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
23
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
25
26
|
|
|
@@ -47,6 +48,32 @@ class OrgManager(BaseModel):
|
|
|
47
48
|
"username",
|
|
48
49
|
]
|
|
49
50
|
|
|
51
|
+
@field_validator("created_at", mode="before")
|
|
52
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
53
|
+
"""Workaround which prevents year 0 issue"""
|
|
54
|
+
if isinstance(value, str):
|
|
55
|
+
# Check for year "0000" at the beginning of the string
|
|
56
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
57
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
58
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
59
|
+
):
|
|
60
|
+
# Workaround: Replace "0000" with "0001"
|
|
61
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
62
|
+
return value
|
|
63
|
+
|
|
64
|
+
@field_validator("updated_at", mode="before")
|
|
65
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
66
|
+
"""Workaround which prevents year 0 issue"""
|
|
67
|
+
if isinstance(value, str):
|
|
68
|
+
# Check for year "0000" at the beginning of the string
|
|
69
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
70
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
71
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
72
|
+
):
|
|
73
|
+
# Workaround: Replace "0000" with "0001"
|
|
74
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
75
|
+
return value
|
|
76
|
+
|
|
50
77
|
model_config = ConfigDict(
|
|
51
78
|
populate_by_name=True,
|
|
52
79
|
validate_assignment=True,
|
|
@@ -16,10 +16,11 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
19
20
|
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
23
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
25
26
|
|
|
@@ -49,6 +50,32 @@ class OrgManagerResponse(BaseModel):
|
|
|
49
50
|
"username",
|
|
50
51
|
]
|
|
51
52
|
|
|
53
|
+
@field_validator("created_at", mode="before")
|
|
54
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
55
|
+
"""Workaround which prevents year 0 issue"""
|
|
56
|
+
if isinstance(value, str):
|
|
57
|
+
# Check for year "0000" at the beginning of the string
|
|
58
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
59
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
60
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
61
|
+
):
|
|
62
|
+
# Workaround: Replace "0000" with "0001"
|
|
63
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
64
|
+
return value
|
|
65
|
+
|
|
66
|
+
@field_validator("updated_at", mode="before")
|
|
67
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
68
|
+
"""Workaround which prevents year 0 issue"""
|
|
69
|
+
if isinstance(value, str):
|
|
70
|
+
# Check for year "0000" at the beginning of the string
|
|
71
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
72
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
73
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
74
|
+
):
|
|
75
|
+
# Workaround: Replace "0000" with "0001"
|
|
76
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
77
|
+
return value
|
|
78
|
+
|
|
52
79
|
model_config = ConfigDict(
|
|
53
80
|
populate_by_name=True,
|
|
54
81
|
validate_assignment=True,
|
|
@@ -16,10 +16,18 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
19
20
|
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
|
|
22
|
-
from pydantic import
|
|
23
|
+
from pydantic import (
|
|
24
|
+
BaseModel,
|
|
25
|
+
ConfigDict,
|
|
26
|
+
Field,
|
|
27
|
+
StrictBool,
|
|
28
|
+
StrictStr,
|
|
29
|
+
field_validator,
|
|
30
|
+
)
|
|
23
31
|
from typing_extensions import Self
|
|
24
32
|
|
|
25
33
|
|
|
@@ -53,6 +61,32 @@ class Organization(BaseModel):
|
|
|
53
61
|
"updatedAt",
|
|
54
62
|
]
|
|
55
63
|
|
|
64
|
+
@field_validator("created_at", mode="before")
|
|
65
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
66
|
+
"""Workaround which prevents year 0 issue"""
|
|
67
|
+
if isinstance(value, str):
|
|
68
|
+
# Check for year "0000" at the beginning of the string
|
|
69
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
70
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
71
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
72
|
+
):
|
|
73
|
+
# Workaround: Replace "0000" with "0001"
|
|
74
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
75
|
+
return value
|
|
76
|
+
|
|
77
|
+
@field_validator("updated_at", mode="before")
|
|
78
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
79
|
+
"""Workaround which prevents year 0 issue"""
|
|
80
|
+
if isinstance(value, str):
|
|
81
|
+
# Check for year "0000" at the beginning of the string
|
|
82
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
83
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
84
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
85
|
+
):
|
|
86
|
+
# Workaround: Replace "0000" with "0001"
|
|
87
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
88
|
+
return value
|
|
89
|
+
|
|
56
90
|
model_config = ConfigDict(
|
|
57
91
|
populate_by_name=True,
|
|
58
92
|
validate_assignment=True,
|
|
@@ -16,10 +16,18 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
19
20
|
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
|
|
22
|
-
from pydantic import
|
|
23
|
+
from pydantic import (
|
|
24
|
+
BaseModel,
|
|
25
|
+
ConfigDict,
|
|
26
|
+
Field,
|
|
27
|
+
StrictBool,
|
|
28
|
+
StrictStr,
|
|
29
|
+
field_validator,
|
|
30
|
+
)
|
|
23
31
|
from typing_extensions import Self
|
|
24
32
|
|
|
25
33
|
|
|
@@ -53,6 +61,32 @@ class OrganizationsListItem(BaseModel):
|
|
|
53
61
|
"updatedAt",
|
|
54
62
|
]
|
|
55
63
|
|
|
64
|
+
@field_validator("created_at", mode="before")
|
|
65
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
66
|
+
"""Workaround which prevents year 0 issue"""
|
|
67
|
+
if isinstance(value, str):
|
|
68
|
+
# Check for year "0000" at the beginning of the string
|
|
69
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
70
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
71
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
72
|
+
):
|
|
73
|
+
# Workaround: Replace "0000" with "0001"
|
|
74
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
75
|
+
return value
|
|
76
|
+
|
|
77
|
+
@field_validator("updated_at", mode="before")
|
|
78
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
79
|
+
"""Workaround which prevents year 0 issue"""
|
|
80
|
+
if isinstance(value, str):
|
|
81
|
+
# Check for year "0000" at the beginning of the string
|
|
82
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
83
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
84
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
85
|
+
):
|
|
86
|
+
# Workaround: Replace "0000" with "0001"
|
|
87
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
88
|
+
return value
|
|
89
|
+
|
|
56
90
|
model_config = ConfigDict(
|
|
57
91
|
populate_by_name=True,
|
|
58
92
|
validate_assignment=True,
|
|
@@ -16,10 +16,11 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
19
20
|
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
23
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
25
26
|
from stackit.scf.models.quota_apps import QuotaApps
|
|
@@ -60,6 +61,32 @@ class Quota(BaseModel):
|
|
|
60
61
|
"updatedAt",
|
|
61
62
|
]
|
|
62
63
|
|
|
64
|
+
@field_validator("created_at", mode="before")
|
|
65
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
66
|
+
"""Workaround which prevents year 0 issue"""
|
|
67
|
+
if isinstance(value, str):
|
|
68
|
+
# Check for year "0000" at the beginning of the string
|
|
69
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
70
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
71
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
72
|
+
):
|
|
73
|
+
# Workaround: Replace "0000" with "0001"
|
|
74
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
75
|
+
return value
|
|
76
|
+
|
|
77
|
+
@field_validator("updated_at", mode="before")
|
|
78
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
79
|
+
"""Workaround which prevents year 0 issue"""
|
|
80
|
+
if isinstance(value, str):
|
|
81
|
+
# Check for year "0000" at the beginning of the string
|
|
82
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
83
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
84
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
85
|
+
):
|
|
86
|
+
# Workaround: Replace "0000" with "0001"
|
|
87
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
88
|
+
return value
|
|
89
|
+
|
|
63
90
|
model_config = ConfigDict(
|
|
64
91
|
populate_by_name=True,
|
|
65
92
|
validate_assignment=True,
|
|
@@ -16,10 +16,11 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
19
20
|
from datetime import datetime
|
|
20
21
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
22
|
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
23
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
25
26
|
|
|
@@ -47,6 +48,32 @@ class Space(BaseModel):
|
|
|
47
48
|
"updatedAt",
|
|
48
49
|
]
|
|
49
50
|
|
|
51
|
+
@field_validator("created_at", mode="before")
|
|
52
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
53
|
+
"""Workaround which prevents year 0 issue"""
|
|
54
|
+
if isinstance(value, str):
|
|
55
|
+
# Check for year "0000" at the beginning of the string
|
|
56
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
57
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
58
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
59
|
+
):
|
|
60
|
+
# Workaround: Replace "0000" with "0001"
|
|
61
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
62
|
+
return value
|
|
63
|
+
|
|
64
|
+
@field_validator("updated_at", mode="before")
|
|
65
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
66
|
+
"""Workaround which prevents year 0 issue"""
|
|
67
|
+
if isinstance(value, str):
|
|
68
|
+
# Check for year "0000" at the beginning of the string
|
|
69
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
70
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
71
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
72
|
+
):
|
|
73
|
+
# Workaround: Replace "0000" with "0001"
|
|
74
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
75
|
+
return value
|
|
76
|
+
|
|
50
77
|
model_config = ConfigDict(
|
|
51
78
|
populate_by_name=True,
|
|
52
79
|
validate_assignment=True,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/apply_organization_quota_payload.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/create_organization_payload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_manager_delete_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/org_role_create_bff_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_create_bff_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_create_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_delete_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/organization_usage_summary.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_created_bff_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_create_bff_request.py
RENAMED
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_create_bff_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/space_role_create_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.2.0 → stackit_scf-0.2.1}/src/stackit/scf/models/update_organization_payload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|