lib/azure/armrest/model/storage_account.rb
# Using the file primary endpoint as a base, join any arguments to the
# the url and submit an http request.
#
Using the file primary endpoint as a base, join any arguments to the
the url and submit an http request.
Using the file primary endpoint as a base join any arguments to the the url and submit an http request .
def file_response(key, query, request_type = 'get', payload = '', *args)
        url = File.join(properties.primary_endpoints.file, *args)
        url += "?#{query}" if query && !query.empty?
        request_method = "rest_#{request_type}".to_sym
        headers = build_headers(url, key, :file, :verb => request_type.to_s.upcase)
        params = {
          :url         => url,
          :headers     => headers,
          :proxy       => configuration.proxy,
          :ssl_version => configuration.ssl_version,
          :ssl_verify  => configuration.ssl_verify,
          :timeout     => configuration.timeout
        }
        if %w[put post].include?(request_type.to_s.downcase)
          params[:payload] = payload
        end
        ArmrestService.send(request_method, params)
      end
def file_response ( key , query , request_type = 'get' , payload = '' , * args ) url = File . join ( properties . primary_endpoints . file , * args ) url += "?#{query}" if query && ! query . empty? request_method = "rest_#{request_type}" . to_sym headers = build_headers ( url , key , :file , :verb => request_type . to_s . upcase ) params = { :url => url , :headers => headers , :proxy => configuration . proxy , :ssl_version => configuration . ssl_version , :ssl_verify => configuration . ssl_verify , :timeout => configuration . timeout } if %w[ put post ] . include? ( request_type . to_s . downcase ) params [ :payload ] = payload end ArmrestService . send ( request_method , params ) end
Using the file primary endpoint as a base, join any arguments to the
the url and submit an http request.
Using the file primary endpoint as a base join any arguments to the the url and submit an http request .
key
<not_specific>
query
<not_specific>
request_type
<not_specific>
payload
<not_specific>
args
<not_specific>