stackit-sfs 0.7.0__tar.gz → 0.9.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 (68) hide show
  1. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/PKG-INFO +4 -5
  2. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/pyproject.toml +7 -7
  3. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/__init__.py +7 -6
  4. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api/default_api.py +38 -7
  5. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api_client.py +5 -6
  6. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api_response.py +0 -1
  7. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/configuration.py +5 -6
  8. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/exceptions.py +5 -5
  9. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/__init__.py +6 -5
  10. stackit_sfs-0.9.0/src/stackit/sfs/models/conflict_error.py +94 -0
  11. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_payload.py +6 -7
  12. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_response.py +5 -5
  13. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py +5 -5
  14. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_snapshot_response.py +5 -5
  15. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_payload.py +6 -6
  16. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_request_rule.py +5 -5
  17. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_response.py +5 -5
  18. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_payload.py +6 -7
  19. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_response.py +5 -5
  20. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/enable_lock_response.py +5 -5
  21. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/error.py +5 -5
  22. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_lock_response.py +5 -5
  23. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_resource_pool_response.py +5 -5
  24. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_resource_pool_snapshot_response.py +5 -5
  25. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_schedule_response.py +5 -5
  26. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_share_export_policy_response.py +5 -5
  27. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_share_response.py +5 -5
  28. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_snapshot_policy_response.py +5 -5
  29. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/google_protobuf_any.py +5 -5
  30. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_performance_classes_response.py +5 -5
  31. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_resource_pool_snapshots_response.py +5 -5
  32. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_resource_pools_response.py +5 -5
  33. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_schedules_response.py +5 -5
  34. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_share_export_policies_response.py +5 -5
  35. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_shares_response.py +5 -5
  36. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_snapshot_policies_response.py +5 -5
  37. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/performance_class.py +5 -5
  38. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool.py +5 -5
  39. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_performance_class.py +5 -5
  40. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_snapshot.py +5 -5
  41. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_snapshot_policy.py +5 -5
  42. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_space.py +5 -5
  43. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/schedule.py +5 -5
  44. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/share.py +6 -7
  45. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/share_export_policy.py +6 -6
  46. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/share_export_policy_rule.py +5 -5
  47. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/snapshot_policy.py +5 -5
  48. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/snapshot_policy_schedule.py +5 -5
  49. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/snapshot_policy_snapshot_policy_schedule.py +5 -5
  50. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/status.py +5 -5
  51. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_payload.py +6 -7
  52. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_response.py +5 -5
  53. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_snapshot_payload.py +5 -5
  54. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_snapshot_response.py +5 -5
  55. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_body_rule.py +5 -5
  56. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_payload.py +6 -6
  57. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_response.py +5 -5
  58. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_payload.py +6 -7
  59. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_response.py +5 -5
  60. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/validation_error.py +5 -5
  61. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/validation_error_field.py +5 -5
  62. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/rest.py +5 -6
  63. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/.gitignore +0 -0
  64. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/LICENSE.md +0 -0
  65. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/NOTICE.txt +0 -0
  66. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/README.md +0 -0
  67. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api/__init__.py +0 -0
  68. {stackit_sfs-0.7.0 → stackit_sfs-0.9.0}/src/stackit/sfs/py.typed +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: stackit-sfs
3
- Version: 0.7.0
3
+ Version: v0.9.0
4
4
  Summary: STACKIT File Storage (SFS)
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,>=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-sfs"
3
- version = "v0.7.0"
3
+ version = "v0.9.0"
4
4
  description = "STACKIT File Storage (SFS)"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
- requires-python = ">=3.9,<4"
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,17 +3,16 @@
3
3
  # flake8: noqa
4
4
 
5
5
  """
6
- STACKIT File Storage (SFS)
6
+ STACKIT File Storage (SFS)
7
7
 
8
- API used to create and manage NFS Shares.
8
+ API used to create and manage NFS Shares.
9
9
 
10
- The version of the OpenAPI document: 1.0.0
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 1.0.0
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
-
17
16
  __version__ = "1.0.0"
18
17
 
19
18
  # Define package exports
@@ -28,6 +27,7 @@ __all__ = [
28
27
  "ApiKeyError",
29
28
  "ApiAttributeError",
30
29
  "ApiException",
30
+ "ConflictError",
31
31
  "CreateResourcePoolPayload",
32
32
  "CreateResourcePoolResponse",
33
33
  "CreateResourcePoolSnapshotPayload",
@@ -96,6 +96,7 @@ from stackit.sfs.exceptions import ApiValueError as ApiValueError
96
96
  from stackit.sfs.exceptions import OpenApiException as OpenApiException
97
97
 
98
98
  # import models into sdk package
99
+ from stackit.sfs.models.conflict_error import ConflictError as ConflictError
99
100
  from stackit.sfs.models.create_resource_pool_payload import (
100
101
  CreateResourcePoolPayload as CreateResourcePoolPayload,
101
102
  )
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
@@ -157,6 +157,7 @@ class DefaultApi:
157
157
  "200": "CreateResourcePoolResponse",
158
158
  "400": "ValidationError",
159
159
  "401": "str",
160
+ "409": "ConflictError",
160
161
  "500": "Error",
161
162
  }
162
163
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -228,6 +229,7 @@ class DefaultApi:
228
229
  "200": "CreateResourcePoolResponse",
229
230
  "400": "ValidationError",
230
231
  "401": "str",
232
+ "409": "ConflictError",
231
233
  "500": "Error",
232
234
  }
233
235
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -299,6 +301,7 @@ class DefaultApi:
299
301
  "200": "CreateResourcePoolResponse",
300
302
  "400": "ValidationError",
301
303
  "401": "str",
304
+ "409": "ConflictError",
302
305
  "500": "Error",
303
306
  }
304
307
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -436,6 +439,7 @@ class DefaultApi:
436
439
  "200": "CreateResourcePoolSnapshotResponse",
437
440
  "400": "ValidationError",
438
441
  "401": "str",
442
+ "409": "ConflictError",
439
443
  "500": "Error",
440
444
  }
441
445
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -511,6 +515,7 @@ class DefaultApi:
511
515
  "200": "CreateResourcePoolSnapshotResponse",
512
516
  "400": "ValidationError",
513
517
  "401": "str",
518
+ "409": "ConflictError",
514
519
  "500": "Error",
515
520
  }
516
521
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -586,6 +591,7 @@ class DefaultApi:
586
591
  "200": "CreateResourcePoolSnapshotResponse",
587
592
  "400": "ValidationError",
588
593
  "401": "str",
594
+ "409": "ConflictError",
589
595
  "500": "Error",
590
596
  }
591
597
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -726,6 +732,7 @@ class DefaultApi:
726
732
  "200": "CreateShareResponse",
727
733
  "400": "ValidationError",
728
734
  "401": "str",
735
+ "409": "ConflictError",
729
736
  "500": "Error",
730
737
  }
731
738
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -801,6 +808,7 @@ class DefaultApi:
801
808
  "200": "CreateShareResponse",
802
809
  "400": "ValidationError",
803
810
  "401": "str",
811
+ "409": "ConflictError",
804
812
  "500": "Error",
805
813
  }
806
814
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -876,6 +884,7 @@ class DefaultApi:
876
884
  "200": "CreateShareResponse",
877
885
  "400": "ValidationError",
878
886
  "401": "str",
887
+ "409": "ConflictError",
879
888
  "500": "Error",
880
889
  }
881
890
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1012,6 +1021,7 @@ class DefaultApi:
1012
1021
  "200": "CreateShareExportPolicyResponse",
1013
1022
  "400": "ValidationError",
1014
1023
  "401": "str",
1024
+ "409": "ConflictError",
1015
1025
  "500": "Error",
1016
1026
  }
1017
1027
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1083,6 +1093,7 @@ class DefaultApi:
1083
1093
  "200": "CreateShareExportPolicyResponse",
1084
1094
  "400": "ValidationError",
1085
1095
  "401": "str",
1096
+ "409": "ConflictError",
1086
1097
  "500": "Error",
1087
1098
  }
1088
1099
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1154,6 +1165,7 @@ class DefaultApi:
1154
1165
  "200": "CreateShareExportPolicyResponse",
1155
1166
  "400": "ValidationError",
1156
1167
  "401": "str",
1168
+ "409": "ConflictError",
1157
1169
  "500": "Error",
1158
1170
  }
1159
1171
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1287,6 +1299,7 @@ class DefaultApi:
1287
1299
  "200": "object",
1288
1300
  "400": "ValidationError",
1289
1301
  "401": "str",
1302
+ "409": "ConflictError",
1290
1303
  "500": "Error",
1291
1304
  }
1292
1305
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1358,6 +1371,7 @@ class DefaultApi:
1358
1371
  "200": "object",
1359
1372
  "400": "ValidationError",
1360
1373
  "401": "str",
1374
+ "409": "ConflictError",
1361
1375
  "500": "Error",
1362
1376
  }
1363
1377
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1429,6 +1443,7 @@ class DefaultApi:
1429
1443
  "200": "object",
1430
1444
  "400": "ValidationError",
1431
1445
  "401": "str",
1446
+ "409": "ConflictError",
1432
1447
  "500": "Error",
1433
1448
  }
1434
1449
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1558,6 +1573,7 @@ class DefaultApi:
1558
1573
  "200": "object",
1559
1574
  "400": "ValidationError",
1560
1575
  "401": "str",
1576
+ "409": "ConflictError",
1561
1577
  "500": "Error",
1562
1578
  }
1563
1579
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1633,6 +1649,7 @@ class DefaultApi:
1633
1649
  "200": "object",
1634
1650
  "400": "ValidationError",
1635
1651
  "401": "str",
1652
+ "409": "ConflictError",
1636
1653
  "500": "Error",
1637
1654
  }
1638
1655
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1708,6 +1725,7 @@ class DefaultApi:
1708
1725
  "200": "object",
1709
1726
  "400": "ValidationError",
1710
1727
  "401": "str",
1728
+ "409": "ConflictError",
1711
1729
  "500": "Error",
1712
1730
  }
1713
1731
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2379,6 +2397,7 @@ class DefaultApi:
2379
2397
 
2380
2398
  _response_types_map: Dict[str, Optional[str]] = {
2381
2399
  "200": "object",
2400
+ "409": "ConflictError",
2382
2401
  }
2383
2402
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2384
2403
  response_data.read()
@@ -2443,6 +2462,7 @@ class DefaultApi:
2443
2462
 
2444
2463
  _response_types_map: Dict[str, Optional[str]] = {
2445
2464
  "200": "object",
2465
+ "409": "ConflictError",
2446
2466
  }
2447
2467
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2448
2468
  response_data.read()
@@ -2507,6 +2527,7 @@ class DefaultApi:
2507
2527
 
2508
2528
  _response_types_map: Dict[str, Optional[str]] = {
2509
2529
  "200": "object",
2530
+ "409": "ConflictError",
2510
2531
  }
2511
2532
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2512
2533
  return response_data.response
@@ -2544,7 +2565,9 @@ class DefaultApi:
2544
2565
 
2545
2566
  # set the HTTP header `Accept`
2546
2567
  if "Accept" not in _header_params:
2547
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2568
+ _header_params["Accept"] = self.api_client.select_header_accept(
2569
+ ["application/json", "application/problem+json"]
2570
+ )
2548
2571
 
2549
2572
  # authentication setting
2550
2573
  _auth_settings: List[str] = []
@@ -2620,6 +2643,7 @@ class DefaultApi:
2620
2643
 
2621
2644
  _response_types_map: Dict[str, Optional[str]] = {
2622
2645
  "200": "EnableLockResponse",
2646
+ "409": "ConflictError",
2623
2647
  }
2624
2648
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2625
2649
  response_data.read()
@@ -2684,6 +2708,7 @@ class DefaultApi:
2684
2708
 
2685
2709
  _response_types_map: Dict[str, Optional[str]] = {
2686
2710
  "200": "EnableLockResponse",
2711
+ "409": "ConflictError",
2687
2712
  }
2688
2713
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2689
2714
  response_data.read()
@@ -2748,6 +2773,7 @@ class DefaultApi:
2748
2773
 
2749
2774
  _response_types_map: Dict[str, Optional[str]] = {
2750
2775
  "200": "EnableLockResponse",
2776
+ "409": "ConflictError",
2751
2777
  }
2752
2778
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2753
2779
  return response_data.response
@@ -2785,7 +2811,9 @@ class DefaultApi:
2785
2811
 
2786
2812
  # set the HTTP header `Accept`
2787
2813
  if "Accept" not in _header_params:
2788
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2814
+ _header_params["Accept"] = self.api_client.select_header_accept(
2815
+ ["application/json", "application/problem+json"]
2816
+ )
2789
2817
 
2790
2818
  # authentication setting
2791
2819
  _auth_settings: List[str] = []
@@ -6418,6 +6446,7 @@ class DefaultApi:
6418
6446
  "200": "UpdateResourcePoolResponse",
6419
6447
  "400": "ValidationError",
6420
6448
  "401": "str",
6449
+ "409": "ConflictError",
6421
6450
  "500": "Error",
6422
6451
  }
6423
6452
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -6493,6 +6522,7 @@ class DefaultApi:
6493
6522
  "200": "UpdateResourcePoolResponse",
6494
6523
  "400": "ValidationError",
6495
6524
  "401": "str",
6525
+ "409": "ConflictError",
6496
6526
  "500": "Error",
6497
6527
  }
6498
6528
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -6568,6 +6598,7 @@ class DefaultApi:
6568
6598
  "200": "UpdateResourcePoolResponse",
6569
6599
  "400": "ValidationError",
6570
6600
  "401": "str",
6601
+ "409": "ConflictError",
6571
6602
  "500": "Error",
6572
6603
  }
6573
6604
  response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import datetime
@@ -36,7 +36,6 @@ from stackit.sfs.exceptions import (
36
36
  ApiException,
37
37
  )
38
38
 
39
-
40
39
  RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
41
40
 
42
41
 
@@ -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,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import sys
@@ -18,7 +18,6 @@ from typing_extensions import NotRequired
18
18
 
19
19
  import os
20
20
 
21
-
22
21
  ServerVariablesT = Dict[str, str]
23
22
 
24
23
 
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from typing import Any, Optional
@@ -2,17 +2,18 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- STACKIT File Storage (SFS)
5
+ STACKIT File Storage (SFS)
6
6
 
7
- API used to create and manage NFS Shares.
7
+ API used to create and manage NFS Shares.
8
8
 
9
- The version of the OpenAPI document: 1.0.0
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 1.0.0
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 models into model package
16
+ from stackit.sfs.models.conflict_error import ConflictError
16
17
  from stackit.sfs.models.create_resource_pool_payload import CreateResourcePoolPayload
17
18
  from stackit.sfs.models.create_resource_pool_response import CreateResourcePoolResponse
18
19
  from stackit.sfs.models.create_resource_pool_snapshot_payload import (
@@ -0,0 +1,94 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT File Storage (SFS)
5
+
6
+ API used to create and manage NFS Shares.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ from __future__ import annotations
15
+
16
+ import json
17
+ import pprint
18
+ from typing import Any, ClassVar, Dict, List, Optional, Set
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
+ from pydantic_core import to_jsonable_python
22
+ from typing_extensions import Self
23
+
24
+
25
+ class ConflictError(BaseModel):
26
+ """
27
+ Conflict error response
28
+ """ # noqa: E501
29
+
30
+ detail: StrictStr = Field(description="Human-readable explanation of the specific problem")
31
+ error_description: StrictStr = Field(description="Human-readable string of the error that occurred")
32
+ status_code: StrictInt = Field(description="The HTTP status code")
33
+ type: StrictStr = Field(
34
+ description="URI Uniquely identifies the error type. It will be in the format of storage.stackit.cloud/<error-type> e.g. storage.stackit.cloud/conflict"
35
+ )
36
+ __properties: ClassVar[List[str]] = ["detail", "error_description", "status_code", "type"]
37
+
38
+ model_config = ConfigDict(
39
+ validate_by_name=True,
40
+ validate_by_alias=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ return json.dumps(to_jsonable_python(self.to_dict()))
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of ConflictError from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ return _dict
76
+
77
+ @classmethod
78
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
79
+ """Create an instance of ConflictError from a dict"""
80
+ if obj is None:
81
+ return None
82
+
83
+ if not isinstance(obj, dict):
84
+ return cls.model_validate(obj)
85
+
86
+ _obj = cls.model_validate(
87
+ {
88
+ "detail": obj.get("detail"),
89
+ "error_description": obj.get("error_description"),
90
+ "status_code": obj.get("status_code"),
91
+ "type": obj.get("type"),
92
+ }
93
+ )
94
+ return _obj
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -40,8 +40,7 @@ class CreateResourcePoolPayload(BaseModel):
40
40
  alias="ipAcl",
41
41
  )
42
42
  labels: Optional[Dict[str, StrictStr]] = Field(
43
- default=None,
44
- description="An optional object that represents the labels associated with the resource pool keys are validated using the following regex '^[\\\\p{Ll}][\\\\p{Ll}\\\\p{N}_-]*$' and cannot be empty values are validated using the following regex '^[\\\\p{Ll}\\\\p{N}_-]*$'",
43
+ default=None, description="An optional object that represents the labels associated with the resource pool."
45
44
  )
46
45
  name: StrictStr = Field(description="Name of the Resource Pool")
47
46
  performance_class: StrictStr = Field(description="Name of the performance class", alias="performanceClass")
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT File Storage (SFS)
4
+ STACKIT File Storage (SFS)
5
5
 
6
- API used to create and manage NFS Shares.
6
+ API used to create and manage NFS Shares.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations