public class RouteOperationsImpl extends Object implements ServiceOperations<NetworkResourceProviderClientImpl>, RouteOperations
| Modifier and Type | Method and Description |
|---|---|
RoutePutResponse |
beginCreateOrUpdating(String resourceGroupName,
String routeTableName,
String routeName,
Route routeParameters)
The Put route operation creates/updates a route in the specified route
table
|
Future<RoutePutResponse> |
beginCreateOrUpdatingAsync(String resourceGroupName,
String routeTableName,
String routeName,
Route routeParameters)
The Put route operation creates/updates a route in the specified route
table
|
UpdateOperationResponse |
beginDeleting(String resourceGroupName,
String routeTableName,
String routeName)
The delete route operation deletes the specified route from a route table.
|
Future<UpdateOperationResponse> |
beginDeletingAsync(String resourceGroupName,
String routeTableName,
String routeName)
The delete route operation deletes the specified route from a route table.
|
AzureAsyncOperationResponse |
createOrUpdate(String resourceGroupName,
String routeTableName,
String routeName,
Route routeParameters)
The Put route operation creates/updates a route in the specified route
table
|
Future<AzureAsyncOperationResponse> |
createOrUpdateAsync(String resourceGroupName,
String routeTableName,
String routeName,
Route routeParameters)
The Put route operation creates/updates a route in the specified route
table
|
OperationResponse |
delete(String resourceGroupName,
String routeTableName,
String routeName)
The delete route operation deletes the specified route from a route table.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String routeTableName,
String routeName)
The delete route operation deletes the specified route from a route table.
|
RouteGetResponse |
get(String resourceGroupName,
String routeTableName,
String routeName)
The Get route operation retreives information about the specified route
from the route table.
|
Future<RouteGetResponse> |
getAsync(String resourceGroupName,
String routeTableName,
String routeName)
The Get route operation retreives information about the specified route
from the route table.
|
NetworkResourceProviderClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.network.NetworkResourceProviderClientImpl.
|
RouteListResponse |
list(String resourceGroupName,
String routeTableName)
The List network security rule opertion retrieves all the routes in a
route table.
|
Future<RouteListResponse> |
listAsync(String resourceGroupName,
String routeTableName)
The List network security rule opertion retrieves all the routes in a
route table.
|
public NetworkResourceProviderClientImpl getClient()
getClient in interface ServiceOperations<NetworkResourceProviderClientImpl>public Future<RoutePutResponse> beginCreateOrUpdatingAsync(String resourceGroupName, String routeTableName, String routeName, Route routeParameters)
beginCreateOrUpdatingAsync in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.routeParameters - Required. Parameters supplied to the create/update
routeoperationpublic RoutePutResponse beginCreateOrUpdating(String resourceGroupName, String routeTableName, String routeName, Route routeParameters) throws IOException, ServiceException
beginCreateOrUpdating in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.routeParameters - Required. Parameters supplied to the create/update
routeoperationIOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<UpdateOperationResponse> beginDeletingAsync(String resourceGroupName, String routeTableName, String routeName)
beginDeletingAsync in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.public UpdateOperationResponse beginDeleting(String resourceGroupName, String routeTableName, String routeName) throws IOException, ServiceException
beginDeleting in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<AzureAsyncOperationResponse> createOrUpdateAsync(String resourceGroupName, String routeTableName, String routeName, Route routeParameters)
createOrUpdateAsync in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.routeParameters - Required. Parameters supplied to the create/update
route operationpublic AzureAsyncOperationResponse createOrUpdate(String resourceGroupName, String routeTableName, String routeName, Route routeParameters) throws InterruptedException, ExecutionException, IOException
createOrUpdate in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.routeParameters - Required. Parameters supplied to the create/update
route operationInterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.public Future<OperationResponse> deleteAsync(String resourceGroupName, String routeTableName, String routeName)
deleteAsync in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.public OperationResponse delete(String resourceGroupName, String routeTableName, String routeName) throws InterruptedException, ExecutionException, IOException
delete in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.public Future<RouteGetResponse> getAsync(String resourceGroupName, String routeTableName, String routeName)
getAsync in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.public RouteGetResponse get(String resourceGroupName, String routeTableName, String routeName) throws IOException, ServiceException
get in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.routeName - Required. The name of the route.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<RouteListResponse> listAsync(String resourceGroupName, String routeTableName)
listAsync in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.public RouteListResponse list(String resourceGroupName, String routeTableName) throws IOException, ServiceException
list in interface RouteOperationsresourceGroupName - Required. The name of the resource group.routeTableName - Required. The name of the route table.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/