stackit-mongodbflex 1.3.0__tar.gz → 1.5.0__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 (65) hide show
  1. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/PKG-INFO +3 -4
  2. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/pyproject.toml +7 -7
  3. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/__init__.py +6 -7
  4. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/api/default_api.py +6 -6
  5. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/api_client.py +6 -7
  6. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/api_response.py +0 -1
  7. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/configuration.py +6 -7
  8. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/exceptions.py +6 -6
  9. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/__init__.py +6 -6
  10. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/acl.py +6 -6
  11. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/backup.py +6 -6
  12. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/backup_schedule.py +6 -6
  13. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/clone_instance_payload.py +6 -6
  14. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/clone_instance_response.py +6 -6
  15. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/create_instance_payload.py +20 -9
  16. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/create_instance_response.py +6 -6
  17. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/create_user_payload.py +34 -10
  18. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/create_user_response.py +6 -6
  19. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/data_point.py +6 -6
  20. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/error.py +6 -6
  21. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/flavor.py +6 -6
  22. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/get_backup_response.py +6 -6
  23. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/get_user_response.py +6 -6
  24. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/handlers_instances_slow_queries_response.py +6 -6
  25. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/handlers_instances_suggested_indexes_response.py +6 -6
  26. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/host.py +6 -6
  27. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/host_metric.py +6 -6
  28. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/instance.py +6 -6
  29. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/instance_flavor.py +6 -6
  30. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/instance_list_instance.py +6 -6
  31. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/instance_response.py +6 -6
  32. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/instance_response_user.py +6 -6
  33. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_backups_response.py +6 -6
  34. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_flavors_response.py +6 -6
  35. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_instances_response.py +6 -6
  36. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_metrics_response.py +6 -6
  37. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_restore_jobs_response.py +6 -6
  38. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_storages_response.py +6 -6
  39. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_user.py +6 -6
  40. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_users_response.py +6 -6
  41. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/list_versions_response.py +6 -6
  42. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/mongodbatlas_operation.py +6 -6
  43. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/mongodbatlas_stats.py +6 -6
  44. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/partial_update_instance_payload.py +23 -9
  45. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/partial_update_user_payload.py +23 -9
  46. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/restore_instance_payload.py +6 -6
  47. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/restore_instance_response.py +6 -6
  48. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/restore_instance_status.py +6 -6
  49. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/shape.py +6 -6
  50. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/slow_query.py +6 -6
  51. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/storage.py +6 -6
  52. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/storage_range.py +6 -6
  53. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/suggested_index.py +6 -6
  54. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/update_backup_schedule_payload.py +6 -6
  55. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/update_instance_payload.py +20 -9
  56. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/update_instance_response.py +6 -6
  57. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/update_user_payload.py +20 -9
  58. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/models/user.py +6 -6
  59. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/rest.py +6 -7
  60. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/.gitignore +0 -0
  61. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/LICENSE.md +0 -0
  62. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/NOTICE.txt +0 -0
  63. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/README.md +0 -0
  64. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/api/__init__.py +0 -0
  65. {stackit_mongodbflex-1.3.0 → stackit_mongodbflex-1.5.0}/src/stackit/mongodbflex/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-mongodbflex
3
- Version: 1.3.0
3
+ Version: 1.5.0
4
4
  Summary: STACKIT MongoDB Service API
5
5
  Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
6
6
  Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
@@ -10,16 +10,15 @@ License-File: NOTICE.txt
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Python: <4.0,>=3.9
18
+ Requires-Python: <4.0,>=3.10
20
19
  Requires-Dist: pydantic>=2.9.2
21
20
  Requires-Dist: python-dateutil>=2.9.0.post0
22
- Requires-Dist: requests>=2.32.3
21
+ Requires-Dist: requests>=2.33.0
23
22
  Requires-Dist: stackit-core>=0.0.1a
24
23
  Description-Content-Type: text/markdown
25
24
 
@@ -1,15 +1,14 @@
1
1
  [project]
2
2
  name = "stackit-mongodbflex"
3
- version = "v1.3.0"
3
+ version = "v1.5.0"
4
4
  description = "STACKIT MongoDB Service API"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
- requires-python = ">=3.9,<4.0"
6
+ requires-python = ">=3.10,<4.0"
7
7
  readme = "README.md"
8
8
  classifiers = [
9
9
  "Programming Language :: Python :: 3",
10
10
  "License :: OSI Approved :: Apache Software License",
11
11
  "Operating System :: OS Independent",
12
- "Programming Language :: Python :: 3.9",
13
12
  "Programming Language :: Python :: 3.10",
14
13
  "Programming Language :: Python :: 3.11",
15
14
  "Programming Language :: Python :: 3.12",
@@ -18,7 +17,7 @@ classifiers = [
18
17
  ]
19
18
  dependencies = [
20
19
  "stackit-core>=0.0.1a",
21
- "requests>=2.32.3",
20
+ "requests>=2.33.0",
22
21
  "pydantic>=2.9.2",
23
22
  "python-dateutil>=2.9.0.post0",
24
23
  ]
@@ -29,8 +28,8 @@ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
29
28
 
30
29
  [dependency-groups]
31
30
  dev = [
32
- "black>=24.8.0",
33
- "pytest>=8.3.3",
31
+ "black>=26.3.1",
32
+ "pytest>=9.1.1",
34
33
  "flake8>=5.0.3 ; python_full_version < '3.12'",
35
34
  "flake8>=6.0.1 ; python_full_version >= '3.12'",
36
35
  "flake8-black>=0.3.6",
@@ -102,7 +101,8 @@ show-source = false
102
101
  max-line-length = 120
103
102
  # E203,W503 and E704 are incompatible with the formatter black
104
103
  # W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
105
- ignore = ["E203", "W503", "E704", "W291"]
104
+ # fixing B042 in upstream exceptions.mustache would be a breaking change
105
+ ignore = ["E203", "W503", "E704", "W291", "B042"]
106
106
  inline-quotes = '"'
107
107
  docstring-quotes = '"""'
108
108
  multiline-quotes = '"""'
@@ -3,18 +3,17 @@
3
3
  # flake8: noqa
4
4
 
5
5
  """
6
- STACKIT MongoDB Service API
6
+ STACKIT MongoDB Service API
7
7
 
8
- This is the documentation for the STACKIT MongoDB Flex Service API
8
+ This is the documentation for the STACKIT MongoDB Flex Service API
9
9
 
10
- The version of the OpenAPI document: 2.0.0
11
- Contact: support@stackit.cloud
12
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 2.0.0
11
+ Contact: support@stackit.cloud
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
14
- Do not edit the class manually.
14
+ Do not edit the class manually.
15
15
  """ # noqa: E501
16
16
 
17
-
18
17
  __version__ = "1.0.0"
19
18
 
20
19
  # Define package exports
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import datetime
@@ -37,7 +37,6 @@ from stackit.mongodbflex.exceptions import (
37
37
  ApiException,
38
38
  )
39
39
 
40
-
41
40
  RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
42
41
 
43
42
 
@@ -6,7 +6,6 @@ from typing import Generic, Mapping, Optional, TypeVar
6
6
 
7
7
  from pydantic import BaseModel, Field, StrictBytes, StrictInt
8
8
 
9
-
10
9
  T = TypeVar("T")
11
10
 
12
11
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import sys
@@ -19,7 +19,6 @@ from typing_extensions import NotRequired
19
19
 
20
20
  import os
21
21
 
22
-
23
22
  ServerVariablesT = Dict[str, str]
24
23
 
25
24
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from typing import Any, Optional
@@ -2,15 +2,15 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- STACKIT MongoDB Service API
5
+ STACKIT MongoDB Service API
6
6
 
7
- This is the documentation for the STACKIT MongoDB Flex Service API
7
+ This is the documentation for the STACKIT MongoDB Flex Service API
8
8
 
9
- The version of the OpenAPI document: 2.0.0
10
- Contact: support@stackit.cloud
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 2.0.0
10
+ Contact: support@stackit.cloud
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
- Do not edit the class manually.
13
+ Do not edit the class manually.
14
14
  """ # noqa: E501
15
15
 
16
16
  # import models into model package
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,26 +1,27 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
17
17
  import json
18
18
  import pprint
19
+ import re # noqa: F401
19
20
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
21
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
22
23
  from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
+ from typing_extensions import Annotated, Self
24
25
 
25
26
  from stackit.mongodbflex.models.acl import ACL
26
27
  from stackit.mongodbflex.models.storage import Storage
@@ -37,7 +38,7 @@ class CreateInstancePayload(BaseModel):
37
38
  backup_schedule: StrictStr = Field(alias="backupSchedule")
38
39
  flavor_id: StrictStr = Field(alias="flavorId")
39
40
  labels: Optional[Dict[str, StrictStr]] = Field(default=None, description="Labels field is not certain/clear")
40
- name: StrictStr
41
+ name: Annotated[str, Field(min_length=3, strict=True, max_length=63)]
41
42
  options: Dict[str, StrictStr]
42
43
  replicas: StrictInt
43
44
  storage: Storage
@@ -54,6 +55,16 @@ class CreateInstancePayload(BaseModel):
54
55
  "version",
55
56
  ]
56
57
 
58
+ @field_validator("name")
59
+ def name_validate_regular_expression(cls, value):
60
+ """Validates the regular expression"""
61
+ if not isinstance(value, str):
62
+ value = str(value)
63
+
64
+ if not re.match(r"^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$", value):
65
+ raise ValueError(r"must validate the regular expression /^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$/")
66
+ return value
67
+
57
68
  model_config = ConfigDict(
58
69
  validate_by_name=True,
59
70
  validate_by_alias=True,
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,26 +1,27 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
16
16
 
17
17
  import json
18
18
  import pprint
19
+ import re # noqa: F401
19
20
  from typing import Any, ClassVar, Dict, List, Optional, Set
20
21
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
23
  from pydantic_core import to_jsonable_python
23
- from typing_extensions import Self
24
+ from typing_extensions import Annotated, Self
24
25
 
25
26
 
26
27
  class CreateUserPayload(BaseModel):
@@ -28,13 +29,36 @@ class CreateUserPayload(BaseModel):
28
29
  CreateUserPayload
29
30
  """ # noqa: E501
30
31
 
31
- database: StrictStr
32
+ database: Annotated[str, Field(min_length=3, strict=True, max_length=63)]
32
33
  roles: List[StrictStr] = Field(
33
34
  description="The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**"
34
35
  )
35
- username: Optional[StrictStr] = None
36
+ username: Optional[Annotated[str, Field(min_length=3, strict=True, max_length=63)]] = None
36
37
  __properties: ClassVar[List[str]] = ["database", "roles", "username"]
37
38
 
39
+ @field_validator("database")
40
+ def database_validate_regular_expression(cls, value):
41
+ """Validates the regular expression"""
42
+ if not isinstance(value, str):
43
+ value = str(value)
44
+
45
+ if not re.match(r"^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$", value):
46
+ raise ValueError(r"must validate the regular expression /^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$/")
47
+ return value
48
+
49
+ @field_validator("username")
50
+ def username_validate_regular_expression(cls, value):
51
+ """Validates the regular expression"""
52
+ if value is None:
53
+ return value
54
+
55
+ if not isinstance(value, str):
56
+ value = str(value)
57
+
58
+ if not re.match(r"^[A-Za-z][A-Za-z0-9-]{1,61}[A-Za-z0-9]$", value):
59
+ raise ValueError(r"must validate the regular expression /^[A-Za-z][A-Za-z0-9-]{1,61}[A-Za-z0-9]$/")
60
+ return value
61
+
38
62
  model_config = ConfigDict(
39
63
  validate_by_name=True,
40
64
  validate_by_alias=True,
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT MongoDB Service API
4
+ STACKIT MongoDB Service API
5
5
 
6
- This is the documentation for the STACKIT MongoDB Flex Service API
6
+ This is the documentation for the STACKIT MongoDB Flex Service API
7
7
 
8
- The version of the OpenAPI document: 2.0.0
9
- Contact: support@stackit.cloud
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0.0
9
+ Contact: support@stackit.cloud
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations