struct AZBlob::SignatureValues

Overview

SignatureValues is used to generate a Shared Access Signature (SAS) for an Azure Storage container or blob. For more information on creating service sas, see https://docs.microsoft.com/rest/api/storageservices/constructing-a-service-sas For more information on creating user delegation sas, see https://docs.microsoft.com/rest/api/storageservices/create-user-delegation-sas

Defined in:

azblob/sas/sas.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(container : String, permissions : SasPermissions, blob : String = "", version : String = ServiceVersion, protocol : String = "https,http", start : Time = Time.utc, expiry : Time::Span = 1.hour, snapshot_time : Time | Nil = nil, ip_range : String | Nil = nil, identifier : String | Nil = nil, directory : String | Nil = nil, cache_control : String | Nil = nil, content_disposition : String | Nil = nil, content_encoding : String | Nil = nil, content_language : String | Nil = nil, content_type : String | Nil = nil, blob_version : String | Nil = nil, authorized_objid : String | Nil = nil, unauthorized_objid : String | Nil = nil, correlation_id : String | Nil = nil, encryption_scope : String | Nil = nil) #

[View source]

Instance Method Detail

def authorized_objid : String | Nil #

def blob : String #

def blob_version : String | Nil #

def cache_control : String | Nil #

def clone #

[View source]
def container : String #

def content_disposition : String | Nil #

def content_encoding : String | Nil #

def content_language : String | Nil #

def content_type : String | Nil #

def copy_with(container _container = @container, permissions _permissions = @permissions, blob _blob = @blob, version _version = @version, protocol _protocol = @protocol, start _start = @start, expiry _expiry = @expiry, snapshot_time _snapshot_time = @snapshot_time, ip_range _ip_range = @ip_range, identifier _identifier = @identifier, directory _directory = @directory, cache_control _cache_control = @cache_control, content_disposition _content_disposition = @content_disposition, content_encoding _content_encoding = @content_encoding, content_language _content_language = @content_language, content_type _content_type = @content_type, blob_version _blob_version = @blob_version, authorized_objid _authorized_objid = @authorized_objid, unauthorized_objid _unauthorized_objid = @unauthorized_objid, correlation_id _correlation_id = @correlation_id, encryption_scope _encryption_scope = @encryption_scope) #

[View source]
def correlation_id : String | Nil #

def directory : String | Nil #

def encryption_scope : String | Nil #

def expiry : Time::Span #

def identifier : String | Nil #

def ip_range : String | Nil #

def permissions : SasPermissions #

def protocol : String #

def sign_with_sharedkey(cred : SharedKeyCredential) #

uses an account's SharedKeyCredential to sign this signature values to produce the proper SAS query parameters.


[View source]
def snapshot_time : Time | Nil #

def start : Time #

def unauthorized_objid : String | Nil #

def version : String #