table-storage_2.py 926 B

123456789101112131415161718192021222324
  1. def run_all_samples(self, account):
  2. table_service = account.create_table_service()
  3. print('Azure Storage Advanced Table samples - Starting.')
  4. print('\n\n* List tables *\n')
  5. self.list_tables(table_service)
  6. if not account.is_azure_cosmosdb_table():
  7. print('\n\n* Set service properties *\n')
  8. self.set_service_properties(table_service)
  9. print('\n\n* Set Cors rules *\n')
  10. self.set_cors_rules(table_service)
  11. print('\n\n* ACL operations *\n')
  12. self.table_acl_operations(table_service)
  13. if (config.IS_EMULATED):
  14. print('\n\n* Shared Access Signature is not supported in emulator *\n')
  15. else:
  16. print('\n\n* SAS operations *\n')
  17. self.table_operations_with_sas(account)
  18. print('\nAzure Storage Advanced Table samples - Completed.\n')