vsphere/host_data_store_system_helper.go
func queryVmfsDatastoreExtendOptions(ctx context.Context, s *object.HostDatastoreSystem, ds *object.Datastore, devicePath string, suppressExpandCandidates bool) ([]types.VmfsDatastoreOption, error) {
	req := types.QueryVmfsDatastoreExtendOptions{
		This:                     s.Reference(),
		Datastore:                ds.Reference(),
		DevicePath:               devicePath,
		SuppressExpandCandidates: &suppressExpandCandidates,
	}

	res, err := methods.QueryVmfsDatastoreExtendOptions(ctx, s.Client(), &req)
	if err != nil {
		return nil, err
	}

	return res.Returnval, nil
}
func queryVmfsDatastoreExtendOptions(ctx context.Context, s *object.HostDatastoreSystem, ds *object.Datastore, devicePath string, suppressExpandCandidates bool) ([]types.VmfsDatastoreOption, error) {
	req := types.QueryVmfsDatastoreExtendOptions{
		This:                     s.Reference(),
		Datastore:                ds.Reference(),
		DevicePath:               devicePath,
		SuppressExpandCandidates: &suppressExpandCandidates,
	}

	res, err := methods.QueryVmfsDatastoreExtendOptions(ctx, s.Client(), &req)
	if err != nil {
		return nil, err
	}

	return res.Returnval, nil
}
// queryVmfsDatastoreExtendOptions is a stop-gap method that implements
// QueryVmfsDatastoreExtendOptions. It will be removed once the higher level
// HostDatastoreSystem object supports this method.