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.
6076 6077 6078 |
# File 'lib/ovirtsdk4/services.rb', line 6076 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
6139 6140 6141 |
# File 'lib/ovirtsdk4/services.rb', line 6139 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
6101 6102 6103 |
# File 'lib/ovirtsdk4/services.rb', line 6101 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 |
# File 'lib/ovirtsdk4/services.rb', line 6150 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.
6130 6131 6132 |
# File 'lib/ovirtsdk4/services.rb', line 6130 def update(profile, opts = {}) internal_update(profile, CpuProfile, UPDATE, opts) end |