[ovirt-users] SKD4

Ondra Machacek omachace at redhat.com
Thu Apr 6 15:21:26 UTC 2017


On Thu, Apr 6, 2017 at 5:00 PM, Fabrice Bacchella <
fabrice.bacchella at orange.fr> wrote:

> Ho my good, in ovirtsdk.services.py, for every service, there is a
> different method with a different name that return a associated service, so
> it's not possible to have a generic like:
>
> def  resolve(service, ...):
> id = .....
> return service.service(id)
>
> because the generic call service is used by something that take a path
> argument. But why not a service_by_id(self, id) ?
>

I am not fully sure I understand what you are missing, but feel free to open
the bug on Python SDK in bugzilla, we will be happy to improve the SDK.


>
> grep 'def .*_service.self, id.:' site-packages/ovirtsdk4/services.py
>     def vm_service(self, id):
>     def group_service(self, id):
>     def host_service(self, id):
>     def vm_service(self, id):
>     def label_service(self, id):
>     def label_service(self, id):
>     def profile_service(self, id):
>     def profile_service(self, id):
>     def network_service(self, id):
>     def permission_service(self, id):
>     def role_service(self, id):
>     def tag_service(self, id):
>     def profile_service(self, id):
>     def storage_domain_service(self, id):
>     def balance_service(self, id):
>     def bookmark_service(self, id):
>     def level_service(self, id):
>     def cluster_service(self, id):
>     def profile_service(self, id):
>     def data_center_service(self, id):
>     def attachment_service(self, id):
>     def disk_profile_service(self, id):
>     def snapshot_service(self, id):
>     def disk_service(self, id):
>     def group_service(self, id):
>     def user_service(self, id):
>     def domain_service(self, id):
>     def event_service(self, id):
>     def resource_service(self, id):
>     def host_service(self, id):
>     def group_service(self, id):
>     def provider_service(self, id):
>     def host_service(self, id):
>     def certificate_service(self, id):
>     def agent_service(self, id):
>     def file_service(self, id):
>     def filter_service(self, id):
>     def brick_service(self, id):
>     def hook_service(self, id):
>     def volume_service(self, id):
>     def group_service(self, id):
>     def device_service(self, id):
>     def hook_service(self, id):
>     def nic_service(self, id):
>     def node_service(self, id):
>     def storage_service(self, id):
>     def host_service(self, id):
>     def icon_service(self, id):
>     def image_transfer_service(self, id):
>     def image_service(self, id):
>     def console_service(self, id):
>     def nic_service(self, id):
>     def watchdog_service(self, id):
>     def instance_type_service(self, id):
>     def iscsi_bond_service(self, id):
>     def job_service(self, id):
>     def katello_erratum_service(self, id):
>     def mac_pool_service(self, id):
>     def attachment_service(self, id):
>     def network_filter_service(self, id):
>     def label_service(self, id):
>     def network_service(self, id):
>     def provider_service(self, id):
>     def image_service(self, id):
>     def provider_service(self, id):
>     def network_service(self, id):
>     def subnet_service(self, id):
>     def key_service(self, id):
>     def provider_service(self, id):
>     def type_service(self, id):
>     def operating_system_service(self, id):
>     def permit_service(self, id):
>     def qos_service(self, id):
>     def limit_service(self, id):
>     def limit_service(self, id):
>     def quota_service(self, id):
>     def role_service(self, id):
>     def policy_service(self, id):
>     def unit_service(self, id):
>     def cdrom_service(self, id):
>     def disk_service(self, id):
>     def nic_service(self, id):
>     def snapshot_service(self, id):
>     def key_service(self, id):
>     def statistic_service(self, id):
>     def step_service(self, id):
>     def disk_service(self, id):
>     def connection_service(self, id):
>     def template_service(self, id):
>     def attachment_service(self, id):
>     def vm_service(self, id):
>     def storage_domain_service(self, id):
>     def storage_connection_extension_service(self, id):
>     def storage_connection_service(self, id):
>     def permission_service(self, id):
>     def tag_service(self, id):
>     def cdrom_service(self, id):
>     def attachment_service(self, id):
>     def disk_service(self, id):
>     def console_service(self, id):
>     def nic_service(self, id):
>     def watchdog_service(self, id):
>     def template_service(self, id):
>     def unmanaged_network_service(self, id):
>     def user_service(self, id):
>     def network_service(self, id):
>     def application_service(self, id):
>     def cdrom_service(self, id):
>     def disk_service(self, id):
>     def console_service(self, id):
>     def device_service(self, id):
>     def nic_service(self, id):
>     def node_service(self, id):
>     def pool_service(self, id):
>     def reported_device_service(self, id):
>     def session_service(self, id):
>     def watchdog_service(self, id):
>     def vm_service(self, id):
>     def profile_service(self, id):
>     def weight_service(self, id):
>     def katello_erratum_service(self, id):
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170406/6ebf226e/attachment-0001.html>


More information about the Users mailing list