lib/azure/armrest/model/storage_account.rb
# Returns a list of TableData objects for the given table +name+ using
# account +key+. The exact nature of the TableData object depends on the
# type of table that it is.
#
# You may specify :filter, :select or :top as options to restrict your
# result set.
#
# By default you will receive a maximum of 1000 records. If you wish to
# receive more records, you will need to use the continuation token. You
# may also set the :all option to true if you want all records, though we
# recommend using a filter as well if you use that option as there can
# be thousands of results.
#
# You may also specify a :NextRowKey, :NextPartitionKey or :NextTableset
# explicitly for paging. Normally you would just pass the
# collection's continuation_token, however. See below for an example.
#
# When using continuation tokens, you should retain your original
# filtering as well, or you may get unexpected results.
#
# Examples:
#
#   # Get the first 10 rows of data from the last 3 days
#   date = (Time.now - (86400 * 3)).iso8601
#   my_filter = "timestamp ge datetime'#{date}'"
#   options = {:top => 10, :filter => my_filter}
#
#   results = storage_account.table_data(table, key, options)
#
#   # Now get the next 10 records
#   if results.continuation_token
#     options[:continuation_token] = results.continuation_token
#     more_results = storage_account.table_data(table, key, options)
#   end
#
Returns a list of TableData objects for the given table +name+ using
account +key+. The exact nature of the TableData object depends on the
type of table that it is.

You may specify :filter, :select or :top as options to restrict your
result set.

By default you will receive a maximum of 1000 records. If you wish to
receive more records, you will need to use the continuation token. You
may also set the :all option to true if you want all records, though we
recommend using a filter as well if you use that option as there can
be thousands of results.

You may also specify a :NextRowKey, :NextPartitionKey or :NextTableset
explicitly for paging. Normally you would just pass the
collection's continuation_token, however. See below for an example.

When using continuation tokens, you should retain your original
filtering as well, or you may get unexpected results.








Returns a list of TableData objects for the given table + name + using account + key + . The exact nature of the TableData object depends on the type of table that it is . You may specify : filter : select or : top as options to restrict your result set . By default you will receive a maximum of 1000 records . If you wish to receive more records you will need to use the continuation token . You may also set the : all option to true if you want all records though we recommend using a filter as well if you use that option as there can be thousands of results . You may also specify a : NextRowKey : NextPartitionKey or : NextTableset explicitly for paging . Normally you would just pass the collection ' s continuation_token however . See below for an example . When using continuation tokens you should retain your original filtering as well or you may get unexpected results .
def table_data(name, key = access_key, options = {})
        raise ArgumentError, "No access key specified" unless key
        query = build_query(options)
        response = table_response(key, query, name)
        klass = Azure::Armrest::StorageAccount::TableData
        data  = Azure::Armrest::ArmrestCollection.create_from_response(response, klass)
        data.continuation_token = parse_continuation_tokens(response)
        if options[:all] && data.continuation_token
          options[:continuation_token] = data.continuation_token
          data.push(*table_data(name, key, options))
          data.continuation_token = nil 
        end
        data
      end
def table_data ( name , key = access_key , options = { } ) raise ArgumentError , "No access key specified" unless key query = build_query ( options ) response = table_response ( key , query , name ) klass = Azure :: Armrest :: StorageAccount :: TableData data = Azure :: Armrest :: ArmrestCollection . create_from_response ( response , klass ) data . continuation_token = parse_continuation_tokens ( response ) if options [ :all ] && data . continuation_token options [ :continuation_token ] = data . continuation_token data . push ( * table_data ( name , key , options ) ) data . continuation_token = nil end data end
Returns a list of TableData objects for the given table +name+ using
account +key+.
Returns a list of TableData objects for the given table + name + using account + key + .
# Continuation tokens are parsed differently for storage # Clear when finished
name
<not_specific>
key
<not_specific>
access_key
<not_specific>
options
<not_specific>