-
Notifications
You must be signed in to change notification settings - Fork 268
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
[Storage] Initial v11
codegen output
#2287
base: vincenttran/remaining_mvp_functionality
Are you sure you want to change the base?
[Storage] Initial v11
codegen output
#2287
Conversation
let client = GeneratedBlobClient::new( | ||
endpoint, | ||
credential.clone(), | ||
"2025-05-05".to_string(), | ||
container_name.clone(), | ||
blob_name.clone(), | ||
Some(options), | ||
)?; |
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.
Now that we that we don't have an accessor BlobClient
and this literally the generated client that will perform the REST operations, I think this makes some fields redundant on our handwritten clients.
Generated BlobClient
struct:
pub struct BlobClient {
pub(crate) blob: String,
pub(crate) container_name: String,
pub(crate) endpoint: Url,
pub(crate) pipeline: Pipeline,
pub(crate) version: String,
}
We can now omit blob_name
, container_name
, endpoint
from the handwritten client layer and instead do self.client.<field>
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.
Omit from struct, add getters (that will go 1 layer down into gen client)
Compiling, but testcases not adjusted yet. Have some points to discuss