stackit-serviceaccount 0.0.1a0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. stackit_serviceaccount-0.0.1a0/PKG-INFO +97 -0
  2. stackit_serviceaccount-0.0.1a0/README.md +75 -0
  3. stackit_serviceaccount-0.0.1a0/pyproject.toml +105 -0
  4. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/__init__.py +85 -0
  5. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/api/__init__.py +4 -0
  6. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/api/default_api.py +3553 -0
  7. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/api_client.py +626 -0
  8. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/api_response.py +23 -0
  9. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/configuration.py +110 -0
  10. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/exceptions.py +198 -0
  11. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/__init__.py +66 -0
  12. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/access_token.py +99 -0
  13. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/access_token_metadata.py +97 -0
  14. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/auth_error.py +88 -0
  15. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/auth_error_error.py +83 -0
  16. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/create_access_token_payload.py +83 -0
  17. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/create_service_account_key_payload.py +91 -0
  18. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/create_service_account_key_response.py +155 -0
  19. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/create_service_account_key_response_credentials.py +97 -0
  20. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/create_service_account_payload.py +91 -0
  21. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/create_short_lived_access_token_response.py +102 -0
  22. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/error.py +94 -0
  23. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/get_service_account_key_response.py +155 -0
  24. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/get_service_account_key_response_credentials.py +86 -0
  25. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/jwk.py +105 -0
  26. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/jwks.py +92 -0
  27. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/list_access_tokens_response.py +98 -0
  28. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/list_service_account_keys_response.py +100 -0
  29. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/list_service_accounts_response.py +98 -0
  30. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/partial_update_service_account_key_payload.py +89 -0
  31. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/partial_update_service_account_key_response.py +136 -0
  32. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/service_account.py +95 -0
  33. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/models/service_account_key_list_response.py +136 -0
  34. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/py.typed +0 -0
  35. stackit_serviceaccount-0.0.1a0/src/stackit/serviceaccount/rest.py +148 -0
@@ -0,0 +1,97 @@
1
+ Metadata-Version: 2.1
2
+ Name: stackit-serviceaccount
3
+ Version: 0.0.1a0
4
+ Summary: Service Account API
5
+ Author: STACKIT Developer Tools
6
+ Author-email: developer-tools@stackit.cloud
7
+ Requires-Python: >=3.8,<4.0
8
+ Classifier: License :: OSI Approved :: Apache Software License
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Dist: pydantic (>=2.9.2)
18
+ Requires-Dist: python-dateutil (>=2.9.0.post0)
19
+ Requires-Dist: requests (>=2.32.3)
20
+ Requires-Dist: stackit-core (>=0.0.1a)
21
+ Description-Content-Type: text/markdown
22
+
23
+ # stackit.serviceaccount
24
+ API to manage Service Accounts and their Access Tokens.
25
+
26
+ ### System for Cross-domain Identity Management (SCIM)
27
+ Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for
28
+ automating the exchange of user identity information between identity domains, or IT systems. Service accounts
29
+ are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts`
30
+
31
+ #### Syntax
32
+ ##### Attribute operators
33
+ | OPERATOR | DESCRIPTION |
34
+ |----------|--------------------------|
35
+ | eq | equal |
36
+ | ne | not equal |
37
+ | co | contains |
38
+ | sw | starts with |
39
+ | ew | ends with |
40
+
41
+ ##### Logical operators
42
+ | OPERATOR | DESCRIPTION |
43
+ |----------|--------------------------|
44
+ | and | logical \"and\" |
45
+ | or | logical \"or\" |
46
+
47
+ ##### Grouping operators
48
+ | OPERATOR | DESCRIPTION |
49
+ |----------|--------------------------|
50
+ | () | precending grouping |
51
+
52
+ ##### Example
53
+ ```
54
+ filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\"
55
+ filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\"
56
+ filter=email co \"my-service-account\"
57
+ filter=name sw \"my\"
58
+ filter=name ew \"account\"
59
+ filter=email co \"my-service-account\" and name sw \"my\"
60
+ filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\")
61
+ ```
62
+
63
+ #### Sorting
64
+
65
+ > Sorting is optional
66
+
67
+ | PARAMETER | DESCRIPTION |
68
+ |-----------|--------------------------------------|
69
+ | sortBy | attribute response is ordered by |
70
+ | sortOrder | 'ASCENDING' (default) or 'DESCENDING'|
71
+
72
+ #### Pagination
73
+
74
+ | PARAMETER | DESCRIPTION |
75
+ |--------------|----------------------------------------------|
76
+ | startIndex | index of first query result, default: 1 |
77
+ | count | maximum number of query results, default: 100|
78
+
79
+
80
+ 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.
81
+
82
+
83
+ ## Installation & Usage
84
+ ### pip install
85
+
86
+ ```sh
87
+ pip install stackit-serviceaccount
88
+ ```
89
+
90
+ Then import the package:
91
+ ```python
92
+ import stackit.serviceaccount
93
+ ```
94
+
95
+ ## Getting Started
96
+
97
+ [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.
@@ -0,0 +1,75 @@
1
+ # stackit.serviceaccount
2
+ API to manage Service Accounts and their Access Tokens.
3
+
4
+ ### System for Cross-domain Identity Management (SCIM)
5
+ Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for
6
+ automating the exchange of user identity information between identity domains, or IT systems. Service accounts
7
+ are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts`
8
+
9
+ #### Syntax
10
+ ##### Attribute operators
11
+ | OPERATOR | DESCRIPTION |
12
+ |----------|--------------------------|
13
+ | eq | equal |
14
+ | ne | not equal |
15
+ | co | contains |
16
+ | sw | starts with |
17
+ | ew | ends with |
18
+
19
+ ##### Logical operators
20
+ | OPERATOR | DESCRIPTION |
21
+ |----------|--------------------------|
22
+ | and | logical \"and\" |
23
+ | or | logical \"or\" |
24
+
25
+ ##### Grouping operators
26
+ | OPERATOR | DESCRIPTION |
27
+ |----------|--------------------------|
28
+ | () | precending grouping |
29
+
30
+ ##### Example
31
+ ```
32
+ filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\"
33
+ filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\"
34
+ filter=email co \"my-service-account\"
35
+ filter=name sw \"my\"
36
+ filter=name ew \"account\"
37
+ filter=email co \"my-service-account\" and name sw \"my\"
38
+ filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\")
39
+ ```
40
+
41
+ #### Sorting
42
+
43
+ > Sorting is optional
44
+
45
+ | PARAMETER | DESCRIPTION |
46
+ |-----------|--------------------------------------|
47
+ | sortBy | attribute response is ordered by |
48
+ | sortOrder | 'ASCENDING' (default) or 'DESCENDING'|
49
+
50
+ #### Pagination
51
+
52
+ | PARAMETER | DESCRIPTION |
53
+ |--------------|----------------------------------------------|
54
+ | startIndex | index of first query result, default: 1 |
55
+ | count | maximum number of query results, default: 100|
56
+
57
+
58
+ 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.
59
+
60
+
61
+ ## Installation & Usage
62
+ ### pip install
63
+
64
+ ```sh
65
+ pip install stackit-serviceaccount
66
+ ```
67
+
68
+ Then import the package:
69
+ ```python
70
+ import stackit.serviceaccount
71
+ ```
72
+
73
+ ## Getting Started
74
+
75
+ [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.
@@ -0,0 +1,105 @@
1
+ [tool.poetry]
2
+ name = "stackit-serviceaccount"
3
+ version = "v0.0.1a"
4
+ authors = [
5
+ "STACKIT Developer Tools <developer-tools@stackit.cloud>",
6
+ ]
7
+ description = "Service Account API"
8
+ readme = "README.md"
9
+ #license = "NoLicense"
10
+ classifiers = [
11
+ "Programming Language :: Python :: 3",
12
+ "License :: OSI Approved :: Apache Software License",
13
+ "Operating System :: OS Independent",
14
+ ]
15
+ packages = [
16
+ { include = "stackit", from="src" }
17
+ ]
18
+
19
+ [tool.poetry.dependencies]
20
+ python = ">=3.8,<4.0"
21
+ stackit-core = ">=0.0.1a"
22
+ requests = ">=2.32.3"
23
+ pydantic = ">=2.9.2"
24
+ python-dateutil = ">=2.9.0.post0"
25
+
26
+ [tool.poetry.group.dev.dependencies]
27
+ black = ">=24.8.0"
28
+ pytest = ">=8.3.3"
29
+ flake8 = [
30
+ { version= ">=5.0.3", python="<3.12"},
31
+ { version= ">=6.0.1", python=">=3.12"}
32
+ ]
33
+ flake8-black = ">=0.3.6"
34
+ flake8-pyproject = ">=1.2.3"
35
+ autoimport = ">=1.6.1"
36
+ flake8-eol = ">=0.0.8"
37
+ flake8-eradicate = ">=1.5.0"
38
+ flake8-bandit = ">=4.1.1"
39
+ flake8-bugbear = ">=23.1.14"
40
+ flake8-quotes = ">=3.4.0"
41
+ isort = ">=5.13.2"
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
45
+ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
46
+
47
+ [build-system]
48
+ requires = ["setuptools", "poetry-core"]
49
+ build-backend = "poetry.core.masonry.api"
50
+
51
+ [tool.pytest.ini_options]
52
+ pythonpath = [
53
+ "src"
54
+ ]
55
+ testpaths = [
56
+ "tests"
57
+ ]
58
+
59
+ [tool.black]
60
+ line-length = 120
61
+ exclude = """
62
+ /(
63
+ .eggs
64
+ | .git
65
+ | .hg
66
+ | .mypy_cache
67
+ | .nox
68
+ | .pants.d
69
+ | .tox
70
+ | .venv
71
+ | _build
72
+ | buck-out
73
+ | build
74
+ | dist
75
+ | node_modules
76
+ | venv
77
+ )/
78
+ """
79
+
80
+ [tool.isort]
81
+ profile = 'black'
82
+
83
+ [tool.flake8]
84
+ exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
85
+ statistics = true
86
+ show-source = false
87
+ max-line-length = 120
88
+ # E203,W503 and E704 are incompatible with the formatter black
89
+ # W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
90
+ ignore = ["E203", "W503", "E704", "W291"]
91
+ inline-quotes = '"'
92
+ docstring-quotes = '"""'
93
+ multiline-quotes = '"""'
94
+ ban-relative-imports = true
95
+ per-file-ignores = """
96
+ # asserts are fine in tests, tests shouldn't be build optimized
97
+ ./tests/*: S101,
98
+ # F841: some variables get generated but may not be used, depending on the api-spec
99
+ # E501: long descriptions/string values might lead to lines that are too long
100
+ ./src/stackit/*/models/*: F841,E501
101
+ # F841: some variables get generated but may not be used, depending on the api-spec
102
+ # E501: long descriptions/string values might lead to lines that are too long
103
+ # B028: stacklevel for deprecation warning is irrelevant
104
+ ./src/stackit/*/api/default_api.py: F841,B028,E501
105
+ """
@@ -0,0 +1,85 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Service Account API
7
+
8
+ API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100|
9
+
10
+ The version of the OpenAPI document: 2.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501 docstring might be too long
15
+
16
+
17
+ __version__ = "1.0.0"
18
+
19
+ # import apis into sdk package
20
+ from stackit.serviceaccount.api.default_api import DefaultApi
21
+ from stackit.serviceaccount.api_client import ApiClient
22
+
23
+ # import ApiClient
24
+ from stackit.serviceaccount.api_response import ApiResponse
25
+ from stackit.serviceaccount.configuration import HostConfiguration
26
+ from stackit.serviceaccount.exceptions import (
27
+ ApiAttributeError,
28
+ ApiException,
29
+ ApiKeyError,
30
+ ApiTypeError,
31
+ ApiValueError,
32
+ OpenApiException,
33
+ )
34
+
35
+ # import models into sdk package
36
+ from stackit.serviceaccount.models.access_token import AccessToken
37
+ from stackit.serviceaccount.models.access_token_metadata import AccessTokenMetadata
38
+ from stackit.serviceaccount.models.auth_error import AuthError
39
+ from stackit.serviceaccount.models.auth_error_error import AuthErrorError
40
+ from stackit.serviceaccount.models.create_access_token_payload import (
41
+ CreateAccessTokenPayload,
42
+ )
43
+ from stackit.serviceaccount.models.create_service_account_key_payload import (
44
+ CreateServiceAccountKeyPayload,
45
+ )
46
+ from stackit.serviceaccount.models.create_service_account_key_response import (
47
+ CreateServiceAccountKeyResponse,
48
+ )
49
+ from stackit.serviceaccount.models.create_service_account_key_response_credentials import (
50
+ CreateServiceAccountKeyResponseCredentials,
51
+ )
52
+ from stackit.serviceaccount.models.create_service_account_payload import (
53
+ CreateServiceAccountPayload,
54
+ )
55
+ from stackit.serviceaccount.models.create_short_lived_access_token_response import (
56
+ CreateShortLivedAccessTokenResponse,
57
+ )
58
+ from stackit.serviceaccount.models.error import Error
59
+ from stackit.serviceaccount.models.get_service_account_key_response import (
60
+ GetServiceAccountKeyResponse,
61
+ )
62
+ from stackit.serviceaccount.models.get_service_account_key_response_credentials import (
63
+ GetServiceAccountKeyResponseCredentials,
64
+ )
65
+ from stackit.serviceaccount.models.jwk import JWK
66
+ from stackit.serviceaccount.models.jwks import JWKS
67
+ from stackit.serviceaccount.models.list_access_tokens_response import (
68
+ ListAccessTokensResponse,
69
+ )
70
+ from stackit.serviceaccount.models.list_service_account_keys_response import (
71
+ ListServiceAccountKeysResponse,
72
+ )
73
+ from stackit.serviceaccount.models.list_service_accounts_response import (
74
+ ListServiceAccountsResponse,
75
+ )
76
+ from stackit.serviceaccount.models.partial_update_service_account_key_payload import (
77
+ PartialUpdateServiceAccountKeyPayload,
78
+ )
79
+ from stackit.serviceaccount.models.partial_update_service_account_key_response import (
80
+ PartialUpdateServiceAccountKeyResponse,
81
+ )
82
+ from stackit.serviceaccount.models.service_account import ServiceAccount
83
+ from stackit.serviceaccount.models.service_account_key_list_response import (
84
+ ServiceAccountKeyListResponse,
85
+ )
@@ -0,0 +1,4 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from stackit.serviceaccount.api.default_api import DefaultApi