Class: OvirtSDK4::CpuProfileService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ CpuProfile
Returns the representation of the object managed by this service.
-
#permissions_service ⇒ AssignedPermissionsService
Locates the
permissions
service. -
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(profile, opts = {}) ⇒ CpuProfile
Update the specified cpu profile in the system.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ CpuProfile
Returns the representation of the object managed by this service.
5440 5441 5442 |
# File 'lib/ovirtsdk4/services.rb', line 5440 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
5503 5504 5505 |
# File 'lib/ovirtsdk4/services.rb', line 5503 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
5465 5466 5467 |
# File 'lib/ovirtsdk4/services.rb', line 5465 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 |
# File 'lib/ovirtsdk4/services.rb', line 5514 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 = {}) ⇒ CpuProfile
Update the specified cpu profile in the system.
5494 5495 5496 |
# File 'lib/ovirtsdk4/services.rb', line 5494 def update(profile, opts = {}) internal_update(profile, CpuProfile, UPDATE, opts) end |