stackit-git 0.1.0__tar.gz → 0.1.2__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.1.0 → stackit_git-0.1.2}/PKG-INFO +1 -1
- {stackit_git-0.1.0 → stackit_git-0.1.2}/pyproject.toml +1 -1
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/api/default_api.py +24 -24
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/api_client.py +1 -1
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/configuration.py +6 -2
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/create_instance_payload.py +2 -2
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/instance.py +6 -6
- {stackit_git-0.1.0 → stackit_git-0.1.2}/LICENSE.md +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/NOTICE.txt +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/README.md +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/__init__.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/api/__init__.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/api_response.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/exceptions.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/__init__.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/internal_server_error_response.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/list_instances.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/unauthorized_response.py +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/py.typed +0 -0
- {stackit_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/rest.py +0 -0
|
@@ -63,9 +63,9 @@ class DefaultApi:
|
|
|
63
63
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
64
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
65
|
) -> Instance:
|
|
66
|
-
"""
|
|
66
|
+
"""Creates a new STACKIT Git instance within the project.
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
|
|
69
69
|
|
|
70
70
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
71
71
|
:type project_id: str
|
|
@@ -140,9 +140,9 @@ class DefaultApi:
|
|
|
140
140
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
141
141
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
142
142
|
) -> ApiResponse[Instance]:
|
|
143
|
-
"""
|
|
143
|
+
"""Creates a new STACKIT Git instance within the project.
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
|
|
146
146
|
|
|
147
147
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
148
148
|
:type project_id: str
|
|
@@ -217,9 +217,9 @@ class DefaultApi:
|
|
|
217
217
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
218
218
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
219
219
|
) -> RESTResponseType:
|
|
220
|
-
"""
|
|
220
|
+
"""Creates a new STACKIT Git instance within the project.
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
Users with write-access to a project may create a new STACKIT Git instance by posting the instance creation request to this endpoint, which will schedule the creation of a new STACKIT Git instance within that project.
|
|
223
223
|
|
|
224
224
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
225
225
|
:type project_id: str
|
|
@@ -349,9 +349,9 @@ class DefaultApi:
|
|
|
349
349
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
350
350
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
351
351
|
) -> None:
|
|
352
|
-
"""
|
|
352
|
+
"""Deletes the given STACKIT Git instance.
|
|
353
353
|
|
|
354
|
-
|
|
354
|
+
Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
|
|
355
355
|
|
|
356
356
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
357
357
|
:type project_id: str
|
|
@@ -425,9 +425,9 @@ class DefaultApi:
|
|
|
425
425
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
426
426
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
427
427
|
) -> ApiResponse[None]:
|
|
428
|
-
"""
|
|
428
|
+
"""Deletes the given STACKIT Git instance.
|
|
429
429
|
|
|
430
|
-
|
|
430
|
+
Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
|
|
431
431
|
|
|
432
432
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
433
433
|
:type project_id: str
|
|
@@ -501,9 +501,9 @@ class DefaultApi:
|
|
|
501
501
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
502
502
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
503
503
|
) -> RESTResponseType:
|
|
504
|
-
"""
|
|
504
|
+
"""Deletes the given STACKIT Git instance.
|
|
505
505
|
|
|
506
|
-
|
|
506
|
+
Allows a user with write-access to a project to schedule the deletion of a STACKIT Git instance, which will soon eliminate all repositories & user metadata associated with that instance. This is a destructive operation.
|
|
507
507
|
|
|
508
508
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
509
509
|
:type project_id: str
|
|
@@ -626,9 +626,9 @@ class DefaultApi:
|
|
|
626
626
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
627
627
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
628
628
|
) -> Instance:
|
|
629
|
-
"""
|
|
629
|
+
"""Returns the details for the given STACKIT Git instance.
|
|
630
630
|
|
|
631
|
-
|
|
631
|
+
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
|
|
632
632
|
|
|
633
633
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
634
634
|
:type project_id: str
|
|
@@ -701,9 +701,9 @@ class DefaultApi:
|
|
|
701
701
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
702
702
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
703
703
|
) -> ApiResponse[Instance]:
|
|
704
|
-
"""
|
|
704
|
+
"""Returns the details for the given STACKIT Git instance.
|
|
705
705
|
|
|
706
|
-
|
|
706
|
+
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
|
|
707
707
|
|
|
708
708
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
709
709
|
:type project_id: str
|
|
@@ -776,9 +776,9 @@ class DefaultApi:
|
|
|
776
776
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
777
777
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
778
778
|
) -> RESTResponseType:
|
|
779
|
-
"""
|
|
779
|
+
"""Returns the details for the given STACKIT Git instance.
|
|
780
780
|
|
|
781
|
-
|
|
781
|
+
Provides detailed information about the state of an instance within the specified project including information about how to access the instance for further use.
|
|
782
782
|
|
|
783
783
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
784
784
|
:type project_id: str
|
|
@@ -899,9 +899,9 @@ class DefaultApi:
|
|
|
899
899
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
900
900
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
901
901
|
) -> ListInstances:
|
|
902
|
-
"""
|
|
902
|
+
"""Returns a list of all STACKIT Git instances within the project.
|
|
903
903
|
|
|
904
|
-
|
|
904
|
+
STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
|
|
905
905
|
|
|
906
906
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
907
907
|
:type project_id: str
|
|
@@ -969,9 +969,9 @@ class DefaultApi:
|
|
|
969
969
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
970
970
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
971
971
|
) -> ApiResponse[ListInstances]:
|
|
972
|
-
"""
|
|
972
|
+
"""Returns a list of all STACKIT Git instances within the project.
|
|
973
973
|
|
|
974
|
-
|
|
974
|
+
STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
|
|
975
975
|
|
|
976
976
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
977
977
|
:type project_id: str
|
|
@@ -1039,9 +1039,9 @@ class DefaultApi:
|
|
|
1039
1039
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1040
1040
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1041
1041
|
) -> RESTResponseType:
|
|
1042
|
-
"""
|
|
1042
|
+
"""Returns a list of all STACKIT Git instances within the project.
|
|
1043
1043
|
|
|
1044
|
-
|
|
1044
|
+
STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.
|
|
1045
1045
|
|
|
1046
1046
|
:param project_id: The STACKIT portal project UUID the STACKIT Git instance is part of. (required)
|
|
1047
1047
|
:type project_id: str
|
|
@@ -82,7 +82,7 @@ class ApiClient:
|
|
|
82
82
|
self.default_headers[header_name] = header_value
|
|
83
83
|
self.cookie = cookie
|
|
84
84
|
# Set default User-Agent.
|
|
85
|
-
self.user_agent = "
|
|
85
|
+
self.user_agent = "stackit-sdk-python/git"
|
|
86
86
|
|
|
87
87
|
def __enter__(self):
|
|
88
88
|
return self
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
"""
|
|
4
9
|
STACKIT Git API
|
|
5
10
|
|
|
@@ -12,8 +17,6 @@
|
|
|
12
17
|
Do not edit the class manually.
|
|
13
18
|
""" # noqa: E501 docstring might be too long
|
|
14
19
|
|
|
15
|
-
import os
|
|
16
|
-
|
|
17
20
|
|
|
18
21
|
class HostConfiguration:
|
|
19
22
|
def __init__(
|
|
@@ -30,6 +33,7 @@ class HostConfiguration:
|
|
|
30
33
|
"as a function argument instead of being set in the client configuration.\n"
|
|
31
34
|
"Once all services have migrated, the methods to specify the region in the client configuration "
|
|
32
35
|
"will be removed.",
|
|
36
|
+
file=sys.stderr,
|
|
33
37
|
)
|
|
34
38
|
"""Constructor
|
|
35
39
|
"""
|
|
@@ -36,8 +36,8 @@ class CreateInstancePayload(BaseModel):
|
|
|
36
36
|
@field_validator("name")
|
|
37
37
|
def name_validate_regular_expression(cls, value):
|
|
38
38
|
"""Validates the regular expression"""
|
|
39
|
-
if not re.match(r"^[a-
|
|
40
|
-
raise ValueError(r"must validate the regular expression /^[a-
|
|
39
|
+
if not re.match(r"^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$", value):
|
|
40
|
+
raise ValueError(r"must validate the regular expression /^[a-z]([a-z0-9\-]){0,30}[a-z0-9]+$/")
|
|
41
41
|
return value
|
|
42
42
|
|
|
43
43
|
model_config = ConfigDict(
|
|
@@ -28,21 +28,21 @@ class Instance(BaseModel):
|
|
|
28
28
|
Describes a STACKIT Git instance.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
-
created: datetime = Field(description="The date and time the creation of the STACKIT
|
|
31
|
+
created: datetime = Field(description="The date and time the creation of the STACKIT Git instance was triggered.")
|
|
32
32
|
id: Annotated[str, Field(strict=True, max_length=36)] = Field(
|
|
33
|
-
description="A auto generated unique id which identifies the STACKIT
|
|
33
|
+
description="A auto generated unique id which identifies the STACKIT Git instances."
|
|
34
34
|
)
|
|
35
35
|
name: Annotated[str, Field(strict=True, max_length=32)] = Field(
|
|
36
|
-
description="A user chosen name to distinguish multiple STACKIT
|
|
36
|
+
description="A user chosen name to distinguish multiple STACKIT Git instances."
|
|
37
37
|
)
|
|
38
38
|
state: Annotated[str, Field(strict=True, max_length=32)] = Field(
|
|
39
|
-
description="The current state of the STACKIT
|
|
39
|
+
description="The current state of the STACKIT Git instance."
|
|
40
40
|
)
|
|
41
41
|
url: Annotated[str, Field(strict=True, max_length=2048)] = Field(
|
|
42
|
-
description="The URL for reaching the STACKIT
|
|
42
|
+
description="The URL for reaching the STACKIT Git instance."
|
|
43
43
|
)
|
|
44
44
|
version: Annotated[str, Field(strict=True, max_length=20)] = Field(
|
|
45
|
-
description="The current version of STACKIT
|
|
45
|
+
description="The current version of STACKIT Git deployed to the instance."
|
|
46
46
|
)
|
|
47
47
|
__properties: ClassVar[List[str]] = ["created", "id", "name", "state", "url", "version"]
|
|
48
48
|
|
|
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_git-0.1.0 → stackit_git-0.1.2}/src/stackit/git/models/internal_server_error_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|