vsphere/internal/helper/resourcepool/resource_pool_helper.go
func Create(rp *object.ResourcePool, name string, spec *types.ResourceConfigSpec) (*object.ResourcePool, error) {
	log.Printf("[DEBUG] Creating resource pool %q", fmt.Sprintf("%s/%s", rp.InventoryPath, name))
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	nrp, err := rp.Create(ctx, name, *spec)
	if err != nil {
		return nil, err
	}
	return nrp, nil
}
func Create(rp *object.ResourcePool, name string, spec *types.ResourceConfigSpec) (*object.ResourcePool, error) {
	log.Printf("[DEBUG] Creating resource pool %q", fmt.Sprintf("%s/%s", rp.InventoryPath, name))
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	nrp, err := rp.Create(ctx, name, *spec)
	if err != nil {
		return nil, err
	}
	return nrp, nil
}
// Create creates a ResourcePool.