ShareFilesStorageResourceProvider Class

Definition

Provider for a StorageResource configured for an Azure File Share Storage resource.

public class ShareFilesStorageResourceProvider : Azure.Storage.DataMovement.StorageResourceProvider
type ShareFilesStorageResourceProvider = class
    inherit StorageResourceProvider
Public Class ShareFilesStorageResourceProvider
Inherits StorageResourceProvider
Inheritance
ShareFilesStorageResourceProvider

Constructors

ShareFilesStorageResourceProvider()

Default constrctor.

ShareFilesStorageResourceProvider(AzureSasCredential)

Constructs this provider to use the given credential when making a new File Share StorageResource.

This instance will use the given AzureSasCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this credential.

ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetAzureSasCredential)

Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource.

This instance will use the given ShareFilesStorageResourceProvider.GetAzureSasCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this delegate.

ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetStorageSharedKeyCredential)

Constructs this provider to use the given delegate for acquiring a credential when making a new File Share see cref="StorageResource"/>.

This instance will use the given ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).

ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetTokenCredential)

Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource.

This instance will use the given ShareFilesStorageResourceProvider.GetTokenCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, TokenCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).

ShareFilesStorageResourceProvider(StorageSharedKeyCredential)

Constructs this provider to use the given credential when making a new File Share StorageResource.

This instance will use the given StorageSharedKeyCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).

ShareFilesStorageResourceProvider(TokenCredential)

Constructs this provider to use the given credential when making a new File Share StorageResource.

This instance will use the given TokenCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, TokenCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).

Properties

ProviderId

Provider ID. For DataMovement to query in selecting appropriate provider on resume.

Methods

FromClient(ShareDirectoryClient, ShareFileStorageResourceOptions)

Creates a storage resource pointing towards the given Azure SDK client.

FromClient(ShareFileClient, ShareFileStorageResourceOptions)

Creates a storage resource pointing towards the given Azure SDK client.

FromDestinationAsync(DataTransferProperties, CancellationToken)

Gets a source resource from the given transfer properties.

FromDirectory(String, ShareFileStorageResourceOptions)

Creates a storage resource pointing towards the given container URI.

FromFile(String, ShareFileStorageResourceOptions)

Creates a storage resource pointing towards the given container URI.

FromSourceAsync(DataTransferProperties, CancellationToken)

Gets a source resource from the given transfer properties.

Applies to