Interface TasksClient


public interface TasksClient
An instance of this class provides access to all the operations defined in TasksClient.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<SecurityTaskInner> list()
      Recommended tasks that will help improve the security of the subscription proactively.
      Returns:
      list of security task recommendations 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<SecurityTaskInner> list(String filter, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      filter - OData filter. Optional.
      context - The context to associate with this operation.
      Returns:
      list of security task recommendations 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.
    • listByHomeRegion

      com.azure.core.http.rest.PagedIterable<SecurityTaskInner> listByHomeRegion(String ascLocation)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      Returns:
      list of security task recommendations 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.
    • listByHomeRegion

      com.azure.core.http.rest.PagedIterable<SecurityTaskInner> listByHomeRegion(String ascLocation, String filter, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      filter - OData filter. Optional.
      context - The context to associate with this operation.
      Returns:
      list of security task recommendations 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.
    • getSubscriptionLevelTask

      SecurityTaskInner getSubscriptionLevelTask(String ascLocation, String taskName)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      Returns:
      security task that we recommend to do in order to strengthen security.
      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.
    • getSubscriptionLevelTaskWithResponse

      com.azure.core.http.rest.Response<SecurityTaskInner> getSubscriptionLevelTaskWithResponse(String ascLocation, String taskName, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      context - The context to associate with this operation.
      Returns:
      security task that we recommend to do in order to strengthen security 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.
    • updateSubscriptionLevelTaskState

      void updateSubscriptionLevelTaskState(String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      taskUpdateActionType - Type of the action to do on the task.
      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.
    • updateSubscriptionLevelTaskStateWithResponse

      com.azure.core.http.rest.Response<Void> updateSubscriptionLevelTaskStateWithResponse(String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      taskUpdateActionType - Type of the action to do on the task.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SecurityTaskInner> listByResourceGroup(String resourceGroupName, String ascLocation)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      Returns:
      list of security task recommendations 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<SecurityTaskInner> listByResourceGroup(String resourceGroupName, String ascLocation, String filter, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      filter - OData filter. Optional.
      context - The context to associate with this operation.
      Returns:
      list of security task recommendations 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.
    • getResourceGroupLevelTask

      SecurityTaskInner getResourceGroupLevelTask(String resourceGroupName, String ascLocation, String taskName)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      Returns:
      security task that we recommend to do in order to strengthen security.
      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.
    • getResourceGroupLevelTaskWithResponse

      com.azure.core.http.rest.Response<SecurityTaskInner> getResourceGroupLevelTaskWithResponse(String resourceGroupName, String ascLocation, String taskName, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      context - The context to associate with this operation.
      Returns:
      security task that we recommend to do in order to strengthen security 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.
    • updateResourceGroupLevelTaskState

      void updateResourceGroupLevelTaskState(String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      taskUpdateActionType - Type of the action to do on the task.
      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.
    • updateResourceGroupLevelTaskStateWithResponse

      com.azure.core.http.rest.Response<Void> updateResourceGroupLevelTaskStateWithResponse(String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType, com.azure.core.util.Context context)
      Recommended tasks that will help improve the security of the subscription proactively.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      taskName - Name of the task object, will be a GUID.
      taskUpdateActionType - Type of the action to do on the task.
      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.