direct-io.hg

changeset 12345:2e35cf028ff0

Server-side capitalisation fixes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Nov 09 15:43:24 2006 +0000 (2006-11-09)
parents 913324616183
children b4e7365d451d
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Thu Nov 09 15:27:32 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Thu Nov 09 15:43:24 2006 +0000
     1.3 @@ -432,9 +432,9 @@ class XendAPI:
     1.4          return xen_api_success(XendNode.instance().description)
     1.5      def host_get_software_version(self, session, host_ref):
     1.6          return xen_api_success(XendNode.instance().xen_version())
     1.7 -    def host_get_resident_vms(self, session, host_ref):
     1.8 +    def host_get_resident_VMs(self, session, host_ref):
     1.9          return xen_api_success(XendDomain.instance().get_domain_refs())
    1.10 -    def host_get_host_cpus(self, session, host_ref):
    1.11 +    def host_get_host_CPUs(self, session, host_ref):
    1.12          return xen_api_success(XendNode.instance().get_host_cpu_refs())
    1.13  
    1.14      # object methods
    1.15 @@ -572,7 +572,7 @@ class XendAPI:
    1.16                    'kernel_initrd',
    1.17                    'kernel_args',
    1.18                    'grub_cmdline',
    1.19 -                  'other_config']
    1.20 +                  'otherConfig']
    1.21  
    1.22      VM_methods = ['clone',
    1.23                    'start',
    1.24 @@ -620,7 +620,7 @@ class XendAPI:
    1.25          'kernel_args',
    1.26          'grub_cmdline',
    1.27          'PCI_bus',
    1.28 -        'other_config']
    1.29 +        'otherConfig']
    1.30          
    1.31      # attributes (ro)
    1.32      def vm_get_power_state(self, session, vm_ref):
    1.33 @@ -642,35 +642,35 @@ class XendAPI:
    1.34          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.35          return xen_api_success(dom.get_memory_static_min())
    1.36      
    1.37 -    def vm_get_vcpus_number(self, session, vm_ref):
    1.38 +    def vm_get_VCPUs_number(self, session, vm_ref):
    1.39          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.40          return xen_api_success(dom.getVCpuCount())
    1.41      
    1.42 -    def vm_get_vcpus_utilisation(self, session, vm_ref):
    1.43 +    def vm_get_VCPUs_utilisation(self, session, vm_ref):
    1.44          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.45          return xen_api_success(dom.get_vcpus_util())
    1.46      
    1.47 -    def vm_get_vcpus_features_required(self, session, vm_ref):
    1.48 +    def vm_get_VCPUs_features_required(self, session, vm_ref):
    1.49          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.50          return xen_api_todo() # unsupported by xc
    1.51      
    1.52 -    def vm_get_vcpus_can_use(self, session, vm_ref):
    1.53 +    def vm_get_VCPUs_can_use(self, session, vm_ref):
    1.54          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.55          return xen_api_todo() # unsupported by xc
    1.56      
    1.57 -    def vm_get_vifs(self, session, vm_ref):
    1.58 +    def vm_get_VIFs(self, session, vm_ref):
    1.59          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.60          return xen_api_success(dom.get_vifs())
    1.61      
    1.62 -    def vm_get_vbds(self, session, vm_ref):
    1.63 +    def vm_get_VBDs(self, session, vm_ref):
    1.64          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.65          return xen_api_success(dom.get_vbds())
    1.66      
    1.67 -    def vm_get_vtpms(self, session, vm_ref):
    1.68 +    def vm_get_VTPMs(self, session, vm_ref):
    1.69          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.70          return xen_api_success(dom.get_vtpms())
    1.71      
    1.72 -    def vm_get_pci_bus(self, session, vm_ref):
    1.73 +    def vm_get_PCI_bus(self, session, vm_ref):
    1.74          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.75          return xen_api_todo() # unsupported by xc
    1.76      
    1.77 @@ -703,19 +703,19 @@ class XendAPI:
    1.78          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.79          return xen_api_todo()    
    1.80      
    1.81 -    def vm_get_vcpus_policy(self, session, vm_ref):
    1.82 +    def vm_get_VCPUs_policy(self, session, vm_ref):
    1.83          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.84          return xen_api_todo() # need to access scheduler
    1.85      
    1.86 -    def vm_get_vcpus_params(self, session, vm_ref):
    1.87 +    def vm_get_VCPUs_params(self, session, vm_ref):
    1.88          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.89          return xen_api_todo() # need access to scheduler
    1.90      
    1.91 -    def vm_get_vcpus_features_force_on(self, session, vm_ref):
    1.92 +    def vm_get_VCPUs_features_force_on(self, session, vm_ref):
    1.93          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.94          return xen_api_todo()
    1.95      
    1.96 -    def vm_get_vcpus_features_force_off(self, session, vm_ref):
    1.97 +    def vm_get_VCPUs_features_force_off(self, session, vm_ref):
    1.98          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.99          return xen_api_todo()
   1.100      
   1.101 @@ -739,7 +739,7 @@ class XendAPI:
   1.102          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.103          return xen_api_success(dom.get_bios_boot())
   1.104      
   1.105 -    def vm_get_platform_std_vga(self, session, vm_ref):
   1.106 +    def vm_get_platform_std_VGA(self, session, vm_ref):
   1.107          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.108          return xen_api_todo()
   1.109      
   1.110 @@ -783,7 +783,7 @@ class XendAPI:
   1.111          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.112          return xen_api_success('')
   1.113      
   1.114 -    def vm_get_other_config(self, session, vm_ref):
   1.115 +    def vm_get_otherConfig(self, session, vm_ref):
   1.116          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.117          return xen_api_todo()
   1.118      
   1.119 @@ -847,7 +847,7 @@ class XendAPI:
   1.120          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.121          return xen_api_success_void()
   1.122      
   1.123 -    def vm_set_platform_std_vga(self, session, vm_ref):
   1.124 +    def vm_set_platform_std_VGA(self, session, vm_ref):
   1.125          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.126          return xen_api_success_void()
   1.127      
   1.128 @@ -891,7 +891,7 @@ class XendAPI:
   1.129          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.130          return xen_api_success_void()
   1.131      
   1.132 -    def vm_set_other_config(self, session, vm_ref):
   1.133 +    def vm_set_otherConfig(self, session, vm_ref):
   1.134          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
   1.135          return xen_api_success_void()
   1.136      
   1.137 @@ -1142,7 +1142,7 @@ class XendAPI:
   1.138      VDI_methods = ['snapshot']
   1.139      VDI_funcs = ['get_by_name_label']
   1.140      
   1.141 -    def vdi_get_vbds(self, session, vdi_ref):
   1.142 +    def vdi_get_VBDs(self, session, vdi_ref):
   1.143          return xen_api_todo()
   1.144      
   1.145      def vdi_get_physical_utilisation(self, session, vdi_ref):
   1.146 @@ -1350,7 +1350,7 @@ class XendAPI:
   1.147              backend = "Domain-0"
   1.148          return xen_api_success(backend)
   1.149  
   1.150 -    def vtpm_get_vm(self, session, vtpm_ref):
   1.151 +    def vtpm_get_VM(self, session, vtpm_ref):
   1.152          xendom = XendDomain.instance()
   1.153          return xen_api_success(xendom.get_dev_property('vtpm', vtpm_ref, 'VM'))
   1.154