public class LogicalSwitchesStub extends com.vmware.vapi.internal.bindings.Stub implements LogicalSwitches
LogicalSwitches
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, LIST_SWITCH_TYPE_DEFAULT, LIST_SWITCH_TYPE_DHCP_RELAY, LIST_SWITCH_TYPE_DVPG, LIST_SWITCH_TYPE_EVPN, LIST_SWITCH_TYPE_GLOBAL, LIST_SWITCH_TYPE_INTER_ROUTER, LIST_SWITCH_TYPE_SERVICE_PLANE, LIST_TRANSPORT_TYPE_OVERLAY, LIST_TRANSPORT_TYPE_VLAN
Constructor and Description |
---|
LogicalSwitchesStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
LogicalSwitchesStub(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 |
---|---|
LogicalSwitch |
create(LogicalSwitch logicalSwitch)
Creates a new logical switch.
|
void |
create(LogicalSwitch logicalSwitch,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback)
Creates a new logical switch.
|
void |
create(LogicalSwitch logicalSwitch,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Creates a new logical switch.
|
LogicalSwitch |
create(LogicalSwitch logicalSwitch,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Creates a new logical switch.
|
void |
delete(java.lang.String lswitchId,
java.lang.Boolean cascade,
java.lang.Boolean detach)
Removes a logical switch from the associated overlay or VLAN transport zone.
|
void |
delete(java.lang.String lswitchId,
java.lang.Boolean cascade,
java.lang.Boolean detach,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Removes a logical switch from the associated overlay or VLAN transport zone.
|
void |
delete(java.lang.String lswitchId,
java.lang.Boolean cascade,
java.lang.Boolean detach,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Removes a logical switch from the associated overlay or VLAN transport zone.
|
void |
delete(java.lang.String lswitchId,
java.lang.Boolean cascade,
java.lang.Boolean detach,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Removes a logical switch from the associated overlay or VLAN transport zone.
|
LogicalSwitch |
get(java.lang.String lswitchId)
Returns information about the specified logical switch Id.
|
void |
get(java.lang.String lswitchId,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback)
Returns information about the specified logical switch Id.
|
void |
get(java.lang.String lswitchId,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about the specified logical switch Id.
|
LogicalSwitch |
get(java.lang.String lswitchId,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about the specified logical switch Id.
|
LogicalSwitchListResult |
list(java.lang.String cursor,
java.lang.Boolean diagnostic,
java.lang.String includedFields,
java.lang.Long pageSize,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
java.lang.String switchType,
java.lang.String switchingProfileId,
java.lang.String transportType,
java.lang.String transportZoneId,
java.lang.String uplinkTeamingPolicyName,
java.lang.Long vlan,
java.lang.Long vni)
Returns information about all configured logical switches.
|
void |
list(java.lang.String cursor,
java.lang.Boolean diagnostic,
java.lang.String includedFields,
java.lang.Long pageSize,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
java.lang.String switchType,
java.lang.String switchingProfileId,
java.lang.String transportType,
java.lang.String transportZoneId,
java.lang.String uplinkTeamingPolicyName,
java.lang.Long vlan,
java.lang.Long vni,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitchListResult> asyncCallback)
Returns information about all configured logical switches.
|
void |
list(java.lang.String cursor,
java.lang.Boolean diagnostic,
java.lang.String includedFields,
java.lang.Long pageSize,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
java.lang.String switchType,
java.lang.String switchingProfileId,
java.lang.String transportType,
java.lang.String transportZoneId,
java.lang.String uplinkTeamingPolicyName,
java.lang.Long vlan,
java.lang.Long vni,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitchListResult> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about all configured logical switches.
|
LogicalSwitchListResult |
list(java.lang.String cursor,
java.lang.Boolean diagnostic,
java.lang.String includedFields,
java.lang.Long pageSize,
java.lang.Boolean sortAscending,
java.lang.String sortBy,
java.lang.String switchType,
java.lang.String switchingProfileId,
java.lang.String transportType,
java.lang.String transportZoneId,
java.lang.String uplinkTeamingPolicyName,
java.lang.Long vlan,
java.lang.Long vni,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about all configured logical switches.
|
LogicalSwitch |
update(java.lang.String lswitchId,
LogicalSwitch logicalSwitch)
Modifies attributes of an existing logical switch.
|
void |
update(java.lang.String lswitchId,
LogicalSwitch logicalSwitch,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback)
Modifies attributes of an existing logical switch.
|
void |
update(java.lang.String lswitchId,
LogicalSwitch logicalSwitch,
com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Modifies attributes of an existing logical switch.
|
LogicalSwitch |
update(java.lang.String lswitchId,
LogicalSwitch logicalSwitch,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Modifies attributes of an existing logical switch.
|
public LogicalSwitchesStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
public LogicalSwitchesStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
public LogicalSwitch create(LogicalSwitch logicalSwitch)
LogicalSwitches
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface LogicalSwitches
logicalSwitch
- (required)public LogicalSwitch create(LogicalSwitch logicalSwitch, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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 LogicalSwitches
logicalSwitch
- (required)invocationConfig
- Configuration for the method invocation.public void create(LogicalSwitch logicalSwitch, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback)
LogicalSwitches
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.LogicalSwitch
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
create
in interface LogicalSwitches
logicalSwitch
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(LogicalSwitch logicalSwitch, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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.LogicalSwitch
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
create
in interface LogicalSwitches
logicalSwitch
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String lswitchId, java.lang.Boolean cascade, java.lang.Boolean detach)
LogicalSwitches
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface LogicalSwitches
lswitchId
- (required)cascade
- Delete a Logical Switch and all the logical ports in it, if none of the logical
ports have any attachment. (optional, default to false)detach
- Force delete a logical switch (optional, default to false)public void delete(java.lang.String lswitchId, java.lang.Boolean cascade, java.lang.Boolean detach, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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
in interface LogicalSwitches
lswitchId
- (required)cascade
- Delete a Logical Switch and all the logical ports in it, if none of the logical
ports have any attachment. (optional, default to false)detach
- Force delete a logical switch (optional, default to false)invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String lswitchId, java.lang.Boolean cascade, java.lang.Boolean detach, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
LogicalSwitches
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
in interface LogicalSwitches
lswitchId
- (required)cascade
- Delete a Logical Switch and all the logical ports in it, if none of the logical
ports have any attachment. (optional, default to false)detach
- Force delete a logical switch (optional, default to false)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String lswitchId, java.lang.Boolean cascade, java.lang.Boolean detach, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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 LogicalSwitches
lswitchId
- (required)cascade
- Delete a Logical Switch and all the logical ports in it, if none of the logical
ports have any attachment. (optional, default to false)detach
- Force delete a logical switch (optional, default to false)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public LogicalSwitch get(java.lang.String lswitchId)
LogicalSwitches
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface LogicalSwitches
lswitchId
- (required)public LogicalSwitch get(java.lang.String lswitchId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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 LogicalSwitches
lswitchId
- (required)invocationConfig
- Configuration for the method invocation.public void get(java.lang.String lswitchId, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback)
LogicalSwitches
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.LogicalSwitch
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
get
in interface LogicalSwitches
lswitchId
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String lswitchId, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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.LogicalSwitch
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
get
in interface LogicalSwitches
lswitchId
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public LogicalSwitchListResult list(java.lang.String cursor, java.lang.Boolean diagnostic, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, java.lang.String switchType, java.lang.String switchingProfileId, java.lang.String transportType, java.lang.String transportZoneId, java.lang.String uplinkTeamingPolicyName, java.lang.Long vlan, java.lang.Long vni)
LogicalSwitches
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface LogicalSwitches
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)diagnostic
- Flag to enable showing of transit logical switch. (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)switchType
- Logical Switch type (optional)switchingProfileId
- Switching Profile identifier (optional)transportType
- Mode of transport supported in the transport zone for this logical switch
(optional)transportZoneId
- Transport zone identifier (optional)uplinkTeamingPolicyName
- The logical switch's uplink teaming policy name (optional)vlan
- Virtual Local Area Network Identifier (optional)vni
- VNI of the OVERLAY LogicalSwitch(es) to return. (optional)public LogicalSwitchListResult list(java.lang.String cursor, java.lang.Boolean diagnostic, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, java.lang.String switchType, java.lang.String switchingProfileId, java.lang.String transportType, java.lang.String transportZoneId, java.lang.String uplinkTeamingPolicyName, java.lang.Long vlan, java.lang.Long vni, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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 LogicalSwitches
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)diagnostic
- Flag to enable showing of transit logical switch. (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)switchType
- Logical Switch type (optional)switchingProfileId
- Switching Profile identifier (optional)transportType
- Mode of transport supported in the transport zone for this logical switch
(optional)transportZoneId
- Transport zone identifier (optional)uplinkTeamingPolicyName
- The logical switch's uplink teaming policy name (optional)vlan
- Virtual Local Area Network Identifier (optional)vni
- VNI of the OVERLAY LogicalSwitch(es) to return. (optional)invocationConfig
- Configuration for the method invocation.public void list(java.lang.String cursor, java.lang.Boolean diagnostic, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, java.lang.String switchType, java.lang.String switchingProfileId, java.lang.String transportType, java.lang.String transportZoneId, java.lang.String uplinkTeamingPolicyName, java.lang.Long vlan, java.lang.Long vni, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitchListResult> asyncCallback)
LogicalSwitches
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.LogicalSwitchListResult
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
list
in interface LogicalSwitches
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)diagnostic
- Flag to enable showing of transit logical switch. (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)switchType
- Logical Switch type (optional)switchingProfileId
- Switching Profile identifier (optional)transportType
- Mode of transport supported in the transport zone for this logical switch
(optional)transportZoneId
- Transport zone identifier (optional)uplinkTeamingPolicyName
- The logical switch's uplink teaming policy name (optional)vlan
- Virtual Local Area Network Identifier (optional)vni
- VNI of the OVERLAY LogicalSwitch(es) to return. (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String cursor, java.lang.Boolean diagnostic, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, java.lang.String switchType, java.lang.String switchingProfileId, java.lang.String transportType, java.lang.String transportZoneId, java.lang.String uplinkTeamingPolicyName, java.lang.Long vlan, java.lang.Long vni, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitchListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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.LogicalSwitchListResult
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
list
in interface LogicalSwitches
cursor
- Opaque cursor to be used for getting next page of records (supplied by current
result page) (optional)diagnostic
- Flag to enable showing of transit logical switch. (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)switchType
- Logical Switch type (optional)switchingProfileId
- Switching Profile identifier (optional)transportType
- Mode of transport supported in the transport zone for this logical switch
(optional)transportZoneId
- Transport zone identifier (optional)uplinkTeamingPolicyName
- The logical switch's uplink teaming policy name (optional)vlan
- Virtual Local Area Network Identifier (optional)vni
- VNI of the OVERLAY LogicalSwitch(es) to return. (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public LogicalSwitch update(java.lang.String lswitchId, LogicalSwitch logicalSwitch)
LogicalSwitches
Synchronous method overload. Result of the invocation will be reported as a method return value.
update
in interface LogicalSwitches
lswitchId
- (required)logicalSwitch
- (required)public LogicalSwitch update(java.lang.String lswitchId, LogicalSwitch logicalSwitch, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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 LogicalSwitches
lswitchId
- (required)logicalSwitch
- (required)invocationConfig
- Configuration for the method invocation.public void update(java.lang.String lswitchId, LogicalSwitch logicalSwitch, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback)
LogicalSwitches
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.LogicalSwitch
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
update
in interface LogicalSwitches
lswitchId
- (required)logicalSwitch
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String lswitchId, LogicalSwitch logicalSwitch, com.vmware.vapi.bindings.client.AsyncCallback<LogicalSwitch> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
LogicalSwitches
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.LogicalSwitch
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
update
in interface LogicalSwitches
lswitchId
- (required)logicalSwitch
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.