Class: Com::Vmware::Vcenter::Inventory::Network

Inherits:
VAPI::Bindings::VapiService
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/inventory.rb

Overview

The ``Com::Vmware::Vcenter::Inventory::Network`` class provides methods to retrieve information about vCenter Server networks.

Defined Under Namespace

Classes: Info

Instance Method Summary (collapse)

Constructor Details

- (Network) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



143
144
145
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/inventory.rb', line 143

def initialize(config)
    super(config, @@service_info)
end

Instance Method Details

- (Hash<String, Com::Vmware::Vcenter::Inventory::Network::Info, nil>) find(networks)

Returns network information for the specified vCenter Server networks. The key in the result map is the network identifier and the value in the map is the network information.

Parameters:

  • networks (Array<String>)

    Identifiers of the vCenter Server networks for which information will be returned.

Returns:

  • (Hash<String, Com::Vmware::Vcenter::Inventory::Network::Info, nil>)

    Network information for the specified vCenter Server networks. The key in the result map is the network identifier and the value in the map is the network information.

Raises:



160
161
162
163
164
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/inventory.rb', line 160

def find(networks)
    invoke_with_info(@@find_info, {
        'networks' => networks,
    })
end