Class: OvirtSDK4::DiskProfileService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ DiskProfile
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 = {}) ⇒ DiskProfile
Update the specified disk profile in the system.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ DiskProfile
Returns the representation of the object managed by this service.
7396 7397 7398 |
# File 'lib/ovirtsdk4/services.rb', line 7396 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
7459 7460 7461 |
# File 'lib/ovirtsdk4/services.rb', line 7459 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
7421 7422 7423 |
# File 'lib/ovirtsdk4/services.rb', line 7421 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 |
# File 'lib/ovirtsdk4/services.rb', line 7470 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 = {}) ⇒ DiskProfile
Update the specified disk profile in the system.
7450 7451 7452 |
# File 'lib/ovirtsdk4/services.rb', line 7450 def update(profile, opts = {}) internal_update(profile, DiskProfile, UPDATE, opts) end |