diff --git a/sdk/storage_blobs/src/blob/operations/put_append_blob.rs b/sdk/storage_blobs/src/blob/operations/put_append_blob.rs index 9b3445d898..0098f3e292 100644 --- a/sdk/storage_blobs/src/blob/operations/put_append_blob.rs +++ b/sdk/storage_blobs/src/blob/operations/put_append_blob.rs @@ -5,10 +5,10 @@ use time::OffsetDateTime; operation! { PutAppendBlob, client: BlobClient, - ?content_type: ContentType, - ?content_encoding: ContentEncoding, - ?content_language: ContentLanguage, - ?content_disposition: ContentDisposition, + ?content_type: BlobContentType, + ?content_encoding: BlobContentEncoding, + ?content_language: BlobContentLanguage, + ?content_disposition: BlobContentDisposition, ?metadata: Metadata, ?tags: Tags, ?lease_id: LeaseId diff --git a/sdk/storage_blobs/src/blob/operations/put_block_blob.rs b/sdk/storage_blobs/src/blob/operations/put_block_blob.rs index d24ef26263..bf72d7368f 100644 --- a/sdk/storage_blobs/src/blob/operations/put_block_blob.rs +++ b/sdk/storage_blobs/src/blob/operations/put_block_blob.rs @@ -8,10 +8,10 @@ operation! { client: BlobClient, body: Body, ?hash: Hash, - ?content_type: ContentType, - ?content_encoding: ContentEncoding, - ?content_language: ContentLanguage, - ?content_disposition: ContentDisposition, + ?content_type: BlobContentType, + ?content_encoding: BlobContentEncoding, + ?content_language: BlobContentLanguage, + ?content_disposition: BlobContentDisposition, ?metadata: Metadata, ?access_tier: AccessTier, ?tags: Tags, diff --git a/sdk/storage_blobs/src/blob/operations/put_block_list.rs b/sdk/storage_blobs/src/blob/operations/put_block_list.rs index 83acdd6abe..d888fd9da0 100644 --- a/sdk/storage_blobs/src/blob/operations/put_block_list.rs +++ b/sdk/storage_blobs/src/blob/operations/put_block_list.rs @@ -8,10 +8,10 @@ operation! { PutBlockList, client: BlobClient, block_list: BlockList, - ?content_type: ContentType, - ?content_encoding: ContentEncoding, - ?content_language: ContentLanguage, - ?content_disposition: ContentDisposition, + ?content_type: BlobContentType, + ?content_encoding: BlobContentEncoding, + ?content_language: BlobContentLanguage, + ?content_disposition: BlobContentDisposition, ?content_md5: BlobContentMD5, ?metadata: Metadata, ?access_tier: AccessTier, diff --git a/sdk/storage_blobs/src/blob/operations/put_page_blob.rs b/sdk/storage_blobs/src/blob/operations/put_page_blob.rs index 562e74fa43..d233153c98 100644 --- a/sdk/storage_blobs/src/blob/operations/put_page_blob.rs +++ b/sdk/storage_blobs/src/blob/operations/put_page_blob.rs @@ -8,10 +8,10 @@ operation! { PutPageBlob, client: BlobClient, length: u128, - ?content_type: ContentType, - ?content_encoding: ContentEncoding, - ?content_language: ContentLanguage, - ?content_disposition: ContentDisposition, + ?content_type: BlobContentType, + ?content_encoding: BlobContentEncoding, + ?content_language: BlobContentLanguage, + ?content_disposition: BlobContentDisposition, ?metadata: Metadata, ?tags: Tags, ?lease_id: LeaseId, diff --git a/sdk/storage_blobs/tests/blob.rs b/sdk/storage_blobs/tests/blob.rs index 8bb54ab4a1..483194cdf0 100644 --- a/sdk/storage_blobs/tests/blob.rs +++ b/sdk/storage_blobs/tests/blob.rs @@ -13,6 +13,44 @@ use time::OffsetDateTime; use url::Url; use uuid::Uuid; +#[tokio::test] +async fn content_headers() -> azure_core::Result<()> { + let container_name = format!("headers-{}", Uuid::new_v4()); + let blob_service = initialize(); + let container_client = blob_service.container_client(&container_name); + container_client.create().into_future().await?; + let blob_client = container_client.blob_client("as_json.json"); + + let content_type = "text/plain"; + let content_language = "custom/language"; + let content_disposition = "inline"; + + blob_client + .put_block_blob("data") + .content_type(content_type) + .content_language(content_language) + .content_disposition(content_disposition) + .into_future() + .await?; + + let properties = blob_client.get_properties().into_future().await?; + + print!("got: {:#?}", properties.blob.properties); + + assert_eq!(content_type, properties.blob.properties.content_type); + assert_eq!( + content_language, + properties.blob.properties.content_language.unwrap() + ); + assert_eq!( + content_disposition, + properties.blob.properties.content_disposition.unwrap() + ); + + container_client.delete().into_future().await?; + Ok(()) +} + #[tokio::test] async fn create_and_delete_container() -> azure_core::Result<()> { let container_name = format!("create-{}", Uuid::new_v4()); diff --git a/test/transactions/put_block_blob_and_snapshot/0_request.json b/test/transactions/put_block_blob_and_snapshot/0_request.json index 2f7ec18701..003e9a6294 100644 --- a/test/transactions/put_block_blob_and_snapshot/0_request.json +++ b/test/transactions/put_block_blob_and_snapshot/0_request.json @@ -4,8 +4,8 @@ "headers": { "authorization": "<>", "content-length": "0", - "user-agent": "azsdk-rust-storage/0.4.0 (1.61.0; linux; x86_64)", - "x-ms-date": "Wed, 03 Aug 2022 14:22:06 GMT", + "user-agent": "azsdk-rust-storage/0.6.0 (1.63.0; linux; x86_64)", + "x-ms-date": "Fri, 16 Sep 2022 18:46:36 GMT", "x-ms-version": "2019-12-12" }, "body": "" diff --git a/test/transactions/put_block_blob_and_snapshot/0_response.json b/test/transactions/put_block_blob_and_snapshot/0_response.json index 92ce5d2612..5d07606a0d 100644 --- a/test/transactions/put_block_blob_and_snapshot/0_response.json +++ b/test/transactions/put_block_blob_and_snapshot/0_response.json @@ -2,11 +2,11 @@ "status": 200, "headers": { "content-type": "application/xml", - "date": "Wed, 03 Aug 2022 14:22:13 GMT", + "date": "Fri, 16 Sep 2022 18:46:36 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "transfer-encoding": "chunked", - "x-ms-request-id": "bf2dc2eb-601e-0065-2044-a7c5f3000000", + "x-ms-request-id": "0c3b5235-901e-005e-39fc-c9a9ed000000", "x-ms-version": "2019-12-12" }, - "body": "77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48RW51bWVyYXRpb25SZXN1bHRzIFNlcnZpY2VFbmRwb2ludD0iaHR0cHM6Ly9ibGFja2JpcmRpbmRleGRldi5ibG9iLmNvcmUud2luZG93cy5uZXQvIj48Q29udGFpbmVycz48Q29udGFpbmVyPjxOYW1lPmNpLWJ1aWxkczwvTmFtZT48UHJvcGVydGllcz48TGFzdC1Nb2RpZmllZD5UaHUsIDE0IEp1bCAyMDIyIDIyOjQzOjUxIEdNVDwvTGFzdC1Nb2RpZ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9IYXNJbW11dGFiaWxpdHlQb2xpY3k+PEhhc0xlZ2FsSG9sZD5mYWxzZTwvSGFzTGVnYWxIb2xkPjwvUHJvcGVydGllcz48L0NvbnRhaW5lcj48Q29udGFpbmVyPjxOYW1lPnRlc3QxPC9OYW1lPjxQcm9wZXJ0aWVzPjxMYXN0LU1vZGlmaWVkPlRodSwgMTUgU2VwIDIwMjIgMTc6MTk6MjggR01UPC9MYXN0LU1vZGlmaWVkPjxFdGFnPiIweDhEQTk3M0U3MUVEM0YwRiI8L0V0YWc+PExlYXNlU3RhdHVzPnVubG9ja2VkPC9MZWFzZVN0YXR1cz48TGVhc2VTdGF0ZT5hdmFpbGFibGU8L0xlYXNlU3RhdGU+PERlZmF1bHRFbmNyeXB0aW9uU2NvcGU+JGFjY291bnQtZW5jcnlwdGlvbi1rZXk8L0RlZmF1bHRFbmNyeXB0aW9uU2NvcGU+PERlbnlFbmNyeXB0aW9uU2NvcGVPdmVycmlkZT5mYWxzZTwvRGVueUVuY3J5cHRpb25TY29wZU92ZXJyaWRlPjxIYXNJbW11dGFiaWxpdHlQb2xpY3k+ZmFsc2U8L0hhc0ltbXV0YWJpbGl0eVBvbGljeT48SGFzTGVnYWxIb2xkPmZhbHNlPC9IYXNMZWdhbEhvbGQ+PC9Qcm9wZXJ0aWVzPjwvQ29udGFpbmVyPjwvQ29udGFpbmVycz48TmV4dE1hcmtlciAvPjwvRW51bWVyYXRpb25SZXN1bHRzPg==" } diff --git a/test/transactions/put_block_blob_and_snapshot/1_request.json b/test/transactions/put_block_blob_and_snapshot/1_request.json index 9cbf6507c8..1f4c5525fe 100644 --- a/test/transactions/put_block_blob_and_snapshot/1_request.json +++ b/test/transactions/put_block_blob_and_snapshot/1_request.json @@ -4,8 +4,8 @@ "headers": { "authorization": "<>", "content-length": "0", - "user-agent": "azsdk-rust-storage/0.4.0 (1.61.0; linux; x86_64)", - "x-ms-date": "Wed, 03 Aug 2022 14:22:14 GMT", + "user-agent": "azsdk-rust-storage/0.6.0 (1.63.0; linux; x86_64)", + "x-ms-date": "Fri, 16 Sep 2022 18:46:36 GMT", "x-ms-version": "2019-12-12" }, "body": "" diff --git a/test/transactions/put_block_blob_and_snapshot/1_response.json b/test/transactions/put_block_blob_and_snapshot/1_response.json index cbb583059a..d1e7e98aca 100644 --- a/test/transactions/put_block_blob_and_snapshot/1_response.json +++ b/test/transactions/put_block_blob_and_snapshot/1_response.json @@ -1,12 +1,12 @@ { "status": 201, "headers": { - "date": "Wed, 03 Aug 2022 14:22:17 GMT", - "etag": "\"0x8DA755B9218152E\"", - "last-modified": "Wed, 03 Aug 2022 14:22:17 GMT", + "content-length": "0", + "date": "Fri, 16 Sep 2022 18:46:36 GMT", + "etag": "\"0x8DA9813C8FFA0EA\"", + "last-modified": "Fri, 16 Sep 2022 18:46:37 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-request-id": "bf2dc33b-601e-0065-5c44-a7c5f3000000", + "x-ms-request-id": "0c3b5254-901e-005e-54fc-c9a9ed000000", "x-ms-version": "2019-12-12" }, "body": "" diff --git a/test/transactions/put_block_blob_and_snapshot/2_request.json b/test/transactions/put_block_blob_and_snapshot/2_request.json index aa471f1ca0..930be416fd 100644 --- a/test/transactions/put_block_blob_and_snapshot/2_request.json +++ b/test/transactions/put_block_blob_and_snapshot/2_request.json @@ -5,10 +5,10 @@ "authorization": "<>", "content-length": "6", "content-md5": "6AtQFwmJUPxYqtg8jBSXjg==", - "content-type": "text/plain", - "user-agent": "azsdk-rust-storage/0.4.0 (1.61.0; linux; x86_64)", + "user-agent": "azsdk-rust-storage/0.6.0 (1.63.0; linux; x86_64)", + "x-ms-blob-content-type": "text/plain", "x-ms-blob-type": "BlockBlob", - "x-ms-date": "Wed, 03 Aug 2022 14:22:18 GMT", + "x-ms-date": "Fri, 16 Sep 2022 18:46:36 GMT", "x-ms-version": "2019-12-12" }, "body": "YWJjZGVm" diff --git a/test/transactions/put_block_blob_and_snapshot/2_response.json b/test/transactions/put_block_blob_and_snapshot/2_response.json index ff8c431fa1..af552d23d6 100644 --- a/test/transactions/put_block_blob_and_snapshot/2_response.json +++ b/test/transactions/put_block_blob_and_snapshot/2_response.json @@ -1,14 +1,14 @@ { "status": 201, "headers": { + "content-length": "0", "content-md5": "6AtQFwmJUPxYqtg8jBSXjg==", - "date": "Wed, 03 Aug 2022 14:22:20 GMT", - "etag": "\"0x8DA755B93ED9A78\"", - "last-modified": "Wed, 03 Aug 2022 14:22:21 GMT", + "date": "Fri, 16 Sep 2022 18:46:36 GMT", + "etag": "\"0x8DA9813C903955A\"", + "last-modified": "Fri, 16 Sep 2022 18:46:37 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", "x-ms-content-crc64": "IGNTdOktpz0=", - "x-ms-request-id": "bf2dc359-601e-0065-7644-a7c5f3000000", + "x-ms-request-id": "0c3b5267-901e-005e-64fc-c9a9ed000000", "x-ms-request-server-encrypted": "true", "x-ms-version": "2019-12-12" }, diff --git a/test/transactions/put_block_blob_and_snapshot/3_request.json b/test/transactions/put_block_blob_and_snapshot/3_request.json index 5259ae5624..1703f94a2f 100644 --- a/test/transactions/put_block_blob_and_snapshot/3_request.json +++ b/test/transactions/put_block_blob_and_snapshot/3_request.json @@ -4,8 +4,8 @@ "headers": { "authorization": "<>", "content-length": "0", - "user-agent": "azsdk-rust-storage/0.4.0 (1.61.0; linux; x86_64)", - "x-ms-date": "Wed, 03 Aug 2022 14:22:21 GMT", + "user-agent": "azsdk-rust-storage/0.6.0 (1.63.0; linux; x86_64)", + "x-ms-date": "Fri, 16 Sep 2022 18:46:36 GMT", "x-ms-version": "2019-12-12" }, "body": "" diff --git a/test/transactions/put_block_blob_and_snapshot/3_response.json b/test/transactions/put_block_blob_and_snapshot/3_response.json index f9fd7a1651..15f952d01a 100644 --- a/test/transactions/put_block_blob_and_snapshot/3_response.json +++ b/test/transactions/put_block_blob_and_snapshot/3_response.json @@ -1,14 +1,14 @@ { "status": 201, "headers": { - "date": "Wed, 03 Aug 2022 14:22:23 GMT", - "etag": "\"0x8DA755B93ED9A78\"", - "last-modified": "Wed, 03 Aug 2022 14:22:21 GMT", + "content-length": "0", + "date": "Fri, 16 Sep 2022 18:46:36 GMT", + "etag": "\"0x8DA9813C903955A\"", + "last-modified": "Fri, 16 Sep 2022 18:46:37 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-request-id": "bf2dc386-601e-0065-0e44-a7c5f3000000", + "x-ms-request-id": "0c3b5286-901e-005e-02fc-c9a9ed000000", "x-ms-request-server-encrypted": "false", - "x-ms-snapshot": "2022-08-03T14:22:24.1496763Z", + "x-ms-snapshot": "2022-09-16T18:46:37.0832202Z", "x-ms-version": "2019-12-12" }, "body": "" diff --git a/test/transactions/put_block_blob_and_snapshot/4_request.json b/test/transactions/put_block_blob_and_snapshot/4_request.json index db9783cfd5..48b081d90a 100644 --- a/test/transactions/put_block_blob_and_snapshot/4_request.json +++ b/test/transactions/put_block_blob_and_snapshot/4_request.json @@ -4,8 +4,8 @@ "headers": { "authorization": "<>", "content-length": "0", - "user-agent": "azsdk-rust-storage/0.4.0 (1.61.0; linux; x86_64)", - "x-ms-date": "Wed, 03 Aug 2022 14:22:24 GMT", + "user-agent": "azsdk-rust-storage/0.6.0 (1.63.0; linux; x86_64)", + "x-ms-date": "Fri, 16 Sep 2022 18:46:36 GMT", "x-ms-version": "2019-12-12" }, "body": "" diff --git a/test/transactions/put_block_blob_and_snapshot/4_response.json b/test/transactions/put_block_blob_and_snapshot/4_response.json index 852c25bc80..88da0bc8d8 100644 --- a/test/transactions/put_block_blob_and_snapshot/4_response.json +++ b/test/transactions/put_block_blob_and_snapshot/4_response.json @@ -1,10 +1,10 @@ { "status": 202, "headers": { - "date": "Wed, 03 Aug 2022 14:22:26 GMT", + "content-length": "0", + "date": "Fri, 16 Sep 2022 18:46:36 GMT", "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-request-id": "bf2dc3be-601e-0065-3044-a7c5f3000000", + "x-ms-request-id": "0c3b5299-901e-005e-13fc-c9a9ed000000", "x-ms-version": "2019-12-12" }, "body": ""