ArmDevTestLabsModelFactory.DevTestLabPolicySetResult 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 DevTestLabPolicySetResult.
public static Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicySetResult DevTestLabPolicySetResult (bool? hasError = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyViolation> policyViolations = default);
static member DevTestLabPolicySetResult : Nullable<bool> * seq<Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyViolation> -> Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicySetResult
Public Shared Function DevTestLabPolicySetResult (Optional hasError As Nullable(Of Boolean) = Nothing, Optional policyViolations As IEnumerable(Of DevTestLabPolicyViolation) = Nothing) As DevTestLabPolicySetResult
Parameters
A value indicating whether this policy set evaluation has discovered violations.
- policyViolations
- IEnumerable<DevTestLabPolicyViolation>
The list of policy violations.
Returns
A new DevTestLabPolicySetResult instance for mocking.