Skip to content

Commit 26b891a

Browse files
author
Evan Roman
committed
Address
1 parent 0c03860 commit 26b891a

File tree

17 files changed

+12
-30
lines changed

17 files changed

+12
-30
lines changed

azurefunctions-extensions-bindings-blob/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ import logging
5656
import azure.functions as func
5757
import azurefunctions.extensions.bindings.blob as blob
5858

59+
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
60+
5961
@app.blob_trigger(arg_name="client",
6062
path="PATH/TO/BLOB",
6163
connection="AzureWebJobsStorage")

azurefunctions-extensions-bindings-blob/azurefunctions/extensions/bindings/blob/blobClient.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Licensed under the MIT License.
33

44
import json
5-
from typing import Union
65

76
from azure.identity import DefaultAzureCredential
87
from azure.storage.blob import BlobServiceClient

azurefunctions-extensions-bindings-blob/azurefunctions/extensions/bindings/blob/containerClient.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Licensed under the MIT License.
33

44
import json
5-
from typing import Union
65

76
from azure.identity import DefaultAzureCredential
87
from azure.storage.blob import BlobServiceClient
@@ -11,7 +10,7 @@
1110

1211

1312
class ContainerClient(SdkType):
14-
def __init__(self, *, data: Union[bytes, Datum]) -> None:
13+
def __init__(self, *, data: Datum) -> None:
1514
# model_binding_data properties
1615
self._data = data
1716
self._using_managed_identity = False

azurefunctions-extensions-bindings-blob/azurefunctions/extensions/bindings/blob/storageStreamDownloader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Licensed under the MIT License.
33

44
import json
5-
from typing import Union
65

76
from azure.identity import DefaultAzureCredential
87
from azure.storage.blob import BlobServiceClient
@@ -11,7 +10,7 @@
1110

1211

1312
class StorageStreamDownloader(SdkType):
14-
def __init__(self, *, data: Union[bytes, Datum]) -> None:
13+
def __init__(self, *, data: Datum) -> None:
1514
# model_binding_data properties
1615
self._data = data
1716
self._using_managed_identity = False

azurefunctions-extensions-bindings-blob/samples/blob_samples_blobclient/function_app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
# -------------------------------------------------------------------------
42
# Copyright (c) Microsoft Corporation. All rights reserved.
53
# Licensed under the MIT License. See License.txt in the project root for

azurefunctions-extensions-bindings-blob/samples/blob_samples_blobclient/local.settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "",
6-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
76
}
87
}

azurefunctions-extensions-bindings-blob/samples/blob_samples_containerclient/function_app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
# -------------------------------------------------------------------------
42
# Copyright (c) Microsoft Corporation. All rights reserved.
53
# Licensed under the MIT License. See License.txt in the project root for

azurefunctions-extensions-bindings-blob/samples/blob_samples_containerclient/local.settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "",
6-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
76
}
87
}

azurefunctions-extensions-bindings-blob/samples/blob_samples_storagestreamdownloader/function_app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
# -------------------------------------------------------------------------
42
# Copyright (c) Microsoft Corporation. All rights reserved.
53
# Licensed under the MIT License. See License.txt in the project root for

azurefunctions-extensions-bindings-blob/samples/blob_samples_storagestreamdownloader/local.settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "",
6-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
76
}
87
}

azurefunctions-extensions-bindings-blob/tests/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
"""Bootstrap for '$ python setup.py test' command."""
5-
64
import os.path
75
import sys
86
import unittest
9-
import unittest.runner
107

118

129
def suite():

azurefunctions-extensions-bindings-eventhub/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ import logging
5151
import azure.functions as func
5252
import azurefunctions.extensions.bindings.eventhub as eh
5353

54+
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
55+
5456
@app.event_hub_message_trigger(
5557
arg_name="eh_data", event_hub_name="EVENTHUB_NAME", connection="AzureWebJobsStorage"
5658
)

azurefunctions-extensions-bindings-eventhub/azurefunctions/extensions/bindings/eventhub/eventHubData.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
from typing import Optional, Union
4+
from typing import Optional
55
import uamqp
66

77
from azure.eventhub import EventData
@@ -42,7 +42,7 @@ def __get_eventhub_content(self, content):
4242
def get_sdk_type(self) -> Optional[EventData]:
4343
"""
4444
When receiving an EventHub message, the content portion after being decoded
45-
is used in the constructor to create an EventData object. This will contains
45+
is used in the constructor to create an EventData object. This will contain
4646
fields such as message, enqueue_time, and more.
4747
"""
4848
# https://github.com/Azure/azure-sdk-for-python/issues/39711

azurefunctions-extensions-bindings-eventhub/samples/eventhub_samples_eventhubdata/function_app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
# -------------------------------------------------------------------------
42
# Copyright (c) Microsoft Corporation. All rights reserved.
53
# Licensed under the MIT License. See License.txt in the project root for

azurefunctions-extensions-bindings-eventhub/samples/eventhub_samples_eventhubdata/local.settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"IsEncrypted": false,
33
"Values": {
44
"FUNCTIONS_WORKER_RUNTIME": "python",
5-
"AzureWebJobsStorage": "",
6-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
5+
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
76
}
87
}

azurefunctions-extensions-bindings-eventhub/tests/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
"""Bootstrap for '$ python setup.py test' command."""
5-
64
import os.path
75
import sys
86
import unittest
9-
import unittest.runner
107

118

129
def suite():

azurefunctions-extensions-http-fastapi/tests/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import os.path
77
import sys
88
import unittest
9-
import unittest.runner
109

1110

1211
def suite():

0 commit comments

Comments
 (0)