vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.27k stars 897 forks source link

api: Expose vSphere API to evict subscribed content library #3402

Closed acharyasreej closed 2 months ago

acharyasreej commented 2 months ago

Closes: #3400

Description

This change exposes the vSphere API to evict the subscribed content library to free up storage capacity. The vSphere API evicts the cached content of an on-demand subscribed library. This operation allows the cached content of a subscribed library to be removed to free up storage capacity. This operation will only work when a subscribed library is synchronized on-demand.

Closes: #3400

Type of change

Please mark options that are relevant:

How Has This Been Tested?

Ran the govc tests locally

acharyasreej@acharyasreY5WYK test % ./library.bats library.bats ✓ library ✓ library.import ✓ library.deploy ✓ library.clone ovf ✓ library.deploy vmtx ✓ library.vmtx.info ✓ library.pubsub ✓ library.subscriber example ✓ library.create.withpolicy ✓ library.findbyid ✓ library.trust ✓ library.session ✓ library.probe ✓ library.evict

Checklist: