Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71031,7 +71031,7 @@ paths:
- description: Number of tables to return.
example: 15
in: query
name: limit
name: page[limit]
required: false
schema:
default: 15
Expand All @@ -71042,7 +71042,7 @@ paths:
- description: Number of tables to skip for pagination.
example: 0
in: query
name: offset
name: page[offset]
required: false
schema:
default: 0
Expand Down
28 changes: 14 additions & 14 deletions src/datadog_api_client/v2/api/reference_tables_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,21 @@ def __init__(self, api_client=None):
"version": "v2",
},
params_map={
"limit": {
"page_limit": {
"validation": {
"inclusive_maximum": 100,
"inclusive_minimum": 1,
},
"openapi_types": (int,),
"attribute": "limit",
"attribute": "page[limit]",
"location": "query",
},
"offset": {
"page_offset": {
"validation": {
"inclusive_minimum": 0,
},
"openapi_types": (int,),
"attribute": "offset",
"attribute": "page[offset]",
"location": "query",
},
"sort": {
Expand Down Expand Up @@ -318,8 +318,8 @@ def get_table(
def list_tables(
self,
*,
limit: Union[int, UnsetType] = unset,
offset: Union[int, UnsetType] = unset,
page_limit: Union[int, UnsetType] = unset,
page_offset: Union[int, UnsetType] = unset,
sort: Union[ReferenceTableSortType, UnsetType] = unset,
filter_status: Union[str, UnsetType] = unset,
filter_table_name_exact: Union[str, UnsetType] = unset,
Expand All @@ -329,10 +329,10 @@ def list_tables(

List all reference tables in this organization.

:param limit: Number of tables to return.
:type limit: int, optional
:param offset: Number of tables to skip for pagination.
:type offset: int, optional
:param page_limit: Number of tables to return.
:type page_limit: int, optional
:param page_offset: Number of tables to skip for pagination.
:type page_offset: int, optional
:param sort: Sort field and direction. Use field name for ascending, prefix with "-" for descending.
:type sort: ReferenceTableSortType, optional
:param filter_status: Filter by table status.
Expand All @@ -344,11 +344,11 @@ def list_tables(
:rtype: TableResultV2Array
"""
kwargs: Dict[str, Any] = {}
if limit is not unset:
kwargs["limit"] = limit
if page_limit is not unset:
kwargs["page_limit"] = page_limit

if offset is not unset:
kwargs["offset"] = offset
if page_offset is not unset:
kwargs["page_offset"] = page_offset

if sort is not unset:
kwargs["sort"] = sort
Expand Down