stackit-git 0.7.0__tar.gz → 0.9.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.
Files changed (42) hide show
  1. stackit_git-0.9.0/.gitignore +267 -0
  2. {stackit_git-0.7.0 → stackit_git-0.9.0}/PKG-INFO +10 -11
  3. {stackit_git-0.7.0 → stackit_git-0.9.0}/pyproject.toml +48 -36
  4. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/__init__.py +45 -9
  5. stackit_git-0.9.0/src/stackit/git/api/default_api.py +3971 -0
  6. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/api_client.py +36 -25
  7. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/exceptions.py +1 -1
  8. stackit_git-0.9.0/src/stackit/git/models/__init__.py +41 -0
  9. stackit_git-0.7.0/src/stackit/git/models/unauthorized_response.py → stackit_git-0.9.0/src/stackit/git/models/already_exists_error.py +11 -10
  10. stackit_git-0.9.0/src/stackit/git/models/authentication.py +163 -0
  11. stackit_git-0.9.0/src/stackit/git/models/authentication_list.py +100 -0
  12. stackit_git-0.7.0/src/stackit/git/models/runner_label.py → stackit_git-0.9.0/src/stackit/git/models/bad_error_response.py +14 -16
  13. stackit_git-0.9.0/src/stackit/git/models/conflict_error_response.py +84 -0
  14. stackit_git-0.9.0/src/stackit/git/models/create_authentication_payload.py +143 -0
  15. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/create_instance_payload.py +18 -6
  16. stackit_git-0.9.0/src/stackit/git/models/create_runner_payload.py +83 -0
  17. stackit_git-0.9.0/src/stackit/git/models/feature_toggle.py +127 -0
  18. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/flavor.py +4 -3
  19. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/generic_error_response.py +4 -3
  20. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/instance.py +17 -7
  21. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/internal_server_error_response.py +7 -5
  22. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/list_flavors.py +7 -6
  23. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/list_instances.py +7 -6
  24. stackit_git-0.9.0/src/stackit/git/models/not_found_error_response.py +84 -0
  25. stackit_git-0.9.0/src/stackit/git/models/patch_authentication_payload.py +141 -0
  26. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/patch_instance_payload.py +19 -5
  27. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/models/patch_operation.py +4 -3
  28. stackit_git-0.9.0/src/stackit/git/models/runner.py +109 -0
  29. stackit_git-0.9.0/src/stackit/git/models/runner_runtime.py +95 -0
  30. stackit_git-0.7.0/src/stackit/git/models/list_runner_labels.py → stackit_git-0.9.0/src/stackit/git/models/runner_runtime_list.py +19 -20
  31. stackit_git-0.9.0/src/stackit/git/models/unauthorized_error_response.py +110 -0
  32. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/rest.py +19 -3
  33. stackit_git-0.7.0/src/stackit/git/api/default_api.py +0 -1832
  34. stackit_git-0.7.0/src/stackit/git/models/__init__.py +0 -32
  35. stackit_git-0.7.0/src/stackit/git/models/instance_flavor.py +0 -37
  36. {stackit_git-0.7.0 → stackit_git-0.9.0}/LICENSE.md +0 -0
  37. {stackit_git-0.7.0 → stackit_git-0.9.0}/NOTICE.txt +0 -0
  38. {stackit_git-0.7.0 → stackit_git-0.9.0}/README.md +0 -0
  39. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/api/__init__.py +0 -0
  40. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/api_response.py +0 -0
  41. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/configuration.py +0 -0
  42. {stackit_git-0.7.0 → stackit_git-0.9.0}/src/stackit/git/py.typed +0 -0
@@ -0,0 +1,267 @@
1
+ ### VisualStudioCode template
2
+ .vscode/*
3
+ !.vscode/settings.json
4
+ !.vscode/tasks.json
5
+ !.vscode/launch.json
6
+ !.vscode/extensions.json
7
+ !.vscode/*.code-snippets
8
+
9
+ # Local History for Visual Studio Code
10
+ .history/
11
+
12
+ # Built Visual Studio Code Extensions
13
+ *.vsix
14
+
15
+ ### JetBrains template
16
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
17
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
18
+
19
+ # User-specific stuff
20
+ .idea/**/workspace.xml
21
+ .idea/**/tasks.xml
22
+ .idea/**/usage.statistics.xml
23
+ .idea/**/dictionaries
24
+ .idea/**/shelf
25
+
26
+ # AWS User-specific
27
+ .idea/**/aws.xml
28
+
29
+ # Generated files
30
+ .idea/**/contentModel.xml
31
+
32
+ # Sensitive or high-churn files
33
+ .idea/**/dataSources/
34
+ .idea/**/dataSources.ids
35
+ .idea/**/dataSources.local.xml
36
+ .idea/**/sqlDataSources.xml
37
+ .idea/**/dynamic.xml
38
+ .idea/**/uiDesigner.xml
39
+ .idea/**/dbnavigator.xml
40
+
41
+ # Gradle
42
+ .idea/**/gradle.xml
43
+ .idea/**/libraries
44
+
45
+ # Gradle and Maven with auto-import
46
+ # When using Gradle or Maven with auto-import, you should exclude module files,
47
+ # since they will be recreated, and may cause churn. Uncomment if using
48
+ # auto-import.
49
+ # .idea/artifacts
50
+ # .idea/compiler.xml
51
+ # .idea/jarRepositories.xml
52
+ # .idea/modules.xml
53
+ # .idea/*.iml
54
+ # .idea/modules
55
+ # *.iml
56
+ # *.ipr
57
+
58
+ # CMake
59
+ cmake-build-*/
60
+
61
+ # Mongo Explorer plugin
62
+ .idea/**/mongoSettings.xml
63
+
64
+ # File-based project format
65
+ *.iws
66
+
67
+ # IntelliJ
68
+ out/
69
+
70
+ # mpeltonen/sbt-idea plugin
71
+ .idea_modules/
72
+
73
+ # JIRA plugin
74
+ atlassian-ide-plugin.xml
75
+
76
+ # Cursive Clojure plugin
77
+ .idea/replstate.xml
78
+
79
+ # SonarLint plugin
80
+ .idea/sonarlint/
81
+
82
+ # Crashlytics plugin (for Android Studio and IntelliJ)
83
+ com_crashlytics_export_strings.xml
84
+ crashlytics.properties
85
+ crashlytics-build.properties
86
+ fabric.properties
87
+
88
+ # Editor-based Rest Client
89
+ .idea/httpRequests
90
+
91
+ # Android studio 3.1+ serialized cache file
92
+ .idea/caches/build_file_checksums.ser
93
+
94
+ ### VirtualEnv template
95
+ # Virtualenv
96
+ # http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
97
+ .Python
98
+ [Bb]in
99
+ [Ii]nclude
100
+ [Ll]ib
101
+ [Ll]ib64
102
+ [Ll]ocal
103
+ [Ss]cripts
104
+ pyvenv.cfg
105
+ .venv
106
+ pip-selfcheck.json
107
+
108
+ ### Python template
109
+ # Byte-compiled / optimized / DLL files
110
+ __pycache__/
111
+ *.py[cod]
112
+ *$py.class
113
+
114
+ # C extensions
115
+ *.so
116
+
117
+ # Distribution / packaging
118
+ build/
119
+ develop-eggs/
120
+ dist/
121
+ downloads/
122
+ eggs/
123
+ .eggs/
124
+ lib/
125
+ lib64/
126
+ parts/
127
+ sdist/
128
+ var/
129
+ wheels/
130
+ share/python-wheels/
131
+ *.egg-info/
132
+ .installed.cfg
133
+ *.egg
134
+ MANIFEST
135
+
136
+ # PyInstaller
137
+ # Usually these files are written by a python script from a template
138
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
139
+ *.manifest
140
+ *.spec
141
+
142
+ # Installer logs
143
+ pip-log.txt
144
+ pip-delete-this-directory.txt
145
+
146
+ # Unit test / coverage reports
147
+ htmlcov/
148
+ .tox/
149
+ .nox/
150
+ .coverage
151
+ .coverage.*
152
+ .cache
153
+ nosetests.xml
154
+ coverage.xml
155
+ *.cover
156
+ *.py,cover
157
+ .hypothesis/
158
+ .pytest_cache/
159
+ cover/
160
+
161
+ # Translations
162
+ *.mo
163
+ *.pot
164
+
165
+ # Django stuff:
166
+ *.log
167
+ local_settings.py
168
+ db.sqlite3
169
+ db.sqlite3-journal
170
+
171
+ # Flask stuff:
172
+ instance/
173
+ .webassets-cache
174
+
175
+ # Scrapy stuff:
176
+ .scrapy
177
+
178
+ # Sphinx documentation
179
+ docs/_build/
180
+
181
+ # PyBuilder
182
+ .pybuilder/
183
+ target/
184
+
185
+ # Jupyter Notebook
186
+ .ipynb_checkpoints
187
+
188
+ # IPython
189
+ profile_default/
190
+ ipython_config.py
191
+
192
+ # pyenv
193
+ # For a library or package, you might want to ignore these files since the code is
194
+ # intended to run in multiple environments; otherwise, check them in:
195
+ # .python-version
196
+
197
+ # pipenv
198
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
199
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
200
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
201
+ # install all needed dependencies.
202
+ #Pipfile.lock
203
+
204
+ # poetry
205
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
206
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
207
+ # commonly ignored for libraries.
208
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
209
+ #poetry.lock
210
+
211
+ # pdm
212
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
213
+ #pdm.lock
214
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
215
+ # in version control.
216
+ # https://pdm.fming.dev/#use-with-ide
217
+ .pdm.toml
218
+
219
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
220
+ __pypackages__/
221
+
222
+ # Celery stuff
223
+ celerybeat-schedule
224
+ celerybeat.pid
225
+
226
+ # SageMath parsed files
227
+ *.sage.py
228
+
229
+ # Environments
230
+ .env
231
+ env/
232
+ venv/
233
+ ENV/
234
+ env.bak/
235
+ venv.bak/
236
+
237
+ # Spyder project settings
238
+ .spyderproject
239
+ .spyproject
240
+
241
+ # Rope project settings
242
+ .ropeproject
243
+
244
+ # mkdocs documentation
245
+ /site
246
+
247
+ # mypy
248
+ .mypy_cache/
249
+ .dmypy.json
250
+ dmypy.json
251
+
252
+ # Pyre type checker
253
+ .pyre/
254
+
255
+ # pytype static type analyzer
256
+ .pytype/
257
+
258
+ # Cython debug symbols
259
+ cython_debug/
260
+
261
+ # PyCharm
262
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
263
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
264
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
265
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
266
+ .idea/
267
+
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-git
3
- Version: 0.7.0
3
+ Version: 0.9.0
4
4
  Summary: STACKIT Git API
5
+ Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
6
+ Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
7
+ Author-email: STACKIT Developer Tools <developer-tools@stackit.cloud>
5
8
  License-File: LICENSE.md
6
9
  License-File: NOTICE.txt
7
- Author: STACKIT Developer Tools
8
- Author-email: developer-tools@stackit.cloud
9
- Requires-Python: >=3.9,<4.0
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
@@ -16,12 +16,11 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Classifier: Programming Language :: Python :: 3.13
18
18
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Dist: pydantic (>=2.9.2)
20
- Requires-Dist: python-dateutil (>=2.9.0.post0)
21
- Requires-Dist: requests (>=2.32.3)
22
- Requires-Dist: stackit-core (>=0.0.1a)
23
- Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
24
- Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
19
+ Requires-Python: <4.0,>=3.9
20
+ Requires-Dist: pydantic>=2.9.2
21
+ Requires-Dist: python-dateutil>=2.9.0.post0
22
+ Requires-Dist: requests>=2.32.3
23
+ Requires-Dist: stackit-core>=0.0.1a
25
24
  Description-Content-Type: text/markdown
26
25
 
27
26
  # stackit.git
@@ -46,4 +45,4 @@ import stackit.git
46
45
 
47
46
  ## Getting Started
48
47
 
49
- [Examples](https://github.com/stackitcloud/stackit-sdk-python/tree/main/examples) for the usage of the package can be found in the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
48
+ [Examples](https://github.com/stackitcloud/stackit-sdk-python/tree/main/examples) for the usage of the package can be found in the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
@@ -1,55 +1,67 @@
1
1
  [project]
2
2
  name = "stackit-git"
3
-
4
- [tool.poetry]
5
- name = "stackit-git"
6
- version = "v0.7.0"
7
- authors = [
8
- "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
- ]
3
+ version = "v0.9.0"
10
4
  description = "STACKIT Git API"
5
+ authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
+ requires-python = ">=3.9,<4.0"
11
7
  readme = "README.md"
12
- #license = "NoLicense"
13
8
  classifiers = [
14
9
  "Programming Language :: Python :: 3",
15
10
  "License :: OSI Approved :: Apache Software License",
16
11
  "Operating System :: OS Independent",
12
+ "Programming Language :: Python :: 3.9",
13
+ "Programming Language :: Python :: 3.10",
14
+ "Programming Language :: Python :: 3.11",
15
+ "Programming Language :: Python :: 3.12",
16
+ "Programming Language :: Python :: 3.13",
17
+ "Programming Language :: Python :: 3.14",
17
18
  ]
18
- packages = [
19
- { include = "stackit", from="src" }
19
+ dependencies = [
20
+ "stackit-core>=0.0.1a",
21
+ "requests>=2.32.3",
22
+ "pydantic>=2.9.2",
23
+ "python-dateutil>=2.9.0.post0",
20
24
  ]
21
25
 
22
- [tool.poetry.dependencies]
23
- python = ">=3.9,<4.0"
24
- stackit-core = ">=0.0.1a"
25
- requests = ">=2.32.3"
26
- pydantic = ">=2.9.2"
27
- python-dateutil = ">=2.9.0.post0"
28
-
29
- [tool.poetry.group.dev.dependencies]
30
- black = ">=24.8.0"
31
- pytest = ">=8.3.3"
32
- flake8 = [
33
- { version= ">=5.0.3", python="<3.12"},
34
- { version= ">=6.0.1", python=">=3.12"}
35
- ]
36
- flake8-black = ">=0.3.6"
37
- flake8-pyproject = ">=1.2.3"
38
- autoimport = ">=1.6.1"
39
- flake8-eol = ">=0.0.8"
40
- flake8-eradicate = ">=1.5.0"
41
- flake8-bandit = ">=4.1.1"
42
- flake8-bugbear = ">=23.1.14"
43
- flake8-quotes = ">=3.4.0"
44
- isort = ">=5.13.2"
45
-
46
26
  [project.urls]
47
27
  Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
48
28
  Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
49
29
 
30
+ [dependency-groups]
31
+ dev = [
32
+ "black>=24.8.0",
33
+ "pytest>=8.3.3",
34
+ "flake8>=5.0.3 ; python_full_version < '3.12'",
35
+ "flake8>=6.0.1 ; python_full_version >= '3.12'",
36
+ "flake8-black>=0.3.6",
37
+ "flake8-pyproject>=1.2.3",
38
+ "autoimport>=1.6.1",
39
+ "flake8-eol>=0.0.8",
40
+ "flake8-eradicate>=1.5.0",
41
+ "flake8-bandit>=4.1.1",
42
+ "flake8-bugbear>=23.1.14",
43
+ "flake8-quotes>=3.4.0",
44
+ "isort>=5.13.2",
45
+ ]
46
+
47
+ [tool.uv]
48
+ default-groups = "all"
49
+
50
+ [tool.uv.sources]
51
+ stackit-core = { path = "../../core" }
52
+
53
+ [tool.hatch.build.targets.sdist]
54
+ include = ["src/stackit"]
55
+
56
+ [tool.hatch.build.targets.wheel]
57
+ include = ["src/stackit"]
58
+
59
+ [tool.hatch.build.targets.wheel.sources]
60
+ "src/stackit" = "stackit"
61
+
50
62
  [build-system]
51
- requires = ["setuptools", "poetry-core"]
52
- build-backend = "poetry.core.masonry.api"
63
+ requires = ["hatchling"]
64
+ build-backend = "hatchling.build"
53
65
 
54
66
  [tool.pytest.ini_options]
55
67
  pythonpath = [
@@ -29,19 +29,29 @@ __all__ = [
29
29
  "ApiKeyError",
30
30
  "ApiAttributeError",
31
31
  "ApiException",
32
+ "AlreadyExistsError",
33
+ "Authentication",
34
+ "AuthenticationList",
35
+ "BadErrorResponse",
36
+ "ConflictErrorResponse",
37
+ "CreateAuthenticationPayload",
32
38
  "CreateInstancePayload",
39
+ "CreateRunnerPayload",
40
+ "FeatureToggle",
33
41
  "Flavor",
34
42
  "GenericErrorResponse",
35
43
  "Instance",
36
- "InstanceFlavor",
37
44
  "InternalServerErrorResponse",
38
45
  "ListFlavors",
39
46
  "ListInstances",
40
- "ListRunnerLabels",
47
+ "NotFoundErrorResponse",
48
+ "PatchAuthenticationPayload",
41
49
  "PatchInstancePayload",
42
50
  "PatchOperation",
43
- "RunnerLabel",
44
- "UnauthorizedResponse",
51
+ "Runner",
52
+ "RunnerRuntime",
53
+ "RunnerRuntimeList",
54
+ "UnauthorizedErrorResponse",
45
55
  ]
46
56
 
47
57
  # import apis into sdk package
@@ -59,26 +69,52 @@ from stackit.git.exceptions import ApiValueError as ApiValueError
59
69
  from stackit.git.exceptions import OpenApiException as OpenApiException
60
70
 
61
71
  # import models into sdk package
72
+ from stackit.git.models.already_exists_error import (
73
+ AlreadyExistsError as AlreadyExistsError,
74
+ )
75
+ from stackit.git.models.authentication import Authentication as Authentication
76
+ from stackit.git.models.authentication_list import (
77
+ AuthenticationList as AuthenticationList,
78
+ )
79
+ from stackit.git.models.bad_error_response import BadErrorResponse as BadErrorResponse
80
+ from stackit.git.models.conflict_error_response import (
81
+ ConflictErrorResponse as ConflictErrorResponse,
82
+ )
83
+ from stackit.git.models.create_authentication_payload import (
84
+ CreateAuthenticationPayload as CreateAuthenticationPayload,
85
+ )
62
86
  from stackit.git.models.create_instance_payload import (
63
87
  CreateInstancePayload as CreateInstancePayload,
64
88
  )
89
+ from stackit.git.models.create_runner_payload import (
90
+ CreateRunnerPayload as CreateRunnerPayload,
91
+ )
92
+ from stackit.git.models.feature_toggle import FeatureToggle as FeatureToggle
65
93
  from stackit.git.models.flavor import Flavor as Flavor
66
94
  from stackit.git.models.generic_error_response import (
67
95
  GenericErrorResponse as GenericErrorResponse,
68
96
  )
69
97
  from stackit.git.models.instance import Instance as Instance
70
- from stackit.git.models.instance_flavor import InstanceFlavor as InstanceFlavor
71
98
  from stackit.git.models.internal_server_error_response import (
72
99
  InternalServerErrorResponse as InternalServerErrorResponse,
73
100
  )
74
101
  from stackit.git.models.list_flavors import ListFlavors as ListFlavors
75
102
  from stackit.git.models.list_instances import ListInstances as ListInstances
76
- from stackit.git.models.list_runner_labels import ListRunnerLabels as ListRunnerLabels
103
+ from stackit.git.models.not_found_error_response import (
104
+ NotFoundErrorResponse as NotFoundErrorResponse,
105
+ )
106
+ from stackit.git.models.patch_authentication_payload import (
107
+ PatchAuthenticationPayload as PatchAuthenticationPayload,
108
+ )
77
109
  from stackit.git.models.patch_instance_payload import (
78
110
  PatchInstancePayload as PatchInstancePayload,
79
111
  )
80
112
  from stackit.git.models.patch_operation import PatchOperation as PatchOperation
81
- from stackit.git.models.runner_label import RunnerLabel as RunnerLabel
82
- from stackit.git.models.unauthorized_response import (
83
- UnauthorizedResponse as UnauthorizedResponse,
113
+ from stackit.git.models.runner import Runner as Runner
114
+ from stackit.git.models.runner_runtime import RunnerRuntime as RunnerRuntime
115
+ from stackit.git.models.runner_runtime_list import (
116
+ RunnerRuntimeList as RunnerRuntimeList,
117
+ )
118
+ from stackit.git.models.unauthorized_error_response import (
119
+ UnauthorizedErrorResponse as UnauthorizedErrorResponse,
84
120
  )