Delen 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.

ResourceProperties

Properties of the Storage Resource Item.

TransferType

Defines the transfer type of the storage resource.

Uri

Gets the Uri of the Storage Resource.

(Inherited from StorageResource)

Methods

CompleteTransferAsync(Boolean, StorageResourceCompleteTransferOptions, 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)
GetPermissionsAsync(StorageResourceItemProperties, CancellationToken)

Gets the Permissions of a storage resource.

GetPropertiesAsync(CancellationToken)

Get properties of the resource.

See StorageResourceItemProperties.

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

SetPermissionsAsync(StorageResourceItem, StorageResourceItemProperties, CancellationToken)

Sets the permissions of the storage resource.

Applies to