Class: OvirtSDK4::AssignedVnicProfileService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ VnicProfile
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.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ VnicProfile
Returns the representation of the object managed by this service.
3022 3023 3024 |
# File 'lib/ovirtsdk4/services.rb', line 3022 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
3056 3057 3058 |
# File 'lib/ovirtsdk4/services.rb', line 3056 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
3047 3048 3049 |
# File 'lib/ovirtsdk4/services.rb', line 3047 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 |
# File 'lib/ovirtsdk4/services.rb', line 3067 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 |