void ovirt_vm_pool_allocate_vm_async(OvirtVmPool *vm_pool, OvirtProxy *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { ovirt_resource_invoke_action_async(OVIRT_RESOURCE(vm_pool), "allocatevm", proxy, NULL, cancellable, callback, user_data); }
/** * ovirt_api_get_vm_pools: * @api: a #OvirtApi * * This method does not initiate any network activity, the collection * must be fetched with ovirt_collection_fetch() before having up-to-date * content. * * Return value: (transfer none): */ OvirtCollection *ovirt_api_get_vm_pools(OvirtApi *api) { const char *href; g_return_val_if_fail(OVIRT_IS_API(api), NULL); if (api->priv->vm_pools != NULL) return api->priv->vm_pools; href = ovirt_resource_get_sub_collection(OVIRT_RESOURCE(api), "vmpools"); if (href == NULL) return NULL; api->priv->vm_pools = ovirt_collection_new(href, "vmpools", OVIRT_TYPE_VM_POOL, "vmpool"); return api->priv->vm_pools; }
/** * ovirt_api_get_storage_domains: * @api: a #OvirtApi * * This method does not initiate any network activity, the collection * must be fetched with ovirt_collection_fetch() before having up-to-date * content. * * Return value: (transfer none): */ OvirtCollection *ovirt_api_get_storage_domains(OvirtApi *api) { const char *href; g_return_val_if_fail(OVIRT_IS_API(api), NULL); if (api->priv->storage_domains != NULL) return api->priv->storage_domains; href = ovirt_resource_get_sub_collection(OVIRT_RESOURCE(api), "storagedomains"); if (href == NULL) return NULL; api->priv->storage_domains = ovirt_collection_new(href, "storage_domains", OVIRT_TYPE_STORAGE_DOMAIN, "storage_domain"); return api->priv->storage_domains; }
gboolean ovirt_vm_pool_allocate_vm_finish(OvirtVmPool *vm_pool, GAsyncResult *result, GError **err) { return ovirt_resource_action_finish(OVIRT_RESOURCE(vm_pool), result, err); }
gboolean ovirt_vm_pool_allocate_vm(OvirtVmPool *vm_pool, OvirtProxy *proxy, GError **error) { return ovirt_resource_action(OVIRT_RESOURCE(vm_pool), proxy, "allocatevm", NULL, error); }