Skip to content

Commit 858c124

Browse files
Generate sfs
1 parent 315629e commit 858c124

Some content is hidden

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

53 files changed

+13477
-0
lines changed

services/sfs/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# stackit.sfs
2+
API used to create and manage NFS Shares.
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-sfs
13+
```
14+
15+
Then import the package:
16+
```python
17+
import stackit.sfs
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/sfs/poetry.lock

Lines changed: 1778 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/sfs/pyproject.toml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
[project]
2+
name = "stackit-sfs"
3+
4+
[tool.poetry]
5+
name = "stackit-sfs"
6+
version = "v0.0.1a"
7+
authors = [
8+
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
9+
]
10+
description = "STACKIT File Storage (SFS)"
11+
readme = "README.md"
12+
#license = "NoLicense"
13+
classifiers = [
14+
"Programming Language :: Python :: 3",
15+
"License :: OSI Approved :: Apache Software License",
16+
"Operating System :: OS Independent",
17+
]
18+
packages = [
19+
{ include = "stackit", from="src" }
20+
]
21+
22+
[tool.poetry.dependencies]
23+
python = "^3.9"
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+
[project.urls]
47+
Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
48+
Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
49+
50+
[build-system]
51+
requires = ["setuptools", "poetry-core"]
52+
build-backend = "poetry.core.masonry.api"
53+
54+
[tool.pytest.ini_options]
55+
pythonpath = [
56+
"src"
57+
]
58+
testpaths = [
59+
"tests"
60+
]
61+
62+
[tool.black]
63+
line-length = 120
64+
exclude = """
65+
/(
66+
.eggs
67+
| .git
68+
| .hg
69+
| .mypy_cache
70+
| .nox
71+
| .pants.d
72+
| .tox
73+
| .venv
74+
| _build
75+
| buck-out
76+
| build
77+
| dist
78+
| node_modules
79+
| venv
80+
)/
81+
"""
82+
83+
[tool.isort]
84+
profile = 'black'
85+
86+
[tool.flake8]
87+
exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
88+
statistics = true
89+
show-source = false
90+
max-line-length = 120
91+
# E203,W503 and E704 are incompatible with the formatter black
92+
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
93+
ignore = ["E203", "W503", "E704", "W291"]
94+
inline-quotes = '"'
95+
docstring-quotes = '"""'
96+
multiline-quotes = '"""'
97+
ban-relative-imports = true
98+
# Exclude generated code
99+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
STACKIT File Storage (SFS)
7+
8+
API used to create and manage NFS Shares.
9+
10+
The version of the OpenAPI document: 1beta.0.0
11+
Generated by OpenAPI Generator (https://openapi-generator.tech)
12+
13+
Do not edit the class manually.
14+
""" # noqa: E501
15+
16+
17+
__version__ = "1.0.0"
18+
19+
# Define package exports
20+
__all__ = [
21+
"DefaultApi",
22+
"ApiResponse",
23+
"ApiClient",
24+
"HostConfiguration",
25+
"OpenApiException",
26+
"ApiTypeError",
27+
"ApiValueError",
28+
"ApiKeyError",
29+
"ApiAttributeError",
30+
"ApiException",
31+
"CreateResourcePoolPayload",
32+
"CreateResourcePoolResponse",
33+
"CreateResourcePoolSnapshotPayload",
34+
"CreateResourcePoolSnapshotResponse",
35+
"CreateShareExportPolicyPayload",
36+
"CreateShareExportPolicyRequestRule",
37+
"CreateShareExportPolicyResponse",
38+
"CreateSharePayload",
39+
"CreateShareResponse",
40+
"Error",
41+
"GetResourcePoolResponse",
42+
"GetResourcePoolSnapshotResponse",
43+
"GetShareExportPolicyResponse",
44+
"GetShareResponse",
45+
"GoogleProtobufAny",
46+
"ListPerformanceClassesResponse",
47+
"ListResourcePoolSnapshotsResponse",
48+
"ListResourcePoolsResponse",
49+
"ListShareExportPoliciesResponse",
50+
"ListSharesResponse",
51+
"ListSnapshotSchedulesResponse",
52+
"PerformanceClass",
53+
"ResourcePool",
54+
"ResourcePoolPerformanceClass",
55+
"ResourcePoolSnapshot",
56+
"ResourcePoolSpace",
57+
"Share",
58+
"ShareExportPolicy",
59+
"ShareExportPolicyRule",
60+
"SnapshotSchedule",
61+
"Status",
62+
"UpdateResourcePoolPayload",
63+
"UpdateResourcePoolResponse",
64+
"UpdateShareExportPolicyBodyRule",
65+
"UpdateShareExportPolicyPayload",
66+
"UpdateShareExportPolicyResponse",
67+
"UpdateSharePayload",
68+
"UpdateShareResponse",
69+
"ValidationError",
70+
"ValidationErrorField",
71+
]
72+
73+
# import apis into sdk package
74+
from stackit.sfs.api.default_api import DefaultApi as DefaultApi
75+
from stackit.sfs.api_client import ApiClient as ApiClient
76+
77+
# import ApiClient
78+
from stackit.sfs.api_response import ApiResponse as ApiResponse
79+
from stackit.sfs.configuration import HostConfiguration as HostConfiguration
80+
from stackit.sfs.exceptions import ApiAttributeError as ApiAttributeError
81+
from stackit.sfs.exceptions import ApiException as ApiException
82+
from stackit.sfs.exceptions import ApiKeyError as ApiKeyError
83+
from stackit.sfs.exceptions import ApiTypeError as ApiTypeError
84+
from stackit.sfs.exceptions import ApiValueError as ApiValueError
85+
from stackit.sfs.exceptions import OpenApiException as OpenApiException
86+
87+
# import models into sdk package
88+
from stackit.sfs.models.create_resource_pool_payload import (
89+
CreateResourcePoolPayload as CreateResourcePoolPayload,
90+
)
91+
from stackit.sfs.models.create_resource_pool_response import (
92+
CreateResourcePoolResponse as CreateResourcePoolResponse,
93+
)
94+
from stackit.sfs.models.create_resource_pool_snapshot_payload import (
95+
CreateResourcePoolSnapshotPayload as CreateResourcePoolSnapshotPayload,
96+
)
97+
from stackit.sfs.models.create_resource_pool_snapshot_response import (
98+
CreateResourcePoolSnapshotResponse as CreateResourcePoolSnapshotResponse,
99+
)
100+
from stackit.sfs.models.create_share_export_policy_payload import (
101+
CreateShareExportPolicyPayload as CreateShareExportPolicyPayload,
102+
)
103+
from stackit.sfs.models.create_share_export_policy_request_rule import (
104+
CreateShareExportPolicyRequestRule as CreateShareExportPolicyRequestRule,
105+
)
106+
from stackit.sfs.models.create_share_export_policy_response import (
107+
CreateShareExportPolicyResponse as CreateShareExportPolicyResponse,
108+
)
109+
from stackit.sfs.models.create_share_payload import (
110+
CreateSharePayload as CreateSharePayload,
111+
)
112+
from stackit.sfs.models.create_share_response import (
113+
CreateShareResponse as CreateShareResponse,
114+
)
115+
from stackit.sfs.models.error import Error as Error
116+
from stackit.sfs.models.get_resource_pool_response import (
117+
GetResourcePoolResponse as GetResourcePoolResponse,
118+
)
119+
from stackit.sfs.models.get_resource_pool_snapshot_response import (
120+
GetResourcePoolSnapshotResponse as GetResourcePoolSnapshotResponse,
121+
)
122+
from stackit.sfs.models.get_share_export_policy_response import (
123+
GetShareExportPolicyResponse as GetShareExportPolicyResponse,
124+
)
125+
from stackit.sfs.models.get_share_response import GetShareResponse as GetShareResponse
126+
from stackit.sfs.models.google_protobuf_any import (
127+
GoogleProtobufAny as GoogleProtobufAny,
128+
)
129+
from stackit.sfs.models.list_performance_classes_response import (
130+
ListPerformanceClassesResponse as ListPerformanceClassesResponse,
131+
)
132+
from stackit.sfs.models.list_resource_pool_snapshots_response import (
133+
ListResourcePoolSnapshotsResponse as ListResourcePoolSnapshotsResponse,
134+
)
135+
from stackit.sfs.models.list_resource_pools_response import (
136+
ListResourcePoolsResponse as ListResourcePoolsResponse,
137+
)
138+
from stackit.sfs.models.list_share_export_policies_response import (
139+
ListShareExportPoliciesResponse as ListShareExportPoliciesResponse,
140+
)
141+
from stackit.sfs.models.list_shares_response import (
142+
ListSharesResponse as ListSharesResponse,
143+
)
144+
from stackit.sfs.models.list_snapshot_schedules_response import (
145+
ListSnapshotSchedulesResponse as ListSnapshotSchedulesResponse,
146+
)
147+
from stackit.sfs.models.performance_class import PerformanceClass as PerformanceClass
148+
from stackit.sfs.models.resource_pool import ResourcePool as ResourcePool
149+
from stackit.sfs.models.resource_pool_performance_class import (
150+
ResourcePoolPerformanceClass as ResourcePoolPerformanceClass,
151+
)
152+
from stackit.sfs.models.resource_pool_snapshot import (
153+
ResourcePoolSnapshot as ResourcePoolSnapshot,
154+
)
155+
from stackit.sfs.models.resource_pool_space import (
156+
ResourcePoolSpace as ResourcePoolSpace,
157+
)
158+
from stackit.sfs.models.share import Share as Share
159+
from stackit.sfs.models.share_export_policy import (
160+
ShareExportPolicy as ShareExportPolicy,
161+
)
162+
from stackit.sfs.models.share_export_policy_rule import (
163+
ShareExportPolicyRule as ShareExportPolicyRule,
164+
)
165+
from stackit.sfs.models.snapshot_schedule import SnapshotSchedule as SnapshotSchedule
166+
from stackit.sfs.models.status import Status as Status
167+
from stackit.sfs.models.update_resource_pool_payload import (
168+
UpdateResourcePoolPayload as UpdateResourcePoolPayload,
169+
)
170+
from stackit.sfs.models.update_resource_pool_response import (
171+
UpdateResourcePoolResponse as UpdateResourcePoolResponse,
172+
)
173+
from stackit.sfs.models.update_share_export_policy_body_rule import (
174+
UpdateShareExportPolicyBodyRule as UpdateShareExportPolicyBodyRule,
175+
)
176+
from stackit.sfs.models.update_share_export_policy_payload import (
177+
UpdateShareExportPolicyPayload as UpdateShareExportPolicyPayload,
178+
)
179+
from stackit.sfs.models.update_share_export_policy_response import (
180+
UpdateShareExportPolicyResponse as UpdateShareExportPolicyResponse,
181+
)
182+
from stackit.sfs.models.update_share_payload import (
183+
UpdateSharePayload as UpdateSharePayload,
184+
)
185+
from stackit.sfs.models.update_share_response import (
186+
UpdateShareResponse as UpdateShareResponse,
187+
)
188+
from stackit.sfs.models.validation_error import ValidationError as ValidationError
189+
from stackit.sfs.models.validation_error_field import (
190+
ValidationErrorField as ValidationErrorField,
191+
)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# flake8: noqa
2+
3+
# import apis into api package
4+
from stackit.sfs.api.default_api import DefaultApi

0 commit comments

Comments
 (0)