public class ManagementLockOperationsImpl extends Object implements ServiceOperations<AuthorizationClientImpl>, ManagementLockOperations
| Modifier and Type | Method and Description |
|---|---|
ManagementLockReturnResult |
createOrUpdateAtResourceGroupLevel(String resourceGroupName,
String lockName,
ManagementLockProperties parameters)
Create or update a management lock at the resource group level.
|
Future<ManagementLockReturnResult> |
createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName,
String lockName,
ManagementLockProperties parameters)
Create or update a management lock at the resource group level.
|
ManagementLockReturnResult |
createOrUpdateAtResourceLevel(String resourceGroupName,
ResourceIdentity identity,
String lockName,
ManagementLockProperties parameters)
Create or update a management lock at the resource level or any level
below resource.
|
Future<ManagementLockReturnResult> |
createOrUpdateAtResourceLevelAsync(String resourceGroupName,
ResourceIdentity identity,
String lockName,
ManagementLockProperties parameters)
Create or update a management lock at the resource level or any level
below resource.
|
ManagementLockReturnResult |
createOrUpdateAtSubscriptionLevel(String lockName,
ManagementLockProperties parameters)
Create or update a management lock at the subscription level.
|
Future<ManagementLockReturnResult> |
createOrUpdateAtSubscriptionLevelAsync(String lockName,
ManagementLockProperties parameters)
Create or update a management lock at the subscription level.
|
OperationResponse |
deleteAtResourceGroupLevel(String resourceGroup,
String lockName)
Deletes the management lock of a resource group.
|
Future<OperationResponse> |
deleteAtResourceGroupLevelAsync(String resourceGroup,
String lockName)
Deletes the management lock of a resource group.
|
OperationResponse |
deleteAtResourceLevel(String resourceGroupName,
ResourceIdentity identity,
String lockName)
Deletes the management lock of a resource or any level below resource.
|
Future<OperationResponse> |
deleteAtResourceLevelAsync(String resourceGroupName,
ResourceIdentity identity,
String lockName)
Deletes the management lock of a resource or any level below resource.
|
OperationResponse |
deleteAtSubscriptionLevel(String lockName)
Deletes the management lock of a subscription.
|
Future<OperationResponse> |
deleteAtSubscriptionLevelAsync(String lockName)
Deletes the management lock of a subscription.
|
ManagementLockReturnResult |
get(String lockName)
Gets the management lock of a scope.
|
Future<ManagementLockReturnResult> |
getAsync(String lockName)
Gets the management lock of a scope.
|
AuthorizationClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.resources.AuthorizationClientImpl.
|
ManagementLockListResult |
listAtResourceGroupLevel(String resourceGroupName,
ManagementLockGetQueryParameter parameters)
Gets all the management locks of a resource group.
|
Future<ManagementLockListResult> |
listAtResourceGroupLevelAsync(String resourceGroupName,
ManagementLockGetQueryParameter parameters)
Gets all the management locks of a resource group.
|
ManagementLockListResult |
listAtResourceLevel(String resourceGroupName,
ResourceIdentity identity,
ManagementLockGetQueryParameter parameters)
Gets all the management locks of a resource or any level below resource.
|
Future<ManagementLockListResult> |
listAtResourceLevelAsync(String resourceGroupName,
ResourceIdentity identity,
ManagementLockGetQueryParameter parameters)
Gets all the management locks of a resource or any level below resource.
|
ManagementLockListResult |
listAtSubscriptionLevel(ManagementLockGetQueryParameter parameters)
Gets all the management locks of a subscription.
|
Future<ManagementLockListResult> |
listAtSubscriptionLevelAsync(ManagementLockGetQueryParameter parameters)
Gets all the management locks of a subscription.
|
ManagementLockListResult |
listNext(String nextLink)
Get a list of management locks at resource level or below.
|
Future<ManagementLockListResult> |
listNextAsync(String nextLink)
Get a list of management locks at resource level or below.
|
public AuthorizationClientImpl getClient()
getClient in interface ServiceOperations<AuthorizationClientImpl>public Future<ManagementLockReturnResult> createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName, String lockName, ManagementLockProperties parameters)
createOrUpdateAtResourceGroupLevelAsync in interface ManagementLockOperationsresourceGroupName - Required. The resource group name.lockName - Required. The lock name.parameters - Required. The management lock parameters.public ManagementLockReturnResult createOrUpdateAtResourceGroupLevel(String resourceGroupName, String lockName, ManagementLockProperties parameters) throws IOException, ServiceException
createOrUpdateAtResourceGroupLevel in interface ManagementLockOperationsresourceGroupName - Required. The resource group name.lockName - Required. The lock name.parameters - Required. The management lock parameters.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<ManagementLockReturnResult> createOrUpdateAtResourceLevelAsync(String resourceGroupName, ResourceIdentity identity, String lockName, ManagementLockProperties parameters)
createOrUpdateAtResourceLevelAsync in interface ManagementLockOperationsresourceGroupName - Required. The name of the resource group.identity - Required. Resource identity.lockName - Required. The name of lock.parameters - Required. Create or update management lock parameters.public ManagementLockReturnResult createOrUpdateAtResourceLevel(String resourceGroupName, ResourceIdentity identity, String lockName, ManagementLockProperties parameters) throws IOException, ServiceException
createOrUpdateAtResourceLevel in interface ManagementLockOperationsresourceGroupName - Required. The name of the resource group.identity - Required. Resource identity.lockName - Required. The name of lock.parameters - Required. Create or update management lock parameters.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<ManagementLockReturnResult> createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockProperties parameters)
createOrUpdateAtSubscriptionLevelAsync in interface ManagementLockOperationslockName - Required. The name of lock.parameters - Required. The management lock parameters.public ManagementLockReturnResult createOrUpdateAtSubscriptionLevel(String lockName, ManagementLockProperties parameters) throws IOException, ServiceException
createOrUpdateAtSubscriptionLevel in interface ManagementLockOperationslockName - Required. The name of lock.parameters - Required. The management lock parameters.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<OperationResponse> deleteAtResourceGroupLevelAsync(String resourceGroup, String lockName)
deleteAtResourceGroupLevelAsync in interface ManagementLockOperationsresourceGroup - Required. The resource group names.lockName - Required. The name of lock.public OperationResponse deleteAtResourceGroupLevel(String resourceGroup, String lockName) throws IOException, ServiceException
deleteAtResourceGroupLevel in interface ManagementLockOperationsresourceGroup - Required. The resource group names.lockName - Required. The name of lock.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<OperationResponse> deleteAtResourceLevelAsync(String resourceGroupName, ResourceIdentity identity, String lockName)
deleteAtResourceLevelAsync in interface ManagementLockOperationsresourceGroupName - Required. The name of the resource group.identity - Required. Resource identity.lockName - Required. The name of lock.public OperationResponse deleteAtResourceLevel(String resourceGroupName, ResourceIdentity identity, String lockName) throws IOException, ServiceException
deleteAtResourceLevel in interface ManagementLockOperationsresourceGroupName - Required. The name of the resource group.identity - Required. Resource identity.lockName - Required. The name of lock.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<OperationResponse> deleteAtSubscriptionLevelAsync(String lockName)
deleteAtSubscriptionLevelAsync in interface ManagementLockOperationslockName - Required. The name of lock.public OperationResponse deleteAtSubscriptionLevel(String lockName) throws IOException, ServiceException
deleteAtSubscriptionLevel in interface ManagementLockOperationslockName - Required. The name of lock.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<ManagementLockReturnResult> getAsync(String lockName)
getAsync in interface ManagementLockOperationslockName - Required. Name of the management lock.public ManagementLockReturnResult get(String lockName) throws IOException, ServiceException
get in interface ManagementLockOperationslockName - Required. Name of the management lock.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<ManagementLockListResult> listAtResourceGroupLevelAsync(String resourceGroupName, ManagementLockGetQueryParameter parameters)
listAtResourceGroupLevelAsync in interface ManagementLockOperationsresourceGroupName - Required. Resource group name.parameters - Optional. Query parameters. If empty is passed returns
all locks at, above or below the resource group.public ManagementLockListResult listAtResourceGroupLevel(String resourceGroupName, ManagementLockGetQueryParameter parameters) throws IOException, ServiceException
listAtResourceGroupLevel in interface ManagementLockOperationsresourceGroupName - Required. Resource group name.parameters - Optional. Query parameters. If empty is passed returns
all locks at, above or below 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<ManagementLockListResult> listAtResourceLevelAsync(String resourceGroupName, ResourceIdentity identity, ManagementLockGetQueryParameter parameters)
listAtResourceLevelAsync in interface ManagementLockOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.parameters - Optional. Query parameters. If empty is passed returns
all locks at or below the resource.If atScope() is passed returns all
locks at the resource level.public ManagementLockListResult listAtResourceLevel(String resourceGroupName, ResourceIdentity identity, ManagementLockGetQueryParameter parameters) throws IOException, ServiceException
listAtResourceLevel in interface ManagementLockOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.parameters - Optional. Query parameters. If empty is passed returns
all locks at or below the resource.If atScope() is passed returns all
locks at the resource level.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<ManagementLockListResult> listAtSubscriptionLevelAsync(ManagementLockGetQueryParameter parameters)
listAtSubscriptionLevelAsync in interface ManagementLockOperationsparameters - Optional. Query parameters. If empty is passed returns
all locks at, above or below the subscription.public ManagementLockListResult listAtSubscriptionLevel(ManagementLockGetQueryParameter parameters) throws IOException, ServiceException
listAtSubscriptionLevel in interface ManagementLockOperationsparameters - Optional. Query parameters. If empty is passed returns
all locks at, above or below the subscription.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<ManagementLockListResult> listNextAsync(String nextLink)
listNextAsync in interface ManagementLockOperationsnextLink - Required. NextLink from the previous successful call to
List operation.public ManagementLockListResult listNext(String nextLink) throws IOException, ServiceException
listNext in interface ManagementLockOperationsnextLink - Required. NextLink from the previous successful call to
List operation.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.
*/