ServiceResource Class

The service resource.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.servicefabric.models._models_py3.ProxyResource
ServiceResource

Constructor

ServiceResource(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, placement_constraints: Optional[str] = None, correlation_scheme: Optional[List[azure.mgmt.servicefabric.models._models_py3.ServiceCorrelationDescription]] = None, service_load_metrics: Optional[List[azure.mgmt.servicefabric.models._models_py3.ServiceLoadMetricDescription]] = None, service_placement_policies: Optional[List[azure.mgmt.servicefabric.models._models_py3.ServicePlacementPolicyDescription]] = None, default_move_cost: Optional[Union[str, azure.mgmt.servicefabric.models._service_fabric_management_client_enums.MoveCost]] = None, service_type_name: Optional[str] = None, partition_description: Optional[azure.mgmt.servicefabric.models._models_py3.PartitionSchemeDescription] = None, service_package_activation_mode: Optional[Union[str, azure.mgmt.servicefabric.models._service_fabric_management_client_enums.ArmServicePackageActivationMode]] = None, service_dns_name: Optional[str] = None, **kwargs)

Parameters

location
str
Required

It will be deprecated in New API, resource location depends on the parent resource.

tags
dict[str, str]
Required

A set of tags. Azure resource tags.

placement_constraints
str
Required

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)".

correlation_scheme
list[ServiceCorrelationDescription]
Required

A list that describes the correlation of the service with other services.

service_load_metrics
list[ServiceLoadMetricDescription]
Required

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

service_placement_policies
list[ServicePlacementPolicyDescription]
Required

A list that describes the correlation of the service with other services.

default_move_cost
str or MoveCost
Required

Specifies the move cost for the service. Possible values include: "Zero", "Low", "Medium", "High".

service_kind
str or ServiceKind
Required

The kind of service (Stateless or Stateful).Constant filled by server. Possible values include: "Invalid", "Stateless", "Stateful".

service_type_name
str
Required

The name of the service type.

partition_description
PartitionSchemeDescription
Required

Describes how the service is partitioned.

service_package_activation_mode
str or ArmServicePackageActivationMode
Required

The activation Mode of the service package. Possible values include: "SharedProcess", "ExclusiveProcess".

service_dns_name
str
Required

Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name.

Variables

id
str

Azure resource identifier.

name
str

Azure resource name.

type
str

Azure resource type.

etag
str

Azure resource etag.

system_data
SystemData

Metadata pertaining to creation and last modification of the resource.

provisioning_state
str

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