Class: OvirtSDK4::AssignedVnicProfilesService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#add(profile, opts = {}) ⇒ VnicProfile
Add a new virtual network interface card profile for the network.
-
#list(opts = {}) ⇒ Array<VnicProfile>
Returns the list of VNIC profiles assifned to the network.
-
#profile_service(id) ⇒ AssignedVnicProfileService
Locates the
profile
service. -
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#add(profile, opts = {}) ⇒ VnicProfile
Add a new virtual network interface card profile for the network.
3674 3675 3676 |
# File 'lib/ovirtsdk4/services.rb', line 3674 def add(profile, opts = {}) internal_add(profile, VnicProfile, ADD, opts) end |
#list(opts = {}) ⇒ Array<VnicProfile>
Returns the list of VNIC profiles assifned to the network.
The order of the returned VNIC profiles isn’t guaranteed.
3708 3709 3710 |
# File 'lib/ovirtsdk4/services.rb', line 3708 def list(opts = {}) internal_get(LIST, opts) end |
#profile_service(id) ⇒ AssignedVnicProfileService
Locates the profile
service.
3719 3720 3721 |
# File 'lib/ovirtsdk4/services.rb', line 3719 def profile_service(id) AssignedVnicProfileService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 |
# File 'lib/ovirtsdk4/services.rb', line 3730 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return profile_service(path) end return profile_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |