public class LeasesStub extends com.vmware.vapi.internal.bindings.Stub implements Leases
Leases
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, LIST_SOURCE_CACHED, LIST_SOURCE_REALTIME
Constructor and Description |
---|
LeasesStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
LeasesStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
com.vmware.vapi.bindings.StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String serverId,
java.lang.String ip,
java.lang.String mac)
Delete a single DHCP lease entry specified by ip and mac.
|
void |
delete(java.lang.String serverId,
java.lang.String ip,
java.lang.String mac,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Delete a single DHCP lease entry specified by ip and mac.
|
void |
delete(java.lang.String serverId,
java.lang.String ip,
java.lang.String mac,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete a single DHCP lease entry specified by ip and mac.
|
void |
delete(java.lang.String serverId,
java.lang.String ip,
java.lang.String mac,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete a single DHCP lease entry specified by ip and mac.
|
DhcpLeases |
list(java.lang.String serverId,
java.lang.String address,
java.lang.String poolId,
java.lang.String source)
Get specific leases of a given dhcp server.
|
void |
list(java.lang.String serverId,
java.lang.String address,
java.lang.String poolId,
java.lang.String source,
com.vmware.vapi.bindings.client.AsyncCallback<DhcpLeases> asyncCallback)
Get specific leases of a given dhcp server.
|
void |
list(java.lang.String serverId,
java.lang.String address,
java.lang.String poolId,
java.lang.String source,
com.vmware.vapi.bindings.client.AsyncCallback<DhcpLeases> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get specific leases of a given dhcp server.
|
DhcpLeases |
list(java.lang.String serverId,
java.lang.String address,
java.lang.String poolId,
java.lang.String source,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get specific leases of a given dhcp server.
|
public LeasesStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
public LeasesStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
public void delete(java.lang.String serverId, java.lang.String ip, java.lang.String mac)
Leases
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String serverId, java.lang.String ip, java.lang.String mac, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Leases
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void delete(java.lang.String serverId, java.lang.String ip, java.lang.String mac, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Leases
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public void delete(java.lang.String serverId, java.lang.String ip, java.lang.String mac, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Leases
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public DhcpLeases list(java.lang.String serverId, java.lang.String address, java.lang.String poolId, java.lang.String source)
Leases
Synchronous method overload. Result of the invocation will be reported as a method return value.
public DhcpLeases list(java.lang.String serverId, java.lang.String address, java.lang.String poolId, java.lang.String source, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Leases
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 Leases
serverId
- (required)address
- can be an ip address, or an ip range, or a mac address (optional)poolId
- The uuid of dhcp ip pool (optional)source
- Data source type. (optional)invocationConfig
- Configuration for the method invocation.public void list(java.lang.String serverId, java.lang.String address, java.lang.String poolId, java.lang.String source, com.vmware.vapi.bindings.client.AsyncCallback<DhcpLeases> asyncCallback)
Leases
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.DhcpLeases
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
list
in interface Leases
serverId
- (required)address
- can be an ip address, or an ip range, or a mac address (optional)poolId
- The uuid of dhcp ip pool (optional)source
- Data source type. (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String serverId, java.lang.String address, java.lang.String poolId, java.lang.String source, com.vmware.vapi.bindings.client.AsyncCallback<DhcpLeases> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Leases
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:
com.vmware.nsx.model.DhcpLeases
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
list
in interface Leases
serverId
- (required)address
- can be an ip address, or an ip range, or a mac address (optional)poolId
- The uuid of dhcp ip pool (optional)source
- Data source type. (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.