stackit-logs 0.2.1__tar.gz → 0.4.0__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_logs-0.2.1 → stackit_logs-0.4.0}/PKG-INFO +3 -4
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/pyproject.toml +7 -7
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/__init__.py +5 -6
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/api/default_api.py +5 -5
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/api_client.py +20 -23
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/api_response.py +0 -1
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/configuration.py +5 -6
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/exceptions.py +5 -5
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/__init__.py +5 -5
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/access_token.py +12 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/access_token_list.py +9 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/create_access_token_payload.py +12 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/create_logs_instance_payload.py +12 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/logs_instance.py +12 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/logs_instances_list.py +9 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/update_access_token_payload.py +12 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/update_logs_instance_payload.py +12 -8
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/rest.py +5 -6
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/.gitignore +0 -0
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/LICENSE.md +0 -0
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/NOTICE.txt +0 -0
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/README.md +0 -0
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/api/__init__.py +0 -0
- {stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-logs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: STACKIT Logs API
|
|
5
5
|
Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
|
|
6
6
|
Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
|
|
@@ -10,16 +10,15 @@ License-File: NOTICE.txt
|
|
|
10
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
-
Requires-Python: <4,>=3.
|
|
18
|
+
Requires-Python: <4.0,>=3.10
|
|
20
19
|
Requires-Dist: pydantic>=2.9.2
|
|
21
20
|
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
22
|
-
Requires-Dist: requests>=2.
|
|
21
|
+
Requires-Dist: requests>=2.33.0
|
|
23
22
|
Requires-Dist: stackit-core>=0.0.1a
|
|
24
23
|
Description-Content-Type: text/markdown
|
|
25
24
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "stackit-logs"
|
|
3
|
-
version = "v0.
|
|
3
|
+
version = "v0.4.0"
|
|
4
4
|
description = "STACKIT Logs API"
|
|
5
5
|
authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
|
|
6
|
-
requires-python = ">=3.
|
|
6
|
+
requires-python = ">=3.10,<4.0"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
classifiers = [
|
|
9
9
|
"Programming Language :: Python :: 3",
|
|
10
10
|
"License :: OSI Approved :: Apache Software License",
|
|
11
11
|
"Operating System :: OS Independent",
|
|
12
|
-
"Programming Language :: Python :: 3.9",
|
|
13
12
|
"Programming Language :: Python :: 3.10",
|
|
14
13
|
"Programming Language :: Python :: 3.11",
|
|
15
14
|
"Programming Language :: Python :: 3.12",
|
|
@@ -18,7 +17,7 @@ classifiers = [
|
|
|
18
17
|
]
|
|
19
18
|
dependencies = [
|
|
20
19
|
"stackit-core>=0.0.1a",
|
|
21
|
-
"requests>=2.
|
|
20
|
+
"requests>=2.33.0",
|
|
22
21
|
"pydantic>=2.9.2",
|
|
23
22
|
"python-dateutil>=2.9.0.post0",
|
|
24
23
|
]
|
|
@@ -29,8 +28,8 @@ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
|
|
|
29
28
|
|
|
30
29
|
[dependency-groups]
|
|
31
30
|
dev = [
|
|
32
|
-
"black>=
|
|
33
|
-
"pytest>=
|
|
31
|
+
"black>=26.3.1",
|
|
32
|
+
"pytest>=9.1.1",
|
|
34
33
|
"flake8>=5.0.3 ; python_full_version < '3.12'",
|
|
35
34
|
"flake8>=6.0.1 ; python_full_version >= '3.12'",
|
|
36
35
|
"flake8-black>=0.3.6",
|
|
@@ -102,7 +101,8 @@ show-source = false
|
|
|
102
101
|
max-line-length = 120
|
|
103
102
|
# E203,W503 and E704 are incompatible with the formatter black
|
|
104
103
|
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
|
|
105
|
-
|
|
104
|
+
# fixing B042 in upstream exceptions.mustache would be a breaking change
|
|
105
|
+
ignore = ["E203", "W503", "E704", "W291", "B042"]
|
|
106
106
|
inline-quotes = '"'
|
|
107
107
|
docstring-quotes = '"""'
|
|
108
108
|
multiline-quotes = '"""'
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
|
-
|
|
6
|
+
STACKIT Logs API
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
The version of the OpenAPI document: 1.0.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Do not edit the class manually.
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
__version__ = "1.0.0"
|
|
18
17
|
|
|
19
18
|
# Define package exports
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
import datetime
|
|
@@ -36,7 +36,6 @@ from stackit.logs.exceptions import (
|
|
|
36
36
|
ApiException,
|
|
37
37
|
)
|
|
38
38
|
|
|
39
|
-
|
|
40
39
|
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
|
|
41
40
|
|
|
42
41
|
|
|
@@ -66,6 +65,7 @@ class ApiClient:
|
|
|
66
65
|
"date": datetime.date,
|
|
67
66
|
"datetime": datetime.datetime,
|
|
68
67
|
"decimal": decimal.Decimal,
|
|
68
|
+
"UUID": uuid.UUID,
|
|
69
69
|
"object": object,
|
|
70
70
|
}
|
|
71
71
|
_pool = None
|
|
@@ -265,7 +265,7 @@ class ApiClient:
|
|
|
265
265
|
response_text = None
|
|
266
266
|
return_data = None
|
|
267
267
|
try:
|
|
268
|
-
if response_type
|
|
268
|
+
if response_type in ("bytearray", "bytes"):
|
|
269
269
|
return_data = response_data.data
|
|
270
270
|
elif response_type == "file":
|
|
271
271
|
return_data = self.__deserialize_file(response_data)
|
|
@@ -326,25 +326,20 @@ class ApiClient:
|
|
|
326
326
|
return obj.isoformat()
|
|
327
327
|
elif isinstance(obj, decimal.Decimal):
|
|
328
328
|
return str(obj)
|
|
329
|
-
|
|
330
329
|
elif isinstance(obj, dict):
|
|
331
|
-
|
|
330
|
+
return {key: self.sanitize_for_serialization(val) for key, val in obj.items()}
|
|
331
|
+
|
|
332
|
+
# Convert model obj to dict except
|
|
333
|
+
# attributes `openapi_types`, `attribute_map`
|
|
334
|
+
# and attributes which value is not None.
|
|
335
|
+
# Convert attribute name to json key in
|
|
336
|
+
# model definition for request.
|
|
337
|
+
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
338
|
+
obj_dict = obj.to_dict()
|
|
332
339
|
else:
|
|
333
|
-
|
|
334
|
-
# attributes `openapi_types`, `attribute_map`
|
|
335
|
-
# and attributes which value is not None.
|
|
336
|
-
# Convert attribute name to json key in
|
|
337
|
-
# model definition for request.
|
|
338
|
-
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
339
|
-
obj_dict = obj.to_dict()
|
|
340
|
-
else:
|
|
341
|
-
obj_dict = obj.__dict__
|
|
342
|
-
|
|
343
|
-
if isinstance(obj_dict, list):
|
|
344
|
-
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501
|
|
345
|
-
return self.sanitize_for_serialization(obj_dict)
|
|
340
|
+
obj_dict = obj.__dict__
|
|
346
341
|
|
|
347
|
-
return
|
|
342
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
348
343
|
|
|
349
344
|
def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
|
|
350
345
|
"""Deserializes response into an object.
|
|
@@ -417,6 +412,8 @@ class ApiClient:
|
|
|
417
412
|
return self.__deserialize_datetime(data)
|
|
418
413
|
elif klass is decimal.Decimal:
|
|
419
414
|
return decimal.Decimal(data)
|
|
415
|
+
elif klass is uuid.UUID:
|
|
416
|
+
return uuid.UUID(data)
|
|
420
417
|
elif issubclass(klass, Enum):
|
|
421
418
|
return self.__deserialize_enum(data, klass)
|
|
422
419
|
else:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
import sys
|
|
@@ -18,7 +18,6 @@ from typing_extensions import NotRequired
|
|
|
18
18
|
|
|
19
19
|
import os
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
ServerVariablesT = Dict[str, str]
|
|
23
22
|
|
|
24
23
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from typing import Any, Optional
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
"""
|
|
5
|
-
|
|
5
|
+
STACKIT Logs API
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
The version of the OpenAPI document: 1.0.0
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Do not edit the class manually.
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
15
|
# import models into model package
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -28,6 +28,7 @@ from pydantic import (
|
|
|
28
28
|
StrictStr,
|
|
29
29
|
field_validator,
|
|
30
30
|
)
|
|
31
|
+
from pydantic_core import to_jsonable_python
|
|
31
32
|
from typing_extensions import Annotated, Self
|
|
32
33
|
|
|
33
34
|
|
|
@@ -70,6 +71,9 @@ class AccessToken(BaseModel):
|
|
|
70
71
|
@field_validator("display_name")
|
|
71
72
|
def display_name_validate_regular_expression(cls, value):
|
|
72
73
|
"""Validates the regular expression"""
|
|
74
|
+
if not isinstance(value, str):
|
|
75
|
+
value = str(value)
|
|
76
|
+
|
|
73
77
|
if not re.match(r"^[a-zA-Z][\w -]*$", value):
|
|
74
78
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z][\w -]*$/")
|
|
75
79
|
return value
|
|
@@ -103,7 +107,8 @@ class AccessToken(BaseModel):
|
|
|
103
107
|
return value
|
|
104
108
|
|
|
105
109
|
model_config = ConfigDict(
|
|
106
|
-
|
|
110
|
+
validate_by_name=True,
|
|
111
|
+
validate_by_alias=True,
|
|
107
112
|
validate_assignment=True,
|
|
108
113
|
protected_namespaces=(),
|
|
109
114
|
)
|
|
@@ -114,8 +119,7 @@ class AccessToken(BaseModel):
|
|
|
114
119
|
|
|
115
120
|
def to_json(self) -> str:
|
|
116
121
|
"""Returns the JSON representation of the model using alias"""
|
|
117
|
-
|
|
118
|
-
return json.dumps(self.to_dict())
|
|
122
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
119
123
|
|
|
120
124
|
@classmethod
|
|
121
125
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.logs.models.access_token import AccessToken
|
|
@@ -32,7 +33,8 @@ class AccessTokenList(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["tokens"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class AccessTokenList(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/create_access_token_payload.py
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -42,6 +43,9 @@ class CreateAccessTokenPayload(BaseModel):
|
|
|
42
43
|
@field_validator("display_name")
|
|
43
44
|
def display_name_validate_regular_expression(cls, value):
|
|
44
45
|
"""Validates the regular expression"""
|
|
46
|
+
if not isinstance(value, str):
|
|
47
|
+
value = str(value)
|
|
48
|
+
|
|
45
49
|
if not re.match(r"^[a-zA-Z][\w -]*$", value):
|
|
46
50
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z][\w -]*$/")
|
|
47
51
|
return value
|
|
@@ -55,7 +59,8 @@ class CreateAccessTokenPayload(BaseModel):
|
|
|
55
59
|
return value
|
|
56
60
|
|
|
57
61
|
model_config = ConfigDict(
|
|
58
|
-
|
|
62
|
+
validate_by_name=True,
|
|
63
|
+
validate_by_alias=True,
|
|
59
64
|
validate_assignment=True,
|
|
60
65
|
protected_namespaces=(),
|
|
61
66
|
)
|
|
@@ -66,8 +71,7 @@ class CreateAccessTokenPayload(BaseModel):
|
|
|
66
71
|
|
|
67
72
|
def to_json(self) -> str:
|
|
68
73
|
"""Returns the JSON representation of the model using alias"""
|
|
69
|
-
|
|
70
|
-
return json.dumps(self.to_dict())
|
|
74
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
71
75
|
|
|
72
76
|
@classmethod
|
|
73
77
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/create_logs_instance_payload.py
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -42,12 +43,16 @@ class CreateLogsInstancePayload(BaseModel):
|
|
|
42
43
|
@field_validator("display_name")
|
|
43
44
|
def display_name_validate_regular_expression(cls, value):
|
|
44
45
|
"""Validates the regular expression"""
|
|
46
|
+
if not isinstance(value, str):
|
|
47
|
+
value = str(value)
|
|
48
|
+
|
|
45
49
|
if not re.match(r"^[a-zA-Z][\w -]*$", value):
|
|
46
50
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z][\w -]*$/")
|
|
47
51
|
return value
|
|
48
52
|
|
|
49
53
|
model_config = ConfigDict(
|
|
50
|
-
|
|
54
|
+
validate_by_name=True,
|
|
55
|
+
validate_by_alias=True,
|
|
51
56
|
validate_assignment=True,
|
|
52
57
|
protected_namespaces=(),
|
|
53
58
|
)
|
|
@@ -58,8 +63,7 @@ class CreateLogsInstancePayload(BaseModel):
|
|
|
58
63
|
|
|
59
64
|
def to_json(self) -> str:
|
|
60
65
|
"""Returns the JSON representation of the model using alias"""
|
|
61
|
-
|
|
62
|
-
return json.dumps(self.to_dict())
|
|
66
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
63
67
|
|
|
64
68
|
@classmethod
|
|
65
69
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -21,6 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
21
21
|
from uuid import UUID
|
|
22
22
|
|
|
23
23
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
24
25
|
from typing_extensions import Annotated, Self
|
|
25
26
|
|
|
26
27
|
|
|
@@ -88,6 +89,9 @@ class LogsInstance(BaseModel):
|
|
|
88
89
|
@field_validator("display_name")
|
|
89
90
|
def display_name_validate_regular_expression(cls, value):
|
|
90
91
|
"""Validates the regular expression"""
|
|
92
|
+
if not isinstance(value, str):
|
|
93
|
+
value = str(value)
|
|
94
|
+
|
|
91
95
|
if not re.match(r"^[a-zA-Z][\w -]*$", value):
|
|
92
96
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z][\w -]*$/")
|
|
93
97
|
return value
|
|
@@ -100,7 +104,8 @@ class LogsInstance(BaseModel):
|
|
|
100
104
|
return value
|
|
101
105
|
|
|
102
106
|
model_config = ConfigDict(
|
|
103
|
-
|
|
107
|
+
validate_by_name=True,
|
|
108
|
+
validate_by_alias=True,
|
|
104
109
|
validate_assignment=True,
|
|
105
110
|
protected_namespaces=(),
|
|
106
111
|
)
|
|
@@ -111,8 +116,7 @@ class LogsInstance(BaseModel):
|
|
|
111
116
|
|
|
112
117
|
def to_json(self) -> str:
|
|
113
118
|
"""Returns the JSON representation of the model using alias"""
|
|
114
|
-
|
|
115
|
-
return json.dumps(self.to_dict())
|
|
119
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
116
120
|
|
|
117
121
|
@classmethod
|
|
118
122
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.logs.models.logs_instance import LogsInstance
|
|
@@ -32,7 +33,8 @@ class LogsInstancesList(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["instances"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class LogsInstancesList(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/update_access_token_payload.py
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -41,12 +42,16 @@ class UpdateAccessTokenPayload(BaseModel):
|
|
|
41
42
|
if value is None:
|
|
42
43
|
return value
|
|
43
44
|
|
|
45
|
+
if not isinstance(value, str):
|
|
46
|
+
value = str(value)
|
|
47
|
+
|
|
44
48
|
if not re.match(r"^[a-zA-Z][\w -]*$", value):
|
|
45
49
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z][\w -]*$/")
|
|
46
50
|
return value
|
|
47
51
|
|
|
48
52
|
model_config = ConfigDict(
|
|
49
|
-
|
|
53
|
+
validate_by_name=True,
|
|
54
|
+
validate_by_alias=True,
|
|
50
55
|
validate_assignment=True,
|
|
51
56
|
protected_namespaces=(),
|
|
52
57
|
)
|
|
@@ -57,8 +62,7 @@ class UpdateAccessTokenPayload(BaseModel):
|
|
|
57
62
|
|
|
58
63
|
def to_json(self) -> str:
|
|
59
64
|
"""Returns the JSON representation of the model using alias"""
|
|
60
|
-
|
|
61
|
-
return json.dumps(self.to_dict())
|
|
65
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
62
66
|
|
|
63
67
|
@classmethod
|
|
64
68
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_logs-0.2.1 → stackit_logs-0.4.0}/src/stackit/logs/models/update_logs_instance_payload.py
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -45,12 +46,16 @@ class UpdateLogsInstancePayload(BaseModel):
|
|
|
45
46
|
if value is None:
|
|
46
47
|
return value
|
|
47
48
|
|
|
49
|
+
if not isinstance(value, str):
|
|
50
|
+
value = str(value)
|
|
51
|
+
|
|
48
52
|
if not re.match(r"^[a-zA-Z][\w -]*$", value):
|
|
49
53
|
raise ValueError(r"must validate the regular expression /^[a-zA-Z][\w -]*$/")
|
|
50
54
|
return value
|
|
51
55
|
|
|
52
56
|
model_config = ConfigDict(
|
|
53
|
-
|
|
57
|
+
validate_by_name=True,
|
|
58
|
+
validate_by_alias=True,
|
|
54
59
|
validate_assignment=True,
|
|
55
60
|
protected_namespaces=(),
|
|
56
61
|
)
|
|
@@ -61,8 +66,7 @@ class UpdateLogsInstancePayload(BaseModel):
|
|
|
61
66
|
|
|
62
67
|
def to_json(self) -> str:
|
|
63
68
|
"""Returns the JSON representation of the model using alias"""
|
|
64
|
-
|
|
65
|
-
return json.dumps(self.to_dict())
|
|
69
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
66
70
|
|
|
67
71
|
@classmethod
|
|
68
72
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Logs API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This API provides endpoints for managing STACKIT Logs.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
import io
|
|
@@ -21,7 +21,6 @@ from stackit.core.configuration import Configuration
|
|
|
21
21
|
|
|
22
22
|
from stackit.logs.exceptions import ApiException, ApiValueError
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
RESTResponseType = requests.Response
|
|
26
25
|
|
|
27
26
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|