Skip to content

Spelling Fixes #28090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/Storage/Storage/Blob/Cmdlet/CopyAzureStorageBlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ internal IStorageBlobManagement GetDestinationChannel()
{
//If destChannel exits, reuse it.
//If desContext exits, use it.
//If Channl object exists, use it.
//If Channel object exists, use it.
//Otherwise, create a new channel.
IStorageBlobManagement destChannel = default(IStorageBlobManagement);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class GetStorageAzureBlobQueryResultCommand : StorageCloudBlobCmdletBase
private const string BlobPipelineParameterSet = "BlobPipeline";

/// <summary>
/// container pipeline paremeter set name
/// container pipeline parameter set name
/// </summary>
private const string ContainerPipelineParameterSet = "ContainerPipeline";

Expand Down Expand Up @@ -180,7 +180,7 @@ internal async Task QueryAzureBlob(long taskId, IStorageBlobManagement localChan
bytesScanned = finishedBytes;
});

// preapre query Option
// prepare query Option
// Not show the Progressbar now, since the ProgressHandler can't represent the read query progress
Track2Models.BlobQueryOptions queryOption = new Track2Models.BlobQueryOptions
{
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage/Blob/Cmdlet/GetAzStorageBlobTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class GetAzStorageAzureBlobTagCommand : StorageCloudBlobCmdletBase
private const string BlobPipelineParameterSet = "BlobPipeline";

/// <summary>
/// container pipeline paremeter set name
/// container pipeline parameter set name
/// </summary>
private const string ContainerPipelineParameterSet = "ContainerPipeline";

Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage/Blob/Cmdlet/GetAzureStorageBlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ internal async Task ListBlobsByName(long taskId, IStorageBlobManagement localCha
/// <param name="taskId">Task id</param>
/// <param name="localChannel">IStorageBlobManagement channel object</param>
/// <param name="containerName">container name</param>
/// <param name="prefix">blob preifx</param>
/// <param name="prefix">blob prefix</param>
/// <param name="blobFilter"></param>
/// <param name="includeDeleted"></param>
/// <param name="includeVersion"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public int? MaxCount
[Parameter(Mandatory = false, HelpMessage = "Continuation Token.")]
public BlobContinuationToken ContinuationToken { get; set; }

[Parameter(Mandatory = false, HelpMessage = "As the blobs get by tag don't contain blob proeprties, specify tis parameter to get blob properties with an additional request on each blob.")]
[Parameter(Mandatory = false, HelpMessage = "As the blobs get by tag don't contain blob properties, specify tis parameter to get blob properties with an additional request on each blob.")]
Copy link
Preview

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the HelpMessage, 'tis' should be 'this' to match standard English usage.

Suggested change
[Parameter(Mandatory = false, HelpMessage = "As the blobs get by tag don't contain blob properties, specify tis parameter to get blob properties with an additional request on each blob.")]
[Parameter(Mandatory = false, HelpMessage = "As the blobs get by tag don't contain blob properties, specify this parameter to get blob properties with an additional request on each blob.")]

Copilot uses AI. Check for mistakes.

public SwitchParameter GetBlobProperty { get; set; }

[Parameter(Mandatory = false, HelpMessage = "Container name, specify this parameter to only return all blobs whose tags match a search expression in the container.")]
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Storage/Blob/Cmdlet/GetAzureStorageBlobContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class GetAzureStorageBlobContentCommand : StorageDataMovementCmdletBase
private const string ContainerParameterSet = "ContainerPipeline";

/// <summary>
/// downlaod from uri parameter set
/// download from uri parameter set
/// </summary>
private const string UriParameterSet = "UriPipeline";

Expand Down Expand Up @@ -444,7 +444,7 @@ internal string GetFullReceiveFilePath(string fileName, string blobName, DateTim
throw new ArgumentException(String.Format(Resources.InvalidFileName, fileName));
}

//there is no need to check the read/write permission on the specified file path, the datamovement libraray will do that
//there is no need to check the read/write permission on the specified file path, the data movement library will do that

return filePath;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GetAzureStorageBlobCopyState : StorageCloudBlobCmdletBase
private const string BlobPipelineParameterSet = "BlobPipeline";

/// <summary>
/// container pipeline paremeter set name
/// container pipeline parameter set name
/// </summary>
private const string ContainerPipelineParmeterSet = "ContainerPipeline";

Expand Down Expand Up @@ -83,7 +83,7 @@ public SwitchParameter WaitForComplete
public override string TagCondition { get; set; }

/// <summary>
/// CloudBlob objects which need to mointor until copy complete
/// CloudBlob objects which need to monitor until copy complete
/// </summary>
private ConcurrentQueue<Tuple<long, CloudBlob>> jobList = new ConcurrentQueue<Tuple<long, CloudBlob>>();
private ConcurrentDictionary<long, bool> TaskStatus = new ConcurrentDictionary<long, bool>();
Expand Down Expand Up @@ -126,7 +126,7 @@ public override void ExecuteCmdlet()
case BlobPipelineParameterSet:
if (CloudBlob is InvalidCloudBlob)
{
throw new InvalidOperationException("This cmdlet is not supportted on a blob version.");
throw new InvalidOperationException("This cmdlet is not supported on a blob version.");
}
blob = GetCloudBlobObject(CloudBlob);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
public class NewAzureStorageBlobSasTokenCommand : StorageCloudBlobCmdletBase
{
/// <summary>
/// container pipeline paremeter set name with permission
/// container pipeline parameter set name with permission
/// </summary>
private const string BlobNamePipelineParmeterSetWithPermission = "BlobNameWithPermission";

/// <summary>
/// container pipeline paremeter set name with policy
/// container pipeline parameter set name with policy
/// </summary>
private const string BlobNamePipelineParmeterSetWithPolicy = "BlobNameWithPolicy";

Expand Down Expand Up @@ -202,7 +202,7 @@ public override void ExecuteCmdlet()
blobClient = AzureStorageBlob.GetTrack2BlobClient(blob, Channel.StorageContext, this.ClientOptions);
}

// Get contaienr saved policy if any
// Get container saved policy if any
BlobSignedIdentifier identifier = null;
if (ParameterSetName == BlobNamePipelineParmeterSetWithPolicy || ParameterSetName == BlobPipelineParameterSetWithPolicy)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class NewAzureStorageContainerSasTokenCommand : StorageCloudBlobCmdletBas
private const string SasPermissionParameterSet = "SasPermission";

/// <summary>
/// Sas policy paremeter set name
/// Sas policy parameter set name
/// </summary>
private const string SasPolicyParmeterSet = "SasPolicy";

Expand Down Expand Up @@ -143,7 +143,7 @@ public override void ExecuteCmdlet()
CloudBlobContainer container_Track1 = Channel.GetContainerReference(Name);
BlobContainerClient container = AzureStorageContainer.GetTrack2BlobContainerClient(container_Track1, Channel.StorageContext, ClientOptions);

// Get contaienr saved policy if any
// Get container saved policy if any
Track2Models.BlobSignedIdentifier identifier = null;
if (ParameterSetName == SasPolicyParmeterSet)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Storage/Blob/Cmdlet/RemoveAzureStorageBlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class RemoveStorageAzureBlobCommand : StorageCloudBlobCmdletBase
private const string BlobPipelineParameterSet = "BlobPipeline";

/// <summary>
/// container pipeline paremeter set name
/// container pipeline parameter set name
/// </summary>
private const string ContainerPipelineParameterSet = "ContainerPipeline";

Expand Down Expand Up @@ -384,7 +384,7 @@ internal async Task RemoveAzureBlob(long taskId, IStorageBlobManagement localCha
BlobContainerClient track2container = AzureStorageContainer.GetTrack2BlobContainerClient(container, localChannel.StorageContext, ClientOptions);
BlobBaseClient blobClient = Util.GetTrack2BlobClient(track2container, blobName, localChannel.StorageContext, this.VersionId, null,
this.SnapshotTime is null? null : this.SnapshotTime.Value.ToUniversalTime().ToString("o").Replace("+00:00", "Z"), ClientOptions);
// Skip check blob existance, as Server will report error is necessary
// Skip check blob existence, as Server will report error is necessary

await RemoveAzureBlobTrack2(taskId, localChannel, blobClient, true).ConfigureAwait(false);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage/Blob/Cmdlet/SetAzStorageBlobTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class SetAzStorageAzureBlobTagCommand : StorageCloudBlobCmdletBase
private const string BlobPipelineParameterSet = "BlobPipeline";

/// <summary>
/// container pipeline paremeter set name
/// container pipeline parameter set name
/// </summary>
private const string ContainerPipelineParameterSet = "ContainerPipeline";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ public override void ExecuteCmdlet()
{
if (CloudBlob is InvalidCloudBlob)
{
throw new InvalidOperationException("This cmdlet is not supportted on a blob version.");
throw new InvalidOperationException("This cmdlet is not supported on a blob version.");
}
SetAzureBlobContent(ResolvedFileName, CloudBlob.Name);
containerName = CloudBlob.Container.Name;
Expand Down
22 changes: 11 additions & 11 deletions src/Storage/Storage/Blob/Cmdlet/StartAzureStorageBlobCopy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class StartAzureStorageBlobCopy : StorageDataMovementCmdletBase, IModuleA
private const string BlobToBlobParameterSet = "BlobInstanceToBlobInstance";

/// <summary>
/// Container pipeline paremeter set name
/// Container pipeline parameter set name
/// </summary>
private const string ContainerParameterSet = "ContainerInstance";

Expand Down Expand Up @@ -288,7 +288,7 @@ public Hashtable Tag
[Parameter(HelpMessage = "Destination Storage context object", ValueFromPipelineByPropertyName = true, Mandatory = false)]
public IStorageContext DestContext { get; set; }

[Parameter(HelpMessage = "Optional Query statement to apply to the Tags of the Destination Blob. The blob request will fail when the destiantion blob tags not match the given tag conditions.", Mandatory = false)]
[Parameter(HelpMessage = "Optional Query statement to apply to the Tags of the Destination Blob. The blob request will fail when the destination blob tags not match the given tag conditions.", Mandatory = false)]
[ValidateNotNullOrEmpty]
public virtual string DestTagCondition { get; set; }

Expand Down Expand Up @@ -352,7 +352,7 @@ internal IStorageBlobManagement GetDestinationChannel()
{
//If destChannel exits, reuse it.
//If desContext exits, use it.
//If Channl object exists, use it.
//If Channel object exists, use it.
//Otherwise, create a new channel.
IStorageBlobManagement destChannel = default(IStorageBlobManagement);

Expand Down Expand Up @@ -521,7 +521,7 @@ private void StartCopyBlob(IStorageBlobManagement destChannel, BlobBaseClient sr
/// </summary>
/// <param name="destChannel">IStorageBlobManagement channel object</param>
/// <param name="srcCloudBlob">Source CloudBlob object</param>
/// <param name="destContainer">Destinaion container name</param>
/// <param name="destContainer">Destination container name</param>
/// <param name="destBlobName">Destination blob name</param>
/// <returns>Destination CloudBlob object</returns>
private void StartCopyBlob(IStorageBlobManagement destChannel, CloudBlob srcCloudBlob, string destContainer, string destBlobName)
Expand Down Expand Up @@ -553,7 +553,7 @@ private void StartCopyBlob(IStorageBlobManagement destChannel, BlobBaseClient sr
/// </summary>
/// <param name="destChannel">IStorageBlobManagement channel object</param>
/// <param name="srcUri">Source uri</param>
/// <param name="destContainer">Destinaion container name</param>
/// <param name="destContainer">Destination container name</param>
/// <param name="destBlobName">Destination blob name</param>
/// <param name="context">a cloud blob object</param>
/// <returns>Destination CloudBlob object</returns>
Expand Down Expand Up @@ -605,7 +605,7 @@ private void StartCopyBlob(IStorageBlobManagement destChannel, string srcUri, st
/// <param name="destChannel"></param>
/// <param name="srcContainerName">Source container name</param>
/// <param name="srcBlobName">Source blob name</param>
/// <param name="destContainerName">Destinaion container name</param>
/// <param name="destContainerName">Destination container name</param>
/// <param name="destBlobName">Destination blob name</param>
/// <returns>Destination CloudBlob object</returns>
private void StartCopyBlob(IStorageBlobManagement SrcChannel, IStorageBlobManagement destChannel, string srcContainerName, string srcBlobName, string destContainerName, string destBlobName)
Expand Down Expand Up @@ -679,7 +679,7 @@ private async Task StartCopyFromBlob(long taskId, IStorageBlobManagement destCha
&& Channel.StorageContext.StorageAccount.Credentials != null
&& Channel.StorageContext.StorageAccount.Credentials.IsToken)
{
// if inside same account, source blob can be anonumous
// if inside same account, source blob can be anonymous
srcBlobUriWithCredentail = srcBlob.SnapshotQualifiedUri;
}
else
Expand Down Expand Up @@ -716,7 +716,7 @@ private async Task StartCopyFromBlob(long taskId, IStorageBlobManagement destCha
&& Channel.StorageContext.StorageAccount.Credentials != null
&& Channel.StorageContext.StorageAccount.Credentials.IsToken)
{
// if inside same account, source blob can be anonumous
// if inside same account, source blob can be anonymous
srcBlobUriWithCredentail = srcBlob.Uri;
}
else
Expand Down Expand Up @@ -774,7 +774,7 @@ private async Task StartCopyFromUri(long taskId, IStorageBlobManagement destChan
{
string copyId;

//Clean the Metadata of the destination Blob object, or the source metadata won't overwirte the dest blob metadata. See https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
//Clean the Metadata of the destination Blob object, or the source metadata won't overwrite the dest blob metadata. See https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob
destBlob.Metadata.Clear();

// The Blob Type and Blob Tier must match, since already checked they are match at the begin of ExecuteCmdlet().
Expand Down Expand Up @@ -891,7 +891,7 @@ private BlobBaseClient GetDestBlob(IStorageBlobManagement destChannel, string de
}

/// <summary>
/// Start copy using transfer mangager by source CloudBlob object
/// Start copy using transfer manager by source CloudBlob object
/// </summary>
/// <param name="taskId">Task id</param>
/// <param name="destChannel">IStorageBlobManagement channel object</param>
Expand All @@ -917,7 +917,7 @@ private async Task StartCopyAsync(long taskId, IStorageBlobManagement destChanne
}

/// <summary>
/// Start copy using transfer mangager by source uri
/// Start copy using transfer manager by source uri
/// </summary>
/// <param name="taskId">Task id</param>
/// <param name="destChannel">IStorageBlobManagement channel object</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class StartAzureStorageBlobIncrementalCopy : StorageCloudBlobCmdletBase
private const string BlobToBlobParameterSet = "BlobInstanceToBlobInstance";

/// <summary>
/// Container pipeline paremeter set name
/// Container pipeline parameter set name
/// </summary>
private const string ContainerParameterSet = "ContainerInstance";

Expand Down Expand Up @@ -171,7 +171,7 @@ internal IStorageBlobManagement GetDestinationChannel()
{
//If destChannel exits, reuse it.
//If desContext exits, use it.
//If Channl object exists, use it.
//If Channel object exists, use it.
//Otherwise, create a new channel.
IStorageBlobManagement destChannel = default(IStorageBlobManagement);

Expand Down Expand Up @@ -262,7 +262,7 @@ private void StartCopyBlob(IStorageBlobManagement destChannel, CloudPageBlob src
/// </summary>
/// <param name="destChannel"></param>
/// <param name="srcCloudBlob">Source CloudBlob object</param>
/// <param name="destContainer">Destinaion container name</param>
/// <param name="destContainer">Destination container name</param>
/// <param name="destBlobName">Destination blob name</param>
/// <returns>Destination CloudBlob object</returns>
private void StartCopyBlob(IStorageBlobManagement destChannel, CloudPageBlob srcCloudBlob, string destContainer, string destBlobName)
Expand All @@ -282,7 +282,7 @@ private void StartCopyBlob(IStorageBlobManagement destChannel, CloudPageBlob src
/// </summary>
/// <param name="destChannel"></param>
/// <param name="srcUri">Source uri</param>
/// <param name="destContainer">Destinaion container name</param>
/// <param name="destContainer">Destination container name</param>
/// <param name="destBlobName">Destination blob name</param>
/// <param name="context">a cloud blob object</param>
/// <returns>Destination CloudBlob object</returns>
Expand Down Expand Up @@ -335,7 +335,7 @@ private void StartCopyBlob(IStorageBlobManagement destChannel, string srcUri, st
/// <param name="srcContainerName">Source container name</param>
/// <param name="srcBlobName">Source blob name</param>
/// <param name="SrcBlobSnapshotTime"></param>
/// <param name="destContainerName">Destinaion container name</param>
/// <param name="destContainerName">Destination container name</param>
/// <param name="destBlobName">Destination blob name</param>
/// <returns>Destination CloudBlob object</returns>
private void StartCopyBlob(IStorageBlobManagement SrcChannel, IStorageBlobManagement destChannel, string srcContainerName, string srcBlobName, DateTimeOffset? SrcBlobSnapshotTime, string destContainerName, string destBlobName)
Expand Down Expand Up @@ -398,7 +398,7 @@ private CloudPageBlob GetDestBlob(IStorageBlobManagement destChannel, string des
}

/// <summary>
/// Start copy using transfer mangager by source CloudBlob object
/// Start copy using transfer manager by source CloudBlob object
/// </summary>
/// <param name="taskId">Task id</param>
/// <param name="destChannel">IStorageBlobManagement channel object</param>
Expand All @@ -415,7 +415,7 @@ private async Task StartCopyAsync(long taskId, IStorageBlobManagement destChanne
}

/// <summary>
/// Start copy using transfer mangager by source uri
/// Start copy using transfer manager by source uri
/// </summary>
/// <param name="taskId">Task id</param>
/// <param name="destChannel">IStorageBlobManagement channel object</param>
Expand Down
Loading