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
permissionsservice. -
#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.
6052 6053 6054 |
# File 'lib/ovirtsdk4/services.rb', line 6052 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions service.
6115 6116 6117 |
# File 'lib/ovirtsdk4/services.rb', line 6115 def ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
6077 6078 6079 |
# File 'lib/ovirtsdk4/services.rb', line 6077 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 |
# File 'lib/ovirtsdk4/services.rb', line 6126 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.
6106 6107 6108 |
# File 'lib/ovirtsdk4/services.rb', line 6106 def update(profile, opts = {}) internal_update(profile, CpuProfile, UPDATE, opts) end |