Skip to content

Commit 69a8e26

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add orchestrator section in IP ranges (#1331)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a71e0ed commit 69a8e26

File tree

6 files changed

+88
-4
lines changed

6 files changed

+88
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-02-08 16:22:55.326401",
8-
"spec_repo_commit": "c826f5c2"
7+
"regenerated": "2023-02-10 07:57:50.934825",
8+
"spec_repo_commit": "062e75ae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-08 16:22:55.343166",
13-
"spec_repo_commit": "c826f5c2"
12+
"regenerated": "2023-02-10 07:57:50.945941",
13+
"spec_repo_commit": "062e75ae"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3791,6 +3791,22 @@ components:
37913791
type: string
37923792
type: array
37933793
type: object
3794+
IPPrefixesOrchestrator:
3795+
description: Available prefix information for the Orchestrator endpoints.
3796+
properties:
3797+
prefixes_ipv4:
3798+
description: List of IPv4 prefixes.
3799+
items:
3800+
description: IPv4 prefix
3801+
type: string
3802+
type: array
3803+
prefixes_ipv6:
3804+
description: List of IPv6 prefixes.
3805+
items:
3806+
description: IPv6 prefix
3807+
type: string
3808+
type: array
3809+
type: object
37943810
IPPrefixesProcess:
37953811
description: Available prefix information for the Process endpoints.
37963812
properties:
@@ -3889,6 +3905,8 @@ components:
38893905
description: Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`.
38903906
example: 2019-10-31-20-00-00
38913907
type: string
3908+
orchestrator:
3909+
$ref: '#/components/schemas/IPPrefixesOrchestrator'
38923910
process:
38933911
$ref: '#/components/schemas/IPPrefixesProcess'
38943912
synthetics:

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,13 @@ ip\_prefixes\_logs
11841184
:members:
11851185
:show-inheritance:
11861186

1187+
ip\_prefixes\_orchestrator
1188+
--------------------------
1189+
1190+
.. automodule:: datadog_api_client.v1.model.ip_prefixes_orchestrator
1191+
:members:
1192+
:show-inheritance:
1193+
11871194
ip\_prefixes\_process
11881195
---------------------
11891196

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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, Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class IPPrefixesOrchestrator(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"prefixes_ipv4": ([str],),
21+
"prefixes_ipv6": ([str],),
22+
}
23+
24+
attribute_map = {
25+
"prefixes_ipv4": "prefixes_ipv4",
26+
"prefixes_ipv6": "prefixes_ipv6",
27+
}
28+
29+
def __init__(
30+
self_,
31+
prefixes_ipv4: Union[List[str], UnsetType] = unset,
32+
prefixes_ipv6: Union[List[str], UnsetType] = unset,
33+
**kwargs,
34+
):
35+
"""
36+
Available prefix information for the Orchestrator endpoints.
37+
38+
:param prefixes_ipv4: List of IPv4 prefixes.
39+
:type prefixes_ipv4: [str], optional
40+
41+
:param prefixes_ipv6: List of IPv6 prefixes.
42+
:type prefixes_ipv6: [str], optional
43+
"""
44+
if prefixes_ipv4 is not unset:
45+
kwargs["prefixes_ipv4"] = prefixes_ipv4
46+
if prefixes_ipv6 is not unset:
47+
kwargs["prefixes_ipv6"] = prefixes_ipv6
48+
super().__init__(kwargs)

src/datadog_api_client/v1/model/ip_ranges.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v1.model.ip_prefixes_api import IPPrefixesAPI
1919
from datadog_api_client.v1.model.ip_prefixes_apm import IPPrefixesAPM
2020
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
21+
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
2122
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
2223
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
2324
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import (
@@ -33,6 +34,7 @@ def openapi_types(_):
3334
from datadog_api_client.v1.model.ip_prefixes_api import IPPrefixesAPI
3435
from datadog_api_client.v1.model.ip_prefixes_apm import IPPrefixesAPM
3536
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
37+
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
3638
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
3739
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
3840
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import (
@@ -46,6 +48,7 @@ def openapi_types(_):
4648
"apm": (IPPrefixesAPM,),
4749
"logs": (IPPrefixesLogs,),
4850
"modified": (str,),
51+
"orchestrator": (IPPrefixesOrchestrator,),
4952
"process": (IPPrefixesProcess,),
5053
"synthetics": (IPPrefixesSynthetics,),
5154
"synthetics_private_locations": (IPPrefixesSyntheticsPrivateLocations,),
@@ -59,6 +62,7 @@ def openapi_types(_):
5962
"apm": "apm",
6063
"logs": "logs",
6164
"modified": "modified",
65+
"orchestrator": "orchestrator",
6266
"process": "process",
6367
"synthetics": "synthetics",
6468
"synthetics_private_locations": "synthetics-private-locations",
@@ -73,6 +77,7 @@ def __init__(
7377
apm: Union[IPPrefixesAPM, UnsetType] = unset,
7478
logs: Union[IPPrefixesLogs, UnsetType] = unset,
7579
modified: Union[str, UnsetType] = unset,
80+
orchestrator: Union[IPPrefixesOrchestrator, UnsetType] = unset,
7681
process: Union[IPPrefixesProcess, UnsetType] = unset,
7782
synthetics: Union[IPPrefixesSynthetics, UnsetType] = unset,
7883
synthetics_private_locations: Union[IPPrefixesSyntheticsPrivateLocations, UnsetType] = unset,
@@ -98,6 +103,9 @@ def __init__(
98103
:param modified: Date when last updated, in the form ``YYYY-MM-DD-hh-mm-ss``.
99104
:type modified: str, optional
100105
106+
:param orchestrator: Available prefix information for the Orchestrator endpoints.
107+
:type orchestrator: IPPrefixesOrchestrator, optional
108+
101109
:param process: Available prefix information for the Process endpoints.
102110
:type process: IPPrefixesProcess, optional
103111
@@ -123,6 +131,8 @@ def __init__(
123131
kwargs["logs"] = logs
124132
if modified is not unset:
125133
kwargs["modified"] = modified
134+
if orchestrator is not unset:
135+
kwargs["orchestrator"] = orchestrator
126136
if process is not unset:
127137
kwargs["process"] = process
128138
if synthetics is not unset:

src/datadog_api_client/v1/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
from datadog_api_client.v1.model.ip_prefixes_apm import IPPrefixesAPM
193193
from datadog_api_client.v1.model.ip_prefixes_agents import IPPrefixesAgents
194194
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
195+
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
195196
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
196197
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
197198
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import IPPrefixesSyntheticsPrivateLocations

0 commit comments

Comments
 (0)