Skip to content

storage/bucket: add "bucket.setStorageClass()"#2473

Merged
stephenplusplus merged 2 commits intogoogleapis:masterfrom
stephenplusplus:spp--2471
Jul 20, 2017
Merged

storage/bucket: add "bucket.setStorageClass()"#2473
stephenplusplus merged 2 commits intogoogleapis:masterfrom
stephenplusplus:spp--2471

Conversation

@stephenplusplus
Copy link
Contributor

Fixes #2471

This adds a method bucket.setStorageClass(newStorageClass, [options], [callback]).

@stephenplusplus stephenplusplus added the api: storage Issues related to the Cloud Storage API. label Jul 20, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 20, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 126315d on stephenplusplus:spp--2471 into ** on GoogleCloudPlatform:master**.

});
};

/**

This comment was marked as spam.

This comment was marked as spam.

* Set the storage class for this bucket.
*
* @resource [Storage Classes]{@link https://cloud.google.com/storage/docs/storage-classes}
*

This comment was marked as spam.

This comment was marked as spam.

@frankyn
Copy link
Contributor

frankyn commented Jul 20, 2017

Thanks! Example and documentation LGTM.

@stephenplusplus stephenplusplus merged commit 034e296 into googleapis:master Jul 20, 2017
@stephenplusplus
Copy link
Contributor Author

Thanks for the suggestion and review!

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 07d3854 on stephenplusplus:spp--2471 into ** on GoogleCloudPlatform:master**.

sofisl pushed a commit that referenced this pull request Feb 25, 2026
* storage/bucket: add "bucket.setStorageClass()"
sofisl pushed a commit that referenced this pull request Feb 26, 2026
🤖 I have created a release *beep* *boop*
---


## [8.4.0](https://github.com/googleapis/nodejs-spanner/compare/v8.3.1...v8.4.0) (2026-01-09)


### Features

* Add a ClientContext field to Spanner requests ([#2493](https://github.com/googleapis/nodejs-spanner/issues/2493)) ([37504ad](https://github.com/googleapis/nodejs-spanner/commit/37504adcc37a7e95acfb2530313ff783d0c1fe7d))
* Exposing total CPU related fields in AutoscalingConfig ([#2490](https://github.com/googleapis/nodejs-spanner/issues/2490)) ([508f0ff](https://github.com/googleapis/nodejs-spanner/commit/508f0ff95636b004f4200522018a199263eda8ca))
* **spanner:** Support for type UUID ([#2482](https://github.com/googleapis/nodejs-spanner/issues/2482)) ([0047e94](https://github.com/googleapis/nodejs-spanner/commit/0047e9407d86521571626c69011b70307f83f8ba))


### Bug Fixes

* **deps:** Update dependency google-gax to v5.0.6 ([#2452](https://github.com/googleapis/nodejs-spanner/issues/2452)) ([f9e6b86](https://github.com/googleapis/nodejs-spanner/commit/f9e6b86ff4da03110642c17e5ebc8fac8d903d3a))
* Flaky metric test ([#2472](https://github.com/googleapis/nodejs-spanner/issues/2472)) ([e169cc5](https://github.com/googleapis/nodejs-spanner/commit/e169cc5344d38812b1ebf20c7a987715a73d6f79))
* Memory leak and deadlock due to error event in multiplexed session ([#2477](https://github.com/googleapis/nodejs-spanner/issues/2477)) ([c624619](https://github.com/googleapis/nodejs-spanner/commit/c624619a3960892b1d2d412ff79faa5a74de45df))
* Presubmit failure for samples backups test ([#2492](https://github.com/googleapis/nodejs-spanner/issues/2492)) ([01eb3d5](https://github.com/googleapis/nodejs-spanner/commit/01eb3d5801ddb21517f185b9d585fbce4fa1475c))
* Type check for key in deleteRows ([#2486](https://github.com/googleapis/nodejs-spanner/issues/2486)) ([7347a16](https://github.com/googleapis/nodejs-spanner/commit/7347a1628ad8635b8f84b36ad1d3850b78862ac7))
* Type mismatch in Snapshot.run error handler ([#2487](https://github.com/googleapis/nodejs-spanner/issues/2487)) ([4ac0360](https://github.com/googleapis/nodejs-spanner/commit/4ac036047e3a03c073300f288c746389a38d8e42))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants