fix typos in storage SDK (#5208)

This commit is contained in:
JinmingHu 2023-11-29 12:39:22 +08:00 committed by GitHub
parent ada3915d6f
commit 71cee91d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 9 deletions

16
.vscode/cspell.json vendored
View File

@ -62,6 +62,7 @@
"AMQP",
"AMQPS",
"AMQPVALUE",
"avro",
"antkmsft",
"azcore",
"azsdk",
@ -129,6 +130,7 @@
"LPBYTE",
"LPSTR",
"LPWSTR",
"mbps",
"MHSM",
"mmdc",
"moxygen",
@ -190,6 +192,7 @@
"uaenorth",
"uamqp",
"uksouth",
"Uncomitted",
"undeleted",
"unscoped",
"unskipped",
@ -201,6 +204,7 @@
"Verdana",
"Viet",
"Viktor",
"versionid",
"vusg",
"Wdocumentation",
"Werror",
@ -317,12 +321,24 @@
"pfile"
]
},
{
"filename": "**/sdk/storage/faq.md",
"words": [
"dont"
]
},
{
"filename": "**/sdk/storage/azure-storage-queues/src/rest_client.cpp",
"words": [
"numofmessages"
]
},
{
"filename": "**/sdk/storage/azure-storage-queues/swagger/README.md",
"words": [
"messageid"
]
},
{
"filename": "**/sdk/storage/azure-storage-files-shares/**/*",
"words": [

View File

@ -1144,7 +1144,7 @@ namespace Azure { namespace Storage { namespace Blobs {
* @brief Creates CSV text configuration.
*
* @param recordSeparator Record separator.
* @param columnSeparator Column sepeartor.
* @param columnSeparator Column separator.
* @param quotationCharacter Field quote.
* @param escapeCharacter Escape character.
* @param hasHeaders If CSV file has headers.
@ -1191,7 +1191,7 @@ namespace Azure { namespace Storage { namespace Blobs {
* @brief Creates CSV text configuration.
*
* @param recordSeparator Record separator.
* @param columnSeparator Column sepeartor.
* @param columnSeparator Column separator.
* @param quotationCharacter Field quote.
* @param escapeCharacter Escape character.
* @param hasHeaders If CSV file has headers.

View File

@ -633,7 +633,7 @@ namespace Azure { namespace Storage { namespace Blobs {
auto response = _detail::BlobClient::Query(
*m_pipeline, m_blobUrl, protocolLayerOptions, _internal::WithReplicaStatus(context));
const auto stautsCode = response.RawResponse->GetStatusCode();
const auto statusCode = response.RawResponse->GetStatusCode();
const auto reasonPhrase = response.RawResponse->GetReasonPhrase();
const auto requestId
= response.RawResponse->GetHeaders().count(_internal::HttpHeaderRequestId) != 0
@ -646,11 +646,11 @@ namespace Azure { namespace Storage { namespace Blobs {
: std::string();
auto defaultErrorHandler
= [stautsCode, reasonPhrase, requestId, clientRequestId](BlobQueryError e) {
= [statusCode, reasonPhrase, requestId, clientRequestId](BlobQueryError e) {
if (e.IsFatal)
{
StorageException exception("Fatal " + e.Name + " at " + std::to_string(e.Position));
exception.StatusCode = stautsCode;
exception.StatusCode = statusCode;
exception.ReasonPhrase = reasonPhrase;
exception.RequestId = requestId;
exception.ClientRequestId = clientRequestId;

View File

@ -1786,7 +1786,7 @@ directive:
$.ContainerProperties.properties["DefaultEncryptionScope"].description = "The default encryption scope for the container.";
$.ContainerProperties.properties["DenyEncryptionScopeOverride"].description = "Indicates whether the container's default encryption scope can be overriden.";
$.ContainerProperties.properties["DeletedTime"].description = "Data and time at which this container was deleted. Only valid when this container was deleted.";
$.ContainerProperties.properties["RemainingRetentionDays"].description = "Remaining days before this container will be permanantely deleted. Only valid when this container was deleted.";
$.ContainerProperties.properties["RemainingRetentionDays"].description = "Remaining days before this container will be permanently deleted. Only valid when this container was deleted.";
$.FilterBlobItem.properties["Name"].description = "Blob name.";
$.FilterBlobItem.properties["ContainerName"].description = "Blob container name.";
$.BlobItemInternal.properties["Name"].description = "Blob name.";
@ -1810,7 +1810,7 @@ directive:
$.BlobPropertiesInternal.properties["IncrementalCopy"].description = "Included if the blob is incremental copy blob.";
$.BlobPropertiesInternal.properties["DestinationSnapshot"].description = "Included if the blob is incremental copy blob or incremental copy snapshot, if x-ms-copy-status is success. Snapshot time of the last successful incremental copy snapshot for this blob.";
$.BlobPropertiesInternal.properties["DeletedTime"].description = "Data and time at which this blob was deleted. Only valid when this blob was deleted.";
$.BlobPropertiesInternal.properties["RemainingRetentionDays"].description = "Remaining days before this blob will be permanantely deleted. Only valid when this blob was deleted.";
$.BlobPropertiesInternal.properties["RemainingRetentionDays"].description = "Remaining days before this blob will be permanently deleted. Only valid when this blob was deleted.";
$.BlobPropertiesInternal.properties["AccessTierInferred"].description = "True if the access tier is not explicitly set on the blob.";
$.BlobPropertiesInternal.properties["CustomerProvidedKeySha256"].description = "SHA-256 hash of the encryption key.";
$.BlobPropertiesInternal.properties["AccessTierChangeTime"].description = "The time the tier was changed on the object. This is only returned if the tier on the block blob was ever set.";

View File

@ -27,7 +27,7 @@ namespace Azure { namespace Storage { namespace Blobs { namespace Test {
*/
class UploadBlob : public Azure::Storage::Blobs::Test::BlobsTest {
private:
// C++ can upload and download from contiguos memory or file only
// C++ can upload and download from continuous memory or file only
std::vector<uint8_t> m_uploadBuffer;
public:

View File

@ -318,6 +318,7 @@ namespace Azure { namespace Storage { namespace Test {
// Set Acls
auto rootDirClient = m_fileSystemClient->GetDirectoryClient("");
/* cspell:disable-next-line */
rootDirClient.SetPermissions("rwxrwxrwx");
auto aclResult = rootDirClient.GetAccessControlList();
auto acls = aclResult.Value.Acls;

View File

@ -614,7 +614,7 @@ directive:
$["x-ms-marker"]["x-nullable"] = true;
```
### CreateDirecotry
### CreateDirectory
```yaml
directive: