Interface GovernanceRulesOperations
public interface GovernanceRulesOperations
Resource collection API of GovernanceRulesOperations.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new GovernanceRule resource.void
Delete a GovernanceRule over a given scope.void
deleteById
(String id) Delete a GovernanceRule over a given scope.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a GovernanceRule over a given scope.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String ruleId, com.azure.core.util.Context context) Delete a GovernanceRule over a given scope.Get a specific governanceRule for the requested scope by ruleId.Get a specific governanceRule for the requested scope by ruleId.com.azure.core.http.rest.Response<GovernanceRule>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a specific governanceRule for the requested scope by ruleId.com.azure.core.http.rest.Response<GovernanceRule>
getWithResponse
(String ruleId, com.azure.core.util.Context context) Get a specific governanceRule for the requested scope by ruleId.void
ruleIdExecuteSingleSecurityConnector
(String resourceGroupName, String securityConnectorName, String ruleId) Execute a security GovernanceRule on the given security connector.void
ruleIdExecuteSingleSecurityConnector
(String resourceGroupName, String securityConnectorName, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) Execute a security GovernanceRule on the given security connector.void
ruleIdExecuteSingleSecurityConnector
(String resourceGroupName, String securityConnectorName, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, com.azure.core.util.Context context) Execute a security GovernanceRule on the given security connector.void
Execute a security GovernanceRule on the given subscription.void
ruleIdExecuteSingleSubscription
(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) Execute a security GovernanceRule on the given subscription.void
ruleIdExecuteSingleSubscription
(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, com.azure.core.util.Context context) Execute a security GovernanceRule on the given subscription.
-
Method Details
-
get
Get a specific governanceRule for the requested scope by ruleId.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.- Returns:
- a specific governanceRule for the requested scope by ruleId.
- 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<GovernanceRule> getWithResponse(String ruleId, com.azure.core.util.Context context) Get a specific governanceRule for the requested scope by ruleId.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.context
- The context to associate with this operation.- Returns:
- a specific governanceRule for the requested scope by ruleId 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 a GovernanceRule over a given scope.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.- 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 ruleId, com.azure.core.util.Context context) Delete a GovernanceRule over a given scope.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.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.
-
ruleIdExecuteSingleSubscription
void ruleIdExecuteSingleSubscription(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) Execute a security GovernanceRule on the given subscription.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.executeGovernanceRuleParams
- GovernanceRule over a subscription scope.- 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.
-
ruleIdExecuteSingleSubscription
Execute a security GovernanceRule on the given subscription.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.- 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.
-
ruleIdExecuteSingleSubscription
void ruleIdExecuteSingleSubscription(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, com.azure.core.util.Context context) Execute a security GovernanceRule on the given subscription.- Parameters:
ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.executeGovernanceRuleParams
- GovernanceRule over a subscription scope.context
- The context to associate with this operation.- 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.
-
ruleIdExecuteSingleSecurityConnector
void ruleIdExecuteSingleSecurityConnector(String resourceGroupName, String securityConnectorName, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams) Execute a security GovernanceRule on the given security connector.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.securityConnectorName
- The security connector name.ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.executeGovernanceRuleParams
- GovernanceRule over a subscription scope.- 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.
-
ruleIdExecuteSingleSecurityConnector
void ruleIdExecuteSingleSecurityConnector(String resourceGroupName, String securityConnectorName, String ruleId) Execute a security GovernanceRule on the given security connector.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.securityConnectorName
- The security connector name.ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.- 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.
-
ruleIdExecuteSingleSecurityConnector
void ruleIdExecuteSingleSecurityConnector(String resourceGroupName, String securityConnectorName, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, com.azure.core.util.Context context) Execute a security GovernanceRule on the given security connector.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.securityConnectorName
- The security connector name.ruleId
- The security GovernanceRule key - unique key for the standard GovernanceRule.executeGovernanceRuleParams
- GovernanceRule over a subscription scope.context
- The context to associate with this operation.- 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
Get a specific governanceRule for the requested scope by ruleId.- Parameters:
id
- the resource ID.- Returns:
- a specific governanceRule for the requested scope by ruleId 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<GovernanceRule> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a specific governanceRule for the requested scope by ruleId.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a specific governanceRule for the requested scope by ruleId 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 a GovernanceRule over a given scope.- 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) Delete a GovernanceRule over a given scope.- 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 GovernanceRule resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new GovernanceRule definition.
-