GovernanceRulesOperations interface

Interface representing a GovernanceRules operations.

Properties

beginDelete
beginDeleteAndWait
beginExecute
beginExecuteAndWait
createOrUpdate

Creates or updates a governance rule over a given scope

delete

Delete a Governance rule over a given scope

execute

Execute a governance rule

get

Get a specific governance rule for the requested scope by ruleId

list

Get a list of all relevant governance rules over a scope

operationResults

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

Property Details

beginDelete

Warning

This API is now deprecated.

use delete instead

beginDelete: (scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait

Warning

This API is now deprecated.

use delete instead

beginDeleteAndWait: (scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams) => Promise<void>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams) => Promise<void>

beginExecute

Warning

This API is now deprecated.

use execute instead

beginExecute: (scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

beginExecuteAndWait

Warning

This API is now deprecated.

use execute instead

beginExecuteAndWait: (scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams) => Promise<void>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams) => Promise<void>

createOrUpdate

Creates or updates a governance rule over a given scope

createOrUpdate: (scope: string, ruleId: string, governanceRule: GovernanceRule, options?: GovernanceRulesCreateOrUpdateOptionalParams) => Promise<GovernanceRule>

Property Value

(scope: string, ruleId: string, governanceRule: GovernanceRule, options?: GovernanceRulesCreateOrUpdateOptionalParams) => Promise<GovernanceRule>

delete

Delete a Governance rule over a given scope

delete: (scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

execute

Execute a governance rule

execute: (scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams) => PollerLike<OperationState<void>, void>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesExecuteOptionalParams) => PollerLike<OperationState<void>, void>

get

Get a specific governance rule for the requested scope by ruleId

get: (scope: string, ruleId: string, options?: GovernanceRulesGetOptionalParams) => Promise<GovernanceRule>

Property Value

(scope: string, ruleId: string, options?: GovernanceRulesGetOptionalParams) => Promise<GovernanceRule>

list

Get a list of all relevant governance rules over a scope

list: (scope: string, options?: GovernanceRulesListOptionalParams) => PagedAsyncIterableIterator<GovernanceRule, GovernanceRule[], PageSettings>

Property Value

(scope: string, options?: GovernanceRulesListOptionalParams) => PagedAsyncIterableIterator<GovernanceRule, GovernanceRule[], PageSettings>

operationResults

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

operationResults: (scope: string, ruleId: string, operationId: string, options?: GovernanceRulesOperationResultsOptionalParams) => Promise<OperationResult>

Property Value

(scope: string, ruleId: string, operationId: string, options?: GovernanceRulesOperationResultsOptionalParams) => Promise<OperationResult>