BlobsStorageResourceProvider Class

Definition

Provider for a StorageResource configured for an Azure Blob Storage resource.

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

Constructors

BlobsStorageResourceProvider()

Default constructor.

BlobsStorageResourceProvider(AzureSasCredential)

Constructs this provider to use the given credential when making a new Blob Storage StorageResource.

This instance will use the given AzureSasCredential when constructing the underlying Azure.Storage.Blobs client, e.g. BlockBlobClient(Uri, AzureSasCredential, BlobClientOptions). 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(BlockBlobClient, BlockBlobStorageResourceOptions). Additionally, if the given target blob resource already has a SAS token in the URI, that token will be preferred over this credential.

BlobsStorageResourceProvider(BlobsStorageResourceProvider+GetAzureSasCredential)

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

This instance will use the given BlobsStorageResourceProvider.GetAzureSasCredential to fetch a credential when constructing the underlying Azure.Storage.Blobs client, e.g. BlockBlobClient(Uri, AzureSasCredential, BlobClientOptions). 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(BlockBlobClient, BlockBlobStorageResourceOptions). Additionally, if the given target blob resource already has a SAS token in the URI, that token will be preferred over this delegate.

BlobsStorageResourceProvider(BlobsStorageResourceProvider+GetStorageSharedKeyCredential)

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

This instance will use the given BlobsStorageResourceProvider.GetStorageSharedKeyCredential to fetch a credential when constructing the underlying Azure.Storage.Blobs client, e.g. BlockBlobClient(Uri, StorageSharedKeyCredential, BlobClientOptions). 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(BlockBlobClient, BlockBlobStorageResourceOptions).

BlobsStorageResourceProvider(BlobsStorageResourceProvider+GetTokenCredential)

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

This instance will use the given BlobsStorageResourceProvider.GetTokenCredential to fetch a credential when constructing the underlying Azure.Storage.Blobs client, e.g. BlockBlobClient(Uri, TokenCredential, BlobClientOptions). 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(BlockBlobClient, BlockBlobStorageResourceOptions).

BlobsStorageResourceProvider(StorageSharedKeyCredential)

Constructs this provider to use the given credential when making a new Blob Storage StorageResource.

This instance will use the given StorageSharedKeyCredential when constructing the underlying Azure.Storage.Blobs client, e.g. BlockBlobClient(Uri, StorageSharedKeyCredential, BlobClientOptions). 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(BlockBlobClient, BlockBlobStorageResourceOptions).

BlobsStorageResourceProvider(TokenCredential)

Constructs this provider to use the given credential when making a new Blob Storage StorageResource.

This instance will use the given TokenCredential when constructing the underlying Azure.Storage.Blobs client, e.g. BlockBlobClient(Uri, TokenCredential, BlobClientOptions). 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(BlockBlobClient, BlockBlobStorageResourceOptions).

Properties

ProviderId

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

Methods

FromBlob(String, BlobStorageResourceOptions)

Creates a storage resource pointing towards the given container URI.

FromClient(AppendBlobClient, AppendBlobStorageResourceOptions)

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

FromClient(BlobContainerClient, BlobStorageResourceContainerOptions)

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

FromClient(BlockBlobClient, BlockBlobStorageResourceOptions)

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

FromClient(PageBlobClient, PageBlobStorageResourceOptions)

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

FromContainer(String, BlobStorageResourceContainerOptions)

Creates a storage resource pointing towards the given container URI.

FromDestinationAsync(DataTransferProperties, CancellationToken)

Gets a source resource from the given transfer properties.

FromSourceAsync(DataTransferProperties, CancellationToken)

Gets a source resource from the given transfer properties.

Applies to