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.
6633 6634 6635 |
# File 'lib/ovirtsdk4/services.rb', line 6633 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
6696 6697 6698 |
# File 'lib/ovirtsdk4/services.rb', line 6696 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
6658 6659 6660 |
# File 'lib/ovirtsdk4/services.rb', line 6658 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 |
# File 'lib/ovirtsdk4/services.rb', line 6707 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.
6687 6688 6689 |
# File 'lib/ovirtsdk4/services.rb', line 6687 def update(profile, opts = {}) internal_update(profile, DiskProfile, UPDATE, opts) end |