Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
23 changes: 23 additions & 0 deletions services/scf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# stackit.scf
API endpoints for managing STACKIT Cloud Foundry

For more information, please visit [https://www.stackit.de/en/product/cloud-foundry/](https://www.stackit.de/en/product/cloud-foundry/)

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-scf
```

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

## 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.
1,412 changes: 1,412 additions & 0 deletions services/scf/poetry.lock

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions services/scf/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
[project]
name = "stackit-scf"

[tool.poetry]
name = "stackit-scf"
version = "v0.0.1a"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
description = "STACKIT Cloud Foundry 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.9"
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
# Exclude generated code
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
158 changes: 158 additions & 0 deletions services/scf/src/stackit/scf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# coding: utf-8

# flake8: noqa

"""
STACKIT Cloud Foundry API

API endpoints for managing STACKIT Cloud Foundry

The version of the OpenAPI document: 1.0.0
Contact: support@stackit.cloud
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"

# Define package exports
__all__ = [
"DefaultApi",
"ApiResponse",
"ApiClient",
"HostConfiguration",
"OpenApiException",
"ApiTypeError",
"ApiValueError",
"ApiKeyError",
"ApiAttributeError",
"ApiException",
"ApplyOrganizationQuotaPayload",
"CreateOrgRolePayload",
"CreateOrganizationPayload",
"CreateSpacePayload",
"CreateSpaceRolePayload",
"ErrorResponse",
"OrgManager",
"OrgManagerDeleteResponse",
"OrgManagerResponse",
"OrgRoleCreateBffRequest",
"OrgRoleResponse",
"OrgRoleType",
"Organization",
"OrganizationCreateResponse",
"OrganizationDeleteResponse",
"OrganizationQuota",
"OrganizationUsageSummary",
"OrganizationsList",
"OrganizationsListItem",
"Pagination",
"PlatformList",
"Platforms",
"Quota",
"QuotaApps",
"QuotaDomains",
"QuotaRoutes",
"QuotaServices",
"Space",
"SpaceDeleteResponse",
"SpaceRoleCreateBffRequest",
"SpaceRoleCreateBffResponse",
"SpaceRoleCreateResponse",
"SpaceRoleType",
"SpacesList",
"UpdateOrganizationPayload",
"UpdateSpacePayload",
"UsageSummary",
]

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

# import ApiClient
from stackit.scf.api_response import ApiResponse as ApiResponse
from stackit.scf.configuration import HostConfiguration as HostConfiguration
from stackit.scf.exceptions import ApiAttributeError as ApiAttributeError
from stackit.scf.exceptions import ApiException as ApiException
from stackit.scf.exceptions import ApiKeyError as ApiKeyError
from stackit.scf.exceptions import ApiTypeError as ApiTypeError
from stackit.scf.exceptions import ApiValueError as ApiValueError
from stackit.scf.exceptions import OpenApiException as OpenApiException

# import models into sdk package
from stackit.scf.models.apply_organization_quota_payload import (
ApplyOrganizationQuotaPayload as ApplyOrganizationQuotaPayload,
)
from stackit.scf.models.create_org_role_payload import (
CreateOrgRolePayload as CreateOrgRolePayload,
)
from stackit.scf.models.create_organization_payload import (
CreateOrganizationPayload as CreateOrganizationPayload,
)
from stackit.scf.models.create_space_payload import (
CreateSpacePayload as CreateSpacePayload,
)
from stackit.scf.models.create_space_role_payload import (
CreateSpaceRolePayload as CreateSpaceRolePayload,
)
from stackit.scf.models.error_response import ErrorResponse as ErrorResponse
from stackit.scf.models.org_manager import OrgManager as OrgManager
from stackit.scf.models.org_manager_delete_response import (
OrgManagerDeleteResponse as OrgManagerDeleteResponse,
)
from stackit.scf.models.org_manager_response import (
OrgManagerResponse as OrgManagerResponse,
)
from stackit.scf.models.org_role_create_bff_request import (
OrgRoleCreateBffRequest as OrgRoleCreateBffRequest,
)
from stackit.scf.models.org_role_response import OrgRoleResponse as OrgRoleResponse
from stackit.scf.models.org_role_type import OrgRoleType as OrgRoleType
from stackit.scf.models.organization import Organization as Organization
from stackit.scf.models.organization_create_response import (
OrganizationCreateResponse as OrganizationCreateResponse,
)
from stackit.scf.models.organization_delete_response import (
OrganizationDeleteResponse as OrganizationDeleteResponse,
)
from stackit.scf.models.organization_quota import OrganizationQuota as OrganizationQuota
from stackit.scf.models.organization_usage_summary import (
OrganizationUsageSummary as OrganizationUsageSummary,
)
from stackit.scf.models.organizations_list import OrganizationsList as OrganizationsList
from stackit.scf.models.organizations_list_item import (
OrganizationsListItem as OrganizationsListItem,
)
from stackit.scf.models.pagination import Pagination as Pagination
from stackit.scf.models.platform_list import PlatformList as PlatformList
from stackit.scf.models.platforms import Platforms as Platforms
from stackit.scf.models.quota import Quota as Quota
from stackit.scf.models.quota_apps import QuotaApps as QuotaApps
from stackit.scf.models.quota_domains import QuotaDomains as QuotaDomains
from stackit.scf.models.quota_routes import QuotaRoutes as QuotaRoutes
from stackit.scf.models.quota_services import QuotaServices as QuotaServices
from stackit.scf.models.space import Space as Space
from stackit.scf.models.space_delete_response import (
SpaceDeleteResponse as SpaceDeleteResponse,
)
from stackit.scf.models.space_role_create_bff_request import (
SpaceRoleCreateBffRequest as SpaceRoleCreateBffRequest,
)
from stackit.scf.models.space_role_create_bff_response import (
SpaceRoleCreateBffResponse as SpaceRoleCreateBffResponse,
)
from stackit.scf.models.space_role_create_response import (
SpaceRoleCreateResponse as SpaceRoleCreateResponse,
)
from stackit.scf.models.space_role_type import SpaceRoleType as SpaceRoleType
from stackit.scf.models.spaces_list import SpacesList as SpacesList
from stackit.scf.models.update_organization_payload import (
UpdateOrganizationPayload as UpdateOrganizationPayload,
)
from stackit.scf.models.update_space_payload import (
UpdateSpacePayload as UpdateSpacePayload,
)
from stackit.scf.models.usage_summary import UsageSummary as UsageSummary
4 changes: 4 additions & 0 deletions services/scf/src/stackit/scf/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# flake8: noqa

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