Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/storage/assets.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "rust",
"Tag": "rust/azure_storage_blob_0fb4b4b381",
"Tag": "rust/azure_storage_blob_b0c9247ca1",
"TagPrefix": "rust/azure_storage_blob"
}
19 changes: 15 additions & 4 deletions sdk/storage/azure_storage_blob/src/clients/blob_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ use crate::{
models::{BlockList, BlockListType, BlockLookupList},
pipeline::StorageHeadersPolicy,
BlobClientDeleteOptions, BlobClientDownloadOptions, BlobClientGetPropertiesOptions,
BlobClientOptions, BlobClientSetMetadataOptions, BlockBlobClientCommitBlockListOptions,
BlockBlobClientGetBlockListOptions, BlockBlobClientStageBlockOptions,
BlockBlobClientUploadOptions,
BlobClientOptions, BlobClientSetMetadataOptions, BlobClientSetPropertiesOptions,
BlockBlobClientCommitBlockListOptions, BlockBlobClientGetBlockListOptions,
BlockBlobClientStageBlockOptions, BlockBlobClientUploadOptions,
};
use azure_core::{
credentials::TokenCredential,
Expand Down Expand Up @@ -107,11 +107,22 @@ impl BlobClient {
Ok(response)
}

/// Downloads a blob from the service, including its metadata and properties.
/// Sets system properties on the blob.
///
/// # Arguments
///
/// * `options` - Optional configuration for the request.
pub async fn set_properties(
&self,
options: Option<BlobClientSetPropertiesOptions<'_>>,
) -> Result<Response<()>> {
let response = self.client.set_properties(options).await?;
Ok(response)
}

/// Downloads a blob from the service, including its metadata and properties.
///
/// * `options` - Optional configuration for the request.
pub async fn download(
&self,
options: Option<BlobClientDownloadOptions<'_>>,
Expand Down
154 changes: 77 additions & 77 deletions sdk/storage/azure_storage_blob/src/generated/clients/blob_client.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading