Skip to content
Open
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
35 changes: 35 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12763,9 +12763,25 @@ components:
- id: row_id_2
type: row
type: reference-tables-batch-rows-query
included:
- attributes:
values:
ip_address: 102.130.113.9
id: row_id_1
type: row
- attributes:
values:
ip_address: 102.130.113.10
id: row_id_2
type: row
properties:
data:
$ref: "#/components/schemas/BatchRowsQueryResponseData"
included:
description: Full row resources that were found, included alongside the relationship references in data.
items:
$ref: "#/components/schemas/TableRowResourceData"
type: array
type: object
BatchRowsQueryResponseData:
description: Data object for a batch rows query response.
Expand Down Expand Up @@ -56952,6 +56968,9 @@ components:
links:
first: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Blimit%5D=100"
self: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
meta:
page:
next_continuation_token: eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ==
properties:
data:
description: The rows.
Expand All @@ -56960,6 +56979,8 @@ components:
type: array
links:
$ref: "#/components/schemas/ListRowsResponseLinks"
meta:
$ref: "#/components/schemas/ListRowsResponseMeta"
required:
- data
- links
Expand All @@ -56983,6 +57004,20 @@ components:
- self
- first
type: object
ListRowsResponseMeta:
description: Metadata for the list rows response.
properties:
page:
$ref: "#/components/schemas/ListRowsResponseMetaPage"
type: object
ListRowsResponseMetaPage:
description: Pagination metadata for the list rows response.
properties:
next_continuation_token:
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.
example: eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ==
type: string
type: object
ListRulesResponse:
description: Scorecard rules response.
properties:
Expand Down
14 changes: 14 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20836,6 +20836,20 @@ datadog\_api\_client.v2.model.list\_rows\_response\_links module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.list\_rows\_response\_meta module
---------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.list_rows_response_meta
:members:
:show-inheritance:

datadog\_api\_client.v2.model.list\_rows\_response\_meta\_page module
---------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.list_rows_response_meta_page
:members:
:show-inheritance:

datadog\_api\_client.v2.model.list\_rules\_response module
----------------------------------------------------------

Expand Down
18 changes: 16 additions & 2 deletions src/datadog_api_client/v2/model/batch_rows_query_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
Expand All @@ -15,28 +15,42 @@

if TYPE_CHECKING:
from datadog_api_client.v2.model.batch_rows_query_response_data import BatchRowsQueryResponseData
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData


class BatchRowsQueryResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.batch_rows_query_response_data import BatchRowsQueryResponseData
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData

return {
"data": (BatchRowsQueryResponseData,),
"included": ([TableRowResourceData],),
}

attribute_map = {
"data": "data",
"included": "included",
}

def __init__(self_, data: Union[BatchRowsQueryResponseData, UnsetType] = unset, **kwargs):
def __init__(
self_,
data: Union[BatchRowsQueryResponseData, UnsetType] = unset,
included: Union[List[TableRowResourceData], UnsetType] = unset,
**kwargs,
):
"""
Response object for a batch rows query against a reference table.

:param data: Data object for a batch rows query response.
:type data: BatchRowsQueryResponseData, optional

:param included: Full row resources that were found, included alongside the relationship references in data.
:type included: [TableRowResourceData], optional
"""
if data is not unset:
kwargs["data"] = data
if included is not unset:
kwargs["included"] = included
super().__init__(kwargs)
21 changes: 19 additions & 2 deletions src/datadog_api_client/v2/model/list_rows_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,48 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import List, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
from datadog_api_client.v2.model.list_rows_response_links import ListRowsResponseLinks
from datadog_api_client.v2.model.list_rows_response_meta import ListRowsResponseMeta


class ListRowsResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.table_row_resource_data import TableRowResourceData
from datadog_api_client.v2.model.list_rows_response_links import ListRowsResponseLinks
from datadog_api_client.v2.model.list_rows_response_meta import ListRowsResponseMeta

return {
"data": ([TableRowResourceData],),
"links": (ListRowsResponseLinks,),
"meta": (ListRowsResponseMeta,),
}

attribute_map = {
"data": "data",
"links": "links",
"meta": "meta",
}

def __init__(self_, data: List[TableRowResourceData], links: ListRowsResponseLinks, **kwargs):
def __init__(
self_,
data: List[TableRowResourceData],
links: ListRowsResponseLinks,
meta: Union[ListRowsResponseMeta, UnsetType] = unset,
**kwargs,
):
"""
Paginated list of reference table rows.

Expand All @@ -41,7 +53,12 @@ def __init__(self_, data: List[TableRowResourceData], links: ListRowsResponseLin

:param links: Pagination links for the list rows response.
:type links: ListRowsResponseLinks

:param meta: Metadata for the list rows response.
:type meta: ListRowsResponseMeta, optional
"""
if meta is not unset:
kwargs["meta"] = meta
super().__init__(kwargs)

self_.data = data
Expand Down
42 changes: 42 additions & 0 deletions src/datadog_api_client/v2/model/list_rows_response_meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.list_rows_response_meta_page import ListRowsResponseMetaPage


class ListRowsResponseMeta(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.list_rows_response_meta_page import ListRowsResponseMetaPage

return {
"page": (ListRowsResponseMetaPage,),
}

attribute_map = {
"page": "page",
}

def __init__(self_, page: Union[ListRowsResponseMetaPage, UnsetType] = unset, **kwargs):
"""
Metadata for the list rows response.

:param page: Pagination metadata for the list rows response.
:type page: ListRowsResponseMetaPage, optional
"""
if page is not unset:
kwargs["page"] = page
super().__init__(kwargs)
36 changes: 36 additions & 0 deletions src/datadog_api_client/v2/model/list_rows_response_meta_page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


class ListRowsResponseMetaPage(ModelNormal):
@cached_property
def openapi_types(_):
return {
"next_continuation_token": (str,),
}

attribute_map = {
"next_continuation_token": "next_continuation_token",
}

def __init__(self_, next_continuation_token: Union[str, UnsetType] = unset, **kwargs):
"""
Pagination metadata for the list rows response.

: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.
:type next_continuation_token: str, optional
"""
if next_continuation_token is not unset:
kwargs["next_continuation_token"] = next_continuation_token
super().__init__(kwargs)
4 changes: 4 additions & 0 deletions src/datadog_api_client/v2/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4359,6 +4359,8 @@
from datadog_api_client.v2.model.list_relation_catalog_response_links import ListRelationCatalogResponseLinks
from datadog_api_client.v2.model.list_rows_response import ListRowsResponse
from datadog_api_client.v2.model.list_rows_response_links import ListRowsResponseLinks
from datadog_api_client.v2.model.list_rows_response_meta import ListRowsResponseMeta
from datadog_api_client.v2.model.list_rows_response_meta_page import ListRowsResponseMetaPage
from datadog_api_client.v2.model.list_rules_response import ListRulesResponse
from datadog_api_client.v2.model.list_rules_response_data_item import ListRulesResponseDataItem
from datadog_api_client.v2.model.list_rules_response_links import ListRulesResponseLinks
Expand Down Expand Up @@ -12842,6 +12844,8 @@
"ListRelationCatalogResponseLinks",
"ListRowsResponse",
"ListRowsResponseLinks",
"ListRowsResponseMeta",
"ListRowsResponseMetaPage",
"ListRulesResponse",
"ListRulesResponseDataItem",
"ListRulesResponseLinks",
Expand Down
Loading