Class: OvirtSDK4::SnapshotDiskService
- Inherits:
- 
      Service
      
        - Object
- Service
- OvirtSDK4::SnapshotDiskService
 
- Defined in:
- lib/ovirtsdk4/services.rb,
 lib/ovirtsdk4/services.rb
Instance Method Summary (collapse)
- 
  
    
      - (Disk) get(opts = {}) 
    
    
  
  
  
  
  
  
  
  
  
    Returns the representation of the object managed by this service. 
- 
  
    
      - (Service) service(path) 
    
    
  
  
  
  
  
  
  
  
  
    Locates the service corresponding to the given path. 
- 
  
    
      - (String) to_s 
    
    
  
  
  
  
  
  
  
  
  
    Returns an string representation of this service. 
Instance Method Details
- (Disk) get(opts = {})
Returns the representation of the object managed by this service.
| 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 | # File 'lib/ovirtsdk4/services.rb', line 17537 def get(opts = {}) query = {} request = Request.new(:method => :GET, :path => @path, :query => query) response = @connection.send(request) case response.code when 200 begin reader = XmlReader.new(response.body) return DiskReader.read_one(reader) ensure reader.close end else check_fault(response) end end | 
- (Service) service(path)
Locates the service corresponding to the given path.
| 17561 17562 17563 17564 17565 17566 | # File 'lib/ovirtsdk4/services.rb', line 17561 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end | 
- (String) to_s
Returns an string representation of this service.
| 17573 17574 17575 | # File 'lib/ovirtsdk4/services.rb', line 17573 def to_s return "#<#{SnapshotDiskService}:#{@path}>" end |