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.
36426 36427 36428 |
# File 'lib/ovirtsdk4/services.rb', line 36426 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
36489 36490 36491 |
# File 'lib/ovirtsdk4/services.rb', line 36489 def ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Removes the vNIC profile.
36451 36452 36453 |
# File 'lib/ovirtsdk4/services.rb', line 36451 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
36500 36501 36502 36503 36504 36505 36506 36507 36508 36509 36510 36511 |
# File 'lib/ovirtsdk4/services.rb', line 36500 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.
36480 36481 36482 |
# File 'lib/ovirtsdk4/services.rb', line 36480 def update(profile, opts = {}) internal_update(profile, VnicProfile, UPDATE, opts) end |