Skip to content

Commit

Permalink
[storage/azure-storage-file-share] Fixed typos (Azure#25923)
Browse files Browse the repository at this point in the history
  • Loading branch information
KdHyeon0661 authored Sep 7, 2022
1 parent 1b778a9 commit 0f8cb30
Show file tree
Hide file tree
Showing 21 changed files with 70 additions and 24 deletions.
46 changes: 44 additions & 2 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"sdk/storage/azure-storage-queue/**",
"sdk/synapse/azure-synapse-managedprivateendpoints/**",
"sdk/storage/azure-storage-file-datalake/**",
"sdk/storage/azure-storage-file-share/**",
"sdk/synapse/azure-synapse/**",
"sdk/videoanalyzer/azure-media-videoanalyzer-edge/**",
"sdk/synapse/azure-synapse-artifacts/**",
Expand Down Expand Up @@ -223,6 +222,7 @@
"LPCWSTR",
"Lucene",
"mbps",
"mibps",
"mgmt",
"mhsm",
"mipsle",
Expand Down Expand Up @@ -350,7 +350,10 @@
"ispkg",
"openpyxl",
"deps",
"prnumber"
"prnumber",
"yarl",
"SDDL",
"dacl"
],
"overrides": [
{
Expand Down Expand Up @@ -670,6 +673,45 @@
"pysdkci"
]
},
{
"filename": "sdk/storage/azure-storage-file-share/**",
"words": [
"XSMB",
"rcwd",
"rcwdl",
"prevsharesnapshot",
"mydirectory",
"myfile",
"mydir",
"amet",
"consectetur",
"elit",
"adipiscing",
"pyacrstoragestorname",
"pyrmtstoragestorname",
"vhds",
"abcdefghijklmnop",
"filetoupdate",
"mydomain",
"vhds",
"utdir",
"myaccount",
"testid",
"filea",
"fileb"
]
},
{
"filename": "sdk/storage/**/_shared/**",
"words": [
"mday",
"ISREG",
"ISLNK",
"struct",
"ints",
"nbytes"
]
},
{
"filename": "sdk/mixedreality/azure-mixedreality-authentication/**",
"words": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def __init__(self, name, namespace=None):
# Validate the fullname:
if _RE_FULL_NAME.match(self._fullname) is None:
raise SchemaParseException(
'Invalid schema name %r infered from name %r and namespace %r.'
'Invalid schema name %r inferred from name %r and namespace %r.'
% (self._fullname, self._name, self._namespace))

def __eq__(self, other):
Expand Down Expand Up @@ -439,9 +439,9 @@ def name_ref(self, names):
"""Reports this schema name relative to the specified name tracker.
Args:
names: Avro name tracker to relativise this schema name against.
names: Avro name tracker to relativize this schema name against.
Returns:
This schema name, relativised against the specified name tracker.
This schema name, relativized against the specified name tracker.
"""
if self.namespace == names.default_namespace:
return self.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def is_retry(response, mode): # pylint: disable=too-many-return-statements
"""
status = response.http_response.status_code
if 300 <= status < 500:
# An exception occured, but in most cases it was expected. Examples could
# An exception occurred, but in most cases it was expected. Examples could
# include a 309 Conflict or 412 Precondition Failed.
if status == 404 and mode == LocationMode.SECONDARY:
# Response code 404 should be retried if secondary was used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def validate_and_format_range_headers(
range_validation = None
if check_content_md5:
if start_range is None or end_range is None:
raise ValueError("Both start and end range requied for MD5 content validation.")
raise ValueError("Both start and end range required for MD5 content validation.")
if end_range - start_range > 4 * 1024 * 1024:
raise ValueError("Getting content MD5 for a range greater than 4MB is not supported.")
range_validation = 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from .constants import X_MS_VERSION
from . import sign_string, url_quote


# cspell:ignoreRegExp rsc.
# cspell:ignoreRegExp s..?id
class QueryStringConstants(object):
SIGNED_SIGNATURE = 'sig'
SIGNED_PERMISSION = 'sp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def tell(self, *args, **kwargs):
raise UnsupportedOperation("Data generator does not support tell.")

def seek(self, *args, **kwargs):
raise UnsupportedOperation("Data generator is unseekable.")
raise UnsupportedOperation("Data generator is not seekable.")

def read(self, size):
data = self.leftover
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def is_retry(response, mode): # pylint: disable=too-many-return-statements
"""
status = response.http_response.status_code
if 300 <= status < 500:
# An exception occured, but in most cases it was expected. Examples could
# An exception occurred, but in most cases it was expected. Examples could
# include a 309 Conflict or 412 Precondition Failed.
if status == 404 and mode == LocationMode.SECONDARY:
# Response code 404 should be retried if secondary was used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def validate_and_format_range_headers(
range_validation = None
if check_content_md5:
if start_range is None or end_range is None:
raise ValueError("Both start and end range requied for MD5 content validation.")
raise ValueError("Both start and end range required for MD5 content validation.")
if end_range - start_range > 4 * 1024 * 1024:
raise ValueError("Getting content MD5 for a range greater than 4MB is not supported.")
range_validation = 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from .constants import X_MS_VERSION
from . import sign_string, url_quote


# cspell:ignoreRegExp rsc.
# cspell:ignoreRegExp s..?id
class QueryStringConstants(object):
SIGNED_SIGNATURE = 'sig'
SIGNED_PERMISSION = 'sp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def tell(self, *args, **kwargs):
raise UnsupportedOperation("Data generator does not support tell.")

def seek(self, *args, **kwargs):
raise UnsupportedOperation("Data generator is unseekable.")
raise UnsupportedOperation("Data generator is not seekable.")

def read(self, size):
data = self.leftover
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-file-share/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ the following APIs:
- `path` (str): The full path of the file.
- `share` (str): The share the file will be downloaded from.
- `properties` (`FileProperties`): The properties of the file.
- `size` (int): The size of the download. Either the total file size, or the length of a subsection if sepcified. Previously called `download_size`.
- `size` (int): The size of the download. Either the total file size, or the length of a subsection if specified. Previously called `download_size`.
- `StorageStreamDownloader` now has new functions:
- `readall()`: Reads the complete download stream, returning bytes. This replaces the functions `content_as_bytes` and `content_as_text` which have been deprecated.
- `readinto(stream)`: Download the complete stream into the supplied writable stream, returning the number of bytes written. This replaces the function `download_to_stream` which has been deprecated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class StorageStreamDownloader(object): # pylint: disable=too-many-instance-attr
The properties of the file being downloaded. If only a range of the data is being
downloaded, this will be reflected in the properties.
:ivar int size:
The size of the total data in the stream. This will be the byte range if speficied,
The size of the total data in the stream. This will be the byte range if specified,
otherwise the total size of the file.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def is_retry(response, mode): # pylint: disable=too-many-return-statements
"""
status = response.http_response.status_code
if 300 <= status < 500:
# An exception occured, but in most cases it was expected. Examples could
# An exception occurred, but in most cases it was expected. Examples could
# include a 309 Conflict or 412 Precondition Failed.
if status == 404 and mode == LocationMode.SECONDARY:
# Response code 404 should be retried if secondary was used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def validate_and_format_range_headers(
range_validation = None
if check_content_md5:
if start_range is None or end_range is None:
raise ValueError("Both start and end range requied for MD5 content validation.")
raise ValueError("Both start and end range required for MD5 content validation.")
if end_range - start_range > 4 * 1024 * 1024:
raise ValueError("Getting content MD5 for a range greater than 4MB is not supported.")
range_validation = 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from .constants import X_MS_VERSION
from . import sign_string, url_quote


# cspell:ignoreRegExp rsc.
# cspell:ignoreRegExp s..?id
class QueryStringConstants(object):
SIGNED_SIGNATURE = 'sig'
SIGNED_PERMISSION = 'sp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def tell(self, *args, **kwargs):
raise UnsupportedOperation("Data generator does not support tell.")

def seek(self, *args, **kwargs):
raise UnsupportedOperation("Data generator is unseekable.")
raise UnsupportedOperation("Data generator is not seekable.")

def read(self, size):
data = self.leftover
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class StorageStreamDownloader(object): # pylint: disable=too-many-instance-attr
The properties of the file being downloaded. If only a range of the data is being
downloaded, this will be reflected in the properties.
:ivar int size:
The size of the total data in the stream. This will be the byte range if speficied,
The size of the total data in the stream. This will be the byte range if specified,
otherwise the total size of the file.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def is_retry(response, mode): # pylint: disable=too-many-return-statements
"""
status = response.http_response.status_code
if 300 <= status < 500:
# An exception occured, but in most cases it was expected. Examples could
# An exception occurred, but in most cases it was expected. Examples could
# include a 309 Conflict or 412 Precondition Failed.
if status == 404 and mode == LocationMode.SECONDARY:
# Response code 404 should be retried if secondary was used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def validate_and_format_range_headers(
range_validation = None
if check_content_md5:
if start_range is None or end_range is None:
raise ValueError("Both start and end range requied for MD5 content validation.")
raise ValueError("Both start and end range required for MD5 content validation.")
if end_range - start_range > 4 * 1024 * 1024:
raise ValueError("Getting content MD5 for a range greater than 4MB is not supported.")
range_validation = 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from .constants import X_MS_VERSION
from . import sign_string, url_quote


# cspell:ignoreRegExp rsc.
# cspell:ignoreRegExp s..?id
class QueryStringConstants(object):
SIGNED_SIGNATURE = 'sig'
SIGNED_PERMISSION = 'sp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def tell(self, *args, **kwargs):
raise UnsupportedOperation("Data generator does not support tell.")

def seek(self, *args, **kwargs):
raise UnsupportedOperation("Data generator is unseekable.")
raise UnsupportedOperation("Data generator is not seekable.")

def read(self, size):
data = self.leftover
Expand Down

0 comments on commit 0f8cb30

Please sign in to comment.