Partilhar via


ArmServiceFabricManagedClustersModelFactory.StatelessServiceProperties Method

Definition

Initializes a new instance of StatelessServiceProperties.

public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatelessServiceProperties StatelessServiceProperties (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, string provisioningState = default, string serviceTypeName = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default, string serviceDnsName = default, int instanceCount = 0, int? minInstanceCount = default, int? minInstancePercentage = default);
static member StatelessServiceProperties : 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> * string * string * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode> * string * int * Nullable<int> * Nullable<int> -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatelessServiceProperties
Public Shared Function StatelessServiceProperties (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, Optional provisioningState As String = Nothing, Optional serviceTypeName As String = Nothing, Optional partitionDescription As ManagedServicePartitionScheme = Nothing, Optional servicePackageActivationMode As Nullable(Of ManagedServicePackageActivationMode) = Nothing, Optional serviceDnsName As String = Nothing, Optional instanceCount As Integer = 0, Optional minInstanceCount As Nullable(Of Integer) = Nothing, Optional minInstancePercentage As Nullable(Of Integer) = Nothing) As StatelessServiceProperties

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. Please note ManagedServicePlacementPolicy is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ServicePlacementInvalidDomainPolicy, ServicePlacementNonPartiallyPlaceServicePolicy, ServicePlacementPreferPrimaryDomainPolicy, ServicePlacementRequiredDomainPolicy and ServicePlacementRequireDomainDistributionPolicy.

defaultMoveCost
Nullable<ServiceFabricManagedServiceMoveCost>

Specifies the move cost for the service.

scalingPolicies
IEnumerable<ManagedServiceScalingPolicy>

Scaling policies for this service.

provisioningState
String

The current deployment or provisioning state, which only appears in the response.

serviceTypeName
String

The name of the service type.

partitionDescription
ManagedServicePartitionScheme

Describes how the service is partitioned. Please note ManagedServicePartitionScheme is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include NamedPartitionScheme, SingletonPartitionScheme and UniformInt64RangePartitionScheme.

servicePackageActivationMode
Nullable<ManagedServicePackageActivationMode>

The activation Mode of the service package.

serviceDnsName
String

Dns name used for the service. If this is specified, then the DNS name can be used to return the IP addresses of service endpoints for application layer protocols (e.g., HTTP). When updating serviceDnsName, old name may be temporarily resolvable. However, rely on new name. When removing serviceDnsName, removed name may temporarily be resolvable. Do not rely on the name being unresolvable.

instanceCount
Int32

The instance count.

minInstanceCount
Nullable<Int32>

MinInstanceCount is the minimum number of instances that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstanceCount computation -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.

minInstancePercentage
Nullable<Int32>

MinInstancePercentage is the minimum percentage of InstanceCount that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstancePercentage computation, -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.

Returns

A new StatelessServiceProperties instance for mocking.

Applies to