Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
- **Feature:** Add new methods to manage snapshots: `create_snapshot`, `delete_snapshot`, `get_snapshot`, `list_snapshot`, `update_snapshot`
- `serverupdate`: [v0.1.1](services/serverupdate/CHANGELOG.md#v011-2024-12-23)
- **Bugfix:** `Id` field of `Update` model is now of type `int64` (was `string`)
- `stackitmarketplace`: [v0.1.0](services/stackitmarketplace/CHANGELOG.md#v010-2025-01-13)
- **New**: STACKIT Marketplace module can be used to manage the STACKIT Marketplace.

## Release (2024-12-04)

Expand Down
3 changes: 3 additions & 0 deletions services/stackitmarketplace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## v0.1.0 (2025-01-13)

- **New**: STACKIT Marketplace module can be used to manage the STACKIT Marketplace.
22 changes: 22 additions & 0 deletions services/stackitmarketplace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# stackit.stackitmarketplace
API to manage STACKIT Marketplace.


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.


## Installation & Usage
### pip install

```sh
pip install stackit-stackitmarketplace
```

Then import the package:
```python
import stackit.stackitmarketplace
```

## Getting Started

[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.
108 changes: 108 additions & 0 deletions services/stackitmarketplace/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
[project]
name = "stackit-stackitmarketplace"

[tool.poetry]
name = "stackit-stackitmarketplace"
version = "v0.0.1a"
authors = [
"STACKIT Developer Tools <[email protected]>",
]
description = "STACKIT Marketplace API"
readme = "README.md"
#license = "NoLicense"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
packages = [
{ include = "stackit", from="src" }
]

[tool.poetry.dependencies]
python = ">=3.8,<4.0"
stackit-core = ">=0.0.1a"
requests = ">=2.32.3"
pydantic = ">=2.9.2"
python-dateutil = ">=2.9.0.post0"

[tool.poetry.group.dev.dependencies]
black = ">=24.8.0"
pytest = ">=8.3.3"
flake8 = [
{ version= ">=5.0.3", python="<3.12"},
{ version= ">=6.0.1", python=">=3.12"}
]
flake8-black = ">=0.3.6"
flake8-pyproject = ">=1.2.3"
autoimport = ">=1.6.1"
flake8-eol = ">=0.0.8"
flake8-eradicate = ">=1.5.0"
flake8-bandit = ">=4.1.1"
flake8-bugbear = ">=23.1.14"
flake8-quotes = ">=3.4.0"
isort = ">=5.13.2"

[project.urls]
Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"

[build-system]
requires = ["setuptools", "poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
pythonpath = [
"src"
]
testpaths = [
"tests"
]

[tool.black]
line-length = 120
exclude = """
/(
.eggs
| .git
| .hg
| .mypy_cache
| .nox
| .pants.d
| .tox
| .venv
| _build
| buck-out
| build
| dist
| node_modules
| venv
)/
"""

[tool.isort]
profile = 'black'

[tool.flake8]
exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
statistics = true
show-source = false
max-line-length = 120
# E203,W503 and E704 are incompatible with the formatter black
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
ignore = ["E203", "W503", "E704", "W291"]
inline-quotes = '"'
docstring-quotes = '"""'
multiline-quotes = '"""'
ban-relative-imports = true
per-file-ignores = """
# asserts are fine in tests, tests shouldn't be build optimized
./tests/*: S101,
# F841: some variables get generated but may not be used, depending on the api-spec
# E501: long descriptions/string values might lead to lines that are too long
./src/stackit/*/models/*: F841,E501
# F841: some variables get generated but may not be used, depending on the api-spec
# E501: long descriptions/string values might lead to lines that are too long
# B028: stacklevel for deprecation warning is irrelevant
./src/stackit/*/api/default_api.py: F841,B028,E501
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# coding: utf-8

# flake8: noqa

"""
STACKIT Marketplace API

API to manage STACKIT Marketplace.

The version of the OpenAPI document: 1
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501 docstring might be too long


__version__ = "1.0.0"

# import apis into sdk package
from stackit.stackitmarketplace.api.default_api import DefaultApi
from stackit.stackitmarketplace.api_client import ApiClient

# import ApiClient
from stackit.stackitmarketplace.api_response import ApiResponse
from stackit.stackitmarketplace.configuration import HostConfiguration
from stackit.stackitmarketplace.exceptions import (
ApiAttributeError,
ApiException,
ApiKeyError,
ApiTypeError,
ApiValueError,
OpenApiException,
)

# import models into sdk package
from stackit.stackitmarketplace.models.catalog_pricing_option_highlight import (
CatalogPricingOptionHighlight,
)
from stackit.stackitmarketplace.models.catalog_product_detail import (
CatalogProductDetail,
)
from stackit.stackitmarketplace.models.catalog_product_details_vendor import (
CatalogProductDetailsVendor,
)
from stackit.stackitmarketplace.models.catalog_product_highlight import (
CatalogProductHighlight,
)
from stackit.stackitmarketplace.models.catalog_product_overview import (
CatalogProductOverview,
)
from stackit.stackitmarketplace.models.catalog_product_overview_vendor import (
CatalogProductOverviewVendor,
)
from stackit.stackitmarketplace.models.catalog_product_pricing_option import (
CatalogProductPricingOption,
)
from stackit.stackitmarketplace.models.catalog_product_support_resource import (
CatalogProductSupportResource,
)
from stackit.stackitmarketplace.models.catalog_product_vendor_terms import (
CatalogProductVendorTerms,
)
from stackit.stackitmarketplace.models.current_subscription_state_response import (
CurrentSubscriptionStateResponse,
)
from stackit.stackitmarketplace.models.error_response import ErrorResponse
from stackit.stackitmarketplace.models.list_catalog_products_response import (
ListCatalogProductsResponse,
)
from stackit.stackitmarketplace.models.list_vendor_subscriptions_response import (
ListVendorSubscriptionsResponse,
)
from stackit.stackitmarketplace.models.requested_subscription_state_response import (
RequestedSubscriptionStateResponse,
)
from stackit.stackitmarketplace.models.resolve_customer_payload import (
ResolveCustomerPayload,
)
from stackit.stackitmarketplace.models.subscription_cancel_response import (
SubscriptionCancelResponse,
)
from stackit.stackitmarketplace.models.subscription_product import SubscriptionProduct
from stackit.stackitmarketplace.models.vendor_subscription import VendorSubscription
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# flake8: noqa

# import apis into api package
from stackit.stackitmarketplace.api.default_api import DefaultApi
Loading
Loading