Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator: Update SDK /services/membership #338

Closed
wants to merge 1 commit into from
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/membership/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# stackit.membership
The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources.

For more information, please visit [https://developers.stackit.schwarz](https://developers.stackit.schwarz)

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

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

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

Large diffs are not rendered by default.

105 changes: 105 additions & 0 deletions services/membership/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
[tool.poetry]
name = "stackit-membership"
version = "v0.0.1a"
authors = [
"STACKIT Developer Tools <[email protected]>",
]
description = "STACKIT Membership 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
"""
82 changes: 82 additions & 0 deletions services/membership/src/stackit/membership/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# coding: utf-8

# flake8: noqa

"""
STACKIT Membership API

The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources.

The version of the OpenAPI document: 2.0
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.membership.api.default_api import DefaultApi
from stackit.membership.api_client import ApiClient

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

# import models into sdk package
from stackit.membership.models.add_members_payload import AddMembersPayload
from stackit.membership.models.add_roles_payload import AddRolesPayload
from stackit.membership.models.add_roles_payload_item import AddRolesPayloadItem
from stackit.membership.models.consistency import Consistency
from stackit.membership.models.create_resource_payload import CreateResourcePayload
from stackit.membership.models.create_resource_response import CreateResourceResponse
from stackit.membership.models.delete_resource_response import DeleteResourceResponse
from stackit.membership.models.delete_subject_response import DeleteSubjectResponse
from stackit.membership.models.enforce_permission_payload import (
EnforcePermissionPayload,
)
from stackit.membership.models.error_response import ErrorResponse
from stackit.membership.models.existing_permission import ExistingPermission
from stackit.membership.models.list_members_response import ListMembersResponse
from stackit.membership.models.list_permissions_response import ListPermissionsResponse
from stackit.membership.models.list_subject_ids_response import ListSubjectIdsResponse
from stackit.membership.models.list_subjects_response import ListSubjectsResponse
from stackit.membership.models.list_user_memberships_response import (
ListUserMembershipsResponse,
)
from stackit.membership.models.list_user_permissions_response import (
ListUserPermissionsResponse,
)
from stackit.membership.models.member import Member
from stackit.membership.models.members_response import MembersResponse
from stackit.membership.models.permission import Permission
from stackit.membership.models.permission_request import PermissionRequest
from stackit.membership.models.remove_members_payload import RemoveMembersPayload
from stackit.membership.models.remove_role_request import RemoveRoleRequest
from stackit.membership.models.remove_roles_payload import RemoveRolesPayload
from stackit.membership.models.resource import Resource
from stackit.membership.models.role import Role
from stackit.membership.models.roles_response import RolesResponse
from stackit.membership.models.subject import Subject
from stackit.membership.models.transfer_subject_memberships_payload import (
TransferSubjectMembershipsPayload,
)
from stackit.membership.models.user_membership import UserMembership
from stackit.membership.models.user_permission import UserPermission
from stackit.membership.models.user_resources_response import UserResourcesResponse
from stackit.membership.models.validate_child_members_payload import (
ValidateChildMembersPayload,
)
from stackit.membership.models.write_schema_payload import WriteSchemaPayload
from stackit.membership.models.write_schema_response import WriteSchemaResponse
from stackit.membership.models.zookie import Zookie
4 changes: 4 additions & 0 deletions services/membership/src/stackit/membership/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.membership.api.default_api import DefaultApi
Loading
Loading