共用方式為


PolicyAssignment Interface

Implements

public interface PolicyAssignment
extends HasName, HasId, Indexable, Refreshable<PolicyAssignment>, HasInnerModel<PolicyAssignmentInner>

An immutable client-side representation of an Azure policy assignment.

Method Summary

Modifier and Type Method and Description
abstract String displayName()

Gets display name of the policy assignment.

abstract EnforcementMode enforcementMode()

Gets the enforcement mode of the policy assignment.

abstract List<String> excludedScopes()

Gets the excluded scopes of the policy assignment.

abstract Map<String,ParameterValuesValue> parameters()

Gets the parameters of the policy assignment.

abstract String policyDefinitionId()

Gets Id of the policy definition.

abstract String scope()

Gets the scope at which the policy assignment exists.

abstract String type()

Gets the type of the policy assignment.

Method Details

displayName

public abstract String displayName()

Gets display name of the policy assignment.

Returns:

the policy assignment display name

enforcementMode

public abstract EnforcementMode enforcementMode()

Gets the enforcement mode of the policy assignment.

Returns:

the enforcement mode of the policy assignment

excludedScopes

public abstract List excludedScopes()

Gets the excluded scopes of the policy assignment.

Returns:

the excluded scopes of the policy assignment

parameters

public abstract Map parameters()

Gets the parameters of the policy assignment.

Returns:

the parameters of the policy assignment

policyDefinitionId

public abstract String policyDefinitionId()

Gets Id of the policy definition.

Returns:

the policy definition Id

scope

public abstract String scope()

Gets the scope at which the policy assignment exists.

Returns:

the scope at which the policy assignment exists

type

public abstract String type()

Gets the type of the policy assignment.

Returns:

the type of the policy assignment

Applies to