Skip to content

Commit d4246c4

Browse files
authored
Merge pull request #276935 from ggailey777/python-bulk-cleanup
[Functions][Bulk] move Python models note to a shared include
2 parents 74fb7aa + 46b852d commit d4246c4

13 files changed

+30
-133
lines changed

articles/azure-functions/functions-bindings-cosmosdb-v2-input.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ For information on setup and configuration details, see the [overview](./functio
2323
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2424
::: zone-end
2525
::: zone pivot="programming-language-python"
26-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
27-
28-
# [v2](#tab/python-v2)
29-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
30-
31-
# [v1](#tab/python-v1)
32-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
33-
34-
---
35-
36-
This article supports both programming models.
26+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3727

3828
::: zone-end
3929

articles/azure-functions/functions-bindings-cosmosdb-v2-output.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,7 @@ For information on setup and configuration details, see the [overview](./functio
1919
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2020
::: zone-end
2121
::: zone pivot="programming-language-python"
22-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
23-
24-
# [v2](#tab/python-v2)
25-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
26-
27-
# [v1](#tab/python-v1)
28-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
29-
30-
---
31-
32-
This article supports both programming models.
22+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3323

3424
::: zone-end
3525
::: zone pivot="programming-language-csharp"

articles/azure-functions/functions-bindings-cosmosdb-v2-trigger.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,7 @@ Cosmos DB scaling decisions for the Consumption and Premium plans are done via t
2121
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2222
::: zone-end
2323
::: zone pivot="programming-language-python"
24-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
25-
26-
# [v2](#tab/python-v2)
27-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
28-
29-
# [v1](#tab/python-v1)
30-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
31-
32-
---
33-
34-
This article supports both programming models.
24+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3525

3626
::: zone-end
3727

articles/azure-functions/functions-bindings-event-grid-output.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,7 @@ For information on setup and configuration details, see [How to work with Event
2020
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2121
::: zone-end
2222
::: zone pivot="programming-language-python"
23-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
24-
25-
# [v2](#tab/python-v2)
26-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
27-
28-
# [v1](#tab/python-v1)
29-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
30-
31-
---
32-
33-
This article supports both programming models.
23+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3424

3525
::: zone-end
3626

articles/azure-functions/functions-bindings-event-grid-trigger.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,7 @@ Use the function trigger to respond to an event sent by an [Event Grid source](.
2020
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2121
::: zone-end
2222
::: zone pivot="programming-language-python"
23-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
24-
25-
# [v2](#tab/python-v2)
26-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
27-
28-
# [v1](#tab/python-v1)
29-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
30-
31-
---
32-
33-
This article supports both programming models.
23+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3424

3525
::: zone-end
3626

articles/azure-functions/functions-bindings-event-hubs-output.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ Make sure the required package references are in place before you try to impleme
2222
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2323
::: zone-end
2424
::: zone pivot="programming-language-python"
25-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
26-
27-
# [v2](#tab/python-v2)
28-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
29-
30-
# [v1](#tab/python-v1)
31-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
32-
33-
---
34-
35-
This article supports both programming models.
25+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3626

3727
::: zone-end
3828

articles/azure-functions/functions-bindings-http-webhook-trigger.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,7 @@ For more information about HTTP bindings, see the [overview](./functions-binding
2828
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2929
::: zone-end
3030
::: zone pivot="programming-language-python"
31-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
32-
33-
# [v2](#tab/python-v2)
34-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
35-
36-
# [v1](#tab/python-v1)
37-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
38-
39-
---
40-
41-
This article supports both programming models.
31+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
4232

4333
::: zone-end
4434

articles/azure-functions/functions-bindings-service-bus-output.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,7 @@ For information on setup and configuration details, see the [overview](functions
2020
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2121
::: zone-end
2222
::: zone pivot="programming-language-python"
23-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
24-
25-
# [v2](#tab/python-v2)
26-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
27-
28-
# [v1](#tab/python-v1)
29-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
30-
31-
---
32-
33-
This article supports both programming models.
34-
23+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3524
::: zone-end
3625

3726
## Example

articles/azure-functions/functions-bindings-service-bus-trigger.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ Service Bus scaling decisions for the Consumption and Premium plans are made bas
2323
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2424
::: zone-end
2525
::: zone pivot="programming-language-python"
26-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
27-
28-
# [v2](#tab/python-v2)
29-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
30-
31-
# [v1](#tab/python-v1)
32-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
33-
34-
---
35-
36-
This article supports both programming models.
26+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3727

3828
::: zone-end
3929

articles/azure-functions/functions-bindings-storage-queue-output.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,7 @@ For information on setup and configuration details, see the [overview](./functio
1919
[!INCLUDE [functions-nodejs-model-tabs-description](../../includes/functions-nodejs-model-tabs-description.md)]
2020
::: zone-end
2121
::: zone pivot="programming-language-python"
22-
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
23-
24-
# [v2](#tab/python-v2)
25-
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
26-
27-
# [v1](#tab/python-v1)
28-
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
29-
30-
---
31-
32-
This article supports both programming models.
22+
[!INCLUDE [functions-bindings-python-models-intro](../../includes/functions-bindings-python-models-intro.md)]
3323

3424
::: zone-end
3525

0 commit comments

Comments
 (0)