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
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 = {}) ⇒ 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.
7346 7347 7348 |
# File 'lib/ovirtsdk4/services.rb', line 7346 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions service.
7409 7410 7411 |
# File 'lib/ovirtsdk4/services.rb', line 7409 def ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
7371 7372 7373 |
# File 'lib/ovirtsdk4/services.rb', line 7371 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 |
# File 'lib/ovirtsdk4/services.rb', line 7420 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.
7400 7401 7402 |
# File 'lib/ovirtsdk4/services.rb', line 7400 def update(profile, opts = {}) internal_update(profile, DiskProfile, UPDATE, opts) end |