Class: OvirtSDK4::AffinityGroupVmService
- Inherits:
-
Service
- Object
- Service
- OvirtSDK4::AffinityGroupVmService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary (collapse)
-
- (Object) remove(opts = {})
Deletes 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
- (Object) remove(opts = {})
Deletes the object managed by this service.
881 882 883 884 885 886 887 888 889 890 891 892 893 |
# File 'lib/ovirtsdk4/services.rb', line 881 def remove(opts = {}) query = {} value = opts[:async] unless value.nil? value = Writer.render_boolean(value) query['async'] = value end request = Request.new(:method => :DELETE, :path => @path, :query => query) response = @connection.send(request) unless response.code == 200 check_fault(response) end end |
- (Service) service(path)
Locates the service corresponding to the given path.
902 903 904 905 906 907 |
# File 'lib/ovirtsdk4/services.rb', line 902 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.
914 915 916 |
# File 'lib/ovirtsdk4/services.rb', line 914 def to_s return "#<#{AffinityGroupVmService}:#{@path}>" end |