SwitchActivity Class

This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property.

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

Inheritance
azure.mgmt.datafactory.models._models_py3.ControlActivity
SwitchActivity

Constructor

SwitchActivity(*, name: str, on: _models.Expression, additional_properties: Optional[Dict[str, Any]] = None, description: Optional[str] = None, depends_on: Optional[List[_models.ActivityDependency]] = None, user_properties: Optional[List[_models.UserProperty]] = None, cases: Optional[List[_models.SwitchCase]] = None, default_activities: Optional[List[_models.Activity]] = None, **kwargs)

Variables

additional_properties
dict[str, any]

Unmatched properties from the message are deserialized to this collection.

name
str

Required. Activity name.

type
str

Required. Type of activity.Constant filled by server.

description
str

Activity description.

depends_on
list[ActivityDependency]

Activity depends on condition.

user_properties
list[UserProperty]

Activity user properties.

on
Expression

Required. An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.

cases
list[SwitchCase]

List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.

default_activities
list[Activity]

List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action.