Skip to content
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

Draft
wants to merge 7 commits into
base: vincenttran/remaining_mvp_functionality
Choose a base branch
from

Conversation

vincenttran-msft
Copy link
Member

Compiling, but testcases not adjusted yet. Have some points to discuss

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Mar 5, 2025
Comment on lines +55 to +62
let client = GeneratedBlobClient::new(
endpoint,
credential.clone(),
"2025-05-05".to_string(),
container_name.clone(),
blob_name.clone(),
Some(options),
)?;
Copy link
Member Author

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>

Copy link
Member Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant