lib/redrax/files.rb
# Creates an object in Cloud Files
# @param body [String] The content to place in the Object in Cloud Files.
# @param args [Hash] Accepts:
#   * metadata: A Hash of key-value pairs to store as metadata on the Object
#   * headers: Other non-metadata headers as supported by the API (see api_doc)
Creates an object in Cloud Files
Creates an object in Cloud Files
def create(container_name, file_name, body = nil, args = {})
      validate_path_elements(container_name, file_name)
      client.request(
        method:   :put,
        path:     "#{container_name}/#{file_name}",
        expected: 201,
        params:   {:body => body},
        headers:  create_headers_from(args)
      )
    end
def create ( container_name , file_name , body = nil , args = { } ) validate_path_elements ( container_name , file_name ) client . request ( method : :put , path : "#{container_name}/#{file_name}" , expected : 201 , params : { :body => body } , headers : create_headers_from ( args ) ) end
Creates an object in Cloud Files
Creates an object in Cloud Files
container_name
file_name
body
The content to place in the Object in Cloud Files.
The content to place in the Object in Cloud Files .
args
A Hash of key-value pairs to store as metadata on the Object * headers: Other non-metadata headers as supported by the API
A Hash of key - value pairs to store as metadata on the Object * headers : Other non - metadata headers as supported by the API