共用方式為


ArmCosmosDBModelFactory.CosmosDBChaosFaultResourceData Method

Definition

Initializes a new instance of CosmosDBChaosFaultResourceData.

public static Azure.ResourceManager.CosmosDB.CosmosDBChaosFaultResourceData CosmosDBChaosFaultResourceData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBChaosFaultSupportedAction? cosmosDBChaosFaultSupportedActions = default, string region = default, string databaseName = default, string containerName = default, string provisioningState = default);
static member CosmosDBChaosFaultResourceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBChaosFaultSupportedAction> * string * string * string * string -> Azure.ResourceManager.CosmosDB.CosmosDBChaosFaultResourceData
Public Shared Function CosmosDBChaosFaultResourceData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional cosmosDBChaosFaultSupportedActions As Nullable(Of CosmosDBChaosFaultSupportedAction) = Nothing, Optional region As String = Nothing, Optional databaseName As String = Nothing, Optional containerName As String = Nothing, Optional provisioningState As String = Nothing) As CosmosDBChaosFaultResourceData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

cosmosDBChaosFaultSupportedActions
Nullable<CosmosDBChaosFaultSupportedAction>

Indicates whether what action to take for the Chaos Fault.

region
String

Region of the account where the Chaos Fault is to be enabled/disabled.

databaseName
String

Database name.

containerName
String

Container name.

provisioningState
String

A provisioning state of the Chaos Fault.

Returns

A new CosmosDBChaosFaultResourceData instance for mocking.

Applies to