stackit-git 0.8.0__tar.gz → 0.10.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_git-0.8.0 → stackit_git-0.10.0}/PKG-INFO +3 -4
- {stackit_git-0.8.0 → stackit_git-0.10.0}/pyproject.toml +7 -7
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/__init__.py +6 -7
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/api/default_api.py +13 -7
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/api_client.py +21 -24
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/api_response.py +0 -1
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/configuration.py +6 -7
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/exceptions.py +6 -6
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/__init__.py +6 -6
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/already_exists_error.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/authentication.py +16 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/authentication_list.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/bad_error_response.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/conflict_error_response.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/create_authentication_payload.py +16 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/create_instance_payload.py +13 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/create_runner_payload.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/feature_toggle.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/flavor.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/generic_error_response.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/instance.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/internal_server_error_response.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/list_flavors.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/list_instances.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/not_found_error_response.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/patch_authentication_payload.py +16 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/patch_instance_payload.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/patch_operation.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/runner.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/runner_runtime.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/runner_runtime_list.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/unauthorized_error_response.py +10 -9
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/rest.py +6 -7
- {stackit_git-0.8.0 → stackit_git-0.10.0}/.gitignore +0 -0
- {stackit_git-0.8.0 → stackit_git-0.10.0}/LICENSE.md +0 -0
- {stackit_git-0.8.0 → stackit_git-0.10.0}/NOTICE.txt +0 -0
- {stackit_git-0.8.0 → stackit_git-0.10.0}/README.md +0 -0
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/api/__init__.py +0 -0
- {stackit_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-git
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.0
|
|
4
4
|
Summary: STACKIT Git 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.0,>=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-git"
|
|
3
|
-
version = "v0.
|
|
3
|
+
version = "v0.10.0"
|
|
4
4
|
description = "STACKIT Git 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,18 +3,17 @@
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
|
-
|
|
6
|
+
STACKIT Git API
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
STACKIT Git management API.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
11
|
+
Contact: git@stackit.cloud
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Do not edit the class manually.
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
__version__ = "1.0.0"
|
|
19
18
|
|
|
20
19
|
# Define package exports
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
16
|
from uuid import UUID
|
|
17
17
|
|
|
18
|
-
from pydantic import
|
|
18
|
+
from pydantic import (
|
|
19
|
+
Field,
|
|
20
|
+
StrictFloat,
|
|
21
|
+
StrictInt,
|
|
22
|
+
StrictStr,
|
|
23
|
+
validate_call,
|
|
24
|
+
)
|
|
19
25
|
from stackit.core.configuration import Configuration
|
|
20
26
|
from typing_extensions import Annotated
|
|
21
27
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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 datetime
|
|
@@ -37,7 +37,6 @@ from stackit.git.exceptions import (
|
|
|
37
37
|
ApiException,
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
|
|
42
41
|
|
|
43
42
|
|
|
@@ -67,6 +66,7 @@ class ApiClient:
|
|
|
67
66
|
"date": datetime.date,
|
|
68
67
|
"datetime": datetime.datetime,
|
|
69
68
|
"decimal": decimal.Decimal,
|
|
69
|
+
"UUID": uuid.UUID,
|
|
70
70
|
"object": object,
|
|
71
71
|
}
|
|
72
72
|
_pool = None
|
|
@@ -266,7 +266,7 @@ class ApiClient:
|
|
|
266
266
|
response_text = None
|
|
267
267
|
return_data = None
|
|
268
268
|
try:
|
|
269
|
-
if response_type
|
|
269
|
+
if response_type in ("bytearray", "bytes"):
|
|
270
270
|
return_data = response_data.data
|
|
271
271
|
elif response_type == "file":
|
|
272
272
|
return_data = self.__deserialize_file(response_data)
|
|
@@ -327,25 +327,20 @@ class ApiClient:
|
|
|
327
327
|
return obj.isoformat()
|
|
328
328
|
elif isinstance(obj, decimal.Decimal):
|
|
329
329
|
return str(obj)
|
|
330
|
-
|
|
331
330
|
elif isinstance(obj, dict):
|
|
332
|
-
|
|
331
|
+
return {key: self.sanitize_for_serialization(val) for key, val in obj.items()}
|
|
332
|
+
|
|
333
|
+
# Convert model obj to dict except
|
|
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()
|
|
333
340
|
else:
|
|
334
|
-
|
|
335
|
-
# attributes `openapi_types`, `attribute_map`
|
|
336
|
-
# and attributes which value is not None.
|
|
337
|
-
# Convert attribute name to json key in
|
|
338
|
-
# model definition for request.
|
|
339
|
-
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
340
|
-
obj_dict = obj.to_dict()
|
|
341
|
-
else:
|
|
342
|
-
obj_dict = obj.__dict__
|
|
343
|
-
|
|
344
|
-
if isinstance(obj_dict, list):
|
|
345
|
-
# 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
|
|
346
|
-
return self.sanitize_for_serialization(obj_dict)
|
|
341
|
+
obj_dict = obj.__dict__
|
|
347
342
|
|
|
348
|
-
return
|
|
343
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
349
344
|
|
|
350
345
|
def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
|
|
351
346
|
"""Deserializes response into an object.
|
|
@@ -418,6 +413,8 @@ class ApiClient:
|
|
|
418
413
|
return self.__deserialize_datetime(data)
|
|
419
414
|
elif klass is decimal.Decimal:
|
|
420
415
|
return decimal.Decimal(data)
|
|
416
|
+
elif klass is uuid.UUID:
|
|
417
|
+
return uuid.UUID(data)
|
|
421
418
|
elif issubclass(klass, Enum):
|
|
422
419
|
return self.__deserialize_enum(data, klass)
|
|
423
420
|
else:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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 sys
|
|
@@ -19,7 +19,6 @@ from typing_extensions import NotRequired
|
|
|
19
19
|
|
|
20
20
|
import os
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
ServerVariablesT = Dict[str, str]
|
|
24
23
|
|
|
25
24
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from typing import Any, Optional
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
"""
|
|
5
|
-
|
|
5
|
+
STACKIT Git API
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
STACKIT Git management API.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
10
|
+
Contact: git@stackit.cloud
|
|
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
16
|
# import models into model package
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -31,7 +32,8 @@ class AlreadyExistsError(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["message"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -42,8 +44,7 @@ class AlreadyExistsError(BaseModel):
|
|
|
42
44
|
|
|
43
45
|
def to_json(self) -> str:
|
|
44
46
|
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from __future__ import annotations
|
|
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
22
22
|
from uuid import UUID
|
|
23
23
|
|
|
24
24
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
from typing_extensions import Annotated, Self
|
|
26
27
|
|
|
27
28
|
|
|
@@ -64,6 +65,9 @@ class Authentication(BaseModel):
|
|
|
64
65
|
@field_validator("auto_discover_url")
|
|
65
66
|
def auto_discover_url_validate_regular_expression(cls, value):
|
|
66
67
|
"""Validates the regular expression"""
|
|
68
|
+
if not isinstance(value, str):
|
|
69
|
+
value = str(value)
|
|
70
|
+
|
|
67
71
|
if not re.match(r"^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$", value):
|
|
68
72
|
raise ValueError(
|
|
69
73
|
r"must validate the regular expression /^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$/"
|
|
@@ -86,6 +90,9 @@ class Authentication(BaseModel):
|
|
|
86
90
|
@field_validator("icon_url")
|
|
87
91
|
def icon_url_validate_regular_expression(cls, value):
|
|
88
92
|
"""Validates the regular expression"""
|
|
93
|
+
if not isinstance(value, str):
|
|
94
|
+
value = str(value)
|
|
95
|
+
|
|
89
96
|
if not re.match(r"^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$", value):
|
|
90
97
|
raise ValueError(
|
|
91
98
|
r"must validate the regular expression /^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$/"
|
|
@@ -93,7 +100,8 @@ class Authentication(BaseModel):
|
|
|
93
100
|
return value
|
|
94
101
|
|
|
95
102
|
model_config = ConfigDict(
|
|
96
|
-
|
|
103
|
+
validate_by_name=True,
|
|
104
|
+
validate_by_alias=True,
|
|
97
105
|
validate_assignment=True,
|
|
98
106
|
protected_namespaces=(),
|
|
99
107
|
)
|
|
@@ -104,8 +112,7 @@ class Authentication(BaseModel):
|
|
|
104
112
|
|
|
105
113
|
def to_json(self) -> str:
|
|
106
114
|
"""Returns the JSON representation of the model using alias"""
|
|
107
|
-
|
|
108
|
-
return json.dumps(self.to_dict())
|
|
115
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
109
116
|
|
|
110
117
|
@classmethod
|
|
111
118
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
from stackit.git.models.authentication import Authentication
|
|
@@ -33,7 +34,8 @@ class AuthenticationList(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["authentication"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class AuthenticationList(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class BadErrorResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["details", "error"]
|
|
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 BadErrorResponse(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]:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from __future__ import annotations
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class ConflictErrorResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["details", "error"]
|
|
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 ConflictErrorResponse(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_git-0.8.0 → stackit_git-0.10.0}/src/stackit/git/models/create_authentication_payload.py
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT Git API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
STACKIT Git management API.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
The version of the OpenAPI document: 1beta.0.4
|
|
9
|
+
Contact: git@stackit.cloud
|
|
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
|
from __future__ import annotations
|
|
@@ -20,6 +20,7 @@ import re # noqa: F401
|
|
|
20
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
21
21
|
|
|
22
22
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
|
+
from pydantic_core import to_jsonable_python
|
|
23
24
|
from typing_extensions import Annotated, Self
|
|
24
25
|
|
|
25
26
|
|
|
@@ -56,6 +57,9 @@ class CreateAuthenticationPayload(BaseModel):
|
|
|
56
57
|
@field_validator("auto_discover_url")
|
|
57
58
|
def auto_discover_url_validate_regular_expression(cls, value):
|
|
58
59
|
"""Validates the regular expression"""
|
|
60
|
+
if not isinstance(value, str):
|
|
61
|
+
value = str(value)
|
|
62
|
+
|
|
59
63
|
if not re.match(r"^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$", value):
|
|
60
64
|
raise ValueError(
|
|
61
65
|
r"must validate the regular expression /^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$/"
|
|
@@ -68,6 +72,9 @@ class CreateAuthenticationPayload(BaseModel):
|
|
|
68
72
|
if value is None:
|
|
69
73
|
return value
|
|
70
74
|
|
|
75
|
+
if not isinstance(value, str):
|
|
76
|
+
value = str(value)
|
|
77
|
+
|
|
71
78
|
if not re.match(r"^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$", value):
|
|
72
79
|
raise ValueError(
|
|
73
80
|
r"must validate the regular expression /^https:\/\/[a-zA-Z0-9\-\.]+(\.[a-zA-Z]{2,})+(\/.*)?$/"
|
|
@@ -75,7 +82,8 @@ class CreateAuthenticationPayload(BaseModel):
|
|
|
75
82
|
return value
|
|
76
83
|
|
|
77
84
|
model_config = ConfigDict(
|
|
78
|
-
|
|
85
|
+
validate_by_name=True,
|
|
86
|
+
validate_by_alias=True,
|
|
79
87
|
validate_assignment=True,
|
|
80
88
|
protected_namespaces=(),
|
|
81
89
|
)
|
|
@@ -86,8 +94,7 @@ class CreateAuthenticationPayload(BaseModel):
|
|
|
86
94
|
|
|
87
95
|
def to_json(self) -> str:
|
|
88
96
|
"""Returns the JSON representation of the model using alias"""
|
|
89
|
-
|
|
90
|
-
return json.dumps(self.to_dict())
|
|
97
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
91
98
|
|
|
92
99
|
@classmethod
|
|
93
100
|
def from_json(cls, json_str: str) -> Optional[Self]:
|