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.
6116 6117 6118 |
# File 'lib/ovirtsdk4/services.rb', line 6116 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
6179 6180 6181 |
# File 'lib/ovirtsdk4/services.rb', line 6179 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
6141 6142 6143 |
# File 'lib/ovirtsdk4/services.rb', line 6141 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 |
# File 'lib/ovirtsdk4/services.rb', line 6190 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.
6170 6171 6172 |
# File 'lib/ovirtsdk4/services.rb', line 6170 def update(profile, opts = {}) internal_update(profile, CpuProfile, UPDATE, opts) end |