-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generator: Update SDK /services/lbapplication (#468)
* Generate lbapplication * Update changelog --------- Co-authored-by: Vicente Pinto <[email protected]>
- Loading branch information
1 parent
26926ad
commit a65432d
Showing
53 changed files
with
11,301 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## v0.1.0 (2024-12-23) | ||
|
||
- Manage your STACKIT Load Balancer applications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# stackit.lbapplication | ||
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. | ||
|
||
For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. | ||
|
||
|
||
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-lbapplication | ||
``` | ||
|
||
Then import the package: | ||
```python | ||
import stackit.lbapplication | ||
``` | ||
|
||
## 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. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
[tool.poetry] | ||
name = "stackit-lbapplication" | ||
version = "v0.0.1a" | ||
authors = [ | ||
"STACKIT Developer Tools <[email protected]>", | ||
] | ||
description = "Application Load Balancer 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 | ||
""" |
99 changes: 99 additions & 0 deletions
99
services/lbapplication/src/stackit/lbapplication/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# coding: utf-8 | ||
|
||
# flake8: noqa | ||
|
||
""" | ||
Application Load Balancer API | ||
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. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. | ||
The version of the OpenAPI document: 1beta.0.0 | ||
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.lbapplication.api.default_api import DefaultApi | ||
from stackit.lbapplication.api_client import ApiClient | ||
|
||
# import ApiClient | ||
from stackit.lbapplication.api_response import ApiResponse | ||
from stackit.lbapplication.configuration import HostConfiguration | ||
from stackit.lbapplication.exceptions import ( | ||
ApiAttributeError, | ||
ApiException, | ||
ApiKeyError, | ||
ApiTypeError, | ||
ApiValueError, | ||
OpenApiException, | ||
) | ||
|
||
# import models into sdk package | ||
from stackit.lbapplication.models.active_health_check import ActiveHealthCheck | ||
from stackit.lbapplication.models.certificate_config import CertificateConfig | ||
from stackit.lbapplication.models.cookie_persistence import CookiePersistence | ||
from stackit.lbapplication.models.create_credentials_payload import ( | ||
CreateCredentialsPayload, | ||
) | ||
from stackit.lbapplication.models.create_credentials_response import ( | ||
CreateCredentialsResponse, | ||
) | ||
from stackit.lbapplication.models.create_load_balancer_payload import ( | ||
CreateLoadBalancerPayload, | ||
) | ||
from stackit.lbapplication.models.credentials_response import CredentialsResponse | ||
from stackit.lbapplication.models.get_credentials_response import GetCredentialsResponse | ||
from stackit.lbapplication.models.get_quota_response import GetQuotaResponse | ||
from stackit.lbapplication.models.get_service_status_response import ( | ||
GetServiceStatusResponse, | ||
) | ||
from stackit.lbapplication.models.google_protobuf_any import GoogleProtobufAny | ||
from stackit.lbapplication.models.header import Header | ||
from stackit.lbapplication.models.http_config import HTTPConfig | ||
from stackit.lbapplication.models.http_health_checks import HttpHealthChecks | ||
from stackit.lbapplication.models.list_credentials_response import ( | ||
ListCredentialsResponse, | ||
) | ||
from stackit.lbapplication.models.list_load_balancers_response import ( | ||
ListLoadBalancersResponse, | ||
) | ||
from stackit.lbapplication.models.list_plans_response import ListPlansResponse | ||
from stackit.lbapplication.models.listener import Listener | ||
from stackit.lbapplication.models.load_balancer import LoadBalancer | ||
from stackit.lbapplication.models.load_balancer_error import LoadBalancerError | ||
from stackit.lbapplication.models.load_balancer_options import LoadBalancerOptions | ||
from stackit.lbapplication.models.loadbalancer_option_access_control import ( | ||
LoadbalancerOptionAccessControl, | ||
) | ||
from stackit.lbapplication.models.loadbalancer_option_logs import LoadbalancerOptionLogs | ||
from stackit.lbapplication.models.loadbalancer_option_metrics import ( | ||
LoadbalancerOptionMetrics, | ||
) | ||
from stackit.lbapplication.models.loadbalancer_option_observability import ( | ||
LoadbalancerOptionObservability, | ||
) | ||
from stackit.lbapplication.models.matcher import Matcher | ||
from stackit.lbapplication.models.network import Network | ||
from stackit.lbapplication.models.plan_details import PlanDetails | ||
from stackit.lbapplication.models.protocol_options_https import ProtocolOptionsHTTPS | ||
from stackit.lbapplication.models.query_parameters import QueryParameters | ||
from stackit.lbapplication.models.rule import Rule | ||
from stackit.lbapplication.models.status import Status | ||
from stackit.lbapplication.models.target import Target | ||
from stackit.lbapplication.models.target_pool import TargetPool | ||
from stackit.lbapplication.models.update_credentials_payload import ( | ||
UpdateCredentialsPayload, | ||
) | ||
from stackit.lbapplication.models.update_credentials_response import ( | ||
UpdateCredentialsResponse, | ||
) | ||
from stackit.lbapplication.models.update_load_balancer_payload import ( | ||
UpdateLoadBalancerPayload, | ||
) | ||
from stackit.lbapplication.models.update_target_pool_payload import ( | ||
UpdateTargetPoolPayload, | ||
) |
4 changes: 4 additions & 0 deletions
4
services/lbapplication/src/stackit/lbapplication/api/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# flake8: noqa | ||
|
||
# import apis into api package | ||
from stackit.lbapplication.api.default_api import DefaultApi |
Oops, something went wrong.