Is your feature request related to a problem? Please describe.
When I need to generate Blob object by using factory function Blob.from_string, I cannot use customer-supplied encryption option smoothly. I always need to assign internal variables like below:
blob = Blob.from_string("gs://somewhere/sample.txt", client=client)
blob._encryption_key = encryption_key
Describe the solution you'd like
- Add
encryption_key parameter to Blob.from_string.
Describe alternatives you've considered
Maybe adding explicit setter for _encryption_key is possible, but I think the solution above is more effective for resolving this issue.
Additional context
I have a draft PR for this fix, so please review it if this request is acceptable. Thanks!
Is your feature request related to a problem? Please describe.
When I need to generate
Blobobject by using factory functionBlob.from_string, I cannot use customer-supplied encryption option smoothly. I always need to assign internal variables like below:Describe the solution you'd like
encryption_keyparameter toBlob.from_string.Describe alternatives you've considered
Maybe adding explicit setter for
_encryption_keyis possible, but I think the solution above is more effective for resolving this issue.Additional context
I have a draft PR for this fix, so please review it if this request is acceptable. Thanks!