Interface ProtectionIntentsClient
-
public interface ProtectionIntentsClient
An instance of this class provides access to all the operations defined in ProtectionIntentsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtectionIntentResourceInner
createOrUpdate(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, ProtectionIntentResourceInner parameters)
Create Intent for Enabling backup of an item.com.azure.core.http.rest.Response<ProtectionIntentResourceInner>
createOrUpdateWithResponse(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, ProtectionIntentResourceInner parameters, com.azure.core.util.Context context)
Create Intent for Enabling backup of an item.void
delete(String vaultName, String resourceGroupName, String fabricName, String intentObjectName)
Used to remove intent from an item.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, com.azure.core.util.Context context)
Used to remove intent from an item.ProtectionIntentResourceInner
get(String vaultName, String resourceGroupName, String fabricName, String intentObjectName)
Provides the details of the protection intent up item.com.azure.core.http.rest.Response<ProtectionIntentResourceInner>
getWithResponse(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, com.azure.core.util.Context context)
Provides the details of the protection intent up item.PreValidateEnableBackupResponseInner
validate(String azureRegion, PreValidateEnableBackupRequest parameters)
It will validate followings 1.com.azure.core.http.rest.Response<PreValidateEnableBackupResponseInner>
validateWithResponse(String azureRegion, PreValidateEnableBackupRequest parameters, com.azure.core.util.Context context)
It will validate followings 1.
-
-
-
Method Detail
-
validate
PreValidateEnableBackupResponseInner validate(String azureRegion, PreValidateEnableBackupRequest parameters)
It will validate followings 1. Vault capacity 2. VM is already protected 3. Any VM related configuration passed in properties.- Parameters:
azureRegion
- Azure region to hit Api.parameters
- Enable backup validation request on Virtual Machine.- Returns:
- response contract for enable backup validation request.
- 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.
-
validateWithResponse
com.azure.core.http.rest.Response<PreValidateEnableBackupResponseInner> validateWithResponse(String azureRegion, PreValidateEnableBackupRequest parameters, com.azure.core.util.Context context)
It will validate followings 1. Vault capacity 2. VM is already protected 3. Any VM related configuration passed in properties.- Parameters:
azureRegion
- Azure region to hit Api.parameters
- Enable backup validation request on Virtual Machine.context
- The context to associate with this operation.- Returns:
- response contract for enable backup validation request 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.
-
get
ProtectionIntentResourceInner get(String vaultName, String resourceGroupName, String fabricName, String intentObjectName)
Provides the details of the protection intent 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.intentObjectName
- Backed up item name whose details are to be fetched.- Returns:
- base class for backup ProtectionIntent.
- 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<ProtectionIntentResourceInner> getWithResponse(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, com.azure.core.util.Context context)
Provides the details of the protection intent 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.intentObjectName
- Backed up item name whose details are to be fetched.context
- The context to associate with this operation.- Returns:
- base class for backup ProtectionIntent 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
ProtectionIntentResourceInner createOrUpdate(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, ProtectionIntentResourceInner parameters)
Create Intent for Enabling backup of an item. This is a synchronous operation.- 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.intentObjectName
- Intent object name.parameters
- resource backed up item.- Returns:
- base class for backup ProtectionIntent.
- 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<ProtectionIntentResourceInner> createOrUpdateWithResponse(String vaultName, String resourceGroupName, String fabricName, String intentObjectName, ProtectionIntentResourceInner parameters, com.azure.core.util.Context context)
Create Intent for Enabling backup of an item. This is a synchronous operation.- 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.intentObjectName
- Intent object name.parameters
- resource backed up item.context
- The context to associate with this operation.- Returns:
- base class for backup ProtectionIntent 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 intentObjectName)
Used to remove intent from an item.- 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 intent.intentObjectName
- Intent 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 intentObjectName, com.azure.core.util.Context context)
Used to remove intent from an item.- 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 intent.intentObjectName
- Intent 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.
-
-