ServiceTypeDescription Class

Describes a service type defined in the service manifest of a provisioned application type. The properties the ones defined in the service manifest.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: StatefulServiceTypeDescription, StatelessServiceTypeDescription

All required parameters must be populated in order to send to Azure.

Inheritance
ServiceTypeDescription

Constructor

ServiceTypeDescription(*, is_stateful: Optional[bool] = None, service_type_name: Optional[str] = None, placement_constraints: Optional[str] = None, load_metrics=None, service_placement_policies=None, extensions=None, **kwargs)

Parameters

is_stateful
bool
Required

Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise.

service_type_name
str
Required

Name of the service type as specified in the service manifest.

placement_constraints
str
Required

The placement constraint to be used when instantiating this service in a Service Fabric cluster.

load_metrics
list[ServiceLoadMetricDescription]
Required

The service load metrics is given as an array of ServiceLoadMetricDescription objects.

service_placement_policies
list[ServicePlacementPolicyDescription]
Required

List of service placement policy descriptions.

extensions
list[ServiceTypeExtensionDescription]
Required

List of service type extensions.

kind
str
Required

Required. Constant filled by server.