-
Notifications
You must be signed in to change notification settings - Fork 301
[Storage] put_blob_from_url
for BlobClient
#2936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Storage] put_blob_from_url
for BlobClient
#2936
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
/// `https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>` | ||
/// `https://otheraccount.blob.core.windows.net/mycontainer/myblob?sastoken` | ||
/// * `options` - Optional configuration for the request. See [`BlockBlobClientPutBlobFromUrlOptionsExt`](crate::models::BlockBlobClientPutBlobFromUrlOptionsExt) for additional usage helpers. | ||
pub async fn put_blob_from_url( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go on BlockBlobClient since its Block Blob specific.
/// `https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=<DateTime>` | ||
/// `https://otheraccount.blob.core.windows.net/mycontainer/myblob?sastoken` | ||
/// * `options` - Optional configuration for the request. See [`BlockBlobClientPutBlobFromUrlOptionsExt`](crate::models::BlockBlobClientPutBlobFromUrlOptionsExt) for additional usage helpers. | ||
pub async fn put_blob_from_url( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename this to upload_from_url
fn with_if_not_exists(self) -> Self; | ||
} | ||
|
||
impl BlockBlobClientPutBlobFromUrlOptionsExt for BlockBlobClientPutBlobFromUrlOptions<'_> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do this without an extension?
.tsp
: Azure/azure-rest-api-specs#36847put_blob_from_url
create_test_blob
utility to acceptdata
but still have a fallback for simple casesBlockBlobClientPutBlobFromUrlResultHeaders
̶d̶a̶t̶e̶
content_md5
last_modified
etag
encryption_key_sha256
encryption_scope
is_server_encrypted
version_id