-
Notifications
You must be signed in to change notification settings - Fork 295
[Storage] get_account_info
for all clients, set/get_tags
for BlobClient
#2661
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4e89dc9
Clean regen against latest feature/blob-tsp commit
vincenttran-msft c2d1bdd
get/set tags
vincenttran-msft 1058418
get_account_info all clients
vincenttran-msft 0b9ac06
Re-record to fix broken tests from latest main generation
vincenttran-msft f827ea6
PR feedback
vincenttran-msft 46c2a63
Added helper for tags
vincenttran-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
use crate::generated::models::{BlobTag, BlobTags}; | ||
use azure_core::http::RequestContent; | ||
use std::collections::HashMap; | ||
|
||
/// Takes in an offset and a length and returns the HTTP range in string format. | ||
/// | ||
/// # Arguments | ||
/// | ||
/// * `tags` - A hash map containing the name-value pairs associated with the blob as tags. | ||
pub fn serialize_blob_tags(tags: HashMap<String, String>) -> BlobTags { | ||
let mut blob_tags: Vec<BlobTag> = vec![]; | ||
|
||
for (k, v) in tags.into_iter() { | ||
let blob_tag = BlobTag { | ||
key: Some(k), | ||
value: Some(v), | ||
}; | ||
blob_tags.push(blob_tag); | ||
} | ||
BlobTags { | ||
blob_tag_set: Some(blob_tags), | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.