ArmSecurityCenterModelFactory.GovernanceRuleData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of GovernanceRuleData.
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, Guid? 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? includeMemberScopes = 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 * Nullable<Guid> * 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 Nullable(Of Guid) = 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 includeMemberScopes As Nullable(Of Boolean) = Nothing, Optional ownerSource As GovernanceRuleOwnerSource = Nothing, Optional governanceEmailNotification As GovernanceRuleEmailNotification = Nothing, Optional metadata As GovernanceRuleMetadata = Nothing) As GovernanceRuleData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- 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.
The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed.
- 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.
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
Azure SDK for .NET