Class DatabricksSparkPythonActivity
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.Activity
-
- com.azure.resourcemanager.datafactory.models.ExecutionActivity
-
- com.azure.resourcemanager.datafactory.models.DatabricksSparkPythonActivity
-
public final class DatabricksSparkPythonActivity extends ExecutionActivity
DatabricksSparkPython activity.
-
-
Constructor Summary
Constructors Constructor Description DatabricksSparkPythonActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>
libraries()
Get the libraries property: A list of libraries to be installed on the cluster that will execute the job.List<Object>
parameters()
Get the parameters property: Command line parameters that will be passed to the Python file.Object
pythonFile()
Get the pythonFile property: The URI of the Python file to be executed.void
validate()
Validates the instance.DatabricksSparkPythonActivity
withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.DatabricksSparkPythonActivity
withDescription(String description)
Set the description property: Activity description.DatabricksSparkPythonActivity
withLibraries(List<Map<String,Object>> libraries)
Set the libraries property: A list of libraries to be installed on the cluster that will execute the job.DatabricksSparkPythonActivity
withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.DatabricksSparkPythonActivity
withName(String name)
Set the name property: Activity name.DatabricksSparkPythonActivity
withParameters(List<Object> parameters)
Set the parameters property: Command line parameters that will be passed to the Python file.DatabricksSparkPythonActivity
withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.DatabricksSparkPythonActivity
withPythonFile(Object pythonFile)
Set the pythonFile property: The URI of the Python file to be executed.DatabricksSparkPythonActivity
withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.ExecutionActivity
linkedServiceName, policy
-
Methods inherited from class com.azure.resourcemanager.datafactory.models.Activity
additionalProperties, dependsOn, description, name, userProperties, withAdditionalProperties
-
-
-
-
Method Detail
-
withLinkedServiceName
public DatabricksSparkPythonActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.- Overrides:
withLinkedServiceName
in classExecutionActivity
- Parameters:
linkedServiceName
- the linkedServiceName value to set.- Returns:
- the ExecutionActivity object itself.
-
withPolicy
public DatabricksSparkPythonActivity withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.- Overrides:
withPolicy
in classExecutionActivity
- Parameters:
policy
- the policy value to set.- Returns:
- the ExecutionActivity object itself.
-
withName
public DatabricksSparkPythonActivity withName(String name)
Set the name property: Activity name.- Overrides:
withName
in classExecutionActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
withDescription
public DatabricksSparkPythonActivity withDescription(String description)
Set the description property: Activity description.- Overrides:
withDescription
in classExecutionActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
withDependsOn
public DatabricksSparkPythonActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.- Overrides:
withDependsOn
in classExecutionActivity
- Parameters:
dependsOn
- the dependsOn value to set.- Returns:
- the Activity object itself.
-
withUserProperties
public DatabricksSparkPythonActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.- Overrides:
withUserProperties
in classExecutionActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-
pythonFile
public Object pythonFile()
Get the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string).- Returns:
- the pythonFile value.
-
withPythonFile
public DatabricksSparkPythonActivity withPythonFile(Object pythonFile)
Set the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string).- Parameters:
pythonFile
- the pythonFile value to set.- Returns:
- the DatabricksSparkPythonActivity object itself.
-
parameters
public List<Object> parameters()
Get the parameters property: Command line parameters that will be passed to the Python file.- Returns:
- the parameters value.
-
withParameters
public DatabricksSparkPythonActivity withParameters(List<Object> parameters)
Set the parameters property: Command line parameters that will be passed to the Python file.- Parameters:
parameters
- the parameters value to set.- Returns:
- the DatabricksSparkPythonActivity object itself.
-
libraries
public List<Map<String,Object>> libraries()
Get the libraries property: A list of libraries to be installed on the cluster that will execute the job.- Returns:
- the libraries value.
-
withLibraries
public DatabricksSparkPythonActivity withLibraries(List<Map<String,Object>> libraries)
Set the libraries property: A list of libraries to be installed on the cluster that will execute the job.- Parameters:
libraries
- the libraries value to set.- Returns:
- the DatabricksSparkPythonActivity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classExecutionActivity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-