lib/azure/armrest/model/storage_account.rb
# Return the blob properties for the given +blob+ found in +container+. You may
# optionally provide a date to get information for a snapshot.
#
Return the blob properties for the given +blob+ found in +container+. You may
optionally provide a date to get information for a snapshot.
Return the blob properties for the given + blob + found in + container + . You may optionally provide a date to get information for a snapshot .
def blob_properties(container, blob, key = access_key, options = {})
        raise ArgumentError, "No access key specified" unless key
        url = File.join(blob_endpoint_from_hash, container, blob)
        url += "?snapshot=" + options[:date] if options[:date]
        headers = build_headers(url, key, :blob, :verb => 'HEAD')
        response = ArmrestService.send(
          :rest_head,
          :url         => url,
          :headers     => headers,
          :proxy       => configuration.proxy,
          :ssl_version => configuration.ssl_version,
          :ssl_verify  => configuration.ssl_verify,
          :timeout     => configuration.timeout
        )
        BlobProperty.new(response.headers.merge(:container => container, :name => blob), options[:skip_accessors_definition])
      end
def blob_properties ( container , blob , key = access_key , options = { } ) raise ArgumentError , "No access key specified" unless key url = File . join ( blob_endpoint_from_hash , container , blob ) url += "?snapshot=" + options [ :date ] if options [ :date ] headers = build_headers ( url , key , :blob , :verb => 'HEAD' ) response = ArmrestService . send ( :rest_head , :url => url , :headers => headers , :proxy => configuration . proxy , :ssl_version => configuration . ssl_version , :ssl_verify => configuration . ssl_verify , :timeout => configuration . timeout ) BlobProperty . new ( response . headers . merge ( :container => container , :name => blob ) , options [ :skip_accessors_definition ] ) end
Return the blob properties for the given +blob+ found in +container+.
Return the blob properties for the given + blob + found in + container + .
container
<not_specific>
blob
<not_specific>
key
<not_specific>
access_key
<not_specific>
options
<not_specific>