Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tables] Azure Data Tables SDK, sync and async code (Azure#12766)
* updated design of update and upsert methods * fixed upsert/update * reflected change to create_entity * fixed problems with upsert function * fixed upsert/update functions on async clients * pausing on tests * fixed test failing on HttpResponse * fixing 2.7 errorZ * trying to fix 2.7 * fixed tests * removed problem with unbpund fucntion * track 1 async sdk * renamed aio to _aio * updating comments * tweaking comments and types for stub gen * fixed pylint issue * fixed list_tables to query_tables * pylint errors * fixing type errors * updating samples * fixing comments * updating README * fixing PR comments on keyword and credential * editing order of docstrings * fixing queue comments * fixing queue comments * delete table has no return response * changing types to model types * added keys to dictionary * changing types to model types * fixed stroage reference * fixing docstring reutrn * fixed cathc and raise same error * UpdateMode in init * obj to _ * fixing comments * fixed metadata return * fixed comments * fixing test error * fixed depedncies * fixing type * fixing stubgen error * changed to ivar * fixing type error * editing samples/ fixing pylint * reformatted service client sampels * added more official samples * added in teh create and delete table in table client * working on client samples * linked README to samples * TODO for return types * changed query entity to get entity * edited README * made UpdateMode into an enum * changed return type of cont token to dict * fixed readme common uses * todos created * fixed continuation token to a dictionary * fixed continuation error * changed query to individual entries * editing README pr comments * removed AAD from readme * removed TODO * getting rid of exposed secret * added design updates to async client * stahs * fixed import * fixed init file * fixed import * added todo for table * added return type * editing table client return * changed table name for table standards (Sean fix) * editing sas methods * work in progress - fixing pre api review comments * updated tests to work with fixes * re-running tests for verification' * fixed small errors with changing method names * fixed storgae_process_error -> table instead of storage, created metadata tag on entity instead of returning etag as part of entity * made metadata for entities separate from entity itself (see _entity.py) * updated readme and added regex check for table names on TableClient and TableServiceClient * oops forgot to import re in the _table_client.py * metadata test passing * fixed unimported entity * added user defined filter option with parameters * added user defined filter option with parameters * changed the regex test to match to fit with python2 * fixed linting issues thrown by pylint * re-ran test * updating samples part 1 * updating asserts part 2 * removing references to common * fixing sas on sample * fixing import statement * attempting to fix dateutil error * trying to fix enum in entity property * fix #2 dateutil * attempting to fix dateutil error * fixing test import * remove unuse import * added tests for table_client and table_service_client * adding live recordings * fix #2 dateutil * updated dev_requirements, changed test name * py 2.7 doesnt have timezone - siwtch to UTC * reverting back to libbas recordings * reverting to using tzutc -- for now * updating samples a little with error printing * replicated tzutc class with class Timezone * forgot to create table twice for error * changed regex to fxn in _error.py, added second assertion to tests, updated readme * updating samples to reflect sdk part 1 * commented out cryptogrpahy from encryption test * removed commented out code and changed the invalid table name * updating docstrings * 'commented out references to cryptography * commented out pylint errors related to encryption * updated delete entity to show etag * still finding encryption * removed list froma round itempaged * commenting out test * commented out tests * fixed enum on edmtype * updated update entity * fixing apiview comments on sas * added table name to table clinet * changing ItemPaged to ItemPaged[str[ * changing properties to private * changes form apiview archboard pre meeting * added filter type * TODO on from_string in SAS, fixed error in table querying ItemPaged return * changed name to _primary_hostname not primay_hopstname * oops missed the other hostname * oops missed the other other hostname * added a client base for tableclient and tableserviceclient, passes all tests as is for sync code * fixed TODO on sas * changes to satisfy linter * tweaking delete * moved account parsing to the base class, fixed more linting issues * resolved comments * updating samples * updating updatemode * updating UpdateMode * importing typing for union * initial commit for diff * change to REPLACE' * initial commit for pulling down current async status, ran a tests live for updated yaml files * renamed entity tableentity * allowed select to be array or str * made Table class * renamed a new directory for azure-data-tables * removing storgae reference * changed query 'r' to read * removing some commented out code * updating delete/create table comments * docstring return type for table * bullet point auth * base work for async models, working on passing last few tests, added _models for async entities * removing packages to exclude * fixing README * adding to the blurb in the readme from the archboard pwpt * passing most async tests, issues with list_tables query_options currently * fixing blank line * making nspkg for data * removed async * changed to relative imports * :had to update naming * stahs * stahs * had to fix list and query tables * build mad about version * changed version to match 1.0.0 * changed how results_per_page is passed in, need to verify with Libba and change up sync code if we are correct * forgot and init file - path was being skipped in build * changing list and query to align with new api view * passing the list_tables_with_num_results again * passes tests when run locally, does not pass in live-mode. the behavior of results_per_page combined with by_page() is still slightly confusing * fixed test back * hand to change query to list tables * temp fix on README error * had to change msrest version * fixing pylint error * Update README.md * ignorning nspkg readme * addressed Libbas comments * regenerated code * fixed Krista comments on readmes * fixing Krista comments * fixed anna's changes * addressed all of izzys comments * removing unsued import * fixing merge errors * fixing docstrings * fixewd docstring * fixing docstrings * fixing docs * verifying tests work: * verifying tests' * fixed sync for parameters * fixed async clients parameters * fixing error for mode * fixing pylint errors * re running tests * added more tests * fixing models for tests * fixed init * had to fix fomratting of async docstring types * deleting stubgens * fixing references to storage, and tokens * working to refactor mentions of storage * making links to cosmos * changed naming of header for changelog * added azure data init to include * fixed exposed model * fixed return of create table to be Table object * fixed return of create table to be Table object * updated docstring * added try catch to code calls * fixed exposed model * working on fixing error handling: * not overriding etag * fixed table entity metadata * editing table object * fixing sas protocol * remvoed tables from aio model * removing identity * adding comment to install requirement * changing docstrings for edm type - making an issue to infer * fixing pylint errro * fixing readme * fixed tests for metadata * removing links from REAMDE * fixing broken link * fixing pylint * trying to fix bandit fail * trying to fix bandit fail * oops forget to disable bandit check * adding back md5 with nosec Co-authored-by: Sean Kane <seankane@microsoft.com> Co-authored-by: Sean Kane <68240067+seankane-msft@users.noreply.github.com>
- Loading branch information