public class SessionsStub extends com.vmware.vapi.internal.bindings.Stub implements Sessions
Sessions
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, LIST_SESSION_TYPE_POLICYBASEDIPSECVPNSESSION, LIST_SESSION_TYPE_ROUTEBASEDIPSECVPNSESSION
Constructor and Description |
---|
SessionsStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
SessionsStub(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 |
---|---|
com.vmware.vapi.bindings.Structure |
create(com.vmware.vapi.bindings.Structure ipSecVPNSession)
Create new VPN session.
|
void |
create(com.vmware.vapi.bindings.Structure ipSecVPNSession,
com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback)
Create new VPN session.
|
void |
create(com.vmware.vapi.bindings.Structure ipSecVPNSession,
com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create new VPN session.
|
com.vmware.vapi.bindings.Structure |
create(com.vmware.vapi.bindings.Structure ipSecVPNSession,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create new VPN session.
|
void |
delete(java.lang.String ipsecVpnSessionId,
java.lang.Boolean force)
Delete IPSec VPN session.
|
void |
delete(java.lang.String ipsecVpnSessionId,
java.lang.Boolean force,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Delete IPSec VPN session.
|
void |
delete(java.lang.String ipsecVpnSessionId,
java.lang.Boolean force,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete IPSec VPN session.
|
void |
delete(java.lang.String ipsecVpnSessionId,
java.lang.Boolean force,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete IPSec VPN session.
|
com.vmware.vapi.bindings.Structure |
get(java.lang.String ipsecVpnSessionId)
Fetch IPSec VPN session.
|
void |
get(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback)
Fetch IPSec VPN session.
|
void |
get(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch IPSec VPN session.
|
com.vmware.vapi.bindings.Structure |
get(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch IPSec VPN session.
|
IPSecVPNSessionListResult |
list(java.lang.String cursor,
java.lang.String includedFields,
java.lang.String ipsecVpnServiceId,
java.lang.String logicalRouterId,
java.lang.Long pageSize,
java.lang.String sessionType,
java.lang.Boolean sortAscending,
java.lang.String sortBy)
Get paginated list of all IPSec VPN sessions.
|
void |
list(java.lang.String cursor,
java.lang.String includedFields,
java.lang.String ipsecVpnServiceId,
java.lang.String logicalRouterId,
java.lang.Long pageSize,
java.lang.String sessionType,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
com.vmware.vapi.bindings.client.AsyncCallback<IPSecVPNSessionListResult> asyncCallback)
Get paginated list of all IPSec VPN sessions.
|
void |
list(java.lang.String cursor,
java.lang.String includedFields,
java.lang.String ipsecVpnServiceId,
java.lang.String logicalRouterId,
java.lang.Long pageSize,
java.lang.String sessionType,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
com.vmware.vapi.bindings.client.AsyncCallback<IPSecVPNSessionListResult> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get paginated list of all IPSec VPN sessions.
|
IPSecVPNSessionListResult |
list(java.lang.String cursor,
java.lang.String includedFields,
java.lang.String ipsecVpnServiceId,
java.lang.String logicalRouterId,
java.lang.Long pageSize,
java.lang.String sessionType,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get paginated list of all IPSec VPN sessions.
|
com.vmware.vapi.bindings.Structure |
update(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.Structure ipSecVPNSession)
Edit IPSec VPN session.
|
void |
update(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.Structure ipSecVPNSession,
com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback)
Edit IPSec VPN session.
|
void |
update(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.Structure ipSecVPNSession,
com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Edit IPSec VPN session.
|
com.vmware.vapi.bindings.Structure |
update(java.lang.String ipsecVpnSessionId,
com.vmware.vapi.bindings.Structure ipSecVPNSession,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Edit IPSec VPN session.
|
public SessionsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
public SessionsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
public com.vmware.vapi.bindings.Structure create(com.vmware.vapi.bindings.Structure ipSecVPNSession)
Sessions
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Sessions
ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.IPSecVPNSession
.public com.vmware.vapi.bindings.Structure create(com.vmware.vapi.bindings.Structure ipSecVPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface Sessions
ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.invocationConfig
- Configuration for the method invocation.IPSecVPNSession
.public void create(com.vmware.vapi.bindings.Structure ipSecVPNSession, com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback)
Sessions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.IPSecVPNSession
The return value will contain all the properties defined in IPSecVPNSession
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
create
in interface Sessions
ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(com.vmware.vapi.bindings.Structure ipSecVPNSession, com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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.IPSecVPNSession
The return value will contain all the properties defined in IPSecVPNSession
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
create
in interface Sessions
ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String ipsecVpnSessionId, java.lang.Boolean force)
Sessions
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String ipsecVpnSessionId, java.lang.Boolean force, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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 ipsecVpnSessionId, java.lang.Boolean force, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Sessions
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 ipsecVpnSessionId, java.lang.Boolean force, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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
delete
in interface Sessions
ipsecVpnSessionId
- (required)force
- Force delete the resource even if it is being used somewhere (optional, default
to false)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public com.vmware.vapi.bindings.Structure get(java.lang.String ipsecVpnSessionId)
Sessions
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Sessions
ipsecVpnSessionId
- (required)IPSecVPNSession
.public com.vmware.vapi.bindings.Structure get(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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 Sessions
ipsecVpnSessionId
- (required)invocationConfig
- Configuration for the method invocation.IPSecVPNSession
.public void get(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback)
Sessions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.IPSecVPNSession
The return value will contain all the properties defined in IPSecVPNSession
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public void get(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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.IPSecVPNSession
The return value will contain all the properties defined in IPSecVPNSession
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public IPSecVPNSessionListResult list(java.lang.String cursor, java.lang.String includedFields, java.lang.String ipsecVpnServiceId, java.lang.String logicalRouterId, java.lang.Long pageSize, java.lang.String sessionType, java.lang.Boolean sortAscending, java.lang.String sortBy)
Sessions
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Sessions
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)includedFields
- Comma separated list of fields that should be included in query result
(optional)ipsecVpnServiceId
- Id of the IPSec VPN service (optional)logicalRouterId
- Id of logical router (optional)pageSize
- Maximum number of results to return in this page (server may return fewer)
(optional, default to 1000)sessionType
- Resource types of IPsec VPN session (optional)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)public IPSecVPNSessionListResult list(java.lang.String cursor, java.lang.String includedFields, java.lang.String ipsecVpnServiceId, java.lang.String logicalRouterId, java.lang.Long pageSize, java.lang.String sessionType, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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 Sessions
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)includedFields
- Comma separated list of fields that should be included in query result
(optional)ipsecVpnServiceId
- Id of the IPSec VPN service (optional)logicalRouterId
- Id of logical router (optional)pageSize
- Maximum number of results to return in this page (server may return fewer)
(optional, default to 1000)sessionType
- Resource types of IPsec VPN session (optional)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)invocationConfig
- Configuration for the method invocation.public void list(java.lang.String cursor, java.lang.String includedFields, java.lang.String ipsecVpnServiceId, java.lang.String logicalRouterId, java.lang.Long pageSize, java.lang.String sessionType, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<IPSecVPNSessionListResult> asyncCallback)
Sessions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.IPSecVPNSessionListResult
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
list
in interface Sessions
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)includedFields
- Comma separated list of fields that should be included in query result
(optional)ipsecVpnServiceId
- Id of the IPSec VPN service (optional)logicalRouterId
- Id of logical router (optional)pageSize
- Maximum number of results to return in this page (server may return fewer)
(optional, default to 1000)sessionType
- Resource types of IPsec VPN session (optional)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String cursor, java.lang.String includedFields, java.lang.String ipsecVpnServiceId, java.lang.String logicalRouterId, java.lang.Long pageSize, java.lang.String sessionType, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<IPSecVPNSessionListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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.IPSecVPNSessionListResult
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
list
in interface Sessions
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)includedFields
- Comma separated list of fields that should be included in query result
(optional)ipsecVpnServiceId
- Id of the IPSec VPN service (optional)logicalRouterId
- Id of logical router (optional)pageSize
- Maximum number of results to return in this page (server may return fewer)
(optional, default to 1000)sessionType
- Resource types of IPsec VPN session (optional)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public com.vmware.vapi.bindings.Structure update(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.Structure ipSecVPNSession)
Sessions
Synchronous method overload. Result of the invocation will be reported as a method return value.
update
in interface Sessions
ipsecVpnSessionId
- (required)ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.IPSecVPNSession
.public com.vmware.vapi.bindings.Structure update(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.Structure ipSecVPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
update
in interface Sessions
ipsecVpnSessionId
- (required)ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.invocationConfig
- Configuration for the method invocation.IPSecVPNSession
.public void update(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.Structure ipSecVPNSession, com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback)
Sessions
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.IPSecVPNSession
The return value will contain all the properties defined in IPSecVPNSession
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
update
in interface Sessions
ipsecVpnSessionId
- (required)ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String ipsecVpnSessionId, com.vmware.vapi.bindings.Structure ipSecVPNSession, com.vmware.vapi.bindings.client.AsyncCallback<com.vmware.vapi.bindings.Structure> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Sessions
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.IPSecVPNSession
The return value will contain all the properties defined in IPSecVPNSession
.
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
update
in interface Sessions
ipsecVpnSessionId
- (required)ipSecVPNSession
- (required)
The parameter must contain all the properties defined in IPSecVPNSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.