python3-core-api-client 6.0__py3-none-any.whl → 6.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,15 +45,19 @@ class DtoResponse(Generic[DtoType]):
45
45
 
46
46
  dto: list = []
47
47
 
48
+ is_list_response = False
49
+
48
50
  for response in responses:
49
51
  items = response.json
50
52
 
51
53
  if isinstance(items, list):
54
+ is_list_response = True
55
+
52
56
  dto.extend(model.model_validate(object_) for object_ in items)
53
57
  else:
54
58
  dto.append(model.model_validate(items))
55
59
 
56
60
  return cls(
57
61
  requests_responses=[r.requests_response for r in responses],
58
- dto=dto,
62
+ dto=dto if is_list_response else dto[0],
59
63
  )
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-core-api-client
3
- Version: 6.0
3
+ Version: 6.0.2
4
4
  Summary: Python client for Core API.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-core-api-client
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: certifi==2026.2.25
9
- Requires-Dist: requests==2.33.0
9
+ Requires-Dist: requests==2.33.1
10
10
  Requires-Dist: pydantic[email]==2.12.5
11
11
 
12
12
  # python3-core-api-client
@@ -3,7 +3,7 @@ cyberfusion/CoreApiClient/_encoders.py,sha256=Cf52zbE5vs4WYXRNvFPt9bBo4TV-pOyCLa
3
3
  cyberfusion/CoreApiClient/_helpers.py,sha256=QZ5OsQB_THFyKOyplR3bbdnVI1YlieiQF2imMOzc5So,241
4
4
  cyberfusion/CoreApiClient/connector.py,sha256=qjo7VkMgwlBWzLYMNoCxYRvafBLeQLK-J52hXI6aphM,13664
5
5
  cyberfusion/CoreApiClient/exceptions.py,sha256=fNxPtzVL4SzPiVNZmBTu1l8D57dkCxMxflyIXDPLE4Q,204
6
- cyberfusion/CoreApiClient/http.py,sha256=jR8hIMIYh0FOkLiUsbuxqoN5n6h3Ve6QanbvALlFM5Q,1470
6
+ cyberfusion/CoreApiClient/http.py,sha256=I0eNtlqZ1cvhDCL7nJUCUxnV0MmLckNnZoMLj4ot-bk,1577
7
7
  cyberfusion/CoreApiClient/interfaces.py,sha256=P0wCbmSNEpB-eF49PHudc_qXM4blIXm4TsD2AB0z_7Q,269
8
8
  cyberfusion/CoreApiClient/models.py,sha256=Ggr7Fff-J4WGjqnO2nTZkQtjm5AZKStUS01-K1PXsfE,113023
9
9
  cyberfusion/CoreApiClient/resources/__init__.py,sha256=TLVfbm4Cs744SR6L_HN1BrH2-yUP9DlHl7XL5BN5oVg,1891
@@ -54,7 +54,7 @@ cyberfusion/CoreApiClient/resources/task_collections.py,sha256=XmJ2JqssmWRxl5t_m
54
54
  cyberfusion/CoreApiClient/resources/unix_users.py,sha256=dJknxliUJpWaKzrZgRhZvnuTRgnC-25vXt1asUPDxmc,4092
55
55
  cyberfusion/CoreApiClient/resources/url_redirects.py,sha256=S113S_8-Xzy040Lt67AetenB-Cjsnyg34prDnr5yf84,2741
56
56
  cyberfusion/CoreApiClient/resources/virtual_hosts.py,sha256=mIFeF17_XJtQKkIDXJfrOFQ9M-uOifBKGRIytOnGjNk,5392
57
- python3_core_api_client-6.0.dist-info/METADATA,sha256=L27hDCOB8yEzy2LOK-KYcW-WWUUUH69cPooqXKjJCtQ,8593
58
- python3_core_api_client-6.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
59
- python3_core_api_client-6.0.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
60
- python3_core_api_client-6.0.dist-info/RECORD,,
57
+ python3_core_api_client-6.0.2.dist-info/METADATA,sha256=rE9PRYCkbDPwwtRcO-hMUtk_BwPy9ucEGZt787B7nPw,8595
58
+ python3_core_api_client-6.0.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
59
+ python3_core_api_client-6.0.2.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
60
+ python3_core_api_client-6.0.2.dist-info/RECORD,,