Interface ProtectionIntents


public interface ProtectionIntents
Resource collection API of ProtectionIntents.
  • Method Details

    • validateWithResponse

      com.azure.core.http.rest.Response<PreValidateEnableBackupResponse> 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.
    • validate

      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.
    • getWithResponse

      com.azure.core.http.rest.Response<ProtectionIntentResource> 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.
    • get

      ProtectionIntentResource 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.
    • 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.
    • 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.
    • getById

      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:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<ProtectionIntentResource> getByIdWithResponse(String id, 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:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Used to remove intent from an item.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Used to remove intent from an item.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new ProtectionIntentResource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ProtectionIntentResource definition.