From 47b7c4f319f921a124f5ec1ce80b4df2b1cc05c8 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 19 Feb 2026 19:52:43 +0000 Subject: [PATCH] Generate sfs --- services/sfs/oas_commit | 2 +- .../sfs/models/create_share_export_policy_payload.py | 2 +- services/sfs/src/stackit/sfs/models/create_share_payload.py | 5 ++--- services/sfs/src/stackit/sfs/models/resource_pool.py | 6 ++++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/services/sfs/oas_commit b/services/sfs/oas_commit index 31950d47b..2b9014370 100644 --- a/services/sfs/oas_commit +++ b/services/sfs/oas_commit @@ -1 +1 @@ -9916269dab33d42aa2f1a5f30c80b954b6c1221f +37b3b223bda4dbadc466cfb001bafa0fdf49b68f diff --git a/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py b/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py index 87277d660..4f7956105 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py +++ b/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py @@ -34,7 +34,7 @@ class CreateShareExportPolicyPayload(BaseModel): default=None, description="An optional object that represents the labels associated with the share export policy 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}_-]*$'", ) - name: Optional[StrictStr] = Field(default=None, description="Name of the Share Export Policy") + name: StrictStr = Field(description="Name of the Share Export Policy") rules: Optional[List[CreateShareExportPolicyRequestRule]] = Field( default=None, description='List of rules of the Share Export Policy. The order of the rules within the array does not matter - what matters is the field "order" within each rule', diff --git a/services/sfs/src/stackit/sfs/models/create_share_payload.py b/services/sfs/src/stackit/sfs/models/create_share_payload.py index fd423c132..12c029c35 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_payload.py +++ b/services/sfs/src/stackit/sfs/models/create_share_payload.py @@ -35,9 +35,8 @@ class CreateSharePayload(BaseModel): default=None, 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}_-]*$'", ) - name: Optional[StrictStr] = Field(default=None, description="Name of the Share") - space_hard_limit_gigabytes: Optional[StrictInt] = Field( - default=None, + name: StrictStr = Field(description="Name of the Share") + space_hard_limit_gigabytes: StrictInt = Field( description="Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gibibytes)", alias="spaceHardLimitGigabytes", ) diff --git a/services/sfs/src/stackit/sfs/models/resource_pool.py b/services/sfs/src/stackit/sfs/models/resource_pool.py index c89b6af87..18bbeaaf9 100644 --- a/services/sfs/src/stackit/sfs/models/resource_pool.py +++ b/services/sfs/src/stackit/sfs/models/resource_pool.py @@ -73,7 +73,7 @@ class ResourcePool(BaseModel): default=None, description="Time when the size can be reduced again.", alias="sizeReducibleAt" ) snapshots_are_visible: Optional[StrictBool] = Field( - default=None, + default=False, description="Whether the .snapshot directory is visible when mounting the resource pool. Setting this value to false might prevent you from accessing the snapshots (e.g. for security reasons). Additionally, the access to the snapshots is always controlled by the export policy of the resource pool. That means, if snapshots are visible and the export policy allows for reading the resource pool, then it also allows reading the snapshot of all shares.", alias="snapshotsAreVisible", ) @@ -209,7 +209,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), "performanceClassDowngradableAt": obj.get("performanceClassDowngradableAt"), "sizeReducibleAt": obj.get("sizeReducibleAt"), - "snapshotsAreVisible": obj.get("snapshotsAreVisible"), + "snapshotsAreVisible": ( + obj.get("snapshotsAreVisible") if obj.get("snapshotsAreVisible") is not None else False + ), "space": ResourcePoolSpace.from_dict(obj["space"]) if obj.get("space") is not None else None, "state": obj.get("state"), }