Git Product home page Git Product logo

Comments (5)

mpbraendli avatar mpbraendli commented on July 28, 2024

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.

MindFlavor avatar MindFlavor commented on July 28, 2024

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:

  1. 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.
  2. Create the corresponding response (in your case in blob/responses). Check other responses for a template.
  3. Have the finalize function return a Result<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).
  4. Add the signature to the correct trait (in your case Blob trait in lib.rs).
  5. 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.

MindFlavor avatar MindFlavor commented on July 28, 2024

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.

MindFlavor avatar MindFlavor commented on July 28, 2024

Implemented in https://github.com/MindFlavor/AzureSDKForRust/releases/tag/blob_0.43.1!

from azuresdkforrust.

mpbraendli avatar mpbraendli commented on July 28, 2024

Really cool, thank you so much!

from azuresdkforrust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.