Skip to content

Commit 2d0e8c3

Browse files
Generate mailout
1 parent 3cb4c01 commit 2d0e8c3

44 files changed

Lines changed: 10291 additions & 0 deletions

Some content is hidden

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

‎services/mailout/README.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# stackit.mailout
2+
This API provides endpoints for managing STACKIT MailOut.
3+
4+
5+
6+
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.
7+
8+
9+
## Installation & Usage
10+
### pip install
11+
12+
```sh
13+
pip install stackit-mailout
14+
```
15+
16+
Then import the package:
17+
```python
18+
import stackit.mailout
19+
```
20+
21+
## Getting Started
22+
23+
[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/mailout/oas_commit‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
744453641dffd3dae2ab164a7b58be6a0b85fe78

‎services/mailout/pyproject.toml‎

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
[project]
2+
name = "stackit-mailout"
3+
version = "v0.0.1a"
4+
description = "STACKIT MailOut API"
5+
authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}]
6+
requires-python = ">=3.11,<4.0"
7+
readme = "README.md"
8+
classifiers = [
9+
"Programming Language :: Python :: 3",
10+
"License :: OSI Approved :: Apache Software License",
11+
"Operating System :: OS Independent",
12+
"Programming Language :: Python :: 3.11",
13+
"Programming Language :: Python :: 3.12",
14+
"Programming Language :: Python :: 3.13",
15+
"Programming Language :: Python :: 3.14",
16+
"Programming Language :: Python :: 3.15",
17+
]
18+
dependencies = [
19+
"stackit-core>=0.0.1a",
20+
"requests>=2.33.0",
21+
"pydantic>=2.9.2",
22+
"python-dateutil>=2.9.0.post0",
23+
]
24+
25+
[project.urls]
26+
Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
27+
Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
28+
29+
[dependency-groups]
30+
dev = [
31+
"black>=26.3.1",
32+
"pytest>=9.1.1",
33+
"flake8>=5.0.3 ; python_full_version < '3.12'",
34+
"flake8>=6.0.1 ; python_full_version >= '3.12'",
35+
"flake8-black>=0.3.6",
36+
"flake8-pyproject>=1.2.3",
37+
"autoimport>=1.6.1",
38+
"flake8-eol>=0.0.8",
39+
"flake8-eradicate>=1.5.0",
40+
"flake8-bandit>=4.1.1",
41+
"flake8-bugbear>=23.1.14",
42+
"flake8-quotes>=3.4.0",
43+
"isort>=5.13.2",
44+
]
45+
46+
[tool.uv]
47+
default-groups = "all"
48+
49+
[tool.uv.sources]
50+
stackit-core = { path = "../../core" }
51+
52+
[tool.hatch.build.targets.sdist]
53+
include = ["src/stackit"]
54+
55+
[tool.hatch.build.targets.wheel]
56+
include = ["src/stackit"]
57+
58+
[tool.hatch.build.targets.wheel.sources]
59+
"src/stackit" = "stackit"
60+
61+
[build-system]
62+
requires = ["hatchling"]
63+
build-backend = "hatchling.build"
64+
65+
[tool.pytest.ini_options]
66+
pythonpath = [
67+
"src"
68+
]
69+
testpaths = [
70+
"tests"
71+
]
72+
73+
[tool.black]
74+
line-length = 120
75+
exclude = """
76+
/(
77+
.eggs
78+
| .git
79+
| .hg
80+
| .mypy_cache
81+
| .nox
82+
| .pants.d
83+
| .tox
84+
| .venv
85+
| _build
86+
| buck-out
87+
| build
88+
| dist
89+
| node_modules
90+
| venv
91+
)/
92+
"""
93+
94+
[tool.isort]
95+
profile = 'black'
96+
97+
[tool.flake8]
98+
exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
99+
statistics = true
100+
show-source = false
101+
max-line-length = 120
102+
# E203,W503 and E704 are incompatible with the formatter black
103+
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
104+
ignore = ["E203", "W503", "E704", "W291"]
105+
inline-quotes = '"'
106+
docstring-quotes = '"""'
107+
multiline-quotes = '"""'
108+
ban-relative-imports = true
109+
# Exclude generated code
110+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
STACKIT MailOut API
7+
8+
This API provides endpoints for managing STACKIT MailOut.
9+
10+
The version of the OpenAPI document: 1beta1.0.0
11+
Generated by OpenAPI Generator (https://openapi-generator.tech)
12+
13+
Do not edit the class manually.
14+
""" # noqa: E501
15+
16+
__version__ = "1.0.0"
17+
18+
# Define package exports
19+
__all__ = [
20+
"DefaultApi",
21+
"ApiResponse",
22+
"ApiClient",
23+
"HostConfiguration",
24+
"OpenApiException",
25+
"ApiTypeError",
26+
"ApiValueError",
27+
"ApiKeyError",
28+
"ApiAttributeError",
29+
"ApiException",
30+
"AddRecipientToSuppressionListPayload",
31+
"AuthorizedSender",
32+
"AuthorizedSenderState",
33+
"CreateAuthorizedSenderPayload",
34+
"CreateAuthorizedSenderResponse",
35+
"CreateSendingDomainPayload",
36+
"CreateSendingDomainResponse",
37+
"DKIMValidationReport",
38+
"DNSRecord",
39+
"DNSRecords",
40+
"DomainValidationReport",
41+
"DomainValidationStatus",
42+
"ErrorResponse",
43+
"GetAuthorizedSenderResponse",
44+
"GetSendingDomainResponse",
45+
"ListAuthorizedSendersResponse",
46+
"ListMessagesResponse",
47+
"ListSendingDomainsResponse",
48+
"ListSuppressedRecipientsResponse",
49+
"MetricsResponse",
50+
"MetricsTimespan",
51+
"RegionId",
52+
"SendingDomain",
53+
"SendingDomainConfig",
54+
"SendingDomainMessage",
55+
"SendingDomainMessageDetails",
56+
"SendingDomainState",
57+
"Suppression",
58+
"SuppressionReason",
59+
"ValidationReport",
60+
]
61+
62+
# import apis into sdk package
63+
from stackit.mailout.api.default_api import DefaultApi as DefaultApi
64+
from stackit.mailout.api_client import ApiClient as ApiClient
65+
66+
# import ApiClient
67+
from stackit.mailout.api_response import ApiResponse as ApiResponse
68+
from stackit.mailout.configuration import HostConfiguration as HostConfiguration
69+
from stackit.mailout.exceptions import ApiAttributeError as ApiAttributeError
70+
from stackit.mailout.exceptions import ApiException as ApiException
71+
from stackit.mailout.exceptions import ApiKeyError as ApiKeyError
72+
from stackit.mailout.exceptions import ApiTypeError as ApiTypeError
73+
from stackit.mailout.exceptions import ApiValueError as ApiValueError
74+
from stackit.mailout.exceptions import OpenApiException as OpenApiException
75+
76+
# import models into sdk package
77+
from stackit.mailout.models.add_recipient_to_suppression_list_payload import (
78+
AddRecipientToSuppressionListPayload as AddRecipientToSuppressionListPayload,
79+
)
80+
from stackit.mailout.models.authorized_sender import (
81+
AuthorizedSender as AuthorizedSender,
82+
)
83+
from stackit.mailout.models.authorized_sender_state import (
84+
AuthorizedSenderState as AuthorizedSenderState,
85+
)
86+
from stackit.mailout.models.create_authorized_sender_payload import (
87+
CreateAuthorizedSenderPayload as CreateAuthorizedSenderPayload,
88+
)
89+
from stackit.mailout.models.create_authorized_sender_response import (
90+
CreateAuthorizedSenderResponse as CreateAuthorizedSenderResponse,
91+
)
92+
from stackit.mailout.models.create_sending_domain_payload import (
93+
CreateSendingDomainPayload as CreateSendingDomainPayload,
94+
)
95+
from stackit.mailout.models.create_sending_domain_response import (
96+
CreateSendingDomainResponse as CreateSendingDomainResponse,
97+
)
98+
from stackit.mailout.models.dkim_validation_report import (
99+
DKIMValidationReport as DKIMValidationReport,
100+
)
101+
from stackit.mailout.models.dns_record import DNSRecord as DNSRecord
102+
from stackit.mailout.models.dns_records import DNSRecords as DNSRecords
103+
from stackit.mailout.models.domain_validation_report import (
104+
DomainValidationReport as DomainValidationReport,
105+
)
106+
from stackit.mailout.models.domain_validation_status import (
107+
DomainValidationStatus as DomainValidationStatus,
108+
)
109+
from stackit.mailout.models.error_response import ErrorResponse as ErrorResponse
110+
from stackit.mailout.models.get_authorized_sender_response import (
111+
GetAuthorizedSenderResponse as GetAuthorizedSenderResponse,
112+
)
113+
from stackit.mailout.models.get_sending_domain_response import (
114+
GetSendingDomainResponse as GetSendingDomainResponse,
115+
)
116+
from stackit.mailout.models.list_authorized_senders_response import (
117+
ListAuthorizedSendersResponse as ListAuthorizedSendersResponse,
118+
)
119+
from stackit.mailout.models.list_messages_response import (
120+
ListMessagesResponse as ListMessagesResponse,
121+
)
122+
from stackit.mailout.models.list_sending_domains_response import (
123+
ListSendingDomainsResponse as ListSendingDomainsResponse,
124+
)
125+
from stackit.mailout.models.list_suppressed_recipients_response import (
126+
ListSuppressedRecipientsResponse as ListSuppressedRecipientsResponse,
127+
)
128+
from stackit.mailout.models.metrics_response import MetricsResponse as MetricsResponse
129+
from stackit.mailout.models.metrics_timespan import MetricsTimespan as MetricsTimespan
130+
from stackit.mailout.models.region_id import RegionId as RegionId
131+
from stackit.mailout.models.sending_domain import SendingDomain as SendingDomain
132+
from stackit.mailout.models.sending_domain_config import (
133+
SendingDomainConfig as SendingDomainConfig,
134+
)
135+
from stackit.mailout.models.sending_domain_message import (
136+
SendingDomainMessage as SendingDomainMessage,
137+
)
138+
from stackit.mailout.models.sending_domain_message_details import (
139+
SendingDomainMessageDetails as SendingDomainMessageDetails,
140+
)
141+
from stackit.mailout.models.sending_domain_state import (
142+
SendingDomainState as SendingDomainState,
143+
)
144+
from stackit.mailout.models.suppression import Suppression as Suppression
145+
from stackit.mailout.models.suppression_reason import (
146+
SuppressionReason as SuppressionReason,
147+
)
148+
from stackit.mailout.models.validation_report import (
149+
ValidationReport as ValidationReport,
150+
)
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.mailout.api.default_api import DefaultApi

0 commit comments

Comments
 (0)