Interface SecurityConnectorGovernanceRulesOperationsClient
public interface SecurityConnectorGovernanceRulesOperationsClient
An instance of this class provides access to all the operations defined in
SecurityConnectorGovernanceRulesOperationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule) Creates or update a security GovernanceRule on the given security connector.com.azure.core.http.rest.Response<GovernanceRuleInner>
createOrUpdateWithResponse
(String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule, com.azure.core.util.Context context) Creates or update a security GovernanceRule on the given security connector.void
Delete a GovernanceRule over a given scope.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String securityConnectorName, 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.com.azure.core.http.rest.Response<GovernanceRuleInner>
getWithResponse
(String resourceGroupName, String securityConnectorName, String ruleId, com.azure.core.util.Context context) Get a specific governanceRule for the requested scope by ruleId.
-
Method Details
-
get
Get a specific governanceRule for the requested scope by ruleId.- 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.- 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<GovernanceRuleInner> getWithResponse(String resourceGroupName, String securityConnectorName, String ruleId, com.azure.core.util.Context context) Get a specific governanceRule for the requested scope by ruleId.- 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.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.
-
createOrUpdate
GovernanceRuleInner createOrUpdate(String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule) Creates or update 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.governanceRule
- GovernanceRule over a subscription scope.- Returns:
- security GovernanceRule over a given 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<GovernanceRuleInner> createOrUpdateWithResponse(String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule, com.azure.core.util.Context context) Creates or update 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.governanceRule
- GovernanceRule over a subscription scope.context
- The context to associate with this operation.- Returns:
- security GovernanceRule over a given scope 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:
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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String securityConnectorName, String ruleId, com.azure.core.util.Context context) Delete a GovernanceRule over a given scope.- 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.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.
-