ArmSecurityCenterModelFactory.GovernanceRuleData Method

Definition

public static Azure.ResourceManager.SecurityCenter.GovernanceRuleData GovernanceRuleData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string tenantId = default, string displayName = default, string description = default, string remediationTimeframe = default, bool? isGracePeriod = default, int? rulePriority = default, bool? isDisabled = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleType? ruleType = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleSourceResourceType? sourceResourceType = default, System.Collections.Generic.IEnumerable<string> excludedScopes = default, System.Collections.Generic.IEnumerable<BinaryData> conditionSets = default, bool? isIncludeMemberScopes = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleOwnerSource ownerSource = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleEmailNotification governanceEmailNotification = default, Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleMetadata metadata = default);
static member GovernanceRuleData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * string * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleType> * Nullable<Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleSourceResourceType> * seq<string> * seq<BinaryData> * Nullable<bool> * Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleOwnerSource * Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleEmailNotification * Azure.ResourceManager.SecurityCenter.Models.GovernanceRuleMetadata -> Azure.ResourceManager.SecurityCenter.GovernanceRuleData
Public Shared Function GovernanceRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tenantId As String = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional remediationTimeframe As String = Nothing, Optional isGracePeriod As Nullable(Of Boolean) = Nothing, Optional rulePriority As Nullable(Of Integer) = Nothing, Optional isDisabled As Nullable(Of Boolean) = Nothing, Optional ruleType As Nullable(Of GovernanceRuleType) = Nothing, Optional sourceResourceType As Nullable(Of GovernanceRuleSourceResourceType) = Nothing, Optional excludedScopes As IEnumerable(Of String) = Nothing, Optional conditionSets As IEnumerable(Of BinaryData) = Nothing, Optional isIncludeMemberScopes As Nullable(Of Boolean) = Nothing, Optional ownerSource As GovernanceRuleOwnerSource = Nothing, Optional governanceEmailNotification As GovernanceRuleEmailNotification = Nothing, Optional metadata As GovernanceRuleMetadata = Nothing) As GovernanceRuleData

Parameters

id
ResourceIdentifier

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

name
String

The name of the resource.

resourceType
ResourceType

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

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tenantId
String

The tenantId (GUID).

displayName
String

Display name of the governance rule.

description
String

Description of the governance rule.

remediationTimeframe
String

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.

isGracePeriod
Nullable<Boolean>

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

rulePriority
Nullable<Int32>

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

isDisabled
Nullable<Boolean>

Defines whether the rule is active/inactive.

ruleType
Nullable<GovernanceRuleType>

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

sourceResourceType
Nullable<GovernanceRuleSourceResourceType>

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

excludedScopes
IEnumerable<String>

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

conditionSets
IEnumerable<BinaryData>

The governance rule conditionSets - see examples.

isIncludeMemberScopes
Nullable<Boolean>

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

ownerSource
GovernanceRuleOwnerSource

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

governanceEmailNotification
GovernanceRuleEmailNotification

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

metadata
GovernanceRuleMetadata

The governance rule metadata.

Returns

A new GovernanceRuleData instance for mocking.

Applies to