Package prlsdkapi :: Class SrvCfgHdd
[hide private]
[frames] | no frames]

Class SrvCfgHdd

  object --+            
           |            
 prlsdk.Base --+        
               |        
prlsdk.BaseAsync --+    
                   |    
           SrvCfgDev --+
                       |
                      SrvCfgHdd

Provides methods for getting information about a physical hard disk on the host.

Instance Methods [hide private]
 
get_part(self, index)
Obtain and return the specified partition information.

Inherited from prlsdk.BaseAsync: __cmp__, __init__, __new__, __repr__, cancel, wait

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  __prefix__ = 'srvcfghdd'
  __ht__ = 268435483
Properties [hide private]
  size
The hard disk size.
  index
A numeric index identifying the disk.
  parts_count
The number of partitions on the disk.
  parts
An iterator/sequence that allows to traverse through SrvCfgHddPart instances contained in this object.

Inherited from SrvCfgDev: id, name, type

Inherited from prlsdk.BaseAsync: __expected_h_type__, __job__, finished, handle_type

Inherited from prlsdk.Base: __handle__

Inherited from object: __class__

Method Details [hide private]

get_part(self, index)

 

Obtain and return the specified partition information.

Parameters:
  • index - A numeric index identifying the partition. To obtain the partition count, use SrvCfgHdd.parts_count.
Returns:
An instance of SrvCfgHddPart.

Property Details [hide private]

size

The hard disk size.

Get Method:
unreachable.srvcfghdd__get_size(srvcfghdd, SrvCfgHdd) - Get hard disk size (in megabytes)

index

A numeric index identifying the disk.

Get Method:
unreachable.srvcfghdd__get_index(srvcfghdd, SrvCfgHdd) - Get hard disk index

parts_count

The number of partitions on the disk.

Get Method:
unreachable.srvcfghdd__get_parts_count(srvcfghdd, SrvCfgHdd) - Get count of hard disk partitions

parts

An iterator/sequence that allows to traverse through SrvCfgHddPart instances contained in this object.

Get Method:
unreachable(s)