class
Google::Cloud::Storage
- Google::Cloud::Storage
- Reference
- Object
Defined in:
cloud/storage.crConstructors
Instance Method Summary
- #buckets
- #credentials : ServiceAccount::Key
- #delete(path : String, headers = HTTP::Headers.new, &)
- #get(path : String, headers = HTTP::Headers.new, &)
- #objects
- #post(path : String, body, headers = HTTP::Headers.new, &)
- #presigned_url(bucket : String, key : String, method : String = "GET", expires_in : Time::Span = 1.hour, content_type : String | Nil = nil, content_md5_base64 : String | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new, payload_handling : String = "UNSIGNED-PAYLOAD")
Constructor Detail
def self.new(credentials : Google::ServiceAccount::Key, storage_host : String = "storage.googleapis.com")
#
Instance Method Detail
def presigned_url(bucket : String, key : String, method : String = "GET", expires_in : Time::Span = 1.hour, content_type : String | Nil = nil, content_md5_base64 : String | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new, payload_handling : String = "UNSIGNED-PAYLOAD")
#