Skip to content

[Storage] Rename File#25025

Merged
seanmcc-msft merged 23 commits intoAzure:feature/storage/stg81basefrom
seanmcc-msft:feature/storage/fileRename
Dec 1, 2021
Merged

[Storage] Rename File#25025
seanmcc-msft merged 23 commits intoAzure:feature/storage/stg81basefrom
seanmcc-msft:feature/storage/fileRename

Conversation

@seanmcc-msft
Copy link
Copy Markdown
Member

No description provided.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Oct 29, 2021
Comment thread sdk/storage/Azure.Storage.Files.Shares/src/autorest.md Outdated
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2021_04_10)]
[TestCase(true)]
[TestCase(false)]
public async Task RenameAsync_ReplaceIfExists(bool replaceIfExists)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note that apparently it is legal to overwrite a file with a directory, but not a directory with another directory.

/// <summary>
/// Optional parameters for renaming a File or Directory.
/// </summary>
public class ShareFileRenameOptions
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If these options are going to be used for both ShareFile and ShareDirectory, should the name be more like SharePathRenameOptions? I don't have a strong opinion on the name.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let's see what the arch board says.

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Blobs. You can review API changes here

API changes

+             V2021_02_12 = 10,
+             V2021_04_10 = 11,
+         public static BlobErrorCode SnapshotOperationRateExceeded { get; }
+         System = 2,

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Files.Shares. You can review API changes here

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Files.DataLake. You can review API changes here

API changes

+             V2021_02_12 = 10,
+             V2021_04_10 = 11,
+         System = 2,

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Queues. You can review API changes here

API changes

+             V2021_02_12 = 10,
+             V2021_04_10 = 11,

public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions DestinationRequestConditions { get { throw null; } set { } }
public Azure.Storage.Files.Shares.Models.NtfsFileAttributes? FileAttributes { get { throw null; } set { } }
public System.DateTimeOffset? FileCreatedOn { get { throw null; } set { } }
public System.DateTimeOffset? FileLastWrittenOn { get { throw null; } set { } }
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The spec also mentions x-ms-file-change-time, which we are missing in this class.

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Blobs. You can review API changes here

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Common. You can review API changes here

API changes

-         public const string DefaultSasVersion = "2021-02-12";
+         public const string DefaultSasVersion = "2021-04-10";

@azure-sdk
Copy link
Copy Markdown
Collaborator

API changes have been detected in Azure.Storage.Files.Shares. You can review API changes here

@seanmcc-msft seanmcc-msft merged commit e8191c2 into Azure:feature/storage/stg81base Dec 1, 2021
@seanmcc-msft seanmcc-msft deleted the feature/storage/fileRename branch December 1, 2021 00:26
seanmcc-msft added a commit to seanmcc-msft/azure-sdk-for-net that referenced this pull request Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants