Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

fix(types): add CreateBucketRequest.storageClass#1299

Merged
stephenplusplus merged 1 commit intomasterfrom
spp--1248
Sep 21, 2020
Merged

fix(types): add CreateBucketRequest.storageClass#1299
stephenplusplus merged 1 commit intomasterfrom
spp--1248

Conversation

@stephenplusplus
Copy link
Copy Markdown
Contributor

Closes #1248

The CreateBucketRequest interface was not accepting the storageClass string.

@stephenplusplus stephenplusplus requested a review from a team September 21, 2020 14:05
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 21, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 21, 2020

Codecov Report

Merging #1299 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1299   +/-   ##
=======================================
  Coverage   98.98%   98.98%           
=======================================
  Files          14       14           
  Lines       11579    11580    +1     
  Branches      529      529           
=======================================
+ Hits        11462    11463    +1     
  Misses        117      117           
Impacted Files Coverage Δ
src/storage.ts 100.00% <100.00%> (ø)

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 358be8d...0d6fdaa. Read the comment docs.

Copy link
Copy Markdown
Contributor

@laljikanjareeya laljikanjareeya left a comment

Choose a reason for hiding this comment

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

@stephenplusplus do we need this as all the classes available on the create bucket request
You can create bucket with storage class as below:

await storage.createBucket(bucketName, {
    [storageClassName]: true,
});

@stephenplusplus
Copy link
Copy Markdown
Contributor Author

Yes, that is our decoration to make things easier for the user, but we should always handle the REST-defined input as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants