public class NetworkSecurityGroupOperationsImpl extends Object implements ServiceOperations<NetworkResourceProviderClientImpl>, NetworkSecurityGroupOperations
| Modifier and Type | Method and Description |
|---|---|
NetworkSecurityGroupPutResponse |
beginCreateOrUpdating(String resourceGroupName,
String networkSecurityGroupName,
NetworkSecurityGroup parameters)
The Put NetworkSecurityGroup operation creates/updates a network security
groupin the specified resource group.
|
Future<NetworkSecurityGroupPutResponse> |
beginCreateOrUpdatingAsync(String resourceGroupName,
String networkSecurityGroupName,
NetworkSecurityGroup parameters)
The Put NetworkSecurityGroup operation creates/updates a network security
groupin the specified resource group.
|
UpdateOperationResponse |
beginDeleting(String resourceGroupName,
String networkSecurityGroupName)
The Delete NetworkSecurityGroup operation deletes the specifed network
security group
|
Future<UpdateOperationResponse> |
beginDeletingAsync(String resourceGroupName,
String networkSecurityGroupName)
The Delete NetworkSecurityGroup operation deletes the specifed network
security group
|
AzureAsyncOperationResponse |
createOrUpdate(String resourceGroupName,
String networkSecurityGroupName,
NetworkSecurityGroup parameters)
The Put NetworkSecurityGroup operation creates/updates a network security
groupin the specified resource group.
|
Future<AzureAsyncOperationResponse> |
createOrUpdateAsync(String resourceGroupName,
String networkSecurityGroupName,
NetworkSecurityGroup parameters)
The Put NetworkSecurityGroup operation creates/updates a network security
groupin the specified resource group.
|
OperationResponse |
delete(String resourceGroupName,
String networkSecurityGroupName)
The Delete NetworkSecurityGroup operation deletes the specifed network
security group
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String networkSecurityGroupName)
The Delete NetworkSecurityGroup operation deletes the specifed network
security group
|
NetworkSecurityGroupGetResponse |
get(String resourceGroupName,
String networkSecurityGroupName)
The Get NetworkSecurityGroups operation retrieves information about the
specified network security group.
|
Future<NetworkSecurityGroupGetResponse> |
getAsync(String resourceGroupName,
String networkSecurityGroupName)
The Get NetworkSecurityGroups operation retrieves information about the
specified network security group.
|
NetworkResourceProviderClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.network.NetworkResourceProviderClientImpl.
|
NetworkSecurityGroupListResponse |
list(String resourceGroupName)
The list NetworkSecurityGroups returns all network security groups in a
resource group
|
NetworkSecurityGroupListResponse |
listAll()
The list NetworkSecurityGroups returns all network security groups in a
subscription
|
Future<NetworkSecurityGroupListResponse> |
listAllAsync()
The list NetworkSecurityGroups returns all network security groups in a
subscription
|
Future<NetworkSecurityGroupListResponse> |
listAsync(String resourceGroupName)
The list NetworkSecurityGroups returns all network security groups in a
resource group
|
public NetworkResourceProviderClientImpl getClient()
getClient in interface ServiceOperations<NetworkResourceProviderClientImpl>public Future<NetworkSecurityGroupPutResponse> beginCreateOrUpdatingAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroup parameters)
beginCreateOrUpdatingAsync in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.parameters - Required. Parameters supplied to the create/update
Network Security Group operationpublic NetworkSecurityGroupPutResponse beginCreateOrUpdating(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroup parameters) throws IOException, ServiceException
beginCreateOrUpdating in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.parameters - Required. Parameters supplied to the create/update
Network Security Group 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 networkSecurityGroupName)
beginDeletingAsync in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.public UpdateOperationResponse beginDeleting(String resourceGroupName, String networkSecurityGroupName) throws IOException, ServiceException
beginDeleting in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security 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<AzureAsyncOperationResponse> createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroup parameters)
createOrUpdateAsync in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.parameters - Required. Parameters supplied to the create/update
Network Security Group operationpublic AzureAsyncOperationResponse createOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroup parameters) throws InterruptedException, ExecutionException, IOException
createOrUpdate in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.parameters - Required. Parameters supplied to the create/update
Network Security Group 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 networkSecurityGroupName)
deleteAsync in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.public OperationResponse delete(String resourceGroupName, String networkSecurityGroupName) throws InterruptedException, ExecutionException, IOException
delete in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.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<NetworkSecurityGroupGetResponse> getAsync(String resourceGroupName, String networkSecurityGroupName)
getAsync in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security group.public NetworkSecurityGroupGetResponse get(String resourceGroupName, String networkSecurityGroupName) throws IOException, ServiceException
get in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.networkSecurityGroupName - Required. The name of the network
security 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<NetworkSecurityGroupListResponse> listAsync(String resourceGroupName)
listAsync in interface NetworkSecurityGroupOperationsresourceGroupName - Required. The name of the resource group.public NetworkSecurityGroupListResponse list(String resourceGroupName) throws IOException, ServiceException
list in interface NetworkSecurityGroupOperationsresourceGroupName - 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<NetworkSecurityGroupListResponse> listAllAsync()
listAllAsync in interface NetworkSecurityGroupOperationspublic NetworkSecurityGroupListResponse listAll() throws IOException, ServiceException
listAll in interface NetworkSecurityGroupOperationsIOException - 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.
*/