class OvirtSDK4::VmNicService
def activate(opts = {})
(**opts)-
:wait(Boolean) -- If `true` wait for the response. -
:timeout(Integer) -- The timeout for this request, in seconds. If no value is explicitly -
:query(Hash) -- Additional URL query parameters. -
:headers(Hash) -- Additional HTTP headers. -
:async(Boolean) -- Indicates if the activation should be performed asynchronously.
Parameters:
-
opts(Hash) -- Additional options.
def activate(opts = {}) internal_action(:activate, nil, ACTIVATE, opts) end
def deactivate(opts = {})
(**opts)-
:wait(Boolean) -- If `true` wait for the response. -
:timeout(Integer) -- The timeout for this request, in seconds. If no value is explicitly -
:query(Hash) -- Additional URL query parameters. -
:headers(Hash) -- Additional HTTP headers. -
:async(Boolean) -- Indicates if the deactivation should be performed asynchronously.
Parameters:
-
opts(Hash) -- Additional options.
def deactivate(opts = {}) internal_action(:deactivate, nil, DEACTIVATE, opts) end
def get(opts = {})
-
(Nic)-
Options Hash:
(**opts)-
:wait(Boolean) -- If `true` wait for the response. -
:timeout(Integer) -- The timeout for this request, in seconds. If no value is explicitly -
:query(Hash) -- Additional URL query parameters. -
:headers(Hash) -- Additional HTTP headers. -
:follow(String) -- Indicates which inner links should be _followed_. The objects referenced by these links will be fetched as part
Parameters:
-
opts(Hash) -- Additional options.
def get(opts = {}) internal_get(GET, opts) end
def network_filter_parameters_service
-
(NicNetworkFilterParametersService)- A reference to `network_filter_parameters` service.
def network_filter_parameters_service @network_filter_parameters_service ||= NicNetworkFilterParametersService.new(self, 'networkfilterparameters') end
def remove(opts = {})
(**opts)-
:wait(Boolean) -- If `true` wait for the response. -
:timeout(Integer) -- The timeout for this request, in seconds. If no value is explicitly -
:query(Hash) -- Additional URL query parameters. -
:headers(Hash) -- Additional HTTP headers. -
:async(Boolean) -- Indicates if the remove should be performed asynchronously.
Parameters:
-
opts(Hash) -- Additional options.
def remove(opts = {}) internal_remove(REMOVE, opts) end
def reported_devices_service
-
(VmReportedDevicesService)- A reference to `reported_devices` service.
def reported_devices_service @reported_devices_service ||= VmReportedDevicesService.new(self, 'reporteddevices') end
def service(path)
-
(Service)- A reference to the service.
Parameters:
-
path(String) -- The path of the service.
def service(path) if path.nil? || path == '' return self end if path == 'networkfilterparameters' return network_filter_parameters_service end if path.start_with?('networkfilterparameters/') return network_filter_parameters_service.service(path[24..-1]) end if path == 'reporteddevices' return reported_devices_service end if path.start_with?('reporteddevices/') return reported_devices_service.service(path[16..-1]) end if path == 'statistics' return statistics_service end if path.start_with?('statistics/') return statistics_service.service(path[11..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end
def statistics_service
-
(StatisticsService)- A reference to `statistics` service.
def statistics_service @statistics_service ||= StatisticsService.new(self, 'statistics') end
def update(nic, opts = {})
-
(Nic)-
Options Hash:
(**opts)-
:wait(Boolean) -- If `true` wait for the response. -
:timeout(Integer) -- The timeout for this request, in seconds. If no value is explicitly -
:query(Hash) -- Additional URL query parameters. -
:headers(Hash) -- Additional HTTP headers. -
:async(Boolean) -- Indicates if the update should be performed asynchronously.
Parameters:
-
opts(Hash) -- Additional options. -
nic(Nic) -- The `nic` to update.
def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end