vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.26k stars 896 forks source link

api: Add library item storage APIs #3442

Closed dilyar85 closed 1 month ago

dilyar85 commented 1 month ago

Description

This PR adds a new set of APIs to retrieve library item storage, as defined in https://developer.broadcom.com/xapis/vsphere-automation-api/v8.0U1/content/library/item-storage/

Closes: N/A

Type of change

How Has This Been Tested?

Consumed this API in an operator running in the internal Supervisor cluster and verified the expected Storage URI retrieved for each file available in a content library item:

fileInfo:
  - cached: true
    name: ubuntu-20.04-vmservice-v1alpha1.20210528.ovf
    sizeInBytes: "10552"
    storageURI: ds:///vmfs/volumes/... <redacted>
    version: "1"
  - cached: true
    name: ubuntu-20.04-vmservice-v1alpha1.20210528-disk1.vmdk
    sizeInBytes: "1426063360"
    storageURI: ds:///vmfs/volumes/... <redacted>
    version: "1"

Checklist: