Skip to content

Conversation

@JesseLovelace
Copy link
Contributor

Fix documentation around updating blob metadata

@JesseLovelace JesseLovelace requested a review from frankyn May 10, 2019 20:48
@JesseLovelace JesseLovelace requested a review from a team as a code owner May 10, 2019 20:48
@googlebot googlebot 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
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
Contributor

Choose a reason for hiding this comment

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

keyToAddOrUpdate

@codecov
Copy link

codecov bot commented May 10, 2019

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 Files Coverage Δ Complexity Δ
...rc/main/java/com/google/cloud/storage/Storage.java 85.84% <ø> (ø) 0 <0> (ø) ⬇️
...e/src/main/java/com/google/cloud/storage/Blob.java 82.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
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 master May 13, 2019
@Neenu1995 Neenu1995 deleted the metadatadocumentation branch July 6, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants