-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
182 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Optional | ||
|
||
from ._json_model import JsonModel | ||
|
||
|
||
class PagedResult(JsonModel): | ||
continuation_token: Optional[str] | ||
"""A token which allows the user to resume a query at the next item in the matching results. | ||
When querying, a token will be returned if a query may be | ||
continued. To obtain the next page of results, pass the token to the service | ||
on a subsequent request.The service will respond with a new continuation | ||
token. To paginate results, continue sending requests with the newest | ||
continuation token provided by the service, until this value is null. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from typing import Literal | ||
|
||
|
||
OrderBy = Literal[ | ||
"CREATED_AT", "METADATA_MODIFIED_AT", "NAME", "NUMBER_OF_ROWS", "ROWS_MODIFIED_AT" | ||
] | ||
"""Possible options for sorting when querying tables. | ||
* ``CREATED_AT``: The date and time the table was created. | ||
* ``METADATA_MODIFIED_AT``: The date and time the table's metadata properties were modified. | ||
* ``NAME``: The name of the table. | ||
* ``NUMBER_OF_ROWS``: The number of rows of data in the table. | ||
* ``ROWS_MODIFIED_AT``: Date and time rows were most recently appended to the table. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from typing import List | ||
|
||
from nisystemlink.clients.core._uplink._paged_result import PagedResult | ||
|
||
from ._table_metadata import TableMetadata | ||
|
||
|
||
class PagedTables(PagedResult): | ||
"""The response for a table query containing the matched tables.""" | ||
|
||
tables: List[TableMetadata] | ||
"""The list of tables returned by the query.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters