ArmServiceFabricManagedClustersModelFactory.ManagedServiceProperties 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.
Initializes a new instance of ManagedServiceProperties.
public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties ManagedServiceProperties (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 serviceKind = default, string serviceTypeName = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default, string serviceDnsName = default);
static member ManagedServiceProperties : 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 * string * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode> * string -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties
Public Shared Function ManagedServiceProperties (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 serviceKind 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) As ManagedServiceProperties
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.
- serviceKind
- String
The kind of service (Stateless or Stateful).
- 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.
Returns
A new ManagedServiceProperties instance for mocking.
Applies to
Azure SDK for .NET