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.
35480 35481 35482 |
# File 'lib/ovirtsdk4/services.rb', line 35480 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
35543 35544 35545 |
# File 'lib/ovirtsdk4/services.rb', line 35543 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Removes the vNIC profile.
35505 35506 35507 |
# File 'lib/ovirtsdk4/services.rb', line 35505 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
35554 35555 35556 35557 35558 35559 35560 35561 35562 35563 35564 35565 |
# File 'lib/ovirtsdk4/services.rb', line 35554 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.
35534 35535 35536 |
# File 'lib/ovirtsdk4/services.rb', line 35534 def update(profile, opts = {}) internal_update(profile, VnicProfile, UPDATE, opts) end |