Skip to content

Fix documentation around updating blob metadata - #5173

Merged
JesseLovelace merged 7 commits into
masterfrom
metadatadocumentation
May 13, 2019
Merged

Fix documentation around updating blob metadata#5173
JesseLovelace merged 7 commits into
masterfrom
metadatadocumentation

Conversation

@JesseLovelace

Copy link
Copy Markdown
Contributor

Fix documentation around updating blob metadata

@JesseLovelace
JesseLovelace requested review from a team and frankynMay 10, 2019 20:48
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label May 10, 2019
* String bucketName = "my_unique_bucket";
* String blobName = "my_blob_name";
* Map<String, String> newMetadata = new HashMap<>();
* newMetadata.put("keyToAdd", "value");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyToAddOrUpdate

* String bucketName = "my_unique_bucket";
* String blobName = "my_blob_name";
* Map<String, String> newMetadata = new HashMap<>();
* newMetadata.put("keyToAdd", "value");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyToAddOrUpdate

@codecov

codecovBot commented May 10, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5173 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@## master #5173 +/- ##
=========================================
Coverage 50.4% 50.4% Complexity 23785 23785 =========================================
Files 2251 2251 Lines 226785 226785 Branches 24966 24966 =========================================
Hits 114314 114314 Misses 103864 103864 Partials 8607 8607
Impacted FilesCoverage ΔComplexity Δ
...rc/main/java/com/google/cloud/storage/Storage.java85.84% <ø> (ø)0 <0> (ø)⬇️
...e/src/main/java/com/google/cloud/storage/Blob.java82.09% <ø> (ø)30 <0> (ø)⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2313bb5...946d514. Read the comment docs.

* value to {@code null}.
*
* <p>Example of replacing blob's metadata.
* <p>Example of adding new metadata values or replacing existing ones.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replacing -> updating

@JesseLovelace
JesseLovelace merged commit 1b29001 into masterMay 13, 2019
@Neenu1995
Neenu1995 deleted the metadatadocumentation branch July 6, 2022 17:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@JesseLovelace@frankyn@googlebot