Skip to content

Commit b47634e

Browse files
committed
chore: sync from pve-openapi@4368a71
fix: drop deprecated property aliases to unblock PHP SDK
1 parent d263168 commit b47634e

6 files changed

Lines changed: 6 additions & 31 deletions

pve_client/models/cluster_bulk_action_migrate_request.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class ClusterBulkActionMigrateRequest(BaseModel):
3232

3333
max_workers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=1, description="Defines the maximum number of tasks running concurrently.", alias="max-workers")
3434

35-
maxworkers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=1, description="Defines the maximum number of tasks running concurrently. Deprecated, use 'max-workers' instead.")
36-
3735
online: Optional[PveBoolean] = Field(default=None, description="Enable live migration for VMs and restart migration for CTs.")
3836

3937
target: Annotated[str, Field(strict=True)] = Field(description="Target node.")
@@ -42,8 +40,7 @@ class ClusterBulkActionMigrateRequest(BaseModel):
4240

4341
with_local_disks: Optional[PveBoolean] = Field(default=None, description="Enable live storage migration for local disk", alias="with-local-disks")
4442

45-
__properties: ClassVar[List[str]] = ["max-workers", "maxworkers", "online", "target", "vms", "with-local-disks"]
46-
43+
__properties: ClassVar[List[str]] = ["max-workers", "online", "target", "vms", "with-local-disks"]
4744

4845

4946

@@ -114,7 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
114111

115112
_obj = cls.model_validate({
116113
"max-workers": obj.get("max-workers") if obj.get("max-workers") is not None else 1,
117-
"maxworkers": obj.get("maxworkers") if obj.get("maxworkers") is not None else 1,
118114
"online": obj.get("online"),
119115
"target": obj.get("target"),
120116
"vms": obj.get("vms"),

pve_client/models/cluster_bulk_action_shutdown_request.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ class ClusterBulkActionShutdownRequest(BaseModel):
3434

3535
max_workers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=4, description="Defines the maximum number of tasks running concurrently.", alias="max-workers")
3636

37-
maxworkers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=4, description="Defines the maximum number of tasks running concurrently. Deprecated, use 'max-workers' instead.")
38-
3937
timeout: Optional[StrictInt] = Field(default=180, description="Default shutdown timeout in seconds if none is configured for the guest.")
4038

4139
vms: Optional[List[Annotated[int, Field(le=999999999, strict=True, ge=100)]]] = Field(default=None, description="Only consider guests from this list of VMIDs.")
4240

43-
__properties: ClassVar[List[str]] = ["force-stop", "max-workers", "maxworkers", "timeout", "vms"]
44-
41+
__properties: ClassVar[List[str]] = ["force-stop", "max-workers", "timeout", "vms"]
4542

4643

4744

@@ -102,7 +99,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
10299
_obj = cls.model_validate({
103100
"force-stop": obj.get("force-stop"),
104101
"max-workers": obj.get("max-workers") if obj.get("max-workers") is not None else 4,
105-
"maxworkers": obj.get("maxworkers") if obj.get("maxworkers") is not None else 4,
106102
"timeout": obj.get("timeout") if obj.get("timeout") is not None else 180,
107103
"vms": obj.get("vms")
108104
})

pve_client/models/cluster_bulk_action_start_request.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ class ClusterBulkActionStartRequest(BaseModel):
3131

3232
max_workers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=4, description="Defines the maximum number of tasks running concurrently.", alias="max-workers")
3333

34-
maxworkers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=4, description="Defines the maximum number of tasks running concurrently. Deprecated, use 'max-workers' instead.")
35-
3634
timeout: Optional[StrictInt] = Field(default=None, description="Default start timeout in seconds. Only valid for VMs. (default depends on the guest configuration).")
3735

3836
vms: Optional[List[Annotated[int, Field(le=999999999, strict=True, ge=100)]]] = Field(default=None, description="Only consider guests from this list of VMIDs.")
3937

40-
__properties: ClassVar[List[str]] = ["max-workers", "maxworkers", "timeout", "vms"]
41-
38+
__properties: ClassVar[List[str]] = ["max-workers", "timeout", "vms"]
4239

4340

4441

@@ -97,7 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9794

9895
_obj = cls.model_validate({
9996
"max-workers": obj.get("max-workers") if obj.get("max-workers") is not None else 4,
100-
"maxworkers": obj.get("maxworkers") if obj.get("maxworkers") is not None else 4,
10197
"timeout": obj.get("timeout"),
10298
"vms": obj.get("vms")
10399
})

pve_client/models/cluster_bulk_action_suspend_request.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@ class ClusterBulkActionSuspendRequest(BaseModel):
3232

3333
max_workers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=4, description="Defines the maximum number of tasks running concurrently.", alias="max-workers")
3434

35-
maxworkers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=4, description="Defines the maximum number of tasks running concurrently. Deprecated, use 'max-workers' instead.")
36-
3735
statestorage: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The storage for the VM state.")
3836

3937
to_disk: Optional[PveBoolean] = Field(default=None, description="If set, suspends the guests to disk. Will be resumed on next start.", alias="to-disk")
4038

4139
vms: Optional[List[Annotated[int, Field(le=999999999, strict=True, ge=100)]]] = Field(default=None, description="Only consider guests from this list of VMIDs.")
4240

43-
__properties: ClassVar[List[str]] = ["max-workers", "maxworkers", "statestorage", "to-disk", "vms"]
44-
41+
__properties: ClassVar[List[str]] = ["max-workers", "statestorage", "to-disk", "vms"]
4542

4643

4744

@@ -114,7 +111,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
114111

115112
_obj = cls.model_validate({
116113
"max-workers": obj.get("max-workers") if obj.get("max-workers") is not None else 4,
117-
"maxworkers": obj.get("maxworkers") if obj.get("maxworkers") is not None else 4,
118114
"statestorage": obj.get("statestorage"),
119115
"to-disk": obj.get("to-disk"),
120116
"vms": obj.get("vms")

pve_client/models/cluster_options_set_options_request.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2121
from typing import Any, ClassVar, Dict, List, Optional
2222
from typing_extensions import Annotated
23-
from pve_client.models.pve_boolean import PveBoolean
2423
from pve_client.models.pve_bwlimit_field import PveBwlimitField
2524
from pve_client.models.pve_cluster_options_fencing_enum import PveClusterOptionsFencingEnum
2625
from pve_client.models.pve_cluster_options_language_enum import PveClusterOptionsLanguageEnum
@@ -78,8 +77,6 @@ class ClusterOptionsSetOptionsRequest(BaseModel):
7877

7978
migration: Optional[PveMigrationField] = Field(default=None, description="For cluster wide migration settings.")
8079

81-
migration_unsecure: Optional[PveBoolean] = Field(default=None, description="Migration is secure using SSH tunnel by default. For secure private networks you can disable it to speed up migration. Deprecated, use the 'migration' property instead!")
82-
8380
next_id: Optional[PveNextIdField] = Field(default=None, description="Control the range for the free VMID auto-selection pool.", alias="next-id")
8481

8582
notify: Optional[PveNotifyField] = Field(default=None, description="Cluster-wide notification settings.")
@@ -96,7 +93,7 @@ class ClusterOptionsSetOptionsRequest(BaseModel):
9693

9794
webauthn: Optional[PveWebauthnField] = Field(default=None, description="webauthn configuration")
9895

99-
__properties: ClassVar[List[str]] = ["bwlimit", "consent-text", "console", "crs", "delete", "description", "email_from", "fencing", "ha", "http_proxy", "keyboard", "language", "location", "mac_prefix", "max_workers", "migration", "migration_unsecure", "next-id", "notify", "registered-tags", "replication", "tag-style", "u2f", "user-tag-access", "webauthn"]
96+
__properties: ClassVar[List[str]] = ["bwlimit", "consent-text", "console", "crs", "delete", "description", "email_from", "fencing", "ha", "http_proxy", "keyboard", "language", "location", "mac_prefix", "max_workers", "migration", "next-id", "notify", "registered-tags", "replication", "tag-style", "u2f", "user-tag-access", "webauthn"]
10097

10198

10299

@@ -130,7 +127,6 @@ def http_proxy_validate_regular_expression(cls, value):
130127

131128

132129

133-
134130
@field_validator('registered_tags')
135131
def registered_tags_validate_regular_expression(cls, value):
136132
"""Validates the regular expression"""
@@ -254,7 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
254250
"mac_prefix": obj.get("mac_prefix") if obj.get("mac_prefix") is not None else 'BC:24:11',
255251
"max_workers": obj.get("max_workers"),
256252
"migration": PveMigrationField.from_dict(obj["migration"]) if obj.get("migration") is not None else None,
257-
"migration_unsecure": obj.get("migration_unsecure"),
258253
"next-id": PveNextIdField.from_dict(obj["next-id"]) if obj.get("next-id") is not None else None,
259254
"notify": PveNotifyField.from_dict(obj["notify"]) if obj.get("notify") is not None else None,
260255
"registered-tags": obj.get("registered-tags"),

pve_client/models/nodes_migrateall_request.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@ class NodesMigrateallRequest(BaseModel):
3232

3333
max_workers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=None, description="Maximal number of parallel migration job. If not set, uses'max_workers' from datacenter.cfg. One of both must be set!", alias="max-workers")
3434

35-
maxworkers: Optional[Annotated[int, Field(le=64, strict=True, ge=1)]] = Field(default=None, description="Maximal number of parallel migration job. If not set, uses'max_workers' from datacenter.cfg. One of both must be set!Deprecated, use 'max-workers' instead.")
36-
3735
target: Annotated[str, Field(strict=True)] = Field(description="Target node.")
3836

3937
vms: Optional[StrictStr] = Field(default=None, description="Only consider Guests with these IDs.")
4038

4139
with_local_disks: Optional[PveBoolean] = Field(default=None, description="Enable live storage migration for local disk", alias="with-local-disks")
4240

43-
__properties: ClassVar[List[str]] = ["max-workers", "maxworkers", "target", "vms", "with-local-disks"]
44-
41+
__properties: ClassVar[List[str]] = ["max-workers", "target", "vms", "with-local-disks"]
4542

4643

4744

@@ -111,7 +108,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
111108

112109
_obj = cls.model_validate({
113110
"max-workers": obj.get("max-workers"),
114-
"maxworkers": obj.get("maxworkers"),
115111
"target": obj.get("target"),
116112
"vms": obj.get("vms"),
117113
"with-local-disks": obj.get("with-local-disks")

0 commit comments

Comments
 (0)