VeeamHub/veeam-vbr-sdk-go

panic: VmWare is not a valid EPlatformType

Closed this issue · 1 comments

Looking at what can actually go wrong at this point is that the EPlatformType says "VMware" while the returned type equals "VmWare"?

Cannot seem to figure out if this is a VEEAM API version issue or if the SDK should be regenerated against the specific swagger code of the VEEAM server I'm dealing with?

Any clues?

Code does have no platform type filtering at all:

       // Retrieving all restorepoints
        rps, r, err := veeam.ObjectRestorePointsApi.GetAllObjectRestorePoints(auth).XApiVersion(apiVersion).Execute()
        if err != nil {
                fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
                panic(err)
        }

Figured it out while matching the API versions of the client and the server.
Setting to api to "1.0-rev2" did the trick ...