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.
7436 7437 7438 |
# File 'lib/ovirtsdk4/services.rb', line 7436 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
7499 7500 7501 |
# File 'lib/ovirtsdk4/services.rb', line 7499 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
7461 7462 7463 |
# File 'lib/ovirtsdk4/services.rb', line 7461 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 |
# File 'lib/ovirtsdk4/services.rb', line 7510 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.
7490 7491 7492 |
# File 'lib/ovirtsdk4/services.rb', line 7490 def update(profile, opts = {}) internal_update(profile, DiskProfile, UPDATE, opts) end |