File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
sdk/eventgrid/azure-eventgrid Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ def generate_sas(
33
33
) -> str :
34
34
"""Helper method to generate shared access signature given hostname, key, and expiration date.
35
35
:param str endpoint: The topic endpoint to send the events to.
36
- Similar to <YOUR-TOPIC-NAME>.<YOUR-REGION-NAME>-1.eventgrid.azure.net
36
+ Similar to <YOUR-TOPIC-NAME>.<YOUR-REGION-NAME>-1.eventgrid.azure.net
37
37
:param str shared_access_key: The shared access key to be used for generating the token
38
38
:param datetime.datetime expiration_date_utc: The expiration datetime in UTC for the signature.
39
39
:keyword str api_version: The API Version to include in the signature.
40
- If not provided, the default API version will be used.
40
+ If not provided, the default API version will be used.
41
41
:return: A shared access signature string.
42
42
:rtype: str
43
43
@@ -50,6 +50,7 @@ def generate_sas(
50
50
:language: python
51
51
:dedent: 0
52
52
:caption: Generate a shared access signature.
53
+
53
54
"""
54
55
full_endpoint = "{}?apiVersion={}" .format (
55
56
endpoint , api_version
Original file line number Diff line number Diff line change @@ -103,11 +103,12 @@ def from_json(cls, event):
103
103
"""
104
104
Returns the deserialized EventGridEvent object when a json payload is provided.
105
105
:param event: The json string that should be converted into a EventGridEvent. This can also be
106
- a storage QueueMessage, eventhub's EventData or ServiceBusMessage
106
+ a storage QueueMessage, eventhub's EventData or ServiceBusMessage
107
107
:type event: object
108
108
:rtype: EventGridEvent
109
109
:return: An EventGridEvent object.
110
110
:raises ValueError: If the provided JSON is invalid.
111
+
111
112
"""
112
113
dict_event = _get_json_content (event )
113
114
return cast (EventGridEvent , EventGridEvent .from_dict (dict_event ))
Original file line number Diff line number Diff line change 2
2
pyright = false
3
3
type_check_samples = false
4
4
verifytypes = false
5
+ strict_sphinx = true
You can’t perform that action at this time.
0 commit comments