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.
5450 5451 5452 |
# File 'lib/ovirtsdk4/services.rb', line 5450 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
5513 5514 5515 |
# File 'lib/ovirtsdk4/services.rb', line 5513 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
5475 5476 5477 |
# File 'lib/ovirtsdk4/services.rb', line 5475 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 |
# File 'lib/ovirtsdk4/services.rb', line 5524 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.
5504 5505 5506 |
# File 'lib/ovirtsdk4/services.rb', line 5504 def update(profile, opts = {}) internal_update(profile, CpuProfile, UPDATE, opts) end |