Skip to content

Commit 34a8275

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

27 files changed

Lines changed: 84 additions & 60 deletions

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.github/workflows/python.yml
22
.gitignore
33
.gitlab-ci.yml
4+
.openapi-generator-ignore
45
.travis.yml
56
README.md
67
clientapi_pdm/__init__.py

README.md

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

3030
cfg = Configuration(
3131
host='https://pdm1.example.com:8443/api2/json',
32-
api_key={'Authorization': 'PDMAPIToken=user@realm!tokenid=uuid-secret'},
32+
api_key={'Authorization': 'PDMAPIToken=user@realm!tokenid:uuid-secret'},
3333
)
3434
pdm = Pdm(configuration=cfg)
3535

clientapi_pdm/__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_pdm/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_pdm/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_pdm/models/access_acl_get_acl_response_data_inner.py

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

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

clientapi_pdm/models/access_acl_update_acl_request.py

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

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

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

4444
role: StrictStr = Field(description="Name of a role that the auth id will be granted.")
4545

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

clientapi_pdm/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_pdm/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)