Skip to content
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

Create new helper function for "archive" storage class. #3075

Closed
coryan opened this issue Sep 25, 2019 · 2 comments · Fixed by #3197
Closed

Create new helper function for "archive" storage class. #3075

coryan opened this issue Sep 25, 2019 · 2 comments · Fixed by #3197
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@coryan
Copy link
Contributor

coryan commented Sep 25, 2019

We have a number of helper functions for storage class:

inline char const* Standard() {
static constexpr char kStorageClass[] = "STANDARD";
return kStorageClass;
}
inline char const* MultiRegional() {
static constexpr char kStorageClass[] = "MULTI_REGIONAL";
return kStorageClass;
}
inline char const* Regional() {
static constexpr char kStorageClass[] = "REGIONAL";
return kStorageClass;
}
inline char const* Nearline() {
static constexpr char kStorageClass[] = "NEARLINE";
return kStorageClass;
}
inline char const* Coldline() {
static constexpr char kStorageClass[] = "COLDLINE";
return kStorageClass;
}
inline char const* DurableReducedAvailability() {
static constexpr char kStorageClass[] = "DURABLE_REDUCED_AVAILABILITY";
return kStorageClass;
}

We need to add another one of these for ARCHIVE.

@coryan coryan added api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Sep 25, 2019
@coryan
Copy link
Contributor Author

coryan commented Sep 25, 2019

We also need to fix the helpers to create lifecycle policies:

LifecycleRuleAction LifecycleRule::SetStorageClassColdline() {

@frankyn
Copy link
Member

frankyn commented Oct 10, 2019

Please assign, @tritone as the reviewer.

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. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@frankyn @coryan @manish-qlogic and others