diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs index 5a91558bcd5f..cd7c8ddb23d1 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs @@ -36,7 +36,9 @@ public BlobsStorageResourceProvider(System.Func FromContainerAsync(System.Uri containerUri, Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class BlobStorageResourceContainerOptions diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net8.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net8.0.cs index 5a91558bcd5f..cd7c8ddb23d1 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net8.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net8.0.cs @@ -36,7 +36,9 @@ public BlobsStorageResourceProvider(System.Func FromContainerAsync(System.Uri containerUri, Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class BlobStorageResourceContainerOptions diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs index 5a91558bcd5f..cd7c8ddb23d1 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs @@ -36,7 +36,9 @@ public BlobsStorageResourceProvider(System.Func FromContainerAsync(System.Uri containerUri, Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class BlobStorageResourceContainerOptions diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobsStorageResourceProvider.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobsStorageResourceProvider.cs index 6cf6339847be..0f69b65675ae 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobsStorageResourceProvider.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobsStorageResourceProvider.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; using System.Threading; using System.Threading.Tasks; using Azure.Core; @@ -160,10 +161,12 @@ public BlobsStorageResourceProvider(Func + [EditorBrowsable(EditorBrowsableState.Never)] protected override async ValueTask FromSourceAsync(TransferProperties properties, CancellationToken cancellationToken) => await FromTransferPropertiesAsync(properties, getSource: true, cancellationToken).ConfigureAwait(false); /// + [EditorBrowsable(EditorBrowsableState.Never)] protected override async ValueTask FromDestinationAsync(TransferProperties properties, CancellationToken cancellationToken) => await FromTransferPropertiesAsync(properties, getSource: false, cancellationToken).ConfigureAwait(false); diff --git a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net6.0.cs index 66d13ae8b677..bc3864e92c26 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net6.0.cs @@ -16,9 +16,11 @@ public ShareFilesStorageResourceProvider(System.Func FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } public System.Threading.Tasks.ValueTask FromDirectoryAsync(System.Uri directoryUri, Azure.Storage.DataMovement.Files.Shares.ShareFileStorageResourceOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public System.Threading.Tasks.ValueTask FromFileAsync(System.Uri fileUri, Azure.Storage.DataMovement.Files.Shares.ShareFileStorageResourceOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class ShareFileStorageResourceOptions diff --git a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net8.0.cs b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net8.0.cs index 66d13ae8b677..bc3864e92c26 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net8.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.net8.0.cs @@ -16,9 +16,11 @@ public ShareFilesStorageResourceProvider(System.Func FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } public System.Threading.Tasks.ValueTask FromDirectoryAsync(System.Uri directoryUri, Azure.Storage.DataMovement.Files.Shares.ShareFileStorageResourceOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public System.Threading.Tasks.ValueTask FromFileAsync(System.Uri fileUri, Azure.Storage.DataMovement.Files.Shares.ShareFileStorageResourceOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class ShareFileStorageResourceOptions diff --git a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.netstandard2.0.cs index 66d13ae8b677..bc3864e92c26 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/api/Azure.Storage.DataMovement.Files.Shares.netstandard2.0.cs @@ -16,9 +16,11 @@ public ShareFilesStorageResourceProvider(System.Func FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } public System.Threading.Tasks.ValueTask FromDirectoryAsync(System.Uri directoryUri, Azure.Storage.DataMovement.Files.Shares.ShareFileStorageResourceOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public System.Threading.Tasks.ValueTask FromFileAsync(System.Uri fileUri, Azure.Storage.DataMovement.Files.Shares.ShareFileStorageResourceOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public partial class ShareFileStorageResourceOptions diff --git a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/src/ShareFilesStorageResourceProvider.cs b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/src/ShareFilesStorageResourceProvider.cs index 223c407fd6e7..ab1dbf9455d6 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/src/ShareFilesStorageResourceProvider.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/src/ShareFilesStorageResourceProvider.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; using System.IO; using System.Threading; using System.Threading.Tasks; @@ -160,6 +161,7 @@ public ShareFilesStorageResourceProvider(Func + [EditorBrowsable(EditorBrowsableState.Never)] protected override async ValueTask FromSourceAsync(TransferProperties properties, CancellationToken cancellationToken) { // Source share file data currently empty, so no specific properties to grab @@ -169,6 +171,7 @@ protected override async ValueTask FromSourceAsync(TransferProp } /// + [EditorBrowsable(EditorBrowsableState.Never)] protected override async ValueTask FromDestinationAsync(TransferProperties properties, CancellationToken cancellationToken) { ShareFileDestinationCheckpointDetails checkpointDetails; diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs index 74cdbdb9f310..5c89a6f75cc4 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs @@ -3,46 +3,67 @@ namespace Azure.Storage.DataMovement public partial class LocalFilesStorageResourceProvider : Azure.Storage.DataMovement.StorageResourceProvider { internal LocalFilesStorageResourceProvider() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override string ProviderId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.Storage.DataMovement.StorageResourceContainer FromDirectory(string directoryPath) { throw null; } public static Azure.Storage.DataMovement.StorageResourceItem FromFile(string filePath) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public abstract partial class StorageResource { protected StorageResource() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract bool IsContainer { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract string ProviderId { get; } public abstract System.Uri Uri { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceCheckpointDetails GetDestinationCheckpointDetails(); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceCheckpointDetails GetSourceCheckpointDetails(); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract partial class StorageResourceCheckpointDetails { protected StorageResourceCheckpointDetails() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract int Length { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract void Serialize(System.IO.Stream stream); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceCompleteTransferOptions { public StorageResourceCompleteTransferOptions() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Storage.DataMovement.StorageResourceItemProperties SourceProperties { get { throw null; } set { } } } public abstract partial class StorageResourceContainer : Azure.Storage.DataMovement.StorageResource { protected StorageResourceContainer() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CreateIfNotExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceContainer GetChildStorageResourceContainer(string path); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path, string resourceId); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync(Azure.Storage.DataMovement.StorageResourceContainer destinationContainer = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceCopyFromUriOptions { public StorageResourceCopyFromUriOptions() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string BlockId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Storage.DataMovement.StorageResourceItemProperties SourceProperties { get { throw null; } set { } } } public enum StorageResourceCreationMode @@ -55,45 +76,77 @@ public enum StorageResourceCreationMode public abstract partial class StorageResourceItem : Azure.Storage.DataMovement.StorageResource { protected StorageResourceItem() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long? Length { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long MaxSupportedChunkSize { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long MaxSupportedSingleTransferSize { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract string ResourceId { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal Azure.Storage.DataMovement.StorageResourceItemProperties ResourceProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.TransferOrder TransferType { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, Azure.Storage.DataMovement.StorageResourceCompleteTransferOptions completeTransferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetPermissionsAsync(Azure.Storage.DataMovement.StorageResourceItemProperties properties = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task SetPermissionsAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItemProperties sourceProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceItemProperties { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageResourceItemProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ETag? ETag { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.DateTimeOffset? LastModifiedTime { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IDictionary RawProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public long? ResourceLength { get { throw null; } set { } } } public abstract partial class StorageResourceProvider { protected StorageResourceProvider() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract string ProviderId { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceReadStreamResult { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly System.IO.Stream Content; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly long? ContentLength; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly Azure.ETag? ETag; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly long? ResourceLength; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageResourceReadStreamResult(System.IO.Stream content, Azure.HttpRange range, Azure.Storage.DataMovement.StorageResourceItemProperties properties) { } } public partial class StorageResourceWriteToOffsetOptions @@ -216,12 +269,17 @@ public TransferProgressHandlerOptions() { } } public partial class TransferProperties { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal TransferProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual byte[] DestinationCheckpointDetails { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual string DestinationProviderId { get { throw null; } } public virtual System.Uri DestinationUri { get { throw null; } } public virtual bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual byte[] SourceCheckpointDetails { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual string SourceProviderId { get { throw null; } } public virtual System.Uri SourceUri { get { throw null; } } public virtual string TransferId { get { throw null; } } diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net8.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net8.0.cs index 74cdbdb9f310..5c89a6f75cc4 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net8.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net8.0.cs @@ -3,46 +3,67 @@ namespace Azure.Storage.DataMovement public partial class LocalFilesStorageResourceProvider : Azure.Storage.DataMovement.StorageResourceProvider { internal LocalFilesStorageResourceProvider() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override string ProviderId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.Storage.DataMovement.StorageResourceContainer FromDirectory(string directoryPath) { throw null; } public static Azure.Storage.DataMovement.StorageResourceItem FromFile(string filePath) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public abstract partial class StorageResource { protected StorageResource() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract bool IsContainer { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract string ProviderId { get; } public abstract System.Uri Uri { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceCheckpointDetails GetDestinationCheckpointDetails(); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceCheckpointDetails GetSourceCheckpointDetails(); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract partial class StorageResourceCheckpointDetails { protected StorageResourceCheckpointDetails() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract int Length { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract void Serialize(System.IO.Stream stream); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceCompleteTransferOptions { public StorageResourceCompleteTransferOptions() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Storage.DataMovement.StorageResourceItemProperties SourceProperties { get { throw null; } set { } } } public abstract partial class StorageResourceContainer : Azure.Storage.DataMovement.StorageResource { protected StorageResourceContainer() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CreateIfNotExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceContainer GetChildStorageResourceContainer(string path); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path, string resourceId); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync(Azure.Storage.DataMovement.StorageResourceContainer destinationContainer = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceCopyFromUriOptions { public StorageResourceCopyFromUriOptions() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string BlockId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Storage.DataMovement.StorageResourceItemProperties SourceProperties { get { throw null; } set { } } } public enum StorageResourceCreationMode @@ -55,45 +76,77 @@ public enum StorageResourceCreationMode public abstract partial class StorageResourceItem : Azure.Storage.DataMovement.StorageResource { protected StorageResourceItem() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long? Length { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long MaxSupportedChunkSize { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long MaxSupportedSingleTransferSize { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract string ResourceId { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal Azure.Storage.DataMovement.StorageResourceItemProperties ResourceProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.TransferOrder TransferType { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, Azure.Storage.DataMovement.StorageResourceCompleteTransferOptions completeTransferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetPermissionsAsync(Azure.Storage.DataMovement.StorageResourceItemProperties properties = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task SetPermissionsAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItemProperties sourceProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceItemProperties { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageResourceItemProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ETag? ETag { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.DateTimeOffset? LastModifiedTime { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IDictionary RawProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public long? ResourceLength { get { throw null; } set { } } } public abstract partial class StorageResourceProvider { protected StorageResourceProvider() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract string ProviderId { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceReadStreamResult { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly System.IO.Stream Content; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly long? ContentLength; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly Azure.ETag? ETag; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly long? ResourceLength; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageResourceReadStreamResult(System.IO.Stream content, Azure.HttpRange range, Azure.Storage.DataMovement.StorageResourceItemProperties properties) { } } public partial class StorageResourceWriteToOffsetOptions @@ -216,12 +269,17 @@ public TransferProgressHandlerOptions() { } } public partial class TransferProperties { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal TransferProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual byte[] DestinationCheckpointDetails { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual string DestinationProviderId { get { throw null; } } public virtual System.Uri DestinationUri { get { throw null; } } public virtual bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual byte[] SourceCheckpointDetails { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual string SourceProviderId { get { throw null; } } public virtual System.Uri SourceUri { get { throw null; } } public virtual string TransferId { get { throw null; } } diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs index 74cdbdb9f310..5c89a6f75cc4 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs @@ -3,46 +3,67 @@ namespace Azure.Storage.DataMovement public partial class LocalFilesStorageResourceProvider : Azure.Storage.DataMovement.StorageResourceProvider { internal LocalFilesStorageResourceProvider() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override string ProviderId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } public static Azure.Storage.DataMovement.StorageResourceContainer FromDirectory(string directoryPath) { throw null; } public static Azure.Storage.DataMovement.StorageResourceItem FromFile(string filePath) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken) { throw null; } } public abstract partial class StorageResource { protected StorageResource() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract bool IsContainer { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract string ProviderId { get; } public abstract System.Uri Uri { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceCheckpointDetails GetDestinationCheckpointDetails(); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceCheckpointDetails GetSourceCheckpointDetails(); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract partial class StorageResourceCheckpointDetails { protected StorageResourceCheckpointDetails() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public abstract int Length { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract void Serialize(System.IO.Stream stream); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceCompleteTransferOptions { public StorageResourceCompleteTransferOptions() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Storage.DataMovement.StorageResourceItemProperties SourceProperties { get { throw null; } set { } } } public abstract partial class StorageResourceContainer : Azure.Storage.DataMovement.StorageResource { protected StorageResourceContainer() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CreateIfNotExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceContainer GetChildStorageResourceContainer(string path); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path, string resourceId); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync(Azure.Storage.DataMovement.StorageResourceContainer destinationContainer = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceCopyFromUriOptions { public StorageResourceCopyFromUriOptions() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string BlockId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.Storage.DataMovement.StorageResourceItemProperties SourceProperties { get { throw null; } set { } } } public enum StorageResourceCreationMode @@ -55,45 +76,77 @@ public enum StorageResourceCreationMode public abstract partial class StorageResourceItem : Azure.Storage.DataMovement.StorageResource { protected StorageResourceItem() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal override bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long? Length { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long MaxSupportedChunkSize { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract long MaxSupportedSingleTransferSize { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract string ResourceId { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal Azure.Storage.DataMovement.StorageResourceItemProperties ResourceProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract Azure.Storage.DataMovement.TransferOrder TransferType { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, Azure.Storage.DataMovement.StorageResourceCompleteTransferOptions completeTransferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetPermissionsAsync(Azure.Storage.DataMovement.StorageResourceItemProperties properties = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.Task SetPermissionsAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItemProperties sourceProperties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceItemProperties { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageResourceItemProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ETag? ETag { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.DateTimeOffset? LastModifiedTime { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Collections.Generic.IDictionary RawProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public long? ResourceLength { get { throw null; } set { } } } public abstract partial class StorageResourceProvider { protected StorageResourceProvider() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract string ProviderId { get; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.ValueTask FromDestinationAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken); + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal abstract System.Threading.Tasks.ValueTask FromSourceAsync(Azure.Storage.DataMovement.TransferProperties properties, System.Threading.CancellationToken cancellationToken); } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public partial class StorageResourceReadStreamResult { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly System.IO.Stream Content; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly long? ContentLength; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly Azure.ETag? ETag; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public readonly long? ResourceLength; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageResourceReadStreamResult(System.IO.Stream content, Azure.HttpRange range, Azure.Storage.DataMovement.StorageResourceItemProperties properties) { } } public partial class StorageResourceWriteToOffsetOptions @@ -216,12 +269,17 @@ public TransferProgressHandlerOptions() { } } public partial class TransferProperties { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] protected internal TransferProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual byte[] DestinationCheckpointDetails { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual string DestinationProviderId { get { throw null; } } public virtual System.Uri DestinationUri { get { throw null; } } public virtual bool IsContainer { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual byte[] SourceCheckpointDetails { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual string SourceProviderId { get { throw null; } } public virtual System.Uri SourceUri { get { throw null; } } public virtual string TransferId { get { throw null; } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/LocalFilesStorageResourceProvider.cs b/sdk/storage/Azure.Storage.DataMovement/src/LocalFilesStorageResourceProvider.cs index b51ae06847bc..7c2f4b776472 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/LocalFilesStorageResourceProvider.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/LocalFilesStorageResourceProvider.cs @@ -2,9 +2,9 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; using System.Threading; using System.Threading.Tasks; -using Azure.Core; using Azure.Storage.Common; namespace Azure.Storage.DataMovement @@ -15,6 +15,7 @@ namespace Azure.Storage.DataMovement public class LocalFilesStorageResourceProvider : StorageResourceProvider { /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal override string ProviderId => "local"; /// @@ -25,10 +26,12 @@ internal LocalFilesStorageResourceProvider() } /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal override ValueTask FromSourceAsync(TransferProperties properties, CancellationToken cancellationToken) => new(FromTransferProperties(properties, getSource: true)); /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal override ValueTask FromDestinationAsync(TransferProperties properties, CancellationToken cancellationToken) => new(FromTransferProperties(properties, getSource: false)); diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResource.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResource.cs index 64fe41b844f0..c12eea9c511c 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResource.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; namespace Azure.Storage.DataMovement { @@ -20,6 +21,7 @@ protected StorageResource() /// /// Defines whether the storage resource is a container. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract bool IsContainer { get; } /// @@ -31,18 +33,21 @@ protected StorageResource() /// A string ID for the resource provider that should be used for rehydration. /// NOTE: Must be no more than 5 characters long. /// + [EditorBrowsable(EditorBrowsableState.Never)] public abstract string ProviderId { get; } /// /// Gets the source checkpoint data for this resource that will be written to the checkpointer. /// /// A containing the checkpoint information for this resource. + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract StorageResourceCheckpointDetails GetSourceCheckpointDetails(); /// /// Gets the destination checkpoint data for this resource that will be written to the checkpointer. /// /// A containing the checkpoint information for this resource. + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract StorageResourceCheckpointDetails GetDestinationCheckpointDetails(); } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCheckpointDetails.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCheckpointDetails.cs index d6bbb0d87671..9e7ed57a86db 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCheckpointDetails.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCheckpointDetails.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.IO; namespace Azure.Storage.DataMovement @@ -8,17 +9,20 @@ namespace Azure.Storage.DataMovement /// /// Abstract class for checkpoint data related to a specific resource type. /// + [EditorBrowsable(EditorBrowsableState.Never)] public abstract class StorageResourceCheckpointDetails { /// /// The length of the checkpoint data in bytes. /// + [EditorBrowsable(EditorBrowsableState.Never)] public abstract int Length { get; } /// /// Serializes the checkpoint data into the given stream. /// /// The stream to serialize the data into. + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract void Serialize(Stream stream); } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCompleteTransferOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCompleteTransferOptions.cs index 15e2cf8b0c98..b2a14356eb2d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCompleteTransferOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCompleteTransferOptions.cs @@ -1,20 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Text; +using System.ComponentModel; namespace Azure.Storage.DataMovement { /// /// Options for . /// + [EditorBrowsable(EditorBrowsableState.Never)] public class StorageResourceCompleteTransferOptions { /// /// Optional. Specifies the source properties to set in the destination. /// + [EditorBrowsable(EditorBrowsableState.Never)] public StorageResourceItemProperties SourceProperties { get; set; } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs index 7ad733f237b4..52f5aaff05b0 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.Generic; +using System.ComponentModel; using System.Threading; using System.Threading.Tasks; @@ -20,6 +21,7 @@ protected StorageResourceContainer() { } /// /// Lists all the child storage resources in the path. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract IAsyncEnumerable GetStorageResourcesAsync( StorageResourceContainer destinationContainer = default, CancellationToken cancellationToken = default); @@ -29,12 +31,14 @@ protected internal abstract IAsyncEnumerable GetStorageResource /// /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract StorageResourceItem GetStorageResourceReference(string path, string resourceId); /// /// Creates storage resource container if it does not already exists. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task CreateIfNotExistsAsync(CancellationToken cancellationToken = default); /// @@ -44,11 +48,13 @@ protected internal abstract IAsyncEnumerable GetStorageResource /// The path of the child container. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract StorageResourceContainer GetChildStorageResourceContainer(string path); /// /// Storage Resource is a container. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal override bool IsContainer => true; } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs index 4b50e4c718e4..38ca7675181e 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.IO; using System.Threading; @@ -9,6 +10,7 @@ namespace Azure.Storage.DataMovement /// /// Options for /// + [EditorBrowsable(EditorBrowsableState.Never)] public class StorageResourceCopyFromUriOptions { /// @@ -17,6 +19,7 @@ public class StorageResourceCopyFromUriOptions /// /// Applies only to block blobs. /// + [EditorBrowsable(EditorBrowsableState.Never)] public string BlockId { get; internal set; } /// @@ -24,11 +27,13 @@ public class StorageResourceCopyFromUriOptions /// /// Only applies to copy operations, not local operations. /// + [EditorBrowsable(EditorBrowsableState.Never)] public HttpAuthorization SourceAuthentication { get; set; } /// /// Optional. Specifies the source properties to set in the destination. /// + [EditorBrowsable(EditorBrowsableState.Never)] public StorageResourceItemProperties SourceProperties { get; set; } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs index f6b533a56b53..f4cf9d98d5f6 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.IO; using System.Threading; using System.Threading.Tasks; @@ -20,27 +21,32 @@ protected StorageResourceItem() { } /// /// The identifier for the type of storage resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract string ResourceId { get; } /// /// Defines the transfer type of the storage resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract TransferOrder TransferType { get; } /// /// Defines the maximum supported size for the storage resource to be created /// in a single API call. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract long MaxSupportedSingleTransferSize { get; } /// /// Defines the maximum supported chunk size for the storage resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract long MaxSupportedChunkSize { get; } /// /// Storage Resource is a container. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal override bool IsContainer => false; /// @@ -48,11 +54,13 @@ protected StorageResourceItem() { } /// /// Will return default if the length was not set by a GetStorageResources API call. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract long? Length { get; } /// /// Properties of the Storage Resource Item. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal StorageResourceItemProperties ResourceProperties { get; set; } /// @@ -69,6 +77,7 @@ protected StorageResourceItem() { } /// notifications that the operation should be cancelled. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task ReadStreamAsync( long position = 0, long? length = default, @@ -93,6 +102,7 @@ protected internal abstract Task ReadStreamAsyn /// notifications that the operation should be cancelled. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task CopyFromStreamAsync( Stream stream, long streamLength, @@ -117,6 +127,7 @@ protected internal abstract Task CopyFromStreamAsync( /// notifications that the operation should be cancelled. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task CopyFromUriAsync( StorageResourceItem sourceResource, bool overwrite, @@ -141,6 +152,7 @@ protected internal abstract Task CopyFromUriAsync( /// notifications that the operation should be cancelled. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task CopyBlockFromUriAsync( StorageResourceItem sourceResource, HttpRange range, @@ -155,12 +167,14 @@ protected internal abstract Task CopyBlockFromUriAsync( /// See . /// /// Returns the properties of the Storage Resource. See + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task GetPropertiesAsync(CancellationToken token = default); /// /// Gets the Permissions of a storage resource. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task GetPermissionsAsync( StorageResourceItemProperties properties = default, CancellationToken cancellationToken = default); @@ -168,6 +182,7 @@ protected internal abstract Task GetPermissionsAsync( /// Sets the permissions of the storage resource. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task SetPermissionsAsync( StorageResourceItem sourceResource, StorageResourceItemProperties sourceProperties, @@ -184,6 +199,7 @@ protected internal abstract Task SetPermissionsAsync( /// Gets the HTTP Authorization header for the storage resource if available. If not available /// will return default. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task GetCopyAuthorizationHeaderAsync(CancellationToken cancellationToken = default); /// @@ -200,6 +216,7 @@ protected internal abstract Task SetPermissionsAsync( /// notifications that the operation should be cancelled. /// /// The Task which Commits the list of ids + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task CompleteTransferAsync( bool overwrite, StorageResourceCompleteTransferOptions completeTransferOptions = default, @@ -216,6 +233,7 @@ protected internal abstract Task CompleteTransferAsync( /// If the storage resource exists and is deleted, true will be returned. /// Otherwise if the storage resource does not exist, false will be returned. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract Task DeleteIfExistsAsync(CancellationToken cancellationToken = default); } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItemProperties.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItemProperties.cs index b43add646520..98894fdee8e7 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItemProperties.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItemProperties.cs @@ -3,37 +3,44 @@ using System; using System.Collections.Generic; +using System.ComponentModel; namespace Azure.Storage.DataMovement { /// /// Properties of a Storage Resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public class StorageResourceItemProperties { /// /// The length of the resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public long? ResourceLength { get; set; } /// /// The HTTP ETag of the Storage Resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public ETag? ETag { get; set; } /// /// The Last Modified Time of the Storage Resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public DateTimeOffset? LastModifiedTime { get; set; } /// /// Dictionary of the properties associated with this resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public IDictionary RawProperties { get; set; } /// /// Base constructor for mocking. /// + [EditorBrowsable(EditorBrowsableState.Never)] public StorageResourceItemProperties() { RawProperties = new Dictionary(); diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceProvider.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceProvider.cs index 1db3e1d8bfc6..a1c753b95bf1 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceProvider.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceProvider.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.Threading; using System.Threading.Tasks; @@ -14,16 +15,19 @@ public abstract class StorageResourceProvider /// /// Provider ID. For DataMovement to query in selecting appropriate provider on resume. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract string ProviderId { get; } /// /// Gets a source resource from the given transfer properties. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract ValueTask FromSourceAsync(TransferProperties properties, CancellationToken cancellationToken); /// /// Gets a source resource from the given transfer properties. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal abstract ValueTask FromDestinationAsync(TransferProperties properties, CancellationToken cancellationToken); } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs index 8965fa760ded..3a2d13a1950a 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.IO; namespace Azure.Storage.DataMovement @@ -8,26 +9,31 @@ namespace Azure.Storage.DataMovement /// /// The properties and content returned from downloading a storage resource /// + [EditorBrowsable(EditorBrowsableState.Never)] public class StorageResourceReadStreamResult { /// /// Content. /// + [EditorBrowsable(EditorBrowsableState.Never)] public readonly Stream Content; /// /// Length of the content. /// + [EditorBrowsable(EditorBrowsableState.Never)] public readonly long? ContentLength; /// /// Length of the resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public readonly long? ResourceLength; /// /// The ETag of the result. /// + [EditorBrowsable(EditorBrowsableState.Never)] public readonly ETag? ETag; internal StorageResourceReadStreamResult() { } @@ -38,6 +44,7 @@ internal StorageResourceReadStreamResult() { } /// /// /// + [EditorBrowsable(EditorBrowsableState.Never)] public StorageResourceReadStreamResult( Stream content, HttpRange range, @@ -53,6 +60,7 @@ public StorageResourceReadStreamResult( /// Constructor for ReadStreamStorageResourceInfo /// /// + [EditorBrowsable(EditorBrowsableState.Never)] internal StorageResourceReadStreamResult( Stream content) { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferProperties.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferProperties.cs index d3a967137846..eeb40f9eb7bc 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferProperties.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferProperties.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; namespace Azure.Storage.DataMovement { @@ -23,11 +24,13 @@ public class TransferProperties /// /// A string ID for the source resource provider that should be used for rehydration. /// + [EditorBrowsable(EditorBrowsableState.Never)] public virtual string SourceProviderId { get; internal set; } /// /// The additional checkpoint data specific to the source resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public virtual byte[] SourceCheckpointDetails { get; internal set; } /// @@ -38,11 +41,13 @@ public class TransferProperties /// /// A string ID for the destination resource provider that should be used for rehydration. /// + [EditorBrowsable(EditorBrowsableState.Never)] public virtual string DestinationProviderId { get; internal set; } /// /// The additional checkpoint data specific to the destination resource. /// + [EditorBrowsable(EditorBrowsableState.Never)] public virtual byte[] DestinationCheckpointDetails { get; internal set; } /// @@ -53,6 +58,7 @@ public class TransferProperties /// /// For mocking. /// + [EditorBrowsable(EditorBrowsableState.Never)] protected internal TransferProperties() { } } }