ArmAvsModelFactory.PlacementPolicyProperties 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.
Abstract placement policy properties Please note this is the abstract base class. The derived classes available for instantiation are: VmPlacementPolicyProperties and VmHostPlacementPolicyProperties.
public static Azure.ResourceManager.Avs.Models.PlacementPolicyProperties PlacementPolicyProperties(string type = 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
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 type 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
- typepolicyType
- 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.