stackit-objectstorage 1.2.0__tar.gz → 1.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_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/PKG-INFO +5 -2
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/pyproject.toml +1 -1
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/create_access_key_payload.py +15 -1
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/LICENSE.md +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/NOTICE.txt +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/README.md +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/__init__.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/api/__init__.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/api/default_api.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/api_client.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/api_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/configuration.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/exceptions.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/__init__.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/access_key.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/bucket.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/create_access_key_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/create_bucket_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/create_credentials_group_payload.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/create_credentials_group_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/credentials_group.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/delete_access_key_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/delete_bucket_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/delete_credentials_group_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/detailed_error.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/error_message.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/get_bucket_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/http_validation_error.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/list_access_keys_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/list_buckets_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/list_credentials_groups_response.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/location_inner.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/project_scope.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/project_status.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/models/validation_error.py +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/py.typed +0 -0
- {stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/rest.py +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-objectstorage
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: STACKIT Object Storage 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)
|
|
@@ -15,10 +15,11 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from datetime import datetime
|
|
19
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
21
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -30,6 +31,19 @@ class CreateAccessKeyPayload(BaseModel):
|
|
|
30
31
|
expires: Optional[datetime] = Field(default=None, description="Expiration date. Null means never expires.")
|
|
31
32
|
__properties: ClassVar[List[str]] = ["expires"]
|
|
32
33
|
|
|
34
|
+
@field_validator("expires", mode="before")
|
|
35
|
+
def expires_change_year_zero_to_one(cls, value):
|
|
36
|
+
"""Workaround which prevents year 0 issue"""
|
|
37
|
+
if isinstance(value, str):
|
|
38
|
+
# Check for year "0000" at the beginning of the string
|
|
39
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
40
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
41
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
42
|
+
):
|
|
43
|
+
# Workaround: Replace "0000" with "0001"
|
|
44
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
45
|
+
return value
|
|
46
|
+
|
|
33
47
|
model_config = ConfigDict(
|
|
34
48
|
populate_by_name=True,
|
|
35
49
|
validate_assignment=True,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/exceptions.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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/py.typed
RENAMED
|
File without changes
|
{stackit_objectstorage-1.2.0 → stackit_objectstorage-1.2.1}/src/stackit/objectstorage/rest.py
RENAMED
|
File without changes
|