func Create(rp *object.ResourcePool, name string, resSpec *types.ResourceConfigSpec, vSpec *types.VAppConfigSpec, folder *object.Folder) (*object.VirtualApp, error) {
	log.Printf("[DEBUG] Creating vApp container %s/%s", rp.InventoryPath, name)
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	nva, err := rp.CreateVApp(ctx, name, *resSpec, *vSpec, folder)
	if err != nil {
		return nil, err
	}
	return nva, nil
}
func Create(rp *object.ResourcePool, name string, resSpec *types.ResourceConfigSpec, vSpec *types.VAppConfigSpec, folder *object.Folder) (*object.VirtualApp, error) {
	log.Printf("[DEBUG] Creating vApp container %s/%s", rp.InventoryPath, name)
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	nva, err := rp.CreateVApp(ctx, name, *resSpec, *vSpec, folder)
	if err != nil {
		return nil, err
	}
	return nva, nil
}
func Create ( rp * object . ResourcePool , name string , resSpec * types . ResourceConfigSpec , vSpec * types . VAppConfigSpec , folder * object . Folder ) ( * object . VirtualApp , error ) { log . Printf ( " " , rp . InventoryPath , name ) ctx , cancel := context . WithTimeout ( context . Background ( ) , provider . DefaultAPITimeout ) defer cancel ( ) nva , err := rp . CreateVApp ( ctx , name , * resSpec , * vSpec , folder ) if err != nil { return nil , err } return nva , nil }
// Create creates a VirtualApp.
Create creates a VirtualApp .