Interface ProtectedItemsClient
-
public interface ProtectedItemsClient
An instance of this class provides access to all the operations defined in ProtectedItemsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtectedItemResourceInner
createOrUpdate(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, ProtectedItemResourceInner parameters)
Enables backup of an item or to modifies the backup policy information of an already backed up item.com.azure.core.http.rest.Response<ProtectedItemResourceInner>
createOrUpdateWithResponse(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, ProtectedItemResourceInner parameters, com.azure.core.util.Context context)
Enables backup of an item or to modifies the backup policy information of an already backed up item.void
delete(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName)
Used to disable backup of an item within a container.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, com.azure.core.util.Context context)
Used to disable backup of an item within a container.ProtectedItemResourceInner
get(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName)
Provides the details of the backed up item.com.azure.core.http.rest.Response<ProtectedItemResourceInner>
getWithResponse(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String filter, com.azure.core.util.Context context)
Provides the details of the backed up item.
-
-
-
Method Detail
-
get
ProtectedItemResourceInner get(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName)
Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.fabricName
- Fabric name associated with the backed up item.containerName
- Container name associated with the backed up item.protectedItemName
- Backed up item name whose details are to be fetched.- Returns:
- base class for backup items.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ProtectedItemResourceInner> getWithResponse(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String filter, com.azure.core.util.Context context)
Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.fabricName
- Fabric name associated with the backed up item.containerName
- Container name associated with the backed up item.protectedItemName
- Backed up item name whose details are to be fetched.filter
- OData filter options.context
- The context to associate with this operation.- Returns:
- base class for backup items along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ProtectedItemResourceInner createOrUpdate(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, ProtectedItemResourceInner parameters)
Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.fabricName
- Fabric name associated with the backup item.containerName
- Container name associated with the backup item.protectedItemName
- Item name to be backed up.parameters
- resource backed up item.- Returns:
- base class for backup items.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ProtectedItemResourceInner> createOrUpdateWithResponse(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, ProtectedItemResourceInner parameters, com.azure.core.util.Context context)
Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.fabricName
- Fabric name associated with the backup item.containerName
- Container name associated with the backup item.protectedItemName
- Item name to be backed up.parameters
- resource backed up item.context
- The context to associate with this operation.- Returns:
- base class for backup items along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName)
Used to disable backup of an item within a container. This is an asynchronous operation. To know the status of the request, call the GetItemOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.fabricName
- Fabric name associated with the backed up item.containerName
- Container name associated with the backed up item.protectedItemName
- Backed up item to be deleted.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, com.azure.core.util.Context context)
Used to disable backup of an item within a container. This is an asynchronous operation. To know the status of the request, call the GetItemOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.fabricName
- Fabric name associated with the backed up item.containerName
- Container name associated with the backed up item.protectedItemName
- Backed up item to be deleted.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-