Class SessionsStub
- java.lang.Object
-
- com.vmware.vapi.internal.bindings.Stub
-
- com.vmware.nsx_policy.infra.tier_0s.l2vpn_services.SessionsStub
-
- All Implemented Interfaces:
Sessions
,SessionsTypes
,com.vmware.vapi.bindings.Service
public class SessionsStub extends com.vmware.vapi.internal.bindings.Stub implements Sessions
Remote stub implementation of theSessions
API service.WARNING: Internal class, subject to change in future versions.
-
-
Field Summary
-
Fields inherited from class com.vmware.vapi.internal.bindings.Stub
apiProvider, converter, ifaceId, retryPolicy, securityContext
-
Fields inherited from interface com.vmware.nsx_policy.infra.tier_0s.l2vpn_services.SessionsTypes
_VAPI_SERVICE_ID
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData)
Create or patch an L2VPN session under Tier-0 from Peer Codes.void
createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Create or patch an L2VPN session under Tier-0 from Peer Codes.void
createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create or patch an L2VPN session under Tier-0 from Peer Codes.void
createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create or patch an L2VPN session under Tier-0 from Peer Codes.void
delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId)
Delete L2VPN session under Tier-0.void
delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Delete L2VPN session under Tier-0.void
delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete L2VPN session under Tier-0.void
delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Delete L2VPN session under Tier-0.L2VPNSession
get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId)
Get L2VPN session under Tier-0.void
get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
Get L2VPN session under Tier-0.void
get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get L2VPN session under Tier-0.L2VPNSession
get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get L2VPN session under Tier-0.L2VPNSessionListResult
list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy)
Get paginated list of all L2VPN sessions under Tier-0.void
list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback)
Get paginated list of all L2VPN sessions under Tier-0.void
list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get paginated list of all L2VPN sessions under Tier-0.L2VPNSessionListResult
list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Get paginated list of all L2VPN sessions under Tier-0.void
patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession)
Create or patch an L2VPN session under Tier-0.void
patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Create or patch an L2VPN session under Tier-0.void
patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create or patch an L2VPN session under Tier-0.void
patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create or patch an L2VPN session under Tier-0.L2VPNSession
update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession)
Create or fully replace L2VPN session under Tier-0.void
update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
Create or fully replace L2VPN session under Tier-0.void
update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create or fully replace L2VPN session under Tier-0.L2VPNSession
update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create or fully replace L2VPN session under Tier-0.
-
-
-
Constructor Detail
-
SessionsStub
public SessionsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
-
SessionsStub
public SessionsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
-
-
Method Detail
-
createwithpeercode
public void createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.Synchronous method overload. Result of the invocation will be reported as a method return value.
- Specified by:
createwithpeercode
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)sessionId
- (required)l2VPNSessionData
- (required)
-
createwithpeercode
public void createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.Synchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to specify configuration for this particular invocation.- Specified by:
createwithpeercode
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)sessionId
- (required)l2VPNSessionData
- (required)invocationConfig
- Configuration for the method invocation.
-
createwithpeercode
public void createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.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
- Specified by:
createwithpeercode
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)sessionId
- (required)l2VPNSessionData
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.
-
createwithpeercode
public void createwithpeercode(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
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
- Specified by:
createwithpeercode
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)sessionId
- (required)l2VPNSessionData
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.
-
delete
public void delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId)
Description copied from interface:Sessions
Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.Synchronous method overload. Result of the invocation will be reported as a method return value.
-
delete
public void delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.Synchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to specify configuration for this particular invocation.
-
delete
public void delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Description copied from interface:Sessions
Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.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
-
delete
public void delete(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
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
-
get
public L2VPNSession get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId)
Description copied from interface:Sessions
Get L2VPN session under Tier-0.Synchronous method overload. Result of the invocation will be reported as a method return value.
-
get
public L2VPNSession get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Get L2VPN session under Tier-0.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
public void get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
Description copied from interface:Sessions
Get L2VPN session under Tier-0.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
.Invocation Result:
com.vmware.nsx_policy.model.L2VPNSessionOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
get
public void get(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Get L2VPN session under Tier-0.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.L2VPNSessionOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
list
public L2VPNSessionListResult list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy)
Description copied from interface:Sessions
Get paginated list of all L2VPN sessions under Tier-0.Synchronous method overload. Result of the invocation will be reported as a method return value.
- Specified by:
list
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)cursor
- Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)includeMarkForDeleteObjects
- Include objects that are marked for deletion in results (optional, default to false)includedFields
- Comma separated list of fields that should be included in query result (optional)pageSize
- Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)- Returns:
- com.vmware.nsx_policy.model.L2VPNSessionListResult
-
list
public L2VPNSessionListResult list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Get paginated list of all L2VPN sessions under Tier-0.Synchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to specify configuration for this particular invocation.- Specified by:
list
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)cursor
- Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)includeMarkForDeleteObjects
- Include objects that are marked for deletion in results (optional, default to false)includedFields
- Comma separated list of fields that should be included in query result (optional)pageSize
- Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)invocationConfig
- Configuration for the method invocation.- Returns:
- com.vmware.nsx_policy.model.L2VPNSessionListResult
-
list
public void list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback)
Description copied from interface:Sessions
Get paginated list of all L2VPN sessions under Tier-0.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
.Invocation Result:
com.vmware.nsx_policy.model.L2VPNSessionListResultOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
- Specified by:
list
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)cursor
- Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)includeMarkForDeleteObjects
- Include objects that are marked for deletion in results (optional, default to false)includedFields
- Comma separated list of fields that should be included in query result (optional)pageSize
- Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sortAscending
- (optional)sortBy
- Field by which records are sorted (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.
-
list
public void list(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Get paginated list of all L2VPN sessions under Tier-0.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.L2VPNSessionListResultOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
- Specified by:
list
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)cursor
- Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)includeMarkForDeleteObjects
- Include objects that are marked for deletion in results (optional, default to false)includedFields
- Comma separated list of fields that should be included in query result (optional)pageSize
- Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)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.
-
patch
public void patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.Synchronous method overload. Result of the invocation will be reported as a method return value.
-
patch
public void patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.Synchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to specify configuration for this particular invocation.
-
patch
public void patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.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
-
patch
public void patch(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
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
-
update
public L2VPNSession update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession)
Description copied from interface:Sessions
Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.Synchronous method overload. Result of the invocation will be reported as a method return value.
-
update
public L2VPNSession update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.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
public void update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
Description copied from interface:Sessions
Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
.Invocation Result:
com.vmware.nsx_policy.model.L2VPNSessionOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
update
public void update(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Sessions
Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.Asynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.L2VPNSessionOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
- Specified by:
update
in interfaceSessions
- Parameters:
tier0Id
- (required)serviceId
- (required)sessionId
- (required)l2VPNSession
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.
-
-