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.
3010 3011 3012 |
# File 'lib/ovirtsdk4/services.rb', line 3010 def get(opts = {}) internal_get(GET, opts) end |
#permissions_service ⇒ AssignedPermissionsService
Locates the permissions
service.
3044 3045 3046 |
# File 'lib/ovirtsdk4/services.rb', line 3044 def @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
3035 3036 3037 |
# File 'lib/ovirtsdk4/services.rb', line 3035 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 |
# File 'lib/ovirtsdk4/services.rb', line 3055 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 |