Dataflows Gen1
deploy_all_dataflows_gen1(workspace, path, start_path=None)
Deploy all dataflows_gen1 to workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID of the workspace. |
required |
path
|
str
|
The path to the dataflows_gen2. |
required |
start_path
|
Optional[str]
|
The starting path for folder creation. |
None
|
Source code in src/pyfabricops/helpers/dataflows_gen1.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | |
deploy_dataflow_gen1(workspace, path)
Deploy a dataflow in a workspace from a model.json file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
path
|
str
|
Path to the model.json file for the dataflow. |
required |
Returns:
| Type | Description |
|---|---|
Union[bool, None]
|
None |
Raises:
| Type | Description |
|---|---|
Exception
|
If the API request fails or returns an error. |
Examples:
deploy_dataflow_gen1('MyProjectWorkspace', 'path/to/MyDataflowGen1.Dataflow')
deploy_dataflow_gen1('123e4567-e89b-12d3-a456-426614174000', 'path/to/MyDataflowGen1.Dataflow')
Source code in src/pyfabricops/helpers/dataflows_gen1.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 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 | |
export_all_dataflows_gen1(workspace, path)
Export all dataflows gen1 from a workspace to a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
path
|
str
|
The path to the project folder. |
required |
Examples:
export_all_dataflows_gen1('MyProjectWorkspace', path='path/to/project')
export_all_dataflows_gen1('123e4567-e89b-12d3-a456-426614174000', path='path/to/project')
Source code in src/pyfabricops/helpers/dataflows_gen1.py
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 163 164 165 166 | |
export_dataflow_gen1(workspace, dataflow, path)
Export a dataflow from a workspace to a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The workspace name or ID. |
required |
dataflow
|
str
|
The dataflow name or ID. |
required |
path
|
str
|
The path to the project folder. |
required |
Examples:
export_dataflow_gen1('MyProjectWorkspace', 'SalesDataflowGen1', path='path/to/project')
export_dataflow_gen1('123e4567-e89b-12d3-a456-426614174000', 'SalesDataflowGen1', path='path/to/project')
Source code in src/pyfabricops/helpers/dataflows_gen1.py
85 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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
get_all_dataflows_gen1_config(workspace)
Get dataflows_gen1 config from a workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID from the workspace. |
required |
Returns:
| Type | Description |
|---|---|
Union[Dict[str, Any], None]
|
The dict config of all dataflows_gen1 in the workspace |
Source code in src/pyfabricops/helpers/dataflows_gen1.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
get_dataflow_gen1_config(workspace, dataflow_gen1)
Get a specific dataflow_gen1 config from a workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
str
|
The name or ID of the workspace. |
required |
dataflow_gen1
|
str
|
The name or ID of the dataflow_gen1. |
required |
Returns:
| Type | Description |
|---|---|
Union[Dict[str, Any], None]
|
The dict config from the dataflow_gen1. |
Source code in src/pyfabricops/helpers/dataflows_gen1.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |