Skip to content

Commit 9e1eabb

Browse files
committed
chore: sync from pve-openapi@c23917a
fix(auth): per-product token separator (= for Perl, : for Rust family)
1 parent b24748c commit 9e1eabb

33 files changed

Lines changed: 62 additions & 86 deletions

.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.github/workflows/python.yml
22
.gitignore
33
.gitlab-ci.yml
4-
.openapi-generator-ignore
54
.travis.yml
65
README.md
76
clientapi_pbs/__init__.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ from clientapi_pbs import Configuration, Pve
2929

3030
cfg = Configuration(
3131
host='https://pbs1.example.com:8007/api2/json',
32-
api_key={'Authorization': 'PBSAPIToken=user@realm!tokenid=uuid-secret'},
32+
api_key={'Authorization': 'PBSAPIToken=user@realm!tokenid:uuid-secret'},
3333
)
3434
pbs = Pbs(configuration=cfg)
3535

clientapi_pbs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "2026.5.23"
17+
__version__ = "2026.5.24"
1818

1919
# Define package exports
2020
__all__ = [

clientapi_pbs/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/2026.5.23/python'
94+
self.user_agent = 'OpenAPI-Generator/2026.5.24/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

clientapi_pbs/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def to_debug_report(self) -> str:
574574
"OS: {env}\n"\
575575
"Python Version: {pyversion}\n"\
576576
"Version of the API: 9.x\n"\
577-
"SDK Package Version: 2026.5.23".\
577+
"SDK Package Version: 2026.5.24".\
578578
format(env=sys.platform, pyversion=sys.version)
579579

580580
def get_host_settings(self) -> List[HostSetting]:

clientapi_pbs/models/access_acl_get_acl_response_data_inner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
112112

113113
_obj = cls.model_validate({
114114
"path": obj.get("path"),
115-
"propagate": obj.get("propagate") if obj.get("propagate") is not None else False,
115+
"propagate": obj.get("propagate") if obj.get("propagate") is not None else True,
116116
"roleid": obj.get("roleid"),
117117
"ugid": obj.get("ugid"),
118118
"ugid_type": obj.get("ugid_type")

clientapi_pbs/models/access_acl_update_acl_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AccessAclUpdateAclRequest(BaseModel):
4040

4141
path: Annotated[str, Field(min_length=1, strict=True, max_length=128)] = Field(description="Access control path.")
4242

43-
propagate: Optional[StrictBool] = Field(default=False, description="Allow to propagate (inherit) permissions.")
43+
propagate: Optional[StrictBool] = Field(default=True, description="Allow to propagate (inherit) permissions.")
4444

4545
role: PbsRoleidEnum = Field(description="Enum representing roles via their [PRIVILEGES] combination. Since privileges are implemented as bitflags, each unique combination of privileges maps to a single, unique `u64` value that is used in this enum definition.")
4646

@@ -160,7 +160,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
160160
"digest": obj.get("digest"),
161161
"group": obj.get("group"),
162162
"path": obj.get("path"),
163-
"propagate": obj.get("propagate") if obj.get("propagate") is not None else False,
163+
"propagate": obj.get("propagate") if obj.get("propagate") is not None else True,
164164
"role": obj.get("role")
165165
})
166166
return _obj

clientapi_pbs/models/access_users_create_token_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AccessUsersCreateTokenRequest(BaseModel):
3333

3434
digest: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.")
3535

36-
enable: Optional[StrictBool] = Field(default=False, description="Enable the account (default). You can set this to '0' to disable the account.")
36+
enable: Optional[StrictBool] = Field(default=True, description="Enable the account (default). You can set this to '0' to disable the account.")
3737

3838
expire: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, description="Account expiration date (seconds since epoch). '0' means no expiration date.")
3939

@@ -124,7 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
124124
_obj = cls.model_validate({
125125
"comment": obj.get("comment"),
126126
"digest": obj.get("digest"),
127-
"enable": obj.get("enable") if obj.get("enable") is not None else False,
127+
"enable": obj.get("enable") if obj.get("enable") is not None else True,
128128
"expire": obj.get("expire") if obj.get("expire") is not None else 0
129129
})
130130
return _obj

clientapi_pbs/models/access_users_create_users_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AccessUsersCreateUsersRequest(BaseModel):
3333

3434
email: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=64)]] = Field(default=None, description="E-Mail Address.")
3535

36-
enable: Optional[StrictBool] = Field(default=False, description="Enable the account (default). You can set this to '0' to disable the account.")
36+
enable: Optional[StrictBool] = Field(default=True, description="Enable the account (default). You can set this to '0' to disable the account.")
3737

3838
expire: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, description="Account expiration date (seconds since epoch). '0' means no expiration date.")
3939

@@ -185,7 +185,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
185185
_obj = cls.model_validate({
186186
"comment": obj.get("comment"),
187187
"email": obj.get("email"),
188-
"enable": obj.get("enable") if obj.get("enable") is not None else False,
188+
"enable": obj.get("enable") if obj.get("enable") is not None else True,
189189
"expire": obj.get("expire") if obj.get("expire") is not None else 0,
190190
"firstname": obj.get("firstname"),
191191
"lastname": obj.get("lastname"),

0 commit comments

Comments
 (0)