GovernanceRulesClient Interface

public interface GovernanceRulesClient

An instance of this class provides access to all the operations defined in GovernanceRulesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<Void>,Void> beginDelete(String scope, String ruleId)

Delete a Governance rule over a given scope.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String scope, String ruleId, Context context)

Delete a Governance rule over a given scope.

abstract SyncPoller<PollResult<Void>,Void> beginExecute(String scope, String ruleId)

Execute a governance rule.

abstract SyncPoller<PollResult<Void>,Void> beginExecute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)

Execute a governance rule.

abstract GovernanceRuleInner createOrUpdate(String scope, String ruleId, GovernanceRuleInner governanceRule)

Creates or updates a governance rule over a given scope.

abstract Response<GovernanceRuleInner> createOrUpdateWithResponse(String scope, String ruleId, GovernanceRuleInner governanceRule, Context context)

Creates or updates a governance rule over a given scope.

abstract void delete(String scope, String ruleId)

Delete a Governance rule over a given scope.

abstract void delete(String scope, String ruleId, Context context)

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 GovernanceRuleInner get(String scope, String ruleId)

Get a specific governance rule for the requested scope by ruleId.

abstract Response<GovernanceRuleInner> getWithResponse(String scope, String ruleId, Context context)

Get a specific governance rule for the requested scope by ruleId.

abstract PagedIterable<GovernanceRuleInner> list(String scope)

Get a list of all relevant governance rules over a scope.

abstract PagedIterable<GovernanceRuleInner> list(String scope, Context context)

Get a list of all relevant governance rules over a scope.

abstract OperationResultInner operationResults(String scope, String ruleId, String operationId)

Get governance rules long run operation result for the requested scope by ruleId and operationId.

abstract GovernanceRulesOperationResultsResponse operationResultsWithResponse(String scope, String ruleId, String operationId, Context context)

Get governance rules long run operation result for the requested scope by ruleId and operationId.

Method Details

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String scope, String ruleId)

Delete a Governance rule over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String scope, String ruleId, Context context)

Delete a Governance rule over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginExecute

public abstract SyncPoller<PollResult<Void>,Void> beginExecute(String scope, String ruleId)

Execute a governance rule.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginExecute

public abstract SyncPoller<PollResult<Void>,Void> beginExecute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)

Execute a governance rule.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
executeGovernanceRuleParams - Execute governance rule over a given scope.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

createOrUpdate

public abstract GovernanceRuleInner createOrUpdate(String scope, String ruleId, GovernanceRuleInner governanceRule)

Creates or updates a governance rule over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
governanceRule - Governance rule over a given scope.

Returns:

governance rule over a given scope.

createOrUpdateWithResponse

public abstract Response<GovernanceRuleInner> createOrUpdateWithResponse(String scope, String ruleId, GovernanceRuleInner governanceRule, Context context)

Creates or updates a governance rule over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
governanceRule - Governance rule over a given scope.
context - The context to associate with this operation.

Returns:

governance rule over a given scope along with Response<T>.

delete

public abstract void delete(String scope, String ruleId)

Delete a Governance rule over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).

delete

public abstract void delete(String scope, String ruleId, Context context)

Delete a Governance rule over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
context - The context to associate with this operation.

execute

public abstract void execute(String scope, String ruleId)

Execute a governance rule.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).

execute

public abstract void execute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)

Execute a governance rule.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
executeGovernanceRuleParams - Execute governance rule over a given scope.
context - The context to associate with this operation.

get

public abstract GovernanceRuleInner get(String scope, String ruleId)

Get a specific governance rule for the requested scope by ruleId.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).

Returns:

a specific governance rule for the requested scope by ruleId.

getWithResponse

public abstract Response<GovernanceRuleInner> getWithResponse(String scope, String ruleId, Context context)

Get a specific governance rule for the requested scope by ruleId.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
ruleId - The governance rule key - unique key for the standard governance rule (GUID).
context - The context to associate with this operation.

Returns:

a specific governance rule for the requested scope by ruleId along with Response<T>.

list

public abstract PagedIterable<GovernanceRuleInner> list(String scope)

Get a list of all relevant governance rules over a scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of all relevant governance rules over a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<GovernanceRuleInner> list(String scope, Context context)

Get a list of all relevant governance rules over a scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

a list of all relevant governance rules over a scope as paginated response with PagedIterable<T>.

operationResults

public abstract OperationResultInner operationResults(String scope, String ruleId, String operationId)

Get governance rules long run operation result for the requested scope by ruleId and operationId.

Parameters:

scope - The scope of the governance rule.
ruleId - The governance rule key.
operationId - The governance rule long running operation unique key.

Returns:

governance rules long run operation result for the requested scope by ruleId and operationId.

operationResultsWithResponse

public abstract GovernanceRulesOperationResultsResponse 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:

scope - The scope of the governance rule.
ruleId - The governance rule key.
operationId - The governance rule long running operation unique key.
context - The context to associate with this operation.

Returns:

governance rules long run operation result for the requested scope by ruleId and operationId.

Applies to