Skip to content

Commit 1003dee

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b0ede7c of spec repo (#4039)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 8132c23 commit 1003dee

4 files changed

Lines changed: 98 additions & 4 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119940,16 +119940,44 @@ components:
119940119940
x-enum-varnames:
119941119941
- REFERENCE_TABLE
119942119942
TableRowResourceArray:
119943-
description: List of rows from a reference table query.
119943+
description: List of rows from a reference table query, along with metadata about rows that were requested but not found.
119944119944
properties:
119945119945
data:
119946119946
description: The rows.
119947119947
items:
119948119948
$ref: "#/components/schemas/TableRowResourceData"
119949119949
type: array
119950+
meta:
119951+
$ref: "#/components/schemas/TableRowResourceArrayMeta"
119950119952
required:
119951119953
- data
119952119954
type: object
119955+
TableRowResourceArrayMeta:
119956+
description: Metadata about the rows requested, including which ones were not found.
119957+
properties:
119958+
found_count:
119959+
description: Number of requested rows that were found and returned in `data`.
119960+
example: 1
119961+
format: int64
119962+
type: integer
119963+
not_found:
119964+
description: Row IDs from the request that do not exist in the reference table. Empty when every requested row was found.
119965+
example:
119966+
- row_id_2
119967+
items:
119968+
description: Row identifier, corresponding to the primary key value.
119969+
type: string
119970+
type: array
119971+
requested_count:
119972+
description: Number of row IDs supplied in the `row_id` query parameter.
119973+
example: 2
119974+
format: int64
119975+
type: integer
119976+
required:
119977+
- requested_count
119978+
- found_count
119979+
- not_found
119980+
type: object
119953119981
TableRowResourceData:
119954119982
additionalProperties: false
119955119983
description: The data object containing the row column names and values.
@@ -195945,6 +195973,11 @@ paths:
195945195973
name: Example Row
195946195974
id: row_id_1
195947195975
type: row
195976+
meta:
195977+
found_count: 1
195978+
not_found:
195979+
- row_id_2
195980+
requested_count: 2
195948195981
schema:
195949195982
$ref: "#/components/schemas/TableRowResourceArray"
195950195983
description: Some or all requested rows were found.

‎src/datadog_api_client/v2/model/table_row_resource_array.py‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,51 @@
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
18+
from datadog_api_client.v2.model.table_row_resource_array_meta import TableRowResourceArrayMeta
1619

1720

1821
class TableRowResourceArray(ModelNormal):
1922
@cached_property
2023
def openapi_types(_):
2124
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
25+
from datadog_api_client.v2.model.table_row_resource_array_meta import TableRowResourceArrayMeta
2226

2327
return {
2428
"data": ([TableRowResourceData],),
29+
"meta": (TableRowResourceArrayMeta,),
2530
}
2631

2732
attribute_map = {
2833
"data": "data",
34+
"meta": "meta",
2935
}
3036

31-
def __init__(self_, data: List[TableRowResourceData], **kwargs):
37+
def __init__(
38+
self_, data: List[TableRowResourceData], meta: Union[TableRowResourceArrayMeta, UnsetType] = unset, **kwargs
39+
):
3240
"""
33-
List of rows from a reference table query.
41+
List of rows from a reference table query, along with metadata about rows that were requested but not found.
3442
3543
:param data: The rows.
3644
:type data: [TableRowResourceData]
45+
46+
:param meta: Metadata about the rows requested, including which ones were not found.
47+
:type meta: TableRowResourceArrayMeta, optional
3748
"""
49+
if meta is not unset:
50+
kwargs["meta"] = meta
3851
super().__init__(kwargs)
3952

4053
self_.data = data
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 List
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
class TableRowResourceArrayMeta(ModelNormal):
15+
@cached_property
16+
def openapi_types(_):
17+
return {
18+
"found_count": (int,),
19+
"not_found": ([str],),
20+
"requested_count": (int,),
21+
}
22+
23+
attribute_map = {
24+
"found_count": "found_count",
25+
"not_found": "not_found",
26+
"requested_count": "requested_count",
27+
}
28+
29+
def __init__(self_, found_count: int, not_found: List[str], requested_count: int, **kwargs):
30+
"""
31+
Metadata about the rows requested, including which ones were not found.
32+
33+
:param found_count: Number of requested rows that were found and returned in ``data``.
34+
:type found_count: int
35+
36+
:param not_found: Row IDs from the request that do not exist in the reference table. Empty when every requested row was found.
37+
:type not_found: [str]
38+
39+
:param requested_count: Number of row IDs supplied in the ``row_id`` query parameter.
40+
:type requested_count: int
41+
"""
42+
super().__init__(kwargs)
43+
44+
self_.found_count = found_count
45+
self_.not_found = not_found
46+
self_.requested_count = requested_count

‎src/datadog_api_client/v2/models/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10805,6 +10805,7 @@
1080510805
)
1080610806
from datadog_api_client.v2.model.table_result_v2_data_type import TableResultV2DataType
1080710807
from datadog_api_client.v2.model.table_row_resource_array import TableRowResourceArray
10808+
from datadog_api_client.v2.model.table_row_resource_array_meta import TableRowResourceArrayMeta
1080810809
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
1080910810
from datadog_api_client.v2.model.table_row_resource_data_attributes import TableRowResourceDataAttributes
1081010811
from datadog_api_client.v2.model.table_row_resource_data_type import TableRowResourceDataType
@@ -19249,6 +19250,7 @@
1924919250
"TableResultV2DataAttributesSchemaFieldsItems",
1925019251
"TableResultV2DataType",
1925119252
"TableRowResourceArray",
19253+
"TableRowResourceArrayMeta",
1925219254
"TableRowResourceData",
1925319255
"TableRowResourceDataAttributes",
1925419256
"TableRowResourceDataType",

0 commit comments

Comments
 (0)