Comments (5)
Hello, I've been using your blob functionality successfully, although my usage was only storing blobs. I now need to use Copy Blob From URL
How can I help you implement this API into the SDK?
I guess the first step is to create a new request in "AzureSDKForRust/azure_sdk_storage_blob/src/blob/requests". Is it fine for you if I start looking into it?
from azuresdkforrust.
Yes of course, any help is appreciated! I might be able to take a break from the Cosmos create now (I've been focusing on than lately) and tackle this but I cannot guarantee on the timeline!
As for your question, in order to extend the crate you need:
- Create the corresponding request (in your case in
blob/request
). You can use the bpb tool if you want to start from the json and save yourself a lot of boilerplate code. - Create the corresponding response (in your case in
blob/responses
). Check other responses for a template. - Have the
finalize
function return aResult<your_response_from_point_2, AzureError>
. Make sure to pass the mandatory and optional headers and construct the URI properly (that's the hard part). - Add the signature to the correct trait (in your case
Blob
trait in lib.rs). - Implement the trait function in the
Client
just returning the generator created at point 1.
After that you should be able to use your function in your code!
from azuresdkforrust.
This PR should give you the function you need: #258. It's almost done, I just need to fix the crate version and I will merge it.
from azuresdkforrust.
Implemented in https://github.com/MindFlavor/AzureSDKForRust/releases/tag/blob_0.43.1!
from azuresdkforrust.
Really cool, thank you so much!
from azuresdkforrust.
Related Issues (20)
- Migrate to v2.0 for AAD endpoints
- Migrate storage client to traits
- Rename AAD functions to match the docs
- Support certificate secret in client credentials grant flow
- Support renewing the token from the refresh token
- Cosmos db insert never completes HOT 10
- `Box<dyn Client + Send + Sync>` doesn't implement the `Blob` trait HOT 3
- Make Cosmos traits Send + Sync
- Getting T from QueryDocumentsResponse<T> HOT 1
- Bearer token authentication HOT 3
- Look into 'DefaultAzureCredential' pattern HOT 1
- put_block_list requires x-ms-content-crc64 HOT 5
- Clarification on LoginResponse HOT 2
- Hyper error: invalid certificate: UnknownIssuer
- `Arc<dyn Client>` doesn't implement `Blob` trait HOT 4
- Support Azure Storage emulator client with sas tokens
- Getting HeaderNotFound `x-ms-content-crc64` on put_block_blob for Azurite HOT 3
- cannot list blobs HOT 1
- url-encoded blob names HOT 3
- Accessing Azure storage Queue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azuresdkforrust.