Skip to content

Commit 515556f

Browse files
Generate sfs
1 parent 8e87fca commit 515556f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

services/sfs/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a896a71ffc1c1152f63b40a0194ac461ce179d6c
1+
8ccf08fdae6320251259ca695f1e7180eeb21275

services/sfs/src/stackit/sfs/models/update_resource_pool_payload.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]:
110110
if self.size_gigabytes is None and "size_gigabytes" in self.model_fields_set:
111111
_dict["sizeGigabytes"] = None
112112

113+
# set to None if snapshot_policy_id (nullable) is None
114+
# and model_fields_set contains the field
115+
if self.snapshot_policy_id is None and "snapshot_policy_id" in self.model_fields_set:
116+
_dict["snapshotPolicyId"] = None
117+
113118
return _dict
114119

115120
@classmethod

0 commit comments

Comments
 (0)