Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Vcenter::Inventory::Network
  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)

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

  Returns network information for the specified vCenter Server networks.

- - (Network) initialize(config) constructor

  Constructs a new instance.

## 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:

- (`Com::Vmware::Vapi::Std::Errors::NotFound`) —

  if no datastore can be found for one or more of the vCenter Server network identifiers in ``networks``

- (`Com::Vmware::Vapi::Std::Errors::Unauthorized`) —

  If you do not have all of the privileges described in the following list:

  System.Read

    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