ArmServiceFabricManagedClustersModelFactory.ManagedServiceBaseProperties 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.
The common service resource properties.
public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceBaseProperties ManagedServiceBaseProperties(string placementConstraints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceCorrelation> correlationScheme = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceLoadMetric> serviceLoadMetrics = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePlacementPolicy> servicePlacementPolicies = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost? defaultMoveCost = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingPolicy> scalingPolicies = default);
static member ManagedServiceBaseProperties : string * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceCorrelation> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceLoadMetric> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePlacementPolicy> * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingPolicy> -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceBaseProperties
Public Shared Function ManagedServiceBaseProperties (Optional placementConstraints As String = Nothing, Optional correlationScheme As IEnumerable(Of ManagedServiceCorrelation) = Nothing, Optional serviceLoadMetrics As IEnumerable(Of ManagedServiceLoadMetric) = Nothing, Optional servicePlacementPolicies As IEnumerable(Of ManagedServicePlacementPolicy) = Nothing, Optional defaultMoveCost As Nullable(Of ServiceFabricManagedServiceMoveCost) = Nothing, Optional scalingPolicies As IEnumerable(Of ManagedServiceScalingPolicy) = Nothing) As ManagedServiceBaseProperties
Parameters
- placementConstraints
- String
The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
- correlationScheme
- IEnumerable<ManagedServiceCorrelation>
A list that describes the correlation of the service with other services.
- serviceLoadMetrics
- IEnumerable<ManagedServiceLoadMetric>
The service load metrics is given as an array of ServiceLoadMetric objects.
- servicePlacementPolicies
- IEnumerable<ManagedServicePlacementPolicy>
A list that describes the correlation of the service with other services.
- defaultMoveCost
- Nullable<ServiceFabricManagedServiceMoveCost>
Specifies the move cost for the service.
- scalingPolicies
- IEnumerable<ManagedServiceScalingPolicy>
Scaling policies for this service.
Returns
A new ManagedServiceBaseProperties instance for mocking.