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
permissions
service. -
#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.
32499 32500 32501 |
# File 'lib/ovirtsdk4/services.rb', line 32499 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
32562 32563 32564 |
# File 'lib/ovirtsdk4/services.rb', line 32562 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Removes the vNIC profile.
32524 32525 32526 |
# File 'lib/ovirtsdk4/services.rb', line 32524 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 |
# File 'lib/ovirtsdk4/services.rb', line 32573 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.
32553 32554 32555 |
# File 'lib/ovirtsdk4/services.rb', line 32553 def update(profile, opts = {}) internal_update(profile, VnicProfile, UPDATE, opts) end |