-
Notifications
You must be signed in to change notification settings - Fork 84
Cloud Storage: getStorageClass in SetStorageClassLifecycleAction is not visible #21
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
Comments
Looks like a bug: getStorageClass() of BucketInfo.LifecycleRule.SetStorageClassLifecycleAction class should be declared as public. To workaround this issue you can create a class in the same package:
Then you can use your helper class to access this method:
|
I don't get it.. Could you please elaborate. when can I expect the bug fix on google-cloud-storage-1.7.8.0.jar? |
I will work on it, but I can't promise any date. |
workaround:
|
Yes, this is another workaround. But it will not work if you have security restrictions preventing you from invoking private methods. If you don't have such restrictions this will work fine. |
getStorageClass() method in SetStorageClassLifecycleAction class is only visible inside the package. Its not accessible outside the package.
I am trying to read storage class set by the lifecycle rule through SDK in the following way. looks like its not possible. Can you suggest any other alternative to access if this is not possible.
// Compiler error : The method getStorageClass() from the type BucketInfo.LifecycleRule.SetStorageClassLifecycleAction is not visible
Environment details
OS type and version: Windows 10
Java version: JDK 11
sdk version: google-cloud-storage-1.7.8.0.jar
The text was updated successfully, but these errors were encountered: