redfish-python-sdk 1.1.0__tar.gz → 1.2.0__tar.gz

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.
Files changed (70) hide show
  1. {redfish_python_sdk-1.1.0/redfish_python_sdk.egg-info → redfish_python_sdk-1.2.0}/PKG-INFO +1 -1
  2. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/pyproject.toml +1 -1
  3. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0/redfish_python_sdk.egg-info}/PKG-INFO +1 -1
  4. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/__init__.py +1 -1
  5. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/common.py +2 -2
  6. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/fru.py +4 -4
  7. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/processor.py +3 -3
  8. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/LICENSE +0 -0
  9. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/README.md +0 -0
  10. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_python_sdk.egg-info/SOURCES.txt +0 -0
  11. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_python_sdk.egg-info/dependency_links.txt +0 -0
  12. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_python_sdk.egg-info/requires.txt +0 -0
  13. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_python_sdk.egg-info/top_level.txt +0 -0
  14. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/client.py +0 -0
  15. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/exceptions.py +0 -0
  16. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/http_client.py +0 -0
  17. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/__init__.py +0 -0
  18. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/_log_helpers.py +0 -0
  19. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/account.py +0 -0
  20. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/chassis.py +0 -0
  21. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/event.py +0 -0
  22. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/managers.py +0 -0
  23. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/registries.py +0 -0
  24. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/session.py +0 -0
  25. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/systems.py +0 -0
  26. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/task.py +0 -0
  27. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update.py +0 -0
  28. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/__init__.py +0 -0
  29. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/base.py +0 -0
  30. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/h3c.py +0 -0
  31. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/inspur.py +0 -0
  32. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/lenovo.py +0 -0
  33. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/nettrix.py +0 -0
  34. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/registry.py +0 -0
  35. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/vendor_detect.py +0 -0
  36. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/xfusion.py +0 -0
  37. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/managers/update_strategies/zte.py +0 -0
  38. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/__init__.py +0 -0
  39. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/account.py +0 -0
  40. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/chassis.py +0 -0
  41. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/check.py +0 -0
  42. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/drive.py +0 -0
  43. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/event.py +0 -0
  44. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/gpu.py +0 -0
  45. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/logs.py +0 -0
  46. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/managers.py +0 -0
  47. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/memory.py +0 -0
  48. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/network_adapter.py +0 -0
  49. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/oem.py +0 -0
  50. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/pcie_device.py +0 -0
  51. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/power.py +0 -0
  52. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/registry.py +0 -0
  53. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/resource_key.py +0 -0
  54. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/root.py +0 -0
  55. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/session.py +0 -0
  56. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/storage.py +0 -0
  57. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/systems.py +0 -0
  58. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/task.py +0 -0
  59. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/thermal.py +0 -0
  60. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/redfish_sdk/models/update.py +0 -0
  61. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/setup.cfg +0 -0
  62. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_client_mock.py +0 -0
  63. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_log_entries_mock.py +0 -0
  64. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_models.py +0 -0
  65. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_models_mock.py +0 -0
  66. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_offline_json.py +0 -0
  67. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_real_bmc.py +0 -0
  68. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_sdk_mock.py +0 -0
  69. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_update_strategies.py +0 -0
  70. {redfish_python_sdk-1.1.0 → redfish_python_sdk-1.2.0}/tests/test_v1_1_apis_mock.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: redfish-python-sdk
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: A Python SDK for interacting with Redfish-compliant BMC endpoints
5
5
  Author: RedNote Infrastructure
6
6
  License: BSD 3-Clause License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "redfish-python-sdk"
7
- version = "1.1.0"
7
+ version = "1.2.0"
8
8
  description = "A Python SDK for interacting with Redfish-compliant BMC endpoints"
9
9
  requires-python = ">=3.9"
10
10
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: redfish-python-sdk
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: A Python SDK for interacting with Redfish-compliant BMC endpoints
5
5
  Author: RedNote Infrastructure
6
6
  License: BSD 3-Clause License
@@ -55,7 +55,7 @@ from .models.managers import (
55
55
  from .models.resource_key import RedfishResource
56
56
  from .models.systems import BootOption
57
57
 
58
- __version__ = "1.0.0"
58
+ __version__ = "1.2.0"
59
59
  __author__ = "RedNote Infrastructure"
60
60
 
61
61
  __all__ = [
@@ -3,7 +3,7 @@ Common base models for Redfish resources.
3
3
  """
4
4
  from __future__ import annotations
5
5
 
6
- from typing import Generic, List, Optional, TypeVar
6
+ from typing import Generic, List, Optional, TypeVar, Union
7
7
 
8
8
  from pydantic import BaseModel, ConfigDict, Field
9
9
 
@@ -30,7 +30,7 @@ class Entity(Link):
30
30
  odata_context: Optional[str] = Field(None, alias="@odata.context")
31
31
  odata_type: Optional[str] = Field(None, alias="@odata.type")
32
32
  odata_etag: Optional[str] = Field(None, alias="@odata.etag")
33
- id: Optional[str] = Field(None, alias="Id")
33
+ id: Optional[Union[str, int]] = Field(None, alias="Id")
34
34
  name: Optional[str] = Field(None, alias="Name")
35
35
  description: Optional[str] = Field(None, alias="Description")
36
36
 
@@ -6,7 +6,7 @@ from __future__ import annotations
6
6
 
7
7
  from typing import Optional
8
8
 
9
- from pydantic import BaseModel, ConfigDict, Field
9
+ from pydantic import BaseModel, ConfigDict, Field, AliasChoices
10
10
 
11
11
  from .common import Entity, Status
12
12
  from .oem import MainBoard
@@ -16,8 +16,8 @@ class FruChassis(BaseModel):
16
16
  """FRU chassis component info."""
17
17
  model_config = ConfigDict(populate_by_name=True, extra="allow")
18
18
 
19
- chassis_part_number: Optional[str] = Field(None, alias="ChassisPartNumber")
20
- chassis_serial_number: Optional[str] = Field(None, alias="ChassisSerialNumber")
19
+ chassis_part_number: Optional[str] = Field(None, validation_alias=AliasChoices("ChassisPartNumber", "PartNumber"))
20
+ chassis_serial_number: Optional[str] = Field(None, validation_alias=AliasChoices("ChassisSerialNumber", "SerialNumber"))
21
21
  chassis_type: Optional[str] = Field(None, alias="ChassisType")
22
22
 
23
23
 
@@ -26,7 +26,7 @@ class FruProduct(BaseModel):
26
26
  model_config = ConfigDict(populate_by_name=True, extra="allow")
27
27
 
28
28
  manufacturer: Optional[str] = Field(None, alias="Manufacturer")
29
- name: Optional[str] = Field(None, alias="Name")
29
+ name: Optional[str] = Field(None, validation_alias=AliasChoices("Name", "PrettyName"))
30
30
  part_number: Optional[str] = Field(None, alias="PartNumber")
31
31
  serial_number: Optional[str] = Field(None, alias="SerialNumber")
32
32
  version: Optional[str] = Field(None, alias="Version")
@@ -6,7 +6,7 @@ from __future__ import annotations
6
6
 
7
7
  from typing import Any, Optional
8
8
 
9
- from pydantic import BaseModel, ConfigDict
9
+ from pydantic import BaseModel, ConfigDict, model_validator, AliasChoices, AliasPath
10
10
 
11
11
  from .check import Field
12
12
  from .common import Entity, Link, Status
@@ -33,7 +33,7 @@ class Processor(Entity):
33
33
  """
34
34
  instruction_set: Optional[str] = Field(None, alias="InstructionSet")
35
35
  manufacturer: Optional[str] = Field(None, alias="Manufacturer", validate="required,type=str")
36
- max_speed_mhz: Optional[int] = Field(None, alias="MaxSpeedMHz", validate="type=int,gt=0")
36
+ max_speed_mhz: Optional[int] = Field(None, alias=AliasChoices("MaxSpeedMHz", AliasPath("Oem", "BMC", "MaxFrequencyMHz")), validate="type=int,gt=0")
37
37
  model: Optional[str] = Field(None, alias="Model", validate="required,type=str")
38
38
  operating_speed_mhz: Optional[int] = Field(None, alias="OperatingSpeedMHz")
39
39
  processor_architecture: Optional[str] = Field(None, alias="ProcessorArchitecture")
@@ -44,7 +44,7 @@ class Processor(Entity):
44
44
  total_threads: Optional[int] = Field(None, alias="TotalThreads", validate="required,type=int,gt=0,gte_field=total_cores")
45
45
  max_tdp_watts: Optional[int] = Field(None, alias="MaxTDPWatts")
46
46
  tdp_watts: Optional[int] = Field(None, alias="TDPWatts")
47
- serial_number: Optional[str] = Field(None, alias="SerialNumber")
47
+ serial_number: Optional[str] = Field(None, alias=AliasChoices("SerialNumber", AliasPath("Oem", "BMC", "SerialNumber")))
48
48
  status: Optional[Status] = Field(None, alias="Status", validate="status")
49
49
  oem: Optional[Oem] = Field(None, alias="Oem")
50
50
  environment_metrics: Optional[Link] = Field(None, alias="EnvironmentMetrics")