Method: Azure::Table::TableService#create_table
- Defined in:
- lib/azure/table/table_service.rb
#create_table(table_name, options = {}) ⇒ Object
Public: Creates new table in the storage account
Attributes
-
table_name- String. The table name -
options- Hash. Optional parameters.
Options
Accepted key/value pairs in options parameter are:
-
:timeout- Integer. A timeout in seconds.
See msdn.microsoft.com/en-us/library/windowsazure/dd135729
Returns nil on success
48 49 50 51 52 53 54 55 |
# File 'lib/azure/table/table_service.rb', line 48 def create_table(table_name, ={}) query = { } query["timeout"] = [:timeout].to_s if [:timeout] body = Azure::Table::Serialization.hash_to_entry_xml({"TableName" => table_name}).to_xml call(:post, collection_uri(query), body) nil end |