GovernanceRule Interface
public interface GovernanceRule
An immutable client-side representation of GovernanceRule.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract List<Object> |
conditionSets()
Gets the condition |
abstract String |
description()
Gets the description property: Description of the governance rule. |
abstract String |
displayName()
Gets the display |
abstract List<String> |
excludedScopes()
Gets the excluded |
abstract void |
execute()
Execute a governance rule. |
abstract void |
execute(ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)
Execute a governance rule. |
abstract
Governance |
governanceEmailNotification()
Gets the governance |
abstract String |
id()
Gets the id property: Fully qualified resource Id for the resource. |
abstract Boolean |
includeMemberScopes()
Gets the include |
abstract
Governance |
innerModel()
Gets the inner com. |
abstract Boolean |
isDisabled()
Gets the is |
abstract Boolean |
isGracePeriod()
Gets the is |
abstract
Governance |
metadata()
Gets the metadata property: The governance rule metadata. |
abstract String |
name()
Gets the name property: The name of the resource. |
abstract
Governance |
ownerSource()
Gets the owner |
abstract
Governance |
refresh()
Refreshes the resource to sync with Azure. |
abstract
Governance |
refresh(Context context)
Refreshes the resource to sync with Azure. |
abstract String |
remediationTimeframe()
Gets the remediation |
abstract int |
rulePriority()
Gets the rule |
abstract
Governance |
ruleType()
Gets the rule |
abstract
Governance |
sourceResourceType()
Gets the source |
abstract String |
tenantId()
Gets the tenant |
abstract String |
type()
Gets the type property: The type of the resource. |
abstract Update |
update()
Begins update for the Governance |
Method Details
conditionSets
public abstract List
Gets the conditionSets property: The governance rule conditionSets - see examples.
Returns:
description
public abstract String description()
Gets the description property: Description of the governance rule.
Returns:
displayName
public abstract String displayName()
Gets the displayName property: Display name of the governance rule.
Returns:
excludedScopes
public abstract List
Gets the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).
Returns:
execute
public abstract void execute()
Execute a governance rule.
execute
public abstract void execute(ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context)
Execute a governance rule.
Parameters:
governanceEmailNotification
public abstract GovernanceRuleEmailNotification governanceEmailNotification()
Gets the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.
Returns:
id
public abstract String id()
Gets the id property: Fully qualified resource Id for the resource.
Returns:
includeMemberScopes
public abstract Boolean includeMemberScopes()
Gets the includeMemberScopes property: Defines whether the rule is management scope rule (master connector as a single scope or management scope).
Returns:
innerModel
public abstract GovernanceRuleInner innerModel()
Gets the inner com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner object.
Returns:
isDisabled
public abstract Boolean isDisabled()
Gets the isDisabled property: Defines whether the rule is active/inactive.
Returns:
isGracePeriod
public abstract Boolean isGracePeriod()
Gets the isGracePeriod property: Defines whether there is a grace period on the governance rule.
Returns:
metadata
public abstract GovernanceRuleMetadata metadata()
Gets the metadata property: The governance rule metadata.
Returns:
name
public abstract String name()
Gets the name property: The name of the resource.
Returns:
ownerSource
public abstract GovernanceRuleOwnerSource ownerSource()
Gets the ownerSource property: The owner source for the governance rule - e.g. Manually by user@contoso.com - see example.
Returns:
refresh
public abstract GovernanceRule refresh()
Refreshes the resource to sync with Azure.
Returns:
refresh
public abstract GovernanceRule refresh(Context context)
Refreshes the resource to sync with Azure.
Parameters:
Returns:
remediationTimeframe
public abstract String remediationTimeframe()
Gets the remediationTimeframe property: Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days.
Returns:
rulePriority
public abstract int rulePriority()
Gets the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed.
Returns:
ruleType
public abstract GovernanceRuleType ruleType()
Gets the ruleType property: The rule type of the governance rule, defines the source of the rule e.g. Integrated.
Returns:
sourceResourceType
public abstract GovernanceRuleSourceResourceType sourceResourceType()
Gets the sourceResourceType property: The governance rule source, what the rule affects, e.g. Assessments.
Returns:
tenantId
public abstract String tenantId()
Gets the tenantId property: The tenantId (GUID).
Returns:
type
public abstract String type()
Gets the type property: The type of the resource.
Returns:
update
public abstract GovernanceRule.Update update()
Begins update for the GovernanceRule resource.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for