Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Release (2026-xx-xx)

- `sfs`: [v0.3.0](services/sfs/CHANGELOG.md#v030)
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.
- `serviceaccount`: [v0.5.0](services/serviceaccount/CHANGELOG.md#v050)
- **Feature:** add support for Federated Identity Providers
- new operations: `CreateFederatedIdentityProvider`, `DeleteServiceFederatedIdentityProvider`, `ListFederatedIdentityProviders`,`PartialUpdateServiceAccountFederatedIdentityProvider`
Expand Down
3 changes: 3 additions & 0 deletions services/sfs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.3.0
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.

## v0.2.0
- **Feature:** Switch from `v1beta` API version to `v1` version.
- **Breaking change:** Remove `ListSnapshotSchedules` method
Expand Down
2 changes: 1 addition & 1 deletion services/sfs/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9916269dab33d42aa2f1a5f30c80b954b6c1221f
fe212a12ec79a23b81cb53d9a7728f5706bddc23
2 changes: 1 addition & 1 deletion services/sfs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-sfs"

[tool.poetry]
name = "stackit-sfs"
version = "v0.2.0"
version = "v0.3.0"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 2 additions & 3 deletions services/sfs/src/stackit/sfs/models/create_share_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down
6 changes: 4 additions & 2 deletions services/sfs/src/stackit/sfs/models/resource_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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"),
}
Expand Down