Skip to content

Commit 10b7100

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8386a26 of spec repo
1 parent cb28bb6 commit 10b7100

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71031,7 +71031,7 @@ paths:
7103171031
- description: Number of tables to return.
7103271032
example: 15
7103371033
in: query
71034-
name: limit
71034+
name: page[limit]
7103571035
required: false
7103671036
schema:
7103771037
default: 15
@@ -71042,7 +71042,7 @@ paths:
7104271042
- description: Number of tables to skip for pagination.
7104371043
example: 0
7104471044
in: query
71045-
name: offset
71045+
name: page[offset]
7104671046
required: false
7104771047
schema:
7104871048
default: 0

src/datadog_api_client/v2/api/reference_tables_api.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,21 @@ def __init__(self, api_client=None):
157157
"version": "v2",
158158
},
159159
params_map={
160-
"limit": {
160+
"page_limit": {
161161
"validation": {
162162
"inclusive_maximum": 100,
163163
"inclusive_minimum": 1,
164164
},
165165
"openapi_types": (int,),
166-
"attribute": "limit",
166+
"attribute": "page[limit]",
167167
"location": "query",
168168
},
169-
"offset": {
169+
"page_offset": {
170170
"validation": {
171171
"inclusive_minimum": 0,
172172
},
173173
"openapi_types": (int,),
174-
"attribute": "offset",
174+
"attribute": "page[offset]",
175175
"location": "query",
176176
},
177177
"sort": {
@@ -318,8 +318,8 @@ def get_table(
318318
def list_tables(
319319
self,
320320
*,
321-
limit: Union[int, UnsetType] = unset,
322-
offset: Union[int, UnsetType] = unset,
321+
page_limit: Union[int, UnsetType] = unset,
322+
page_offset: Union[int, UnsetType] = unset,
323323
sort: Union[ReferenceTableSortType, UnsetType] = unset,
324324
filter_status: Union[str, UnsetType] = unset,
325325
filter_table_name_exact: Union[str, UnsetType] = unset,
@@ -329,10 +329,10 @@ def list_tables(
329329
330330
List all reference tables in this organization.
331331
332-
:param limit: Number of tables to return.
333-
:type limit: int, optional
334-
:param offset: Number of tables to skip for pagination.
335-
:type offset: int, optional
332+
:param page_limit: Number of tables to return.
333+
:type page_limit: int, optional
334+
:param page_offset: Number of tables to skip for pagination.
335+
:type page_offset: int, optional
336336
:param sort: Sort field and direction. Use field name for ascending, prefix with "-" for descending.
337337
:type sort: ReferenceTableSortType, optional
338338
:param filter_status: Filter by table status.
@@ -344,11 +344,11 @@ def list_tables(
344344
:rtype: TableResultV2Array
345345
"""
346346
kwargs: Dict[str, Any] = {}
347-
if limit is not unset:
348-
kwargs["limit"] = limit
347+
if page_limit is not unset:
348+
kwargs["page_limit"] = page_limit
349349

350-
if offset is not unset:
351-
kwargs["offset"] = offset
350+
if page_offset is not unset:
351+
kwargs["page_offset"] = page_offset
352352

353353
if sort is not unset:
354354
kwargs["sort"] = sort

0 commit comments

Comments
 (0)