Interface AutomationRules
public interface AutomationRules
Resource collection API of AutomationRules.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new AutomationRule resource.Delete the automation rule.deleteById
(String id) Delete the automation rule.com.azure.core.http.rest.Response<Object>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete the automation rule.com.azure.core.http.rest.Response<Object>
deleteWithResponse
(String resourceGroupName, String workspaceName, String automationRuleId, com.azure.core.util.Context context) Delete the automation rule.Gets the automation rule.Gets the automation rule.com.azure.core.http.rest.Response<AutomationRule>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets the automation rule.com.azure.core.http.rest.Response<AutomationRule>
getWithResponse
(String resourceGroupName, String workspaceName, String automationRuleId, com.azure.core.util.Context context) Gets the automation rule.com.azure.core.http.rest.PagedIterable<AutomationRule>
Gets all automation rules.com.azure.core.http.rest.PagedIterable<AutomationRule>
Gets all automation rules.
-
Method Details
-
get
Gets the automation rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.automationRuleId
- Automation rule ID.- Returns:
- the automation rule.
- 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<AutomationRule> getWithResponse(String resourceGroupName, String workspaceName, String automationRuleId, com.azure.core.util.Context context) Gets the automation rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.automationRuleId
- Automation rule ID.context
- The context to associate with this operation.- Returns:
- the automation rule 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
Delete the automation rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.automationRuleId
- Automation rule ID.- Returns:
- any object.
- 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<Object> deleteWithResponse(String resourceGroupName, String workspaceName, String automationRuleId, com.azure.core.util.Context context) Delete the automation rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.automationRuleId
- Automation rule ID.context
- The context to associate with this operation.- Returns:
- any object 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.
-
list
com.azure.core.http.rest.PagedIterable<AutomationRule> list(String resourceGroupName, String workspaceName) Gets all automation rules.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.- Returns:
- all automation rules 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.
-
list
com.azure.core.http.rest.PagedIterable<AutomationRule> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Gets all automation rules.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- all automation rules 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.
-
getById
Gets the automation rule.- Parameters:
id
- the resource ID.- Returns:
- the automation rule 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<AutomationRule> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the automation rule.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the automation rule 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
Delete the automation rule.- Parameters:
id
- the resource ID.- Returns:
- any object 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Object> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete the automation rule.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- any object 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.
-
define
Begins definition for a new AutomationRule resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new AutomationRule definition.
-