Skip to content

Commit 891ddb4

Browse files
Generate sfs (#3099)
1 parent 3e97df2 commit 891ddb4

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Release (2026-xx-xx)
22

3+
- `sfs`: [v0.3.0](services/sfs/CHANGELOG.md#v030)
4+
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.
35
- `serviceaccount`: [v0.5.0](services/serviceaccount/CHANGELOG.md#v050)
46
- **Feature:** add support for Federated Identity Providers
57
- new operations: `CreateFederatedIdentityProvider`, `DeleteServiceFederatedIdentityProvider`, `ListFederatedIdentityProviders`,`PartialUpdateServiceAccountFederatedIdentityProvider`

services/sfs/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.3.0
2+
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.
3+
14
## v0.2.0
25
- **Feature:** Switch from `v1beta` API version to `v1` version.
36
- **Breaking change:** Remove `ListSnapshotSchedules` method

services/sfs/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9916269dab33d42aa2f1a5f30c80b954b6c1221f
1+
fe212a12ec79a23b81cb53d9a7728f5706bddc23

services/sfs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-sfs"
33

44
[tool.poetry]
55
name = "stackit-sfs"
6-
version = "v0.2.0"
6+
version = "v0.3.0"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateShareExportPolicyPayload(BaseModel):
3434
default=None,
3535
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}_-]*$'",
3636
)
37-
name: Optional[StrictStr] = Field(default=None, description="Name of the Share Export Policy")
37+
name: StrictStr = Field(description="Name of the Share Export Policy")
3838
rules: Optional[List[CreateShareExportPolicyRequestRule]] = Field(
3939
default=None,
4040
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',

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ class CreateSharePayload(BaseModel):
3535
default=None,
3636
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}_-]*$'",
3737
)
38-
name: Optional[StrictStr] = Field(default=None, description="Name of the Share")
39-
space_hard_limit_gigabytes: Optional[StrictInt] = Field(
40-
default=None,
38+
name: StrictStr = Field(description="Name of the Share")
39+
space_hard_limit_gigabytes: StrictInt = Field(
4140
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)",
4241
alias="spaceHardLimitGigabytes",
4342
)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ResourcePool(BaseModel):
7373
default=None, description="Time when the size can be reduced again.", alias="sizeReducibleAt"
7474
)
7575
snapshots_are_visible: Optional[StrictBool] = Field(
76-
default=None,
76+
default=False,
7777
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.",
7878
alias="snapshotsAreVisible",
7979
)
@@ -209,7 +209,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
209209
),
210210
"performanceClassDowngradableAt": obj.get("performanceClassDowngradableAt"),
211211
"sizeReducibleAt": obj.get("sizeReducibleAt"),
212-
"snapshotsAreVisible": obj.get("snapshotsAreVisible"),
212+
"snapshotsAreVisible": (
213+
obj.get("snapshotsAreVisible") if obj.get("snapshotsAreVisible") is not None else False
214+
),
213215
"space": ResourcePoolSpace.from_dict(obj["space"]) if obj.get("space") is not None else None,
214216
"state": obj.get("state"),
215217
}

0 commit comments

Comments
 (0)