Share via


StorageResourceItem Class

Definition

Abstract class for a single storage resource.

public abstract class StorageResourceItem : Azure.Storage.DataMovement.StorageResource
type StorageResourceItem = class
    inherit StorageResource
Public MustInherit Class StorageResourceItem
Inherits StorageResource
Inheritance
StorageResourceItem

Constructors

StorageResourceItem()

For Mocking.

Properties

IsContainer

Storage Resource is a container.

Length

Length of the storage resource. This information is can obtained during a GetStorageResources API call.

Will return default if the length was not set by a GetStorageResources API call.

MaxSupportedChunkSize

Defines the maximum supported chunk size for the storage resource.

ProviderId

A string ID for the resource provider that should be used for rehydration. NOTE: Must be no more than 5 characters long.

(Inherited from StorageResource)
ResourceId

The identifier for the type of storage resource.

TransferType

Defines the transfer type of the storage resource.

Uri

Gets the Uri of the Storage Resource.

(Inherited from StorageResource)

Methods

CompleteTransferAsync(Boolean, CancellationToken)

If the operation requires any ending transfers (e.g. Committing a block list, flushing crypto streams)

CopyBlockFromUriAsync(StorageResourceItem, HttpRange, Boolean, Int64, StorageResourceCopyFromUriOptions, CancellationToken)

Uploads/copy the blob from a url

CopyFromStreamAsync(Stream, Int64, Boolean, Int64, StorageResourceWriteToOffsetOptions, CancellationToken)

Consumes the readable stream to upload

CopyFromUriAsync(StorageResourceItem, Boolean, Int64, StorageResourceCopyFromUriOptions, CancellationToken)

Uploads/copy the blob from a url

DeleteIfExistsAsync(CancellationToken)

Deletes the respective storage resource.

GetCopyAuthorizationHeaderAsync(CancellationToken)

Gets the Authorization Header for the storage resource if available.

GetDestinationCheckpointData()

Gets the destination checkpoint data for this resource that will be written to the checkpointer.

(Inherited from StorageResource)
GetPropertiesAsync(CancellationToken)

Get properties of the resource.

See StorageResourceProperties.

GetSourceCheckpointData()

Gets the source checkpoint data for this resource that will be written to the checkpointer.

(Inherited from StorageResource)
ReadStreamAsync(Int64, Nullable<Int64>, CancellationToken)

Consumes the readable stream to upload

Applies to