public class SubnetOperationsImpl extends Object implements ServiceOperations<NetworkResourceProviderClientImpl>, SubnetOperations
| Modifier and Type | Method and Description |
|---|---|
SubnetPutResponse |
beginCreateOrUpdating(String resourceGroupName,
String virtualNetworkName,
String subnetName,
Subnet subnetParameters)
The Put Subnet operation creates/updates a subnet in thespecified virtual
network
|
Future<SubnetPutResponse> |
beginCreateOrUpdatingAsync(String resourceGroupName,
String virtualNetworkName,
String subnetName,
Subnet subnetParameters)
The Put Subnet operation creates/updates a subnet in thespecified virtual
network
|
UpdateOperationResponse |
beginDeleting(String resourceGroupName,
String virtualNetworkName,
String subnetName)
The delete subnet operation deletes the specified subnet.
|
Future<UpdateOperationResponse> |
beginDeletingAsync(String resourceGroupName,
String virtualNetworkName,
String subnetName)
The delete subnet operation deletes the specified subnet.
|
AzureAsyncOperationResponse |
createOrUpdate(String resourceGroupName,
String virtualNetworkName,
String subnetName,
Subnet subnetParameters)
The Put Subnet operation creates/updates a subnet in thespecified virtual
network
|
Future<AzureAsyncOperationResponse> |
createOrUpdateAsync(String resourceGroupName,
String virtualNetworkName,
String subnetName,
Subnet subnetParameters)
The Put Subnet operation creates/updates a subnet in thespecified virtual
network
|
OperationResponse |
delete(String resourceGroupName,
String virtualNetworkName,
String subnetName)
The delete subnet operation deletes the specified subnet.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String virtualNetworkName,
String subnetName)
The delete subnet operation deletes the specified subnet.
|
SubnetGetResponse |
get(String resourceGroupName,
String virtualNetworkName,
String subnetName)
The Get subnet operation retreives information about the specified subnet.
|
Future<SubnetGetResponse> |
getAsync(String resourceGroupName,
String virtualNetworkName,
String subnetName)
The Get subnet operation retreives information about the specified subnet.
|
NetworkResourceProviderClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.network.NetworkResourceProviderClientImpl.
|
SubnetListResponse |
list(String resourceGroupName,
String virtualNetworkName)
The List subnets opertion retrieves all the subnets in a virtual network.
|
Future<SubnetListResponse> |
listAsync(String resourceGroupName,
String virtualNetworkName)
The List subnets opertion retrieves all the subnets in a virtual network.
|
public NetworkResourceProviderClientImpl getClient()
getClient in interface ServiceOperations<NetworkResourceProviderClientImpl>public Future<SubnetPutResponse> beginCreateOrUpdatingAsync(String resourceGroupName, String virtualNetworkName, String subnetName, Subnet subnetParameters)
beginCreateOrUpdatingAsync in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.subnetParameters - Required. Parameters supplied to the
create/update Subnet operationpublic SubnetPutResponse beginCreateOrUpdating(String resourceGroupName, String virtualNetworkName, String subnetName, Subnet subnetParameters) throws IOException, ServiceException
beginCreateOrUpdating in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.subnetParameters - Required. Parameters supplied to the
create/update Subnet 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, String subnetName)
beginDeletingAsync in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.public UpdateOperationResponse beginDeleting(String resourceGroupName, String virtualNetworkName, String subnetName) throws IOException, ServiceException
beginDeleting in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.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, String subnetName, Subnet subnetParameters)
createOrUpdateAsync in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.subnetParameters - Required. Parameters supplied to the
create/update Subnet operationpublic AzureAsyncOperationResponse createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, Subnet subnetParameters) throws InterruptedException, ExecutionException, IOException
createOrUpdate in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.subnetParameters - Required. Parameters supplied to the
create/update Subnet 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, String subnetName)
deleteAsync in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.public OperationResponse delete(String resourceGroupName, String virtualNetworkName, String subnetName) throws InterruptedException, ExecutionException, IOException
delete in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.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<SubnetGetResponse> getAsync(String resourceGroupName, String virtualNetworkName, String subnetName)
getAsync in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.public SubnetGetResponse get(String resourceGroupName, String virtualNetworkName, String subnetName) throws IOException, ServiceException
get in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.subnetName - Required. The name of the subnet.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<SubnetListResponse> listAsync(String resourceGroupName, String virtualNetworkName)
listAsync in interface SubnetOperationsresourceGroupName - Required. The name of the resource group.virtualNetworkName - Required. The name of the virtual network.public SubnetListResponse list(String resourceGroupName, String virtualNetworkName) throws IOException, ServiceException
list in interface SubnetOperationsresourceGroupName - 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./**
* 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.
*/