public class InterfacesStub extends com.vmware.vapi.internal.bindings.Stub implements Interfaces
Interfaces
API service.
WARNING: Internal class, subject to change in future versions.
InterfacesTypes.InterfaceInfo, InterfacesTypes.InterfaceStatus
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
InterfacesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
InterfacesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
InterfacesTypes.InterfaceInfo |
get(java.lang.String interfaceName)
Get information about a particular network interface.
|
void |
get(java.lang.String interfaceName,
AsyncCallback<InterfacesTypes.InterfaceInfo> asyncCallback)
Get information about a particular network interface.
|
void |
get(java.lang.String interfaceName,
AsyncCallback<InterfacesTypes.InterfaceInfo> asyncCallback,
InvocationConfig invocationConfig)
Get information about a particular network interface.
|
InterfacesTypes.InterfaceInfo |
get(java.lang.String interfaceName,
InvocationConfig invocationConfig)
Get information about a particular network interface.
|
java.util.List<InterfacesTypes.InterfaceInfo> |
list()
Get list of available network interfaces, including those that are not yet
configured.
|
void |
list(AsyncCallback<java.util.List<InterfacesTypes.InterfaceInfo>> asyncCallback)
Get list of available network interfaces, including those that are not yet
configured.
|
void |
list(AsyncCallback<java.util.List<InterfacesTypes.InterfaceInfo>> asyncCallback,
InvocationConfig invocationConfig)
Get list of available network interfaces, including those that are not yet
configured.
|
java.util.List<InterfacesTypes.InterfaceInfo> |
list(InvocationConfig invocationConfig)
Get list of available network interfaces, including those that are not yet
configured.
|
public InterfacesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public InterfacesStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<InterfacesTypes.InterfaceInfo> list()
Interfaces
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Interfaces
public java.util.List<InterfacesTypes.InterfaceInfo> list(InvocationConfig invocationConfig)
Interfaces
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface Interfaces
invocationConfig
- Configuration for the method invocation.public void list(AsyncCallback<java.util.List<InterfacesTypes.InterfaceInfo>> asyncCallback)
Interfaces
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of InterfaceInfo structures.
Operation Errors:
Error
- Generic error
list
in interface Interfaces
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(AsyncCallback<java.util.List<InterfacesTypes.InterfaceInfo>> asyncCallback, InvocationConfig invocationConfig)
Interfaces
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:
List of InterfaceInfo structures.
Operation Errors:
Error
- Generic error
list
in interface Interfaces
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public InterfacesTypes.InterfaceInfo get(java.lang.String interfaceName)
Interfaces
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Interfaces
interfaceName
- Network interface, for example, "nic0".
The parameter must be an identifier for the resource type: com.vmware.appliance.networking.interfaces
.public InterfacesTypes.InterfaceInfo get(java.lang.String interfaceName, InvocationConfig invocationConfig)
Interfaces
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface Interfaces
interfaceName
- Network interface, for example, "nic0".
The parameter must be an identifier for the resource type: com.vmware.appliance.networking.interfaces
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String interfaceName, AsyncCallback<InterfacesTypes.InterfaceInfo> asyncCallback)
Interfaces
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Network interface information.
Operation Errors:
NotFound
- if the specified interface is not found.
Error
- Generic error
get
in interface Interfaces
interfaceName
- Network interface, for example, "nic0".
The parameter must be an identifier for the resource type: com.vmware.appliance.networking.interfaces
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String interfaceName, AsyncCallback<InterfacesTypes.InterfaceInfo> asyncCallback, InvocationConfig invocationConfig)
Interfaces
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 interface information.
Operation Errors:
NotFound
- if the specified interface is not found.
Error
- Generic error
get
in interface Interfaces
interfaceName
- Network interface, for example, "nic0".
The parameter must be an identifier for the resource type: com.vmware.appliance.networking.interfaces
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.