GovernanceRuleData Class

Definition

Governance rule over a given scope.

public class GovernanceRuleData : Azure.ResourceManager.Models.ResourceData
public class GovernanceRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecurityCenter.GovernanceRuleData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecurityCenter.GovernanceRuleData>
type GovernanceRuleData = class
    inherit ResourceData
type GovernanceRuleData = class
    inherit ResourceData
    interface IJsonModel<GovernanceRuleData>
    interface IPersistableModel<GovernanceRuleData>
Public Class GovernanceRuleData
Inherits ResourceData
Public Class GovernanceRuleData
Inherits ResourceData
Implements IJsonModel(Of GovernanceRuleData), IPersistableModel(Of GovernanceRuleData)
Inheritance
GovernanceRuleData
Implements

Constructors

Name Description
GovernanceRuleData()

Initializes a new instance of GovernanceRuleData.

Properties

Name Description
ConditionSets

The governance rule conditionSets - see examples.

Description

Description of the governance rule.

DisplayName

Display name of the governance rule.

ExcludedScopes

Excluded scopes, filter out the descendants of the scope (on management scopes).

GovernanceEmailNotification

The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
IsDisabled

Defines whether the rule is active/inactive.

IsGracePeriod

Defines whether there is a grace period on the governance rule.

IsIncludeMemberScopes

Defines whether the rule is management scope rule (master connector as a single scope or management scope).

Metadata

The governance rule metadata.

Name

The name of the resource.

(Inherited from ResourceData)
OwnerSource

The owner source for the governance rule - e.g. Manually by user@contoso.com - see example.

RemediationTimeframe

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.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
RulePriority

The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed.

RuleType

The rule type of the governance rule, defines the source of the rule e.g. Integrated.

SourceResourceType

The governance rule source, what the rule affects, e.g. Assessments.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
TenantId

The tenantId (GUID).

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<GovernanceRuleData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<GovernanceRuleData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<GovernanceRuleData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<GovernanceRuleData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<GovernanceRuleData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to