Azure.Storage.Blobs.BlockBlobRestClient
class BlockBlobRestClient
The HTTP pipeline for sending and receiving REST requests and responses.
protected BlockBlobRestClient()
Initializes a new instance of BlockBlobRestClient for mocking.
public virtual Response CommitBlockList(RequestContent content, int? timeout = default, string blobCacheControl = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, IDictionary<string, string> metadata = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, string encryptionScope = null, string tier = null, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, string immutabilityPolicyMode = null, bool? legalHold = default, RequestContext context = null)
[Protocol Method] Writes to the block blob by specifying the list of block IDs that make up the blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response CommitBlockList(BlockLookupList blocks, int? timeout = default, string blobCacheControl = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, IDictionary<string, string> metadata = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, AccessTier? tier = default, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, BlobImmutabilityPolicyMode? immutabilityPolicyMode = default, bool? legalHold = default, CancellationToken cancellationToken = default)
Writes to the block blob by specifying the list of block IDs that make up the blob.
public virtual Task<Response> CommitBlockListAsync(RequestContent content, int? timeout = default, string blobCacheControl = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, IDictionary<string, string> metadata = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, string encryptionScope = null, string tier = null, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, string immutabilityPolicyMode = null, bool? legalHold = default, RequestContext context = null)
[Protocol Method] Writes to the block blob by specifying the list of block IDs that make up the blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response> CommitBlockListAsync(BlockLookupList blocks, int? timeout = default, string blobCacheControl = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, IDictionary<string, string> metadata = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, AccessTier? tier = default, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, BlobImmutabilityPolicyMode? immutabilityPolicyMode = default, bool? legalHold = default, CancellationToken cancellationToken = default)
Writes to the block blob by specifying the list of block IDs that make up the blob.
public virtual Response GetBlockList(string listType, string snapshot = null, int? timeout = default, string leaseId = null, string ifTags = null, RequestContext context = null)
[Protocol Method] Retrieves the list of blocks that have been uploaded as part of the block blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response<BlockList> GetBlockList(BlockListType listType, string snapshot = null, int? timeout = default, string leaseId = null, string ifTags = null, CancellationToken cancellationToken = default)
Retrieves the list of blocks that have been uploaded as part of the block blob.
public virtual Task<Response> GetBlockListAsync(string listType, string snapshot = null, int? timeout = default, string leaseId = null, string ifTags = null, RequestContext context = null)
[Protocol Method] Retrieves the list of blocks that have been uploaded as part of the block blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response<BlockList>> GetBlockListAsync(BlockListType listType, string snapshot = null, int? timeout = default, string leaseId = null, string ifTags = null, CancellationToken cancellationToken = default)
Retrieves the list of blocks that have been uploaded as part of the block blob.
public virtual Response<Stream> Query(QueryRequest queryRequest, string snapshot = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, RequestConditions requestConditions = null, string ifTags = null, CancellationToken cancellationToken = default)
The Query operation enables users to select/project on blob data by providing simple query expressions.
public virtual Response Query(RequestContent content, string snapshot = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, RequestConditions requestConditions = null, string ifTags = null, RequestContext context = null)
[Protocol Method] Queries the data of the specified blob with the provided query expressions.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response<Stream>> QueryAsync(QueryRequest queryRequest, string snapshot = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, RequestConditions requestConditions = null, string ifTags = null, CancellationToken cancellationToken = default)
The Query operation enables users to select/project on blob data by providing simple query expressions.
public virtual Task<Response> QueryAsync(RequestContent content, string snapshot = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, RequestConditions requestConditions = null, string ifTags = null, RequestContext context = null)
[Protocol Method] Queries the data of the specified blob with the provided query expressions.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response StageBlock(string blockId, long contentLength, RequestContent content, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, string encryptionScope = null, string structuredBodyType = null, long? structuredContentLength = default, RequestContext context = null)
[Protocol Method] Creates a new block of data to be committed as part of a blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response StageBlock(string blockId, long contentLength, BinaryData body, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, string structuredBodyType = null, long? structuredContentLength = default, CancellationToken cancellationToken = default)
Creates a new block of data to be committed as part of a blob.
public virtual Task<Response> StageBlockAsync(string blockId, long contentLength, RequestContent content, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, string encryptionScope = null, string structuredBodyType = null, long? structuredContentLength = default, RequestContext context = null)
[Protocol Method] Creates a new block of data to be committed as part of a blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response> StageBlockAsync(string blockId, long contentLength, BinaryData body, BinaryData transactionalContentMD5 = null, BinaryData transactionalContentCrc64 = null, int? timeout = default, string leaseId = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, string structuredBodyType = null, long? structuredContentLength = default, CancellationToken cancellationToken = default)
Creates a new block of data to be committed as part of a blob.
public virtual Response StageBlockFromUri(string blockId, long contentLength, string sourceUrl, string sourceRange, BinaryData sourceContentMd5, BinaryData sourceContentCrc64, int? timeout, string encryptionKey, string encryptionKeySha256, string encryptionAlgorithm, string encryptionScope, string leaseId, DateTimeOffset? sourceIfModifiedSince, DateTimeOffset? sourceIfUnmodifiedSince, string sourceIfMatch, string sourceIfNoneMatch, string copySourceAuthorization, string fileRequestIntent, string sourceEncryptionKey, string sourceEncryptionKeySha256, string sourceEncryptionAlgorithm, RequestContext context)
[Protocol Method] Creates a new block of data from the specified URL to be committed as part of a blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response StageBlockFromUri(string blockId, long contentLength, string sourceUrl, string sourceRange = null, BinaryData sourceContentMd5 = null, BinaryData sourceContentCrc64 = null, int? timeout = default, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, string leaseId = null, DateTimeOffset? sourceIfModifiedSince = default, DateTimeOffset? sourceIfUnmodifiedSince = default, string sourceIfMatch = null, string sourceIfNoneMatch = null, string copySourceAuthorization = null, FileShareTokenIntent? fileRequestIntent = default, string sourceEncryptionKey = null, string sourceEncryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? sourceEncryptionAlgorithm = default, CancellationToken cancellationToken = default)
Creates a new block of data from the specified URL to be committed as part of a blob.
public virtual Task<Response> StageBlockFromUriAsync(string blockId, long contentLength, string sourceUrl, string sourceRange, BinaryData sourceContentMd5, BinaryData sourceContentCrc64, int? timeout, string encryptionKey, string encryptionKeySha256, string encryptionAlgorithm, string encryptionScope, string leaseId, DateTimeOffset? sourceIfModifiedSince, DateTimeOffset? sourceIfUnmodifiedSince, string sourceIfMatch, string sourceIfNoneMatch, string copySourceAuthorization, string fileRequestIntent, string sourceEncryptionKey, string sourceEncryptionKeySha256, string sourceEncryptionAlgorithm, RequestContext context)
[Protocol Method] Creates a new block of data from the specified URL to be committed as part of a blob.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response> StageBlockFromUriAsync(string blockId, long contentLength, string sourceUrl, string sourceRange = null, BinaryData sourceContentMd5 = null, BinaryData sourceContentCrc64 = null, int? timeout = default, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, string leaseId = null, DateTimeOffset? sourceIfModifiedSince = default, DateTimeOffset? sourceIfUnmodifiedSince = default, string sourceIfMatch = null, string sourceIfNoneMatch = null, string copySourceAuthorization = null, FileShareTokenIntent? fileRequestIntent = default, string sourceEncryptionKey = null, string sourceEncryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? sourceEncryptionAlgorithm = default, CancellationToken cancellationToken = default)
Creates a new block of data from the specified URL to be committed as part of a blob.
public virtual Response Upload(long contentLength, RequestContent content, IDictionary<string, string> metadata = null, int? timeout = default, BinaryData transactionalContentMD5 = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, string blobCacheControl = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, string encryptionScope = null, string tier = null, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, string immutabilityPolicyMode = null, bool? legalHold = default, BinaryData transactionalContentCrc64 = null, string structuredBodyType = null, long? structuredContentLength = default, RequestContext context = null)
[Protocol Method] Uploads the content to the specified block blob. If the blob already exists, the data and any existing metadata will be overwritten.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response Upload(long contentLength, BinaryData body, IDictionary<string, string> metadata = null, int? timeout = default, BinaryData transactionalContentMD5 = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, string blobCacheControl = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, AccessTier? tier = default, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, BlobImmutabilityPolicyMode? immutabilityPolicyMode = default, bool? legalHold = default, BinaryData transactionalContentCrc64 = null, string structuredBodyType = null, long? structuredContentLength = default, CancellationToken cancellationToken = default)
Uploads the content to the specified block blob. If the blob already exists, the data and any existing metadata will be overwritten.
public virtual Task<Response> UploadAsync(long contentLength, RequestContent content, IDictionary<string, string> metadata = null, int? timeout = default, BinaryData transactionalContentMD5 = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, string blobCacheControl = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, string encryptionAlgorithm = null, string encryptionScope = null, string tier = null, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, string immutabilityPolicyMode = null, bool? legalHold = default, BinaryData transactionalContentCrc64 = null, string structuredBodyType = null, long? structuredContentLength = default, RequestContext context = null)
[Protocol Method] Uploads the content to the specified block blob. If the blob already exists, the data and any existing metadata will be overwritten.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response> UploadAsync(long contentLength, BinaryData body, IDictionary<string, string> metadata = null, int? timeout = default, BinaryData transactionalContentMD5 = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, string blobCacheControl = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, AccessTier? tier = default, RequestConditions requestConditions = null, string ifTags = null, string blobTagsString = null, DateTimeOffset? immutabilityPolicyExpiry = default, BlobImmutabilityPolicyMode? immutabilityPolicyMode = default, bool? legalHold = default, BinaryData transactionalContentCrc64 = null, string structuredBodyType = null, long? structuredContentLength = default, CancellationToken cancellationToken = default)
Uploads the content to the specified block blob. If the blob already exists, the data and any existing metadata will be overwritten.
public virtual Response UploadBlobFromUri(string copySource, IDictionary<string, string> metadata, int? timeout, BinaryData transactionalContentMD5, string blobContentType, string blobContentEncoding, string blobContentLanguage, BinaryData blobContentMd5, string blobCacheControl, string leaseId, string blobContentDisposition, string encryptionKey, string encryptionKeySha256, string encryptionAlgorithm, string encryptionScope, string tier, RequestConditions requestConditions, string ifTags, DateTimeOffset? sourceIfModifiedSince, DateTimeOffset? sourceIfUnmodifiedSince, string sourceIfMatch, string sourceIfNoneMatch, string sourceIfTags, BinaryData sourceContentMd5, string blobTagsString, bool? copySourceBlobProperties, string copySourceAuthorization, string copySourceTags, string fileRequestIntent, string sourceEncryptionKey, string sourceEncryptionKeySha256, string sourceEncryptionAlgorithm, RequestContext context)
[Protocol Method] Uploads the content from the specified URL to the block blob. If the blob already exists, the data and any existing metadata will be overwritten.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Response UploadBlobFromUri(string copySource, IDictionary<string, string> metadata = null, int? timeout = default, BinaryData transactionalContentMD5 = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, string blobCacheControl = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, AccessTier? tier = default, RequestConditions requestConditions = null, string ifTags = null, DateTimeOffset? sourceIfModifiedSince = default, DateTimeOffset? sourceIfUnmodifiedSince = default, string sourceIfMatch = null, string sourceIfNoneMatch = null, string sourceIfTags = null, BinaryData sourceContentMd5 = null, string blobTagsString = null, bool? copySourceBlobProperties = default, string copySourceAuthorization = null, BlobCopySourceTagsMode? copySourceTags = default, FileShareTokenIntent? fileRequestIntent = default, string sourceEncryptionKey = null, string sourceEncryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? sourceEncryptionAlgorithm = default, CancellationToken cancellationToken = default)
Uploads the content from the specified URL to the block blob. If the blob already exists, the data and any existing metadata will be overwritten.
public virtual Task<Response> UploadBlobFromUriAsync(string copySource, IDictionary<string, string> metadata, int? timeout, BinaryData transactionalContentMD5, string blobContentType, string blobContentEncoding, string blobContentLanguage, BinaryData blobContentMd5, string blobCacheControl, string leaseId, string blobContentDisposition, string encryptionKey, string encryptionKeySha256, string encryptionAlgorithm, string encryptionScope, string tier, RequestConditions requestConditions, string ifTags, DateTimeOffset? sourceIfModifiedSince, DateTimeOffset? sourceIfUnmodifiedSince, string sourceIfMatch, string sourceIfNoneMatch, string sourceIfTags, BinaryData sourceContentMd5, string blobTagsString, bool? copySourceBlobProperties, string copySourceAuthorization, string copySourceTags, string fileRequestIntent, string sourceEncryptionKey, string sourceEncryptionKeySha256, string sourceEncryptionAlgorithm, RequestContext context)
[Protocol Method] Uploads the content from the specified URL to the block blob. If the blob already exists, the data and any existing metadata will be overwritten.
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Task<Response> UploadBlobFromUriAsync(string copySource, IDictionary<string, string> metadata = null, int? timeout = default, BinaryData transactionalContentMD5 = null, string blobContentType = null, string blobContentEncoding = null, string blobContentLanguage = null, BinaryData blobContentMd5 = null, string blobCacheControl = null, string leaseId = null, string blobContentDisposition = null, string encryptionKey = null, string encryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? encryptionAlgorithm = default, string encryptionScope = null, AccessTier? tier = default, RequestConditions requestConditions = null, string ifTags = null, DateTimeOffset? sourceIfModifiedSince = default, DateTimeOffset? sourceIfUnmodifiedSince = default, string sourceIfMatch = null, string sourceIfNoneMatch = null, string sourceIfTags = null, BinaryData sourceContentMd5 = null, string blobTagsString = null, bool? copySourceBlobProperties = default, string copySourceAuthorization = null, BlobCopySourceTagsMode? copySourceTags = default, FileShareTokenIntent? fileRequestIntent = default, string sourceEncryptionKey = null, string sourceEncryptionKeySha256 = null, EncryptionAlgorithmTypeInternal? sourceEncryptionAlgorithm = default, CancellationToken cancellationToken = default)
Uploads the content from the specified URL to the block blob. If the blob already exists, the data and any existing metadata will be overwritten.