Udostępnij za pośrednictwem


ArmAvsModelFactory.PlacementPolicyProperties Method

Definition

Initializes a new instance of PlacementPolicyProperties.

public static Azure.ResourceManager.Avs.Models.PlacementPolicyProperties PlacementPolicyProperties (string policyType = default, Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default, string displayName = default, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default);
public static Azure.ResourceManager.Avs.Models.PlacementPolicyProperties PlacementPolicyProperties (string policyType = "Unknown", Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default, string displayName = default, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default);
static member PlacementPolicyProperties : string * Nullable<Azure.ResourceManager.Avs.Models.PlacementPolicyState> * string * Nullable<Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState> -> Azure.ResourceManager.Avs.Models.PlacementPolicyProperties
Public Shared Function PlacementPolicyProperties (Optional policyType As String = Nothing, Optional state As Nullable(Of PlacementPolicyState) = Nothing, Optional displayName As String = Nothing, Optional provisioningState As Nullable(Of PlacementPolicyProvisioningState) = Nothing) As PlacementPolicyProperties
Public Shared Function PlacementPolicyProperties (Optional policyType As String = "Unknown", Optional state As Nullable(Of PlacementPolicyState) = Nothing, Optional displayName As String = Nothing, Optional provisioningState As Nullable(Of PlacementPolicyProvisioningState) = Nothing) As PlacementPolicyProperties

Parameters

policyType
String

Placement Policy type.

state
Nullable<PlacementPolicyState>

Whether the placement policy is enabled or disabled.

displayName
String

Display name of the placement policy.

provisioningState
Nullable<PlacementPolicyProvisioningState>

The provisioning state.

Returns

A new PlacementPolicyProperties instance for mocking.

Applies to