public class NetworkStub extends com.vmware.vapi.internal.bindings.Stub implements Network
Network
API service.
WARNING: Internal class, subject to change in future versions.
NetworkTypes.InfoapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID| Constructor and Description |
|---|
NetworkStub(ApiProvider apiProvider,
StubConfigurationBase config) |
NetworkStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,NetworkTypes.Info> |
find(java.util.List<java.lang.String> networks)
Returns network information for the specified vCenter Server networks.
|
void |
find(java.util.List<java.lang.String> networks,
AsyncCallback<java.util.Map<java.lang.String,NetworkTypes.Info>> asyncCallback)
Returns network information for the specified vCenter Server networks.
|
void |
find(java.util.List<java.lang.String> networks,
AsyncCallback<java.util.Map<java.lang.String,NetworkTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns network information for the specified vCenter Server networks.
|
java.util.Map<java.lang.String,NetworkTypes.Info> |
find(java.util.List<java.lang.String> networks,
InvocationConfig invocationConfig)
Returns network information for the specified vCenter Server networks.
|
public NetworkStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public NetworkStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.Map<java.lang.String,NetworkTypes.Info> find(java.util.List<java.lang.String> networks)
NetworkMap is the network identifier and the
value in the Map is the network information.
Synchronous method overload. Result of the invocation will be reported as a method return value.
find in interface Networknetworks - Identifiers of the vCenter Server networks for which information will be
returned.
The parameter must contain identifiers for the resource type: Network.Map is the network identifier and the value in
the Map is the network information.
The key in the return value Map will be an identifier for the
resource type: Network.public java.util.Map<java.lang.String,NetworkTypes.Info> find(java.util.List<java.lang.String> networks, InvocationConfig invocationConfig)
NetworkMap is the network identifier and the
value in the Map is the network information.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
find in interface Networknetworks - Identifiers of the vCenter Server networks for which information will be
returned.
The parameter must contain identifiers for the resource type: Network.invocationConfig - Configuration for the method invocation.Map is the network identifier and the value in
the Map is the network information.
The key in the return value Map will be an identifier for the
resource type: Network.public void find(java.util.List<java.lang.String> networks,
AsyncCallback<java.util.Map<java.lang.String,NetworkTypes.Info>> asyncCallback)
NetworkMap is the network identifier and the
value in the Map is the network information.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Network information for the specified vCenter Server networks. The key in the
return value Map is the network identifier and the value in
the Map is the network information.
The key in the return value Map will be an identifier for the
resource type: Network.
Operation Errors:
NotFound - if no datastore can be found for one or more of the vCenter Server network
identifiers in networks
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. Network
referenced by the parameter networks requires System.Read.
find in interface Networknetworks - Identifiers of the vCenter Server networks for which information will be
returned.
The parameter must contain identifiers for the resource type: Network.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void find(java.util.List<java.lang.String> networks,
AsyncCallback<java.util.Map<java.lang.String,NetworkTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
NetworkMap is the network identifier and the
value in the Map is the network information.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
Network information for the specified vCenter Server networks. The key in the
return value Map is the network identifier and the value in
the Map is the network information.
The key in the return value Map will be an identifier for the
resource type: Network.
Operation Errors:
NotFound - if no datastore can be found for one or more of the vCenter Server network
identifiers in networks
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. Network
referenced by the parameter networks requires System.Read.
find in interface Networknetworks - Identifiers of the vCenter Server networks for which information will be
returned.
The parameter must contain identifiers for the resource type: Network.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.