Data Pipelines
create_data_pipeline(workspace, display_name, item_definition, *, description=None, folder=None, df=True)
Creates a new data_pipeline in the specified workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
display_name
|
str
|
The display name of the data_pipeline. |
required |
description
|
str
|
A description for the data_pipeline. |
None
|
folder
|
str
|
The folder to create the data_pipeline in. |
None
|
item_definition
|
Dict[str, Any]
|
The definition of the data_pipeline. |
required |
df
|
Optional[bool]
|
If True or not provided, returns a DataFrame with flattened keys. If False, returns a list of dictionaries. |
True
|
Returns:
| Type | Description |
|---|---|
Union[DataFrame, Dict[str, Any], None]
|
The created data_pipeline details. |
Examples:
create_data_pipeline(
workspace='MyProjectWorkspace',
display_name='SalesDataPipeline',
item_definition={...},
description='This is a sales data pipeline',
folder='SalesDataPipelinesFolder'
)
Source code in src/pyfabricops/items/data_pipelines.py
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | |
delete_data_pipeline(workspace, data_pipeline)
Deletes a data_pipeline from the specified workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID of the workspace. |
required |
data_pipeline
|
str
|
The name or ID of the data_pipeline to delete. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
If the data_pipeline is successfully deleted. |
Examples:
delete_data_pipeline('MyProjectWorkspace', 'SalesDataPipeline')
delete_data_pipeline('123e4567-e89b-12d3-a456-426614174000', 'SalesDataPipeline')
Source code in src/pyfabricops/items/data_pipelines.py
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
get_data_pipeline(workspace, data_pipeline)
Retrieves the details of a data pipeline by its ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID of the workspace. |
required |
data_pipeline
|
str
|
The name or ID of the data pipeline. |
required |
df
|
Optional[bool]
|
If True or not provided, returns a DataFrame with flattened keys. If False, returns a list of dictionaries. |
required |
Returns:
| Type | Description |
|---|---|
Union[DataFrame, Dict[str, Any], None]
|
The data pipeline details if found, otherwise None. |
Examples:
get_data_pipeline('123e4567-e89b-12d3-a456-426614174000', 'SalesDataPipeline')
get_data_pipeline('my-workspace', 'SalesDataPipeline')
Source code in src/pyfabricops/items/data_pipelines.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
get_data_pipeline_definition(workspace, data_pipeline)
Retrieves the definition of a data_pipeline by its name or ID from the specified workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
data_pipeline
|
str
|
The name or ID of the data_pipeline. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
The data_pipeline definition if found, otherwise None. |
Examples:
get_data_pipeline_definition('MyProjectWorkspace', 'Salesdata_pipeline')
get_data_pipeline_definition('MyProjectWorkspace', '123e4567-e89b-12d3-a456-426614174000')
Source code in src/pyfabricops/items/data_pipelines.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | |
get_data_pipeline_id(workspace, data_pipeline_name)
Retrieves the ID of a data pipeline by its name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_pipeline_name
|
str
|
The name of the data pipeline. |
required |
Returns:
| Type | Description |
|---|---|
Union[str, None]
|
str | None: The ID of the data pipeline if found, otherwise None. |
Source code in src/pyfabricops/items/data_pipelines.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
list_data_pipelines(workspace, *, df=True)
Lists all data_pipelines in the specified workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID of the workspace. |
required |
df
|
Optional[bool]
|
If True or not provided, returns a DataFrame with flattened keys. If False, returns a list of dictionaries. |
True
|
Returns:
| Type | Description |
|---|---|
Union[DataFrame, List[Dict[str, Any]], None]
|
list | pandas.DataFrame | None: A list of data_pipelines if successful, otherwise None. |
Examples:
list_data_pipelines('MyProjectWorkspace')
list_data_pipelines('123e4567-e89b-12d3-a456-426614174000')
Source code in src/pyfabricops/items/data_pipelines.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
resolve_data_pipeline(workspace, data_pipeline)
Resolves a data pipeline name to its ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID of the workspace. |
required |
data_pipeline
|
str
|
The name or ID of the data pipeline. |
required |
Returns:
| Type | Description |
|---|---|
Union[str, None]
|
str | None: The ID of the data pipeline if found, otherwise None. |
Source code in src/pyfabricops/items/data_pipelines.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
update_data_pipeline(workspace, data_pipeline, *, display_name=None, description=None, df=True)
Updates the properties of the specified data pipeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
data_pipeline
|
str
|
The name or ID of the data_pipeline to update. |
required |
display_name
|
str
|
The new display name for the data_pipeline. |
None
|
description
|
str
|
The new description for the data_pipeline. |
None
|
df
|
bool
|
Keyword-only. If True, returns a DataFrame with flattened keys. Defaults to False. |
True
|
Returns:
| Type | Description |
|---|---|
Union[DataFrame, Dict[str, Any], None]
|
The updated data pipeline details if successful, otherwise None. |
Examples:
update_data_pipeline('MyProjectWorkspace', 'SalesDataModel', display_name='UpdatedSalesDataModel')
update_data_pipeline('MyProjectWorkspace', '123e4567-e89b-12d3-a456-426614174000', description='Updated description')
Source code in src/pyfabricops/items/data_pipelines.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
update_data_pipeline_definition(workspace, data_pipeline, item_definition)
Updates the definition of an existing data_pipeline in the specified workspace. If the data_pipeline does not exist, it returns None.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
data_pipeline
|
str
|
The name or ID of the data_pipeline to update. |
required |
item_definition
|
Dict[str, Any]
|
The item_definition of the data_pipeline. |
required |
df
|
Optional[bool]
|
If True or not provided, returns a DataFrame with flattened keys. If False, returns a list of dictionaries. |
required |
Returns:
| Type | Description |
|---|---|
Union[DataFrame, Dict[str, Any], None]
|
The updated data_pipeline details if successful, otherwise None. |
Examples:
update_data_pipeline_definition(
workspace='MyProjectWorkspace',
data_pipeline='SalesDataPipeline',
item_definition={...} # The definition of the data_pipeline
)
Source code in src/pyfabricops/items/data_pipelines.py
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | |