public class VirtualNetworkOperationsImpl extends Object implements ServiceOperations<NetworkResourceProviderClientImpl>, VirtualNetworkOperations
| Modifier and Type | Method and Description |
|---|---|
VirtualNetworkPutResponse |
beginCreateOrUpdating(String resourceGroupName,
String virtualNetworkName,
VirtualNetwork parameters)
The Put VirtualNetwork operation creates/updates a virtual network in the
specified resource group.
|
Future<VirtualNetworkPutResponse> |
beginCreateOrUpdatingAsync(String resourceGroupName,
String virtualNetworkName,
VirtualNetwork parameters)
The Put VirtualNetwork operation creates/updates a virtual network in the
specified resource group.
|
UpdateOperationResponse |
beginDeleting(String resourceGroupName,
String virtualNetworkName)
The Delete VirtualNetwork operation deletes the specifed virtual network
|
Future<UpdateOperationResponse> |
beginDeletingAsync(String resourceGroupName,
String virtualNetworkName)
The Delete VirtualNetwork operation deletes the specifed virtual network
|
AzureAsyncOperationResponse |
createOrUpdate(String resourceGroupName,
String virtualNetworkName,
VirtualNetwork parameters)
The Put VirtualNetwork operation creates/updates a virtual networkin the
specified resource group.
|
Future<AzureAsyncOperationResponse> |
createOrUpdateAsync(String resourceGroupName,
String virtualNetworkName,
VirtualNetwork parameters)
The Put VirtualNetwork operation creates/updates a virtual networkin the
specified resource group.
|
OperationResponse |
delete(String resourceGroupName,
String virtualNetworkName)
The Delete VirtualNetwork operation deletes the specifed virtual network
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String virtualNetworkName)
The Delete VirtualNetwork operation deletes the specifed virtual network
|
VirtualNetworkGetResponse |
get(String resourceGroupName,
String virtualNetworkName)
The Get VirtualNetwork operation retrieves information about the
specified virtual network.
|
Future<VirtualNetworkGetResponse> |
getAsync(String resourceGroupName,
String virtualNetworkName)
The Get VirtualNetwork operation retrieves information about the
specified virtual network.
|
NetworkResourceProviderClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.network.NetworkResourceProviderClientImpl.
|
VirtualNetworkListResponse |
list(String resourceGroupName)
The list VirtualNetwork returns all Virtual Networks in a resource group
|
VirtualNetworkListResponse |
listAll()
The list VirtualNetwork returns all Virtual Networks in a subscription
|
Future<VirtualNetworkListResponse> |
listAllAsync()
The list VirtualNetwork returns all Virtual Networks in a subscription
|
Future<VirtualNetworkListResponse> |
listAsync(String resourceGroupName)
The list VirtualNetwork returns all Virtual Networks in a resource group
|
public NetworkResourceProviderClientImpl getClient()
getClient in interface ServiceOperations<NetworkResourceProviderClientImpl>public Future<VirtualNetworkPutResponse> beginCreateOrUpdatingAsync(String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters)
beginCreateOrUpdatingAsync in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.parameters - Required. Parameters supplied to the create/update
Virtual Network operationpublic VirtualNetworkPutResponse beginCreateOrUpdating(String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters) throws IOException, ServiceException
beginCreateOrUpdating in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.parameters - Required. Parameters supplied to the create/update
Virtual Network operationIOException - 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 virtualNetworkName)
beginDeletingAsync in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.public UpdateOperationResponse beginDeleting(String resourceGroupName, String virtualNetworkName) throws IOException, ServiceException
beginDeleting in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.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 virtualNetworkName, VirtualNetwork parameters)
createOrUpdateAsync in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.parameters - Required. Parameters supplied to the create/update
Virtual Network operationpublic AzureAsyncOperationResponse createOrUpdate(String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters) throws InterruptedException, ExecutionException, IOException
createOrUpdate in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.parameters - Required. Parameters supplied to the create/update
Virtual Network 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 virtualNetworkName)
deleteAsync in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.public OperationResponse delete(String resourceGroupName, String virtualNetworkName) throws InterruptedException, ExecutionException, IOException
delete in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.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<VirtualNetworkGetResponse> getAsync(String resourceGroupName, String virtualNetworkName)
getAsync in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.public VirtualNetworkGetResponse get(String resourceGroupName, String virtualNetworkName) throws IOException, ServiceException
get in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.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<VirtualNetworkListResponse> listAsync(String resourceGroupName)
listAsync in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.public VirtualNetworkListResponse list(String resourceGroupName) throws IOException, ServiceException
list in interface VirtualNetworkOperationsresourceGroupName - Required. The name of the resource group.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<VirtualNetworkListResponse> listAllAsync()
listAllAsync in interface VirtualNetworkOperationspublic VirtualNetworkListResponse listAll() throws IOException, ServiceException
listAll in interface VirtualNetworkOperationsIOException - 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.
*/