зеркало из
1
0
Форкнуть 0

[Storage] Fix `datetime` parsing docstring (#34926)

* Adjust docstring
This commit is contained in:
vincenttran-msft 2024-03-26 14:29:55 -07:00 коммит произвёл GitHub
Родитель b07db7218b
Коммит 157226ef97
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
12 изменённых файлов: 54 добавлений и 83 удалений

Просмотреть файл

@ -792,9 +792,8 @@ class AccessPolicy(GenAccessPolicy):
: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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
"""
def __init__(self, permission=None, expiry=None, start=None):

Просмотреть файл

@ -136,9 +136,8 @@ class SharedAccessSignature(object):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.

Просмотреть файл

@ -91,9 +91,8 @@ class BlobSharedAccessSignature(SharedAccessSignature):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -178,9 +177,8 @@ class BlobSharedAccessSignature(SharedAccessSignature):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -337,15 +335,13 @@ def generate_account_sas(
:type permission: str or ~azure.storage.blob.AccountSasPermissions
: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.
The provided datetime will always be interpreted as 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. The provided datetime will always
be interpreted as 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.
@ -433,9 +429,8 @@ def generate_container_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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -560,9 +555,8 @@ def generate_blob_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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a

Просмотреть файл

@ -656,9 +656,8 @@ class AccessPolicy(BlobAccessPolicy):
:keyword 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. The provided datetime will always
be interpreted as UTC.
:paramtype start: ~datetime.datetime or str
"""

Просмотреть файл

@ -136,9 +136,8 @@ class SharedAccessSignature(object):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.

Просмотреть файл

@ -54,15 +54,13 @@ def generate_account_sas(
:type permission: str or ~azure.storage.filedatalake.AccountSasPermissions
: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.
The provided datetime will always be interpreted as UTC.
:type expiry: ~datetime.datetime or str
:keyword 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. The provided datetime will always
be interpreted as UTC.
:paramtype start: ~datetime.datetime or str
:keyword str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.
@ -137,9 +135,8 @@ def generate_file_system_sas(
:keyword 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. The provided datetime will always
be interpreted as UTC.
:paramtype start: datetime or str
:keyword str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -245,9 +242,8 @@ def generate_directory_sas(
:keyword 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. The provided datetime will always
be interpreted as UTC.
:paramtype start: ~datetime.datetime or str
:keyword str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -360,9 +356,8 @@ def generate_file_sas(
:keyword 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. The provided datetime will always
be interpreted as UTC.
:paramtype start: ~datetime.datetime or str
:keyword str policy_id:
A unique value up to 64 characters in length that correlates to a

Просмотреть файл

@ -220,9 +220,8 @@ class AccessPolicy(GenAccessPolicy):
: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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
"""
def __init__(self, permission=None, expiry=None, start=None):

Просмотреть файл

@ -136,9 +136,8 @@ class SharedAccessSignature(object):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.

Просмотреть файл

@ -76,9 +76,8 @@ class FileSharedAccessSignature(SharedAccessSignature):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -157,9 +156,8 @@ class FileSharedAccessSignature(SharedAccessSignature):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -269,15 +267,13 @@ def generate_account_sas(
user is restricted to operations allowed by the permissions.
: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.
The provided datetime will always be interpreted as 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. The provided datetime will always
be interpreted as 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.
@ -355,9 +351,8 @@ def generate_share_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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -452,9 +447,8 @@ def generate_file_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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a

Просмотреть файл

@ -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. The provided datetime will always
be interpreted as UTC.
"""
permission: Optional[Union[QueueSasPermissions, str]] #type: ignore [assignment]

Просмотреть файл

@ -136,9 +136,8 @@ class SharedAccessSignature(object):
: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. The provided datetime will always
be interpreted as UTC.
:type start: datetime or str
:param str ip:
Specifies an IP address or a range of IP addresses from which to accept requests.

Просмотреть файл

@ -74,9 +74,8 @@ class QueueSharedAccessSignature(SharedAccessSignature):
: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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a
@ -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.
The provided datetime will always be interpreted as 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. The provided datetime will always
be interpreted as 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.
@ -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. The provided datetime will always
be interpreted as UTC.
:type start: ~datetime.datetime or str
:param str policy_id:
A unique value up to 64 characters in length that correlates to a