Interface ResourceGuards


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

    • list

      com.azure.core.http.rest.PagedIterable<ResourceGuardResource> list()
      Returns ResourceGuards collection belonging to a subscription.
      Returns:
      list of ResourceGuard resources as paginated response with PagedIterable.
      Throws:
      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.
    • list

      com.azure.core.http.rest.PagedIterable<ResourceGuardResource> list(com.azure.core.util.Context context)
      Returns ResourceGuards collection belonging to a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of ResourceGuard resources as paginated response with PagedIterable.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ResourceGuardResource> listByResourceGroup(String resourceGroupName)
      Returns ResourceGuards collection belonging to a ResourceGroup.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      Returns:
      list of ResourceGuard resources as paginated response with PagedIterable.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ResourceGuardResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Returns ResourceGuards collection belonging to a ResourceGroup.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      context - The context to associate with this operation.
      Returns:
      list of ResourceGuard resources as paginated response with PagedIterable.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<ResourceGuardResource> getByResourceGroupWithResponse(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns a ResourceGuard belonging to a resource group.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The name of ResourceGuard.
      context - The context to associate with this operation.
      Returns:
      the response body 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.
    • getByResourceGroup

      ResourceGuardResource getByResourceGroup(String resourceGroupName, String resourceGuardsName)
      Returns a ResourceGuard belonging to a resource group.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The name of ResourceGuard.
      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.
    • deleteByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Deletes a ResourceGuard resource from the resource group.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The name of ResourceGuard.
      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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String resourceGuardsName)
      Deletes a ResourceGuard resource from the resource group.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The name of ResourceGuard.
      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.
    • getDisableSoftDeleteRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getDisableSoftDeleteRequestsObjects(String resourceGroupName, String resourceGuardsName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getDisableSoftDeleteRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getDisableSoftDeleteRequestsObjects(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      context - The context to associate with this operation.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getDeleteResourceGuardProxyRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getDeleteResourceGuardProxyRequestsObjects(String resourceGroupName, String resourceGuardsName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getDeleteResourceGuardProxyRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getDeleteResourceGuardProxyRequestsObjects(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      context - The context to associate with this operation.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getBackupSecurityPinRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getBackupSecurityPinRequestsObjects(String resourceGroupName, String resourceGuardsName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getBackupSecurityPinRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getBackupSecurityPinRequestsObjects(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      context - The context to associate with this operation.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getDeleteProtectedItemRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getDeleteProtectedItemRequestsObjects(String resourceGroupName, String resourceGuardsName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getDeleteProtectedItemRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getDeleteProtectedItemRequestsObjects(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      context - The context to associate with this operation.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getUpdateProtectionPolicyRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getUpdateProtectionPolicyRequestsObjects(String resourceGroupName, String resourceGuardsName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getUpdateProtectionPolicyRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getUpdateProtectionPolicyRequestsObjects(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      context - The context to associate with this operation.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getUpdateProtectedItemRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getUpdateProtectedItemRequestsObjects(String resourceGroupName, String resourceGuardsName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getUpdateProtectedItemRequestsObjects

      com.azure.core.http.rest.PagedIterable<DppBaseResource> getUpdateProtectedItemRequestsObjects(String resourceGroupName, String resourceGuardsName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      context - The context to associate with this operation.
      Returns:
      base for all lists of V2 resources as paginated response with PagedIterable.
      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.
    • getDefaultDisableSoftDeleteRequestsObjectWithResponse

      com.azure.core.http.rest.Response<DppBaseResource> getDefaultDisableSoftDeleteRequestsObjectWithResponse(String resourceGroupName, String resourceGuardsName, String requestName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      context - The context to associate with this operation.
      Returns:
      base resource under Microsoft.DataProtection provider namespace 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.
    • getDefaultDisableSoftDeleteRequestsObject

      DppBaseResource getDefaultDisableSoftDeleteRequestsObject(String resourceGroupName, String resourceGuardsName, String requestName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      Returns:
      base resource under Microsoft.DataProtection provider namespace.
      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.
    • getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse

      com.azure.core.http.rest.Response<DppBaseResource> getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse(String resourceGroupName, String resourceGuardsName, String requestName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      context - The context to associate with this operation.
      Returns:
      base resource under Microsoft.DataProtection provider namespace 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.
    • getDefaultDeleteResourceGuardProxyRequestsObject

      DppBaseResource getDefaultDeleteResourceGuardProxyRequestsObject(String resourceGroupName, String resourceGuardsName, String requestName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      Returns:
      base resource under Microsoft.DataProtection provider namespace.
      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.
    • getDefaultBackupSecurityPinRequestsObjectWithResponse

      com.azure.core.http.rest.Response<DppBaseResource> getDefaultBackupSecurityPinRequestsObjectWithResponse(String resourceGroupName, String resourceGuardsName, String requestName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      context - The context to associate with this operation.
      Returns:
      base resource under Microsoft.DataProtection provider namespace 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.
    • getDefaultBackupSecurityPinRequestsObject

      DppBaseResource getDefaultBackupSecurityPinRequestsObject(String resourceGroupName, String resourceGuardsName, String requestName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      Returns:
      base resource under Microsoft.DataProtection provider namespace.
      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.
    • getDefaultDeleteProtectedItemRequestsObjectWithResponse

      com.azure.core.http.rest.Response<DppBaseResource> getDefaultDeleteProtectedItemRequestsObjectWithResponse(String resourceGroupName, String resourceGuardsName, String requestName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      context - The context to associate with this operation.
      Returns:
      base resource under Microsoft.DataProtection provider namespace 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.
    • getDefaultDeleteProtectedItemRequestsObject

      DppBaseResource getDefaultDeleteProtectedItemRequestsObject(String resourceGroupName, String resourceGuardsName, String requestName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      Returns:
      base resource under Microsoft.DataProtection provider namespace.
      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.
    • getDefaultUpdateProtectionPolicyRequestsObjectWithResponse

      com.azure.core.http.rest.Response<DppBaseResource> getDefaultUpdateProtectionPolicyRequestsObjectWithResponse(String resourceGroupName, String resourceGuardsName, String requestName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      context - The context to associate with this operation.
      Returns:
      base resource under Microsoft.DataProtection provider namespace 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.
    • getDefaultUpdateProtectionPolicyRequestsObject

      DppBaseResource getDefaultUpdateProtectionPolicyRequestsObject(String resourceGroupName, String resourceGuardsName, String requestName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      Returns:
      base resource under Microsoft.DataProtection provider namespace.
      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.
    • getDefaultUpdateProtectedItemRequestsObjectWithResponse

      com.azure.core.http.rest.Response<DppBaseResource> getDefaultUpdateProtectedItemRequestsObjectWithResponse(String resourceGroupName, String resourceGuardsName, String requestName, com.azure.core.util.Context context)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      context - The context to associate with this operation.
      Returns:
      base resource under Microsoft.DataProtection provider namespace 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.
    • getDefaultUpdateProtectedItemRequestsObject

      DppBaseResource getDefaultUpdateProtectedItemRequestsObject(String resourceGroupName, String resourceGuardsName, String requestName)
      Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
      Parameters:
      resourceGroupName - The name of the resource group where the backup vault is present.
      resourceGuardsName - The resourceGuardsName parameter.
      requestName - The requestName parameter.
      Returns:
      base resource under Microsoft.DataProtection provider namespace.
      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

      Returns a ResourceGuard belonging to a resource group.
      Parameters:
      id - the resource ID.
      Returns:
      the response body 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<ResourceGuardResource> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Returns a ResourceGuard belonging to a resource group.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the response body 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)
      Deletes a ResourceGuard resource from the resource group.
      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)
      Deletes a ResourceGuard resource from the resource group.
      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 ResourceGuardResource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ResourceGuardResource definition.