stackit-sfs 0.8.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.
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/PKG-INFO +2 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/pyproject.toml +1 -1
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/__init__.py +2 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api/default_api.py +33 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/__init__.py +1 -0
- stackit_sfs-0.9.0/src/stackit/sfs/models/conflict_error.py +94 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_payload.py +1 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_payload.py +1 -1
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_payload.py +1 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/share.py +1 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/share_export_policy.py +1 -1
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_payload.py +1 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_payload.py +1 -1
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_payload.py +1 -2
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/.gitignore +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/LICENSE.md +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/NOTICE.txt +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/README.md +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api/__init__.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api_client.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/api_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/configuration.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/exceptions.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_snapshot_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_request_rule.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/enable_lock_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/error.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_lock_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_resource_pool_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_resource_pool_snapshot_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_schedule_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_share_export_policy_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_share_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_snapshot_policy_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/google_protobuf_any.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_performance_classes_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_resource_pool_snapshots_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_resource_pools_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_schedules_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_share_export_policies_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_shares_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_snapshot_policies_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/performance_class.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_performance_class.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_snapshot.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_snapshot_policy.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_space.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/schedule.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/share_export_policy_rule.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/snapshot_policy.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/snapshot_policy_schedule.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/snapshot_policy_snapshot_policy_schedule.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/status.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_snapshot_payload.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_snapshot_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_body_rule.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_response.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/validation_error.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/validation_error_field.py +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/py.typed +0 -0
- {stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: stackit-sfs
|
|
3
|
-
Version:
|
|
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
|
|
@@ -27,6 +27,7 @@ __all__ = [
|
|
|
27
27
|
"ApiKeyError",
|
|
28
28
|
"ApiAttributeError",
|
|
29
29
|
"ApiException",
|
|
30
|
+
"ConflictError",
|
|
30
31
|
"CreateResourcePoolPayload",
|
|
31
32
|
"CreateResourcePoolResponse",
|
|
32
33
|
"CreateResourcePoolSnapshotPayload",
|
|
@@ -95,6 +96,7 @@ from stackit.sfs.exceptions import ApiValueError as ApiValueError
|
|
|
95
96
|
from stackit.sfs.exceptions import OpenApiException as OpenApiException
|
|
96
97
|
|
|
97
98
|
# import models into sdk package
|
|
99
|
+
from stackit.sfs.models.conflict_error import ConflictError as ConflictError
|
|
98
100
|
from stackit.sfs.models.create_resource_pool_payload import (
|
|
99
101
|
CreateResourcePoolPayload as CreateResourcePoolPayload,
|
|
100
102
|
)
|
|
@@ -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(
|
|
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(
|
|
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)
|
|
@@ -13,6 +13,7 @@ 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
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_payload.py
RENAMED
|
@@ -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")
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_share_export_policy_payload.py
RENAMED
|
@@ -33,7 +33,7 @@ class CreateShareExportPolicyPayload(BaseModel):
|
|
|
33
33
|
|
|
34
34
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
35
35
|
default=None,
|
|
36
|
-
description="An optional object that represents the labels associated with the share export policy
|
|
36
|
+
description="An optional object that represents the labels associated with the share export policy.",
|
|
37
37
|
)
|
|
38
38
|
name: StrictStr = Field(description="Name of the Share Export Policy")
|
|
39
39
|
rules: Optional[List[CreateShareExportPolicyRequestRule]] = Field(
|
|
@@ -33,8 +33,7 @@ class CreateSharePayload(BaseModel):
|
|
|
33
33
|
alias="exportPolicyName",
|
|
34
34
|
)
|
|
35
35
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
36
|
-
default=None,
|
|
37
|
-
description="An optional object that represents the labels associated with the share 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}_-]*$'",
|
|
36
|
+
default=None, description="An optional object that represents the labels associated with the share."
|
|
38
37
|
)
|
|
39
38
|
name: StrictStr = Field(description="Name of the Share")
|
|
40
39
|
space_hard_limit_gigabytes: StrictInt = Field(
|
|
@@ -39,8 +39,7 @@ class Share(BaseModel):
|
|
|
39
39
|
)
|
|
40
40
|
id: Optional[StrictStr] = Field(default=None, description="ID of the Share")
|
|
41
41
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
42
|
-
default=None,
|
|
43
|
-
description="An optional object that represents the labels associated with the share 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}_-]*$'",
|
|
42
|
+
default=None, description="An optional object that represents the labels associated with the share."
|
|
44
43
|
)
|
|
45
44
|
mount_path: Optional[StrictStr] = Field(
|
|
46
45
|
default=None, description="Mount path of the Share, used to mount the Share", alias="mountPath"
|
|
@@ -35,7 +35,7 @@ class ShareExportPolicy(BaseModel):
|
|
|
35
35
|
id: Optional[StrictStr] = Field(default=None, description="ID of the Share Export Policy")
|
|
36
36
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
37
37
|
default=None,
|
|
38
|
-
description="An optional object that represents the labels associated with the share export policy
|
|
38
|
+
description="An optional object that represents the labels associated with the share export policy.",
|
|
39
39
|
)
|
|
40
40
|
name: Optional[StrictStr] = Field(default=None, description="Name of the Share Export Policy")
|
|
41
41
|
rules: Optional[List[ShareExportPolicyRule]] = Field(
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_payload.py
RENAMED
|
@@ -40,8 +40,7 @@ class UpdateResourcePoolPayload(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
|
performance_class: Optional[StrictStr] = Field(
|
|
47
46
|
default=None, description="(optional) Name of the performance class", alias="performanceClass"
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_share_export_policy_payload.py
RENAMED
|
@@ -33,7 +33,7 @@ class UpdateShareExportPolicyPayload(BaseModel):
|
|
|
33
33
|
|
|
34
34
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
35
35
|
default=None,
|
|
36
|
-
description="An optional object that represents the labels associated with the share export policy
|
|
36
|
+
description="An optional object that represents the labels associated with the share export policy.",
|
|
37
37
|
)
|
|
38
38
|
rules: Optional[List[UpdateShareExportPolicyBodyRule]] = Field(
|
|
39
39
|
default=None,
|
|
@@ -33,8 +33,7 @@ class UpdateSharePayload(BaseModel):
|
|
|
33
33
|
alias="exportPolicyName",
|
|
34
34
|
)
|
|
35
35
|
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
36
|
-
default=None,
|
|
37
|
-
description="An optional object that represents the labels associated with the share 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}_-]*$'",
|
|
36
|
+
default=None, description="An optional object that represents the labels associated with the share."
|
|
38
37
|
)
|
|
39
38
|
space_hard_limit_gigabytes: Optional[StrictInt] = Field(
|
|
40
39
|
default=None,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/create_resource_pool_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_resource_pool_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_share_export_policy_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/get_snapshot_policy_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_performance_classes_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_resource_pools_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/list_snapshot_policies_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_performance_class.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/resource_pool_snapshot_policy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_sfs-0.8.0 → stackit_sfs-0.9.0}/src/stackit/sfs/models/update_resource_pool_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|