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.FilterSpec, NetworkTypes.Summary, NetworkTypes.Type
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
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.List<NetworkTypes.Summary> |
list(NetworkTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
networks in vCenter matching the
NetworkTypes.FilterSpec . |
void |
list(NetworkTypes.FilterSpec filter,
AsyncCallback<java.util.List<NetworkTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
networks in vCenter matching the
NetworkTypes.FilterSpec . |
void |
list(NetworkTypes.FilterSpec filter,
AsyncCallback<java.util.List<NetworkTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
networks in vCenter matching the
NetworkTypes.FilterSpec . |
java.util.List<NetworkTypes.Summary> |
list(NetworkTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
networks in vCenter matching the
NetworkTypes.FilterSpec . |
public NetworkStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public NetworkStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<NetworkTypes.Summary> list(NetworkTypes.FilterSpec filter)
Network
NetworkTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Network
filter
- Specification of matching networks for which information should be returned.
If null
, the behavior is equivalent to a NetworkTypes.FilterSpec
with all properties null
which means all networks match the filter.NetworkTypes.FilterSpec
.public java.util.List<NetworkTypes.Summary> list(NetworkTypes.FilterSpec filter, InvocationConfig invocationConfig)
Network
NetworkTypes.FilterSpec
.
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 Network
filter
- Specification of matching networks for which information should be returned.
If null
, the behavior is equivalent to a NetworkTypes.FilterSpec
with all properties null
which means all networks match the filter.invocationConfig
- Configuration for the method invocation.NetworkTypes.FilterSpec
.public void list(NetworkTypes.FilterSpec filter, AsyncCallback<java.util.List<NetworkTypes.Summary>> asyncCallback)
Network
NetworkTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Commonly used information about the networks matching the NetworkTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the NetworkTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 networks match the NetworkTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Network
filter
- Specification of matching networks for which information should be returned.
If null
, the behavior is equivalent to a NetworkTypes.FilterSpec
with all properties null
which means all networks match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(NetworkTypes.FilterSpec filter, AsyncCallback<java.util.List<NetworkTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Network
NetworkTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Commonly used information about the networks matching the NetworkTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the NetworkTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 1000 networks match the NetworkTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Network
filter
- Specification of matching networks for which information should be returned.
If null
, the behavior is equivalent to a NetworkTypes.FilterSpec
with all properties null
which means all networks match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.