GovernanceRule Constructors
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.
Overloads
GovernanceRule() |
Initializes a new instance of the GovernanceRule class. |
GovernanceRule(String, String, String, String, String, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, String, String, IList<String>, IList<Object>, Nullable<Boolean>, GovernanceRuleOwnerSource, GovernanceRuleEmailNotification, GovernanceRuleMetadata) |
Initializes a new instance of the GovernanceRule class. |
GovernanceRule()
Initializes a new instance of the GovernanceRule class.
public GovernanceRule ();
Public Sub New ()
Applies to
GovernanceRule(String, String, String, String, String, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, String, String, IList<String>, IList<Object>, Nullable<Boolean>, GovernanceRuleOwnerSource, GovernanceRuleEmailNotification, GovernanceRuleMetadata)
Initializes a new instance of the GovernanceRule class.
public GovernanceRule (string id = default, string name = default, string type = default, string tenantId = default, string displayName = default, string description = default, string remediationTimeframe = default, bool? isGracePeriod = default, int? rulePriority = default, bool? isDisabled = default, string ruleType = default, string sourceResourceType = default, System.Collections.Generic.IList<string> excludedScopes = default, System.Collections.Generic.IList<object> conditionSets = default, bool? includeMemberScopes = default, Microsoft.Azure.Management.Security.Models.GovernanceRuleOwnerSource ownerSource = default, Microsoft.Azure.Management.Security.Models.GovernanceRuleEmailNotification governanceEmailNotification = default, Microsoft.Azure.Management.Security.Models.GovernanceRuleMetadata metadata = default);
new Microsoft.Azure.Management.Security.Models.GovernanceRule : string * string * string * string * string * string * string * Nullable<bool> * Nullable<int> * Nullable<bool> * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<obj> * Nullable<bool> * Microsoft.Azure.Management.Security.Models.GovernanceRuleOwnerSource * Microsoft.Azure.Management.Security.Models.GovernanceRuleEmailNotification * Microsoft.Azure.Management.Security.Models.GovernanceRuleMetadata -> Microsoft.Azure.Management.Security.Models.GovernanceRule
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = 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 String = Nothing, Optional sourceResourceType As String = Nothing, Optional excludedScopes As IList(Of String) = Nothing, Optional conditionSets As IList(Of Object) = Nothing, Optional includeMemberScopes As Nullable(Of Boolean) = Nothing, Optional ownerSource As GovernanceRuleOwnerSource = Nothing, Optional governanceEmailNotification As GovernanceRuleEmailNotification = Nothing, Optional metadata As GovernanceRuleMetadata = Nothing)
Parameters
- id
- String
Resource Id
- name
- String
Resource name
- type
- String
Resource type
- 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
The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed
- ruleType
- String
The rule type of the governance rule, defines the source of the rule e.g. Integrated Possible values include: 'Integrated', 'ServiceNow'
- sourceResourceType
- String
The governance rule source, what the rule affects, e.g. Assessments Possible values include: 'Assessments'
Excluded scopes, filter out the descendants of the scope (on management scopes)
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