Releases: vmware/pyvmomi
Releases · vmware/pyvmomi
VCF 9.0 Release
Bindings
- Updated bindings with support for the new vSphere 9.0 APIs. For details, refer to the API reference guide
- New features of vSphere 9.0 based on REST APIs are available via the vSphere Automation SDK for Python
Added
- SoapStubAdapter and the connect.py wrappers now allows passing a serverPemCert parameter (
9a8956f
) - Added TOML config
Changes
- Dependency on pyOpenSSL is limited to '<24.3.0' because of breaking changes.
- Dependency on "six" is removed
Breaking changes
- SoapAdapter.HTTPProxyConnection is removed (
9a8956f
) - SoapAdapter.SSLTunnelConnection is replaced by SoapAdapter._SSLTunnelConnection which inherits Python's standard HTTPSConnection (
9a8956f
) - SoapAdapter.UnixSocketConnection is replaced by SoapAdapter._UnixSocketConnection which inherits Python's standard HTTPConnection (
9a8956f
) - 'publicVersions' and 'dottedVersions' aliases are removed. Replaced by the 'ltsVersions' alias.
- pyVmomi.VmomiSupport.VmomiJSONEncoder is replaced by pyVmomi.VmomiJSONEncoder.VmomiJSONEncoder
- pyVmomi.VmomiSupport.templateOf() is replaced by pyVmomi.VmomiJSONEncoder.templateOf()
- pyVmomi.ThumbprintMismatchException is replaced by pyVmomi.Security.ThumbprintMismatchException
- pyVmomi.SoapAdapter.ThumbprintMismatchException is replaced by pyVmomi.Security.ThumbprintMismatchException
- Settings: 'legacyThumbprintException' is removed.
- Settings: 'binaryIsBytearray' is removed.
- Settings: 'allowGetSet' is removed. The behavior is set to match allowGetSet = True
- Settings: 'allowCapitalizedNames' is removed. The behavior is set to match allowCapitalizedNames = False
- pyVmomiSettings.py is deleted
- pyVmomi feature toggling is removed. Feature.py is deleted
- setup.py, setup.cfg, requirements.txt, test-requirements.txt and tox.ini are deleted. Replaced by pyproject.toml
- 'b64token' and 'mechanism' parameters are disabled for pyVim.Connect() and pyVim.SmartConnect(). Replaced by 'token' and 'tokenType'.
Maintenance Patch 1 for 8.0U3
Changes
Fixed cyclic dependency in setup.py that broke 'pip install pyvmomi' (e4fd849
)
vSphere 8.0U3 Release
Bindings
- Added support for vSAN Health APIs
- Updated bindings with support for the new vSphere 8.0U3 APIs. For details, refer to the API reference guide
- New features of vSphere 8.0U3 based on REST APIs are available via the vSphere Automation SDK for Python
Type Hints
- Added type stubs for vSAN APIs
- All type stubs are refactored
Added
- Python 3.12 compatibility (
44d7b9f
) - Stub adapters allow the usage of an existing session (
35f2743
) - Added pyVmomi version in the user-agent request header (
5ad215f
) - Added certFile and certKeyFile attributes to SoapStubAdapter (
2bbfb62
) - Added project wide variables to hold the current pyVmomi version - version_info and version_info_str (
5ad215f
) - Added functions to VmomiSupport to list all types - ListManagedTypes(), ListDataTypes(), ListEnumTypes() (
e43a287
) (9e303c1
) - Added CHANGELOG file (
c248b32
)
Changes
- Dependency on "pywin32" is removed (
4bc1f52
) - Doc: Non-remote ManagedObject and DataObject methods are documented (
472bdfc
) - The support statement now reflects the Broadcom support policy (
c68913e
) - Copyright switch from VMware to Broadcom (
10c3732
)
Breaking changes
- sso.SsoAuthenticator.get_bearer_saml_assertion_gss_api() is removed (
11dc306
) - SSLTunnelConnection is trimmed down to handle only tunnel connections. The code that handles remote proxy doubles the HTTPProxyConnection logic and therefore is removed. (
44d7b9f
)
Deprecated
- 'publicVersions' and 'dottedVersions' aliases are deprecated (
14b5ed2
) - pyVmomiSettings.py and related settings are deprecated - allowGetSet, allowCapitalizedNames, binaryIsBytearray, legacyThumbprintException
- Features.py and all pyVmomi feature states logic is deprecated
- pyVmomi.VmomiSupport.VmomiJSONEncoder is deprecated. Use pyVmomi.VmomiJSONEncoder.VmomiJSONEncoder
- pyVmomi.VmomiSupport.templateOf() is deprecated. Use pyVmomi.VmomiJSONEncoder.templateOf()
- pyVmomi.SoapAdapter.ThumbprintMismatchException is deprecated. Use pyVmomi.Security.ThumbprintMismatchException
Maintenance Patch 1 for 8.0U2
vSphere 8.0U2 Release
Bindings:
- Updated bindings and type hints with support for vSphere 8.0U2. Includes updates to VIM, PBM, EAM, SMS and VSLM namespaces. For details, refer “What’s New in vSphere API 8.0U2?” section in the API reference guide: https://developer.vmware.com/apis/1720/vsphere
- New features of vSphere 8.0U2 based on REST APIs are available via the vSphere Automation SDK for Python https://github.com/vmware/vsphere-automation-sdk-python
Maintenance Patch 2 for 8.0U1
Bindings:
- Added bindings and type hints for Virtual Storage Lifecycle Management for vSphere 8.0U1 - VSLM namespace
Changes:
- Fixed: #1021 - Switch to static imports for type info modules
- Fixed: #1022 - Support proxy authentication
- Add custom HTTP headers support to connect.SmartStubAdapter()
- Missing filters are no longer treated as task failures
- Various small fixes for docstrings and linter checks
Type Hints Fixes:
- Fixed: #1026 - Use the "from Y import X as X" format to re-export submodules
- Fixed: #1030 - Use a fully qualified name when the type is from another namespace/package
Tests:
- vcrpy dependency is updated to the latest version with Python 2 support
- testtools dependency is removed
- Travis CI is no longer used
- Various test updates and fixes. All tests are enabled.
Maintenance Patch 1 for 8.0U1
Type Hints Fixes:
- Added missing VMODL1 classes to the type hints
- Enum values now match the letter case of the values from typeinfo files
- Fixed: #1115 - Syntax error in vim/__init__pyi
- Fixed: #1117 - Type stubs: Writable properties are marked as read-only
- Fixed: #1118 - Type stubs: Missing vim.fault.* and vmodl.fault.* types
- Fixed: #1119 - Type stubs: Enum fields should also accept Literal[] str type
- Fixed: #1120 - Type stubs: Exception types must inherit from (Base)Exception
vSphere 8.0U1 Release
Bindings:
- Updated bindings with support for vSphere 8.0U1. Includes updates to VIM, PBM, EAM and SMS namespaces. For details, refer “What’s New in vSphere API 8.0U1?” section in the API reference guide: https://developer.vmware.com/apis/1639/vsphere
- New features of vSphere 8.0U1 based on REST APIs are available via the vSphere Automation SDK for Python https://github.com/vmware/vsphere-automation-sdk-python
Changes:
Maintenance Patch 2 for 8.0
Changes:
- Fixed: #995 - 8.0.0.1 breaks Ansible vmware_content_deploy_ovf_template folder lookup
- This release restores the legacy behavior when retrieving managed properties and array of instances of ManagedObject