Class: OvirtSDK4::VnicProfileService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ VnicProfile
Retrieves details about a vNIC profile.
-
#permissions_service ⇒ AssignedPermissionsService
Locates the
permissionsservice. -
#remove(opts = {}) ⇒ Object
Removes the vNIC profile.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(profile, opts = {}) ⇒ VnicProfile
Updates details of a vNIC profile.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ VnicProfile
Retrieves details about a vNIC profile.
35928 35929 35930 |
# File 'lib/ovirtsdk4/services.rb', line 35928 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions service.
35991 35992 35993 |
# File 'lib/ovirtsdk4/services.rb', line 35991 def ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Removes the vNIC profile.
35953 35954 35955 |
# File 'lib/ovirtsdk4/services.rb', line 35953 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
36002 36003 36004 36005 36006 36007 36008 36009 36010 36011 36012 36013 |
# File 'lib/ovirtsdk4/services.rb', line 36002 def service(path) if path.nil? || path == '' return self end if path == 'permissions' return end if path.start_with?('permissions/') return .service(path[12..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(profile, opts = {}) ⇒ VnicProfile
Updates details of a vNIC profile.
35982 35983 35984 |
# File 'lib/ovirtsdk4/services.rb', line 35982 def update(profile, opts = {}) internal_update(profile, VnicProfile, UPDATE, opts) end |