Skip to content

Commit a14fe78

Browse files
authored
Merge branch 'main' into generator-bot-11795536291/iaas
2 parents f07fe6c + dd66afa commit a14fe78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+588
-44
lines changed

.github/workflows/cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ jobs:
3131
- name: Build & Publish to PyPi
3232
run: |
3333
pip install poetry
34-
cd $PACKAGE_PATH
35-
poetry publish --build --username="__token__" --no-interaction --password="${{ secrets.PYPI_TOKEN }}"
34+
cd $PACKAGE_PATH
35+
poetry publish --build --username="__token__" --no-interaction --password="${{ secrets.PYPI_TOKEN }}"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Check Version Update
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
check-version:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Push tag for each updated package
14+
run: |
15+
git config --global user.name "SDK Releaser Bot"
16+
git config --global user.email "[email protected]"
17+
18+
for file in $(git diff --name-only HEAD~1..HEAD | grep pyproject.toml); do
19+
# Extract the change regarding the version from the pyproject.toml file
20+
version_changes=$(git diff HEAD~1..HEAD $file | grep "version =")
21+
# Check if the extracted change is not empty
22+
if [ -n "$version_changes" ]; then
23+
# Split all found version changes, so we can compare the old and new version.
24+
splitted_version_changes=($(echo "$version_changes" | grep -oP '(?<=version = )[^ ]*'))
25+
# Only create a tag if there has been an actual change in the version, not just a format change.
26+
if [ $(echo "${splitted_version_changes[@]}" | tr ' ' '\n' | sort -u | wc -l) -ne 1 ]; then
27+
dirpath=$(dirname $file)
28+
# Extract just the version number
29+
current_version=$(grep -o "version = .*" ${file} | cut -d '=' -f 2-)
30+
dirpath=$(dirname $file)
31+
cleaned_version=$(echo "$current_version" | tr -d '" ')
32+
# Create the tag based on the updated service and the new version
33+
tag=$(echo "${dirpath}/${cleaned_version}")
34+
git tag -a $tag -m "Release $cleaned_version"
35+
git push origin tag $tag
36+
fi
37+
fi
38+
done

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ install:
88

99
install-dev:
1010
# install core
11-
pip install -e core;poetry install -C core --only dev --no-root
11+
pip install -e core && poetry install -C core --only dev --no-root
1212
# install services
1313
@for f in $(shell ls ${SERVICES_DIR}); do pip install -e ${SERVICES_DIR}/$${f};poetry install -C ${SERVICES_DIR}/$${f} --only dev --no-root; done
1414

1515
test:
1616
# test core
17-
cd core; pytest; cd ..;
17+
cd core && pytest && cd ..
1818
# test services
1919
@for f in $(shell ls ${SERVICES_DIR}); do set -e; cd ${SERVICES_DIR}/$${f}; sh -c 'pytest || ([ $$? = 5 ] && exit 0 || exit $$?)'; cd ../..; done
2020

core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "stackit-core"
3-
version = "0.0.1a1"
3+
version = "0.0.1a"
44
authors = [
55
"STACKIT Developer Tools <[email protected]>",
66
]
File renamed without changes.

services/dns/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/iaasalpha/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.iaasalpha
2+
This API allows you to create and modify IaaS resources.
3+
4+
For more information, please visit [https://support.stackit.cloud/servicedesk](https://support.stackit.cloud/servicedesk)
5+
6+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-iaasalpha
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.iaasalpha
19+
```
20+
21+
## Getting Started
22+
23+
[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.

services/iaasalpha/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"STACKIT IaaS Teams <[email protected]>",
66
]
77
description = "IaaS-API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/loadbalancer/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# stackit.loadbalancer
2+
This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes.
3+
4+
For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee.
5+
6+
7+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
8+
9+
10+
## Installation & Usage
11+
### pip install
12+
13+
```sh
14+
pip install stackit-loadbalancer
15+
```
16+
17+
Then import the package:
18+
```python
19+
import stackit.loadbalancer
20+
```
21+
22+
## Getting Started
23+
24+
[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.

services/loadbalancer/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"OpenAPI Generator Community <[email protected]>",
66
]
77
description = "Load Balancer API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/logme/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.logme
2+
The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
3+
4+
For more information, please visit [https://docs.stackit.cloud/stackit/en/support-area-72063304.html](https://docs.stackit.cloud/stackit/en/support-area-72063304.html)
5+
6+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-logme
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.logme
19+
```
20+
21+
## Getting Started
22+
23+
[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.

services/logme/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"OpenAPI Generator Community <[email protected]>",
66
]
77
description = "STACKIT LogMe API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/mariadb/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.mariadb
2+
The STACKIT MariaDB API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
3+
4+
For more information, please visit [https://docs.stackit.cloud/stackit/en/support-area-72063304.html](https://docs.stackit.cloud/stackit/en/support-area-72063304.html)
5+
6+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-mariadb
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.mariadb
19+
```
20+
21+
## Getting Started
22+
23+
[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.

services/mariadb/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"OpenAPI Generator Community <[email protected]>",
66
]
77
description = "STACKIT MariaDB API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/mongodbflex/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.mongodbflex
2+
This is the documentation for the STACKIT MongoDB Flex Service API
3+
4+
For more information, please visit [https://www.stackit.de/en/contact](https://www.stackit.de/en/contact)
5+
6+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-mongodbflex
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.mongodbflex
19+
```
20+
21+
## Getting Started
22+
23+
[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.

services/mongodbflex/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"STACKIT MongoDB Service Support <[email protected]>",
66
]
77
description = "STACKIT MongoDB Service API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/objectstorage/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.objectstorage
2+
STACKIT API to manage the Object Storage
3+
4+
5+
6+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-objectstorage
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.objectstorage
19+
```
20+
21+
## Getting Started
22+
23+
[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.

services/objectstorage/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"OpenAPI Generator Community <[email protected]>",
66
]
77
description = "STACKIT Object Storage API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/observability/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# stackit.observability
2+
API endpoints for Observability on STACKIT
3+
4+
5+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
6+
7+
8+
## Installation & Usage
9+
### pip install
10+
11+
```sh
12+
pip install stackit-observability
13+
```
14+
15+
Then import the package:
16+
```python
17+
import stackit.observability
18+
```
19+
20+
## Getting Started
21+
22+
[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.

services/observability/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
"OpenAPI Generator Community <[email protected]>",
66
]
77
description = "STACKIT Observability API"
8-
#readme = "README.md"
8+
readme = "README.md"
99
#license = "NoLicense"
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
@@ -102,4 +102,4 @@ per-file-ignores = """
102102
# E501: long descriptions/string values might lead to lines that are too long
103103
# B028: stacklevel for deprecation warning is irrelevant
104104
./src/stackit/*/api/default_api.py: F841,B028,E501
105-
"""
105+
"""

services/opensearch/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.opensearch
2+
The STACKIT Opensearch API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
3+
4+
For more information, please visit [https://docs.stackit.cloud/stackit/en/support-area-72063304.html](https://docs.stackit.cloud/stackit/en/support-area-72063304.html)
5+
6+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-opensearch
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.opensearch
19+
```
20+
21+
## Getting Started
22+
23+
[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.

0 commit comments

Comments
 (0)