ArmContainerServiceFleetModelFactory.ContainerServiceFleetPlacementPolicy 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.
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPlacementPolicy ContainerServiceFleetPlacementPolicy(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPlacementType? placementType = default, System.Collections.Generic.IEnumerable<string> clusterNames = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetClusterSelectorTerm> affinityRequiredDuringSchedulingIgnoredDuringExecutionClusterSelectorTerms = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetToleration> tolerations = default);
static member ContainerServiceFleetPlacementPolicy : Nullable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPlacementType> * seq<string> * seq<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetClusterSelectorTerm> * seq<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetToleration> -> Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetPlacementPolicy
Public Shared Function ContainerServiceFleetPlacementPolicy (Optional placementType As Nullable(Of ContainerServiceFleetPlacementType) = Nothing, Optional clusterNames As IEnumerable(Of String) = Nothing, Optional affinityRequiredDuringSchedulingIgnoredDuringExecutionClusterSelectorTerms As IEnumerable(Of ContainerServiceFleetClusterSelectorTerm) = Nothing, Optional tolerations As IEnumerable(Of ContainerServiceFleetToleration) = Nothing) As ContainerServiceFleetPlacementPolicy
Parameters
- placementType
- Nullable<ContainerServiceFleetPlacementType>
Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll.
- clusterNames
- IEnumerable<String>
ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is "PickFixed".
- affinityRequiredDuringSchedulingIgnoredDuringExecutionClusterSelectorTerms
- IEnumerable<ContainerServiceFleetClusterSelectorTerm>
ClusterSelectorTerms is a list of cluster selector terms. The terms are ORed.
- tolerations
- IEnumerable<ContainerServiceFleetToleration>
If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature.
Returns
A new ContainerServiceFleetPlacementPolicy instance for mocking.