Interface Tasks
public interface Tasks
Resource collection API of Tasks.
-
Method Summary
Modifier and TypeMethodDescriptiongetResourceGroupLevelTask
(String resourceGroupName, String ascLocation, String taskName) Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.Response<SecurityTask>
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.getSubscriptionLevelTask
(String ascLocation, String taskName) Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.Response<SecurityTask>
getSubscriptionLevelTaskWithResponse
(String ascLocation, String taskName, com.azure.core.util.Context context) Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.PagedIterable<SecurityTask>
list()
Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.PagedIterable<SecurityTask>
Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.PagedIterable<SecurityTask>
listByHomeRegion
(String ascLocation) Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.PagedIterable<SecurityTask>
listByHomeRegion
(String ascLocation, String filter, com.azure.core.util.Context context) Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.PagedIterable<SecurityTask>
listByResourceGroup
(String resourceGroupName, String ascLocation) Recommended tasks that will help improve the security of the subscription proactively.com.azure.core.http.rest.PagedIterable<SecurityTask>
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.void
updateResourceGroupLevelTaskState
(String resourceGroupName, String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) Recommended tasks that will help improve the security of the subscription proactively.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.void
updateSubscriptionLevelTaskState
(String ascLocation, String taskName, TaskUpdateActionType taskUpdateActionType) Recommended tasks that will help improve the security of the subscription proactively.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.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SecurityTask> 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<SecurityTask> 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
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<SecurityTask> 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
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<SecurityTask> 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<SecurityTask> 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<SecurityTask> 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
SecurityTask 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<SecurityTask> 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.
-