Skip to content

Commit 230b2e8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4e93949 of spec repo
1 parent 948b0d6 commit 230b2e8

7 files changed

Lines changed: 166 additions & 4 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12763,9 +12763,25 @@ components:
1276312763
- id: row_id_2
1276412764
type: row
1276512765
type: reference-tables-batch-rows-query
12766+
included:
12767+
- attributes:
12768+
values:
12769+
ip_address: 102.130.113.9
12770+
id: row_id_1
12771+
type: row
12772+
- attributes:
12773+
values:
12774+
ip_address: 102.130.113.10
12775+
id: row_id_2
12776+
type: row
1276612777
properties:
1276712778
data:
1276812779
$ref: "#/components/schemas/BatchRowsQueryResponseData"
12780+
included:
12781+
description: Full row resources matching the query, included alongside the relationship references in `data`.
12782+
items:
12783+
$ref: "#/components/schemas/TableRowResourceData"
12784+
type: array
1276912785
type: object
1277012786
BatchRowsQueryResponseData:
1277112787
description: Data object for a batch rows query response.
@@ -56966,6 +56982,9 @@ components:
5696656982
links:
5696756983
first: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Blimit%5D=100"
5696856984
self: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
56985+
meta:
56986+
page:
56987+
next_continuation_token: eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ==
5696956988
properties:
5697056989
data:
5697156990
description: The rows.
@@ -56974,6 +56993,8 @@ components:
5697456993
type: array
5697556994
links:
5697656995
$ref: "#/components/schemas/ListRowsResponseLinks"
56996+
meta:
56997+
$ref: "#/components/schemas/ListRowsResponseMeta"
5697756998
required:
5697856999
- data
5697957000
- links
@@ -56997,6 +57018,20 @@ components:
5699757018
- self
5699857019
- first
5699957020
type: object
57021+
ListRowsResponseMeta:
57022+
description: Contains pagination details, including the continuation token for fetching additional rows.
57023+
properties:
57024+
page:
57025+
$ref: "#/components/schemas/ListRowsResponseMetaPage"
57026+
type: object
57027+
ListRowsResponseMetaPage:
57028+
description: Contains the continuation token for navigating to the next page of rows.
57029+
properties:
57030+
next_continuation_token:
57031+
description: Opaque token to pass as the `page[continuation_token]` query parameter to fetch the next page of results. Only present when more rows are available.
57032+
example: eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ==
57033+
type: string
57034+
type: object
5700057035
ListRulesResponse:
5700157036
description: Scorecard rules response.
5700257037
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20836,6 +20836,20 @@ datadog\_api\_client.v2.model.list\_rows\_response\_links module
2083620836
:members:
2083720837
:show-inheritance:
2083820838

20839+
datadog\_api\_client.v2.model.list\_rows\_response\_meta module
20840+
---------------------------------------------------------------
20841+
20842+
.. automodule:: datadog_api_client.v2.model.list_rows_response_meta
20843+
:members:
20844+
:show-inheritance:
20845+
20846+
datadog\_api\_client.v2.model.list\_rows\_response\_meta\_page module
20847+
---------------------------------------------------------------------
20848+
20849+
.. automodule:: datadog_api_client.v2.model.list_rows_response_meta_page
20850+
:members:
20851+
:show-inheritance:
20852+
2083920853
datadog\_api\_client.v2.model.list\_rules\_response module
2084020854
----------------------------------------------------------
2084120855

src/datadog_api_client/v2/model/batch_rows_query_response.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -15,28 +15,42 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.batch_rows_query_response_data import BatchRowsQueryResponseData
18+
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
1819

1920

2021
class BatchRowsQueryResponse(ModelNormal):
2122
@cached_property
2223
def openapi_types(_):
2324
from datadog_api_client.v2.model.batch_rows_query_response_data import BatchRowsQueryResponseData
25+
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
2426

2527
return {
2628
"data": (BatchRowsQueryResponseData,),
29+
"included": ([TableRowResourceData],),
2730
}
2831

2932
attribute_map = {
3033
"data": "data",
34+
"included": "included",
3135
}
3236

33-
def __init__(self_, data: Union[BatchRowsQueryResponseData, UnsetType] = unset, **kwargs):
37+
def __init__(
38+
self_,
39+
data: Union[BatchRowsQueryResponseData, UnsetType] = unset,
40+
included: Union[List[TableRowResourceData], UnsetType] = unset,
41+
**kwargs,
42+
):
3443
"""
3544
Response object for a batch rows query against a reference table.
3645
3746
:param data: Data object for a batch rows query response.
3847
:type data: BatchRowsQueryResponseData, optional
48+
49+
:param included: Full row resources matching the query, included alongside the relationship references in ``data``.
50+
:type included: [TableRowResourceData], optional
3951
"""
4052
if data is not unset:
4153
kwargs["data"] = data
54+
if included is not unset:
55+
kwargs["included"] = included
4256
super().__init__(kwargs)

src/datadog_api_client/v2/model/list_rows_response.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,48 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import List, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

1416
if TYPE_CHECKING:
1517
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
1618
from datadog_api_client.v2.model.list_rows_response_links import ListRowsResponseLinks
19+
from datadog_api_client.v2.model.list_rows_response_meta import ListRowsResponseMeta
1720

1821

1922
class ListRowsResponse(ModelNormal):
2023
@cached_property
2124
def openapi_types(_):
2225
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
2326
from datadog_api_client.v2.model.list_rows_response_links import ListRowsResponseLinks
27+
from datadog_api_client.v2.model.list_rows_response_meta import ListRowsResponseMeta
2428

2529
return {
2630
"data": ([TableRowResourceData],),
2731
"links": (ListRowsResponseLinks,),
32+
"meta": (ListRowsResponseMeta,),
2833
}
2934

3035
attribute_map = {
3136
"data": "data",
3237
"links": "links",
38+
"meta": "meta",
3339
}
3440

35-
def __init__(self_, data: List[TableRowResourceData], links: ListRowsResponseLinks, **kwargs):
41+
def __init__(
42+
self_,
43+
data: List[TableRowResourceData],
44+
links: ListRowsResponseLinks,
45+
meta: Union[ListRowsResponseMeta, UnsetType] = unset,
46+
**kwargs,
47+
):
3648
"""
3749
Paginated list of reference table rows.
3850
@@ -41,7 +53,12 @@ def __init__(self_, data: List[TableRowResourceData], links: ListRowsResponseLin
4153
4254
:param links: Pagination links for the list rows response.
4355
:type links: ListRowsResponseLinks
56+
57+
:param meta: Contains pagination details, including the continuation token for fetching additional rows.
58+
:type meta: ListRowsResponseMeta, optional
4459
"""
60+
if meta is not unset:
61+
kwargs["meta"] = meta
4562
super().__init__(kwargs)
4663

4764
self_.data = data
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.list_rows_response_meta_page import ListRowsResponseMetaPage
18+
19+
20+
class ListRowsResponseMeta(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.list_rows_response_meta_page import ListRowsResponseMetaPage
24+
25+
return {
26+
"page": (ListRowsResponseMetaPage,),
27+
}
28+
29+
attribute_map = {
30+
"page": "page",
31+
}
32+
33+
def __init__(self_, page: Union[ListRowsResponseMetaPage, UnsetType] = unset, **kwargs):
34+
"""
35+
Contains pagination details, including the continuation token for fetching additional rows.
36+
37+
:param page: Contains the continuation token for navigating to the next page of rows.
38+
:type page: ListRowsResponseMetaPage, optional
39+
"""
40+
if page is not unset:
41+
kwargs["page"] = page
42+
super().__init__(kwargs)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class ListRowsResponseMetaPage(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"next_continuation_token": (str,),
21+
}
22+
23+
attribute_map = {
24+
"next_continuation_token": "next_continuation_token",
25+
}
26+
27+
def __init__(self_, next_continuation_token: Union[str, UnsetType] = unset, **kwargs):
28+
"""
29+
Contains the continuation token for navigating to the next page of rows.
30+
31+
:param next_continuation_token: Opaque token to pass as the ``page[continuation_token]`` query parameter to fetch the next page of results. Only present when more rows are available.
32+
:type next_continuation_token: str, optional
33+
"""
34+
if next_continuation_token is not unset:
35+
kwargs["next_continuation_token"] = next_continuation_token
36+
super().__init__(kwargs)

src/datadog_api_client/v2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4359,6 +4359,8 @@
43594359
from datadog_api_client.v2.model.list_relation_catalog_response_links import ListRelationCatalogResponseLinks
43604360
from datadog_api_client.v2.model.list_rows_response import ListRowsResponse
43614361
from datadog_api_client.v2.model.list_rows_response_links import ListRowsResponseLinks
4362+
from datadog_api_client.v2.model.list_rows_response_meta import ListRowsResponseMeta
4363+
from datadog_api_client.v2.model.list_rows_response_meta_page import ListRowsResponseMetaPage
43624364
from datadog_api_client.v2.model.list_rules_response import ListRulesResponse
43634365
from datadog_api_client.v2.model.list_rules_response_data_item import ListRulesResponseDataItem
43644366
from datadog_api_client.v2.model.list_rules_response_links import ListRulesResponseLinks
@@ -12850,6 +12852,8 @@
1285012852
"ListRelationCatalogResponseLinks",
1285112853
"ListRowsResponse",
1285212854
"ListRowsResponseLinks",
12855+
"ListRowsResponseMeta",
12856+
"ListRowsResponseMetaPage",
1285312857
"ListRulesResponse",
1285412858
"ListRulesResponseDataItem",
1285512859
"ListRulesResponseLinks",

0 commit comments

Comments
 (0)