GovernanceRules Interface
public interface GovernanceRules
Resource collection API of GovernanceRules.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract Blank |
define(String name)
Begins definition for a new Governance |
| abstract void |
delete(String scope, String ruleId, Context context)
Delete a Governance rule over a given scope. |
| abstract void |
deleteById(String id)
Delete a Governance rule over a given scope. |
| abstract void |
deleteByIdWithResponse(String id, Context context)
Delete a Governance rule over a given scope. |
| abstract void |
deleteByResourceGroup(String scope, String ruleId)
Delete a Governance rule over a given scope. |
| abstract void |
execute(String scope, String ruleId)
Execute a governance rule. |
| abstract void |
execute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)
Execute a governance rule. |
|
abstract
Governance |
get(String scope, String ruleId)
Get a specific governance rule for the requested scope by rule |
|
abstract
Governance |
getById(String id)
Get a specific governance rule for the requested scope by rule |
|
abstract
Response<Governance |
getByIdWithResponse(String id, Context context)
Get a specific governance rule for the requested scope by rule |
|
abstract
Response<Governance |
getWithResponse(String scope, String ruleId, Context context)
Get a specific governance rule for the requested scope by rule |
|
abstract
Paged |
list(String scope)
Get a list of all relevant governance rules over a scope. |
|
abstract
Paged |
list(String scope, Context context)
Get a list of all relevant governance rules over a scope. |
|
abstract
Operation |
operationResults(String scope, String ruleId, String operationId)
Get governance rules long run operation result for the requested scope by rule |
|
abstract
Response<Operation |
operationResultsWithResponse(String scope, String ruleId, String operationId, Context context)
Get governance rules long run operation result for the requested scope by rule |
Method Details
define
public abstract GovernanceRule.DefinitionStages.Blank define(String name)
Begins definition for a new GovernanceRule resource.
Parameters:
Returns:
delete
public abstract void delete(String scope, String ruleId, Context context)
Delete a Governance rule over a given scope.
Parameters:
deleteById
public abstract void deleteById(String id)
Delete a Governance rule over a given scope.
Parameters:
deleteByIdWithResponse
public abstract void deleteByIdWithResponse(String id, Context context)
Delete a Governance rule over a given scope.
Parameters:
deleteByResourceGroup
public abstract void deleteByResourceGroup(String scope, String ruleId)
Delete a Governance rule over a given scope.
Parameters:
execute
public abstract void execute(String scope, String ruleId)
Execute a governance rule.
Parameters:
execute
public abstract void execute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)
Execute a governance rule.
Parameters:
get
public abstract GovernanceRule get(String scope, String ruleId)
Get a specific governance rule for the requested scope by ruleId.
Parameters:
Returns:
getById
public abstract GovernanceRule getById(String id)
Get a specific governance rule for the requested scope by ruleId.
Parameters:
Returns:
getByIdWithResponse
public abstract Response<GovernanceRule> getByIdWithResponse(String id, Context context)
Get a specific governance rule for the requested scope by ruleId.
Parameters:
Returns:
getWithResponse
public abstract Response<GovernanceRule> getWithResponse(String scope, String ruleId, Context context)
Get a specific governance rule for the requested scope by ruleId.
Parameters:
Returns:
list
public abstract PagedIterable<GovernanceRule> list(String scope)
Get a list of all relevant governance rules over a scope.
Parameters:
Returns:
list
public abstract PagedIterable<GovernanceRule> list(String scope, Context context)
Get a list of all relevant governance rules over a scope.
Parameters:
Returns:
operationResults
public abstract OperationResult operationResults(String scope, String ruleId, String operationId)
Get governance rules long run operation result for the requested scope by ruleId and operationId.
Parameters:
Returns:
operationResultsWithResponse
public abstract Response<OperationResult> operationResultsWithResponse(String scope, String ruleId, String operationId, Context context)
Get governance rules long run operation result for the requested scope by ruleId and operationId.
Parameters:
Returns: