Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix docstring for datetime parsing in Queue
  • Loading branch information
vincenttran-msft committed Mar 26, 2024
commit b2cdae0c84d2064664145999d1c4da76070415b5
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,8 @@ class AccessPolicy(GenAccessPolicy):
:param Optional[Union["datetime", str]] start:
The time at which the shared access signature becomes valid. If
omitted, start time for this call is assumed to be the time when the
storage service receives the request. Azure will always convert values
to UTC. If a date is passed in without timezone info, it is assumed to
be UTC.
storage service receives the request. Azure will always interpret all
dates specified to be UTC.
"""

permission: Optional[Union[QueueSasPermissions, str]] #type: ignore [assignment]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ def generate_account(self, services, resource_types, permission, expiry, start=N
:param start:
The time at which the shared access signature becomes valid. If
omitted, start time for this call is assumed to be the time when the
storage service receives the request. Azure will always convert values
to UTC. If a date is passed in without timezone info, it is assumed to
be UTC.
storage service receives the request. Azure will always interpret all
dates specified to be UTC.
:type start: datetime or str
:param str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ def generate_queue(
:param start:
The time at which the shared access signature becomes valid. If
omitted, start time for this call is assumed to be the time when the
storage service receives the request. Azure will always convert values
to UTC. If a date is passed in without timezone info, it is assumed to
be UTC.
storage service receives the request. Azure will always interpret all
dates specified to be UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
Expand Down Expand Up @@ -161,15 +160,13 @@ def generate_account_sas(
:type permission: ~azure.storage.queue.AccountSasPermissions or str
:param expiry:
The time at which the shared access signature becomes invalid.
Azure will always convert values to UTC. If a date is passed in
without timezone info, it is assumed to be UTC.
Azure will always interpret all dates specified to be UTC.
:type expiry: ~datetime.datetime or str
:param start:
The time at which the shared access signature becomes valid. If
omitted, start time for this call is assumed to be the time when the
storage service receives the request. Azure will always convert values
to UTC. If a date is passed in without timezone info, it is assumed to
be UTC.
storage service receives the request. Azure will always interpret all
dates specified to be UTC.
:type start: ~datetime.datetime or str
:param str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.
Expand Down Expand Up @@ -236,9 +233,8 @@ def generate_queue_sas(
:param start:
The time at which the shared access signature becomes valid. If
omitted, start time for this call is assumed to be the time when the
storage service receives the request. Azure will always convert values
to UTC. If a date is passed in without timezone info, it is assumed to
be UTC.
storage service receives the request. Azure will always interpret all
dates specified to be UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
Expand Down