This PR updates the AddLibraryItemFileFromURI API with an optional LibraryItemFileChecksumInfo that the server can use to verify the uploaded library file content.
It also updates the govc library.import command accordingly with the new checksum arguments (-c for checksum value & -a for checksum algorithm).
Type of change
[x] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
[x] Updated the existing govc bats to verify the new arguments syntax. Passed all tests locally:
[x] Manually verified the new API change against a real VC:
Description
This PR updates the
AddLibraryItemFileFromURI
API with an optional LibraryItemFileChecksumInfo that the server can use to verify the uploaded library file content. It also updates the govclibrary.import
command accordingly with the new checksum arguments (-c
for checksum value &-a
for checksum algorithm).Type of change
How Has This Been Tested?
Checklist:
CONTRIBUTION
[guidelines] of this project