-
Notifications
You must be signed in to change notification settings - Fork 283
add "create file" operation to Azure Storage data_lake (using Pipeline architecture) #356
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
Comments
Continuing #290 |
@heaths @rylev I'd like to get some early input on how to model the Azure Storage data_lake operations for create/rename file/directory. These operations are all combined into a single REST API: https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create I'm thinking to expose these as 4 different operations in the Rust SDK. I'm also thinking to expose 'fail if the destination already exists' at a higher level of abstraction than 'use a conditional request with If-None-Match: "*"'. Does this sound ok, and are there examples of other Azure Rust SDK crates that do this kind of thing already? |
Found that the .Net SDK for Azure Storage uses a generated Path REST client, and then layers a File client and Directory client on top, exposing higher level concepts such as 'rename'. Is there an example of using an underlying generated REST client in the Rust SDK? |
We don't currently generate code for our "hand rolled" SDKs (i.e., the ones in the sdk directory). If you take a look into the cosmos crate you'll notice that we build the clients up from scratch. Eventually we will want to try to generate the boilerplate rest calls from metadata, but for most services that's not possible because the metadata describing those APIs does not exist. |
Thanks. Any thoughts on the SDK design I proposed for the heavily overloaded "create path" REST call? |
It has become clear that we should match the .Net SDK as much as possible with respect to naming and structure, so I will eventually create a File and Directory client. |
https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create
The text was updated successfully, but these errors were encountered: