ArmChaosModelFactory.ChaosScenarioErrors 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.
Model that represents the scenario run errors.
public static Azure.ResourceManager.Chaos.Models.ChaosScenarioErrors ChaosScenarioErrors(string errorCode = default, string errorMessage = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Chaos.Models.ChaosPermissionError> permission = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Chaos.Models.ChaosResourceStateError> resource = default);
static member ChaosScenarioErrors : string * string * seq<Azure.ResourceManager.Chaos.Models.ChaosPermissionError> * seq<Azure.ResourceManager.Chaos.Models.ChaosResourceStateError> -> Azure.ResourceManager.Chaos.Models.ChaosScenarioErrors
Public Shared Function ChaosScenarioErrors (Optional errorCode As String = Nothing, Optional errorMessage As String = Nothing, Optional permission As IEnumerable(Of ChaosPermissionError) = Nothing, Optional resource As IEnumerable(Of ChaosResourceStateError) = Nothing) As ChaosScenarioErrors
Parameters
- errorCode
- String
Error code for internal server errors.
- errorMessage
- String
Error message for internal server errors.
- permission
- IEnumerable<ChaosPermissionError>
Any permission errors associated with the scenario run.
- resource
- IEnumerable<ChaosResourceStateError>
Any resource state errors associated with the scenario run.
Returns
A new ChaosScenarioErrors instance for mocking.