/// <summary> /// Initializes a new instance of the ServiceResourceProperties class. /// </summary> /// <param name="placementConstraints">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)".</param> /// <param name="correlationScheme">A list that describes the /// correlation of the service with other services.</param> /// <param name="serviceLoadMetrics">The service load metrics is given /// as an array of ServiceLoadMetricDescription objects.</param> /// <param name="servicePlacementPolicies">A list that describes the /// correlation of the service with other services.</param> /// <param name="defaultMoveCost">Specifies the move cost for the /// service. Possible values include: 'Zero', 'Low', 'Medium', /// 'High'</param> /// <param name="provisioningState">The current deployment or /// provisioning state, which only appears in the response</param> /// <param name="serviceTypeName">The name of the service type</param> /// <param name="partitionDescription">Describes how the service is /// partitioned.</param> public ServiceResourceProperties(string placementConstraints = default(string), IList <ServiceCorrelationDescription> correlationScheme = default(IList <ServiceCorrelationDescription>), IList <ServiceLoadMetricDescription> serviceLoadMetrics = default(IList <ServiceLoadMetricDescription>), IList <ServicePlacementPolicyDescription> servicePlacementPolicies = default(IList <ServicePlacementPolicyDescription>), string defaultMoveCost = default(string), string provisioningState = default(string), string serviceTypeName = default(string), PartitionSchemeDescription partitionDescription = default(PartitionSchemeDescription)) : base(placementConstraints, correlationScheme, serviceLoadMetrics, servicePlacementPolicies, defaultMoveCost) { ProvisioningState = provisioningState; ServiceTypeName = serviceTypeName; PartitionDescription = partitionDescription; CustomInit(); }
/// <summary> /// Initializes a new instance of the ServiceResource class. /// </summary> /// <param name="id">Azure resource identifier.</param> /// <param name="name">Azure resource name.</param> /// <param name="type">Azure resource type.</param> /// <param name="location">Azure resource location.</param> /// <param name="placementConstraints">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)".</param> /// <param name="correlationScheme">A list that describes the /// correlation of the service with other services.</param> /// <param name="serviceLoadMetrics">The service load metrics is given /// as an array of ServiceLoadMetricDescription objects.</param> /// <param name="servicePlacementPolicies">A list that describes the /// correlation of the service with other services.</param> /// <param name="defaultMoveCost">Specifies the move cost for the /// service. Possible values include: 'Zero', 'Low', 'Medium', /// 'High'</param> /// <param name="provisioningState">The current deployment or /// provisioning state, which only appears in the response</param> /// <param name="serviceTypeName">The name of the service type</param> /// <param name="partitionDescription">Describes how the service is /// partitioned.</param> public ServiceResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string placementConstraints = default(string), IList <ServiceCorrelationDescription> correlationScheme = default(IList <ServiceCorrelationDescription>), IList <ServiceLoadMetricDescription> serviceLoadMetrics = default(IList <ServiceLoadMetricDescription>), IList <ServicePlacementPolicyDescription> servicePlacementPolicies = default(IList <ServicePlacementPolicyDescription>), string defaultMoveCost = default(string), string provisioningState = default(string), string serviceTypeName = default(string), PartitionSchemeDescription partitionDescription = default(PartitionSchemeDescription)) : base(id, name, type, location) { PlacementConstraints = placementConstraints; CorrelationScheme = correlationScheme; ServiceLoadMetrics = serviceLoadMetrics; ServicePlacementPolicies = servicePlacementPolicies; DefaultMoveCost = defaultMoveCost; ProvisioningState = provisioningState; ServiceTypeName = serviceTypeName; PartitionDescription = partitionDescription; CustomInit(); }
/// <summary> /// Initializes a new instance of the StatelessServiceProperties class. /// </summary> /// <param name="placementConstraints">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)".</param> /// <param name="correlationScheme">A list that describes the /// correlation of the service with other services.</param> /// <param name="serviceLoadMetrics">The service load metrics is given /// as an array of ServiceLoadMetricDescription objects.</param> /// <param name="servicePlacementPolicies">A list that describes the /// correlation of the service with other services.</param> /// <param name="defaultMoveCost">Specifies the move cost for the /// service. Possible values include: 'Zero', 'Low', 'Medium', /// 'High'</param> /// <param name="provisioningState">The current deployment or /// provisioning state, which only appears in the response</param> /// <param name="serviceTypeName">The name of the service type</param> /// <param name="partitionDescription">Describes how the service is /// partitioned.</param> /// <param name="servicePackageActivationMode">The activation Mode of /// the service package. Possible values include: 'SharedProcess', /// 'ExclusiveProcess'</param> /// <param name="serviceDnsName">Dns name used for the service. If this /// is specified, then the service can be accessed via its DNS name /// instead of service name.</param> /// <param name="instanceCount">The instance count.</param> /// <param name="instanceCloseDelayDuration">Delay duration for /// RequestDrain feature to ensures that the endpoint advertised by the /// stateless instance is removed before the delay starts prior to /// closing the instance. This delay enables existing requests to drain /// gracefully before the instance actually goes down /// (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). /// It is first interpreted as a string representing an ISO 8601 /// duration. If that fails, then it is interpreted as a number /// representing the total number of milliseconds.</param> public StatelessServiceProperties(string placementConstraints = default(string), IList <ServiceCorrelationDescription> correlationScheme = default(IList <ServiceCorrelationDescription>), IList <ServiceLoadMetricDescription> serviceLoadMetrics = default(IList <ServiceLoadMetricDescription>), IList <ServicePlacementPolicyDescription> servicePlacementPolicies = default(IList <ServicePlacementPolicyDescription>), string defaultMoveCost = default(string), string provisioningState = default(string), string serviceTypeName = default(string), PartitionSchemeDescription partitionDescription = default(PartitionSchemeDescription), string servicePackageActivationMode = default(string), string serviceDnsName = default(string), int?instanceCount = default(int?), string instanceCloseDelayDuration = default(string)) : base(placementConstraints, correlationScheme, serviceLoadMetrics, servicePlacementPolicies, defaultMoveCost, provisioningState, serviceTypeName, partitionDescription, servicePackageActivationMode, serviceDnsName) { InstanceCount = instanceCount; InstanceCloseDelayDuration = instanceCloseDelayDuration; CustomInit(); }
/// <summary> /// Initializes a new instance of the StatefulServiceProperties class. /// </summary> /// <param name="placementConstraints">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)".</param> /// <param name="correlationScheme">A list that describes the /// correlation of the service with other services.</param> /// <param name="serviceLoadMetrics">The service load metrics is given /// as an array of ServiceLoadMetricDescription objects.</param> /// <param name="servicePlacementPolicies">A list that describes the /// correlation of the service with other services.</param> /// <param name="defaultMoveCost">Specifies the move cost for the /// service. Possible values include: 'Zero', 'Low', 'Medium', /// 'High'</param> /// <param name="provisioningState">The current deployment or /// provisioning state, which only appears in the response</param> /// <param name="serviceTypeName">The name of the service type</param> /// <param name="partitionDescription">Describes how the service is /// partitioned.</param> /// <param name="hasPersistedState">A flag indicating whether this is a /// persistent service which stores states on the local disk. If it is /// then the value of this property is true, if not it is /// false.</param> /// <param name="targetReplicaSetSize">The target replica set size as a /// number.</param> /// <param name="minReplicaSetSize">The minimum replica set size as a /// number.</param> /// <param name="replicaRestartWaitDuration">The duration between when /// a replica goes down and when a new replica is created, represented /// in ISO 8601 format (hh:mm:ss.s).</param> /// <param name="quorumLossWaitDuration">The maximum duration for which /// a partition is allowed to be in a state of quorum loss, represented /// in ISO 8601 format (hh:mm:ss.s).</param> /// <param name="standByReplicaKeepDuration">The definition on how long /// StandBy replicas should be maintained before being removed, /// represented in ISO 8601 format (hh:mm:ss.s).</param> public StatefulServiceProperties(string placementConstraints = default(string), IList <ServiceCorrelationDescription> correlationScheme = default(IList <ServiceCorrelationDescription>), IList <ServiceLoadMetricDescription> serviceLoadMetrics = default(IList <ServiceLoadMetricDescription>), IList <ServicePlacementPolicyDescription> servicePlacementPolicies = default(IList <ServicePlacementPolicyDescription>), string defaultMoveCost = default(string), string provisioningState = default(string), string serviceTypeName = default(string), PartitionSchemeDescription partitionDescription = default(PartitionSchemeDescription), bool?hasPersistedState = default(bool?), int?targetReplicaSetSize = default(int?), int?minReplicaSetSize = default(int?), System.DateTime?replicaRestartWaitDuration = default(System.DateTime?), System.DateTime?quorumLossWaitDuration = default(System.DateTime?), System.DateTime?standByReplicaKeepDuration = default(System.DateTime?)) : base(placementConstraints, correlationScheme, serviceLoadMetrics, servicePlacementPolicies, defaultMoveCost, provisioningState, serviceTypeName, partitionDescription) { HasPersistedState = hasPersistedState; TargetReplicaSetSize = targetReplicaSetSize; MinReplicaSetSize = minReplicaSetSize; ReplicaRestartWaitDuration = replicaRestartWaitDuration; QuorumLossWaitDuration = quorumLossWaitDuration; StandByReplicaKeepDuration = standByReplicaKeepDuration; CustomInit(); }